A constant multiple
A number multiplying a function is called a constant multiple, or a coefficient. The constant multiple rule says: differentiate the function, and keep the number as a multiplier. So differentiates to . In symbols, the derivative of kf(x) is kf′(x).
From first principles, the rise of over a step h is , five times the rise of . Dividing by h keeps the 5 outside, and the limit of 5 times a quantity is 5 times its limit. Check at x = 1, where : the chord with h = 0.001 gives .
On a graph, is stretched upward by 3. Every rise is 3 times as big and every run is the same, so every gradient is 3 times as big.
The gold curve is , and the plain curve is . At x = 1 the tangent to has gradient 2, and the tangent to has gradient 3 × 2 = 6.
A sum, term by term
The sum rule says: to differentiate a sum, differentiate each term on its own and add the results. The derivative of f(x) + g(x) is f'(x) + g'(x). A difference works the same way, with a minus sign.
The reason is the difference quotient. The rise of f + g over a step h is the rise of f plus the rise of g, so the quotient splits into two quotients, and the limit of a sum is the sum of the limits.
So differentiates term by term: gives , gives 8x, and −7 gives 0. The derivative is . At x = 1 that is 3 + 8 = 11, and the chord with h = 0.001 gives 11.007001.
The gold curve is , and the plain curves are its two terms, and the line y = x. At x = 1, has gradient 2 and x has gradient 1, and the tangent to the sum at (1, 2) has gradient 2 + 1 = 3.
A constant term
A constant term such as −7 differentiates to 0. Its graph, y = −7, is a level line with gradient 0 everywhere.
Adding or taking away a constant moves a whole curve up or down without tilting any part of it. The curves and have the same gradient, 2x, at every x: at x = 1 both tangents have gradient 2. So and have the same derivative, .
The gold curve is , and the plain curve is , 3 higher at every x. Their tangents at x = 1 are parallel, both with gradient 2.
Putting them together
With the power rule, these two rules differentiate any sum of powers of x. gives . At x = 1 that is 5, and the chord with h = 0.001 gives 5.012004.
Rewrite roots and reciprocals as powers first. is . Term by term: gives ; gives ; gives . So the derivative is , which is 10 + 3 + 3 = 16 at x = 1. The chord with h = 0.0001 gives 16.001625.
A fraction with a single term underneath can be divided term by term first. , which gives . At x = 1 that is −2, and the chord with h = 0.001 gives −1.997003.
A product of two brackets is not a sum, so these rules do not apply to it as it stands. Expand it first: , which gives 2x − 1. At x = 2 that is 3, and the chord with h = 0.001 gives 3.001. Differentiating each bracket and multiplying, 1 × 1 = 1, is wrong.
The usual mistakes
Keeping the constant term: to 6x + 5 + 4. The + 4 has gradient 0, so the derivative is 6x + 5.
Dropping the power without multiplying by it: to 3x. The power rule turns into 2x, so gives 3 × 2x = 6x.
Treating a coefficient like a constant term. The 5 in multiplies and stays: the derivative is , not and not 0. Only a number standing alone, added or taken away, differentiates to 0.
Losing a minus sign. is , and the power rule brings down another −1, so the derivative is .
A tram
In the application below, a tram's distance from its stop is meters after x seconds. Each differentiation is term by term, with each coefficient kept: once for the velocity, twice for the acceleration, and three times for the rate the acceleration changes.
Worked example: A Tram Pulling Away from a Stop: the Acceleration Its Passengers Feel and the Jerk Behind It
Question A tram pulls away from a stop. For the first 10 seconds its distance from the stop is s = 0.4x2 + 0.02x3 meters, where x is the number of seconds since it started. (a) Find the acceleration after 5 seconds. (b) Find the third derivative, which engineers call the jerk, and say what it tells the passengers.
1.Let x be the number of seconds since the tram started, so the distance from the stop is s = 0.4x2 + 0.02x3 meters.
The distance from the stop is s = 0.4x2 + 0.02x3 meters after x seconds. 2.Differentiate once, term by term with the power rule, for the velocity: dsdx = 0.8x + 0.06x2 meters per second.
The first derivative is the speed, dsdx = 0.8x + 0.06x2 meters per second, drawn on the left. 3.Differentiate again for the acceleration: d2sdx2 = 0.8 + 0.12x meters per second squared.
The second derivative is the acceleration, d2sdx2 = 0.8 + 0.12x, drawn on the right: a straight line. 4.(a) After 5 seconds the acceleration is 0.8 + 0.12 × 5 = 1.4 meters per second squared, and the tram is traveling at 4 + 1.5 = 5.5 meters per second.
(a) After 5 seconds the acceleration is 1.4 m per second squared and the tram is doing 5.5 m per second. 5.Differentiate a third time for the jerk: d3sdx3 = 0.12 meters per second cubed.
The acceleration line rises 0.6 over 5 seconds, so the third derivative is 0.65 = 0.12. 6.(b) The jerk is a steady 0.12 meters per second cubed, so the acceleration builds up evenly and the passengers feel no jolt. Check: the acceleration is 1.28 after 4 seconds and 1.52 after 6, a rise of 0.24 over those 2 seconds.
(b) The jerk is a steady 0.12 meters per second cubed, so the acceleration builds up evenly.
Answer: (a) 1.4 meters per second squared; (b) the jerk is a steady 0.12 meters per second cubed
Common mistakes
- Giving the velocity 5.5 meters per second as the answer to part (a). The acceleration is the second derivative, not the first.
- Treating a constant third derivative as no jerk at all. A jerk of 0.12 is a real and steady change in the acceleration; it is zero jerk that would mean the acceleration never changes.
More rules of differentiation problems, worked step by step →