The Constant Multiple and Sum Rules

Term by term, with constants along for the ride.

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 5x³ differentiates to 5 × 3x² = 15x². In symbols, the derivative of kf(x) is kf′(x).

From first principles, the rise of 5x³ over a step h is 5(x + h)³ − 5x³ = 5((x + h)³ − x³), five times the rise of x³. 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 15x² = 15: the chord with h = 0.001 gives (5 × 1.001³ − 5) / 0.001 = 15.015005.

On a graph, y = 3x² is y = x² 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.

xy(1, 3)(1, 1)

The gold curve is y = 3x², and the plain curve is y = x². At x = 1 the tangent to y = x² has gradient 2, and the tangent to y = 3x² 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 x³ + 4x² − 7 differentiates term by term: x³ gives 3x², 4x² gives 8x, and −7 gives 0. The derivative is 3x² + 8x. At x = 1 that is 3 + 8 = 11, and the chord with h = 0.001 gives 11.007001.

xy(1, 2)

The gold curve is y = x² + x, and the plain curves are its two terms, y = x² and the line y = x. At x = 1, x² 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 y = x² and y = x² − 3 have the same gradient, 2x, at every x: at x = 1 both tangents have gradient 2. So x³ + 4x² − 7 and x³ + 4x² have the same derivative, 3x² + 8x.

xy(1, −2)(1, 1)

The gold curve is y = x² − 3, and the plain curve is y = x², 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. 4x³ − 7x + 2 gives 4 × 3x² − 7 × 1 + 0 = 12x² − 7. At x = 1 that is 5, and the chord with h = 0.001 gives 5.012004.

Rewrite roots and reciprocals as powers first. 2x⁵ − 3/x + 6√x is 2x⁵ − 3x⁻¹ + 6x^(1/2). Term by term: 2x⁵ gives 10x⁴; −3x⁻¹ gives −3 × (−x⁻²) = 3x⁻²; 6x^(1/2) gives 6 × (1/2)x^(−1/2) = 3x^(−1/2). So the derivative is 10x⁴ + 3/x² + 3/√x, 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. (x² + 3)/x = x + 3x⁻¹, which gives 1 − 3x⁻² = 1 − 3/x². 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: (x + 2)(x − 3) = x² − x − 6, 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: 3x² + 5x + 4 to 6x + 5 + 4. The + 4 has gradient 0, so the derivative is 6x + 5.

Dropping the power without multiplying by it: 3x² to 3x. The power rule turns x² into 2x, so 3x² gives 3 × 2x = 6x.

Treating a coefficient like a constant term. The 5 in 5x³ multiplies x³ and stays: the derivative is 15x², not 3x² and not 0. Only a number standing alone, added or taken away, differentiates to 0.

Losing a minus sign. −3/x is −3x⁻¹, and the power rule brings down another −1, so the derivative is +3/x².

A tram

In the application below, a tram's distance from its stop is s = 0.4x² + 0.02x³ 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. 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.

    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xaccelerations = 0.4x2+ 0.02x3
    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xaccelerations = 0.4x2+ 0.02x3
    The distance from the stop is s = 0.4x2 + 0.02x3 meters after x seconds.
  2. 2.Differentiate once, term by term with the power rule, for the velocity: dsdx = 0.8x + 0.06x2 meters per second.

    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xaccelerationds/dx = 0.8x + 0.06x2
    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xaccelerationds/dx = 0.8x + 0.06x2
    The first derivative is the speed, dsdx = 0.8x + 0.06x2 meters per second, drawn on the left.
  3. 3.Differentiate again for the acceleration: d2sdx2 = 0.8 + 0.12x meters per second squared.

    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xaccelerationd2s/dx2= 0.8 + 0.12x
    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xaccelerationd2s/dx2= 0.8 + 0.12x
    The second derivative is the acceleration, d2sdx2 = 0.8 + 0.12x, drawn on the right: a straight line.
  4. 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.

    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xacceleration5.5 m per s1.4x = 5: 0.8 + 0.6 = 1.4 m per s per sthe speed there is 5.5 m per second
    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xacceleration5.5 m per s1.4x = 5: 0.8 + 0.6 = 1.4 m per s per sthe speed there is 5.5 m 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. 5.Differentiate a third time for the jerk: d3sdx3 = 0.12 meters per second cubed.

    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xacceleration5.5 m per s1.4run 5rise 0.6d3s/dx3= 0.12the gradient of the acceleration line
    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xacceleration5.5 m per s1.4run 5rise 0.6d3s/dx3= 0.12the gradient of the acceleration line
    The acceleration line rises 0.6 over 5 seconds, so the third derivative is 0.65 = 0.12.
  6. 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.

    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xacceleration5.5 m per s1.4run 5rise 0.6a jerk of 0.12 m per second cubed1.28 at 4 seconds and 1.52 at 6
    04812160510seconds, xspeed, m per second00.81.62.40510seconds, xacceleration5.5 m per s1.4run 5rise 0.6a jerk of 0.12 m per second cubed1.28 at 4 seconds and 1.52 at 6
    (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 →

Practice The Constant Multiple and Sum Rules in the app