A function inside a function
is made in two stages. First x goes to u = 3x + 1, the inner function. Then u goes to , the outer function. Everything inside the bracket travels together as one quantity, u.
Multiplying out would give six terms to differentiate one at a time. The chain rule differentiates each stage once instead.
The outer function first
As a function of u, , and the power rule gives . The power comes down to the front and drops by one, while the inside is left as it stands.
This is the gradient of y with respect to u. It is not yet , because u does not change at the same rate as x.
Why the rates multiply
The inner function is u = 3x + 1, so : u changes 3 times as fast as x. A small step in x moves u by , and that step in u moves y by about . So y moves by about .
In general, . As , as well, and the three quotients become the three derivatives: . The gradient in u is scaled once on the way from x to u and again on the way from u to y.
a step in x is doubled on the way to u and multiplied by 2u on the way to y, so the rates multiply: dy/dx = 14
Make dy/dx equal 12
Three number lines: x, then u = 2x + 1, then . A step in x moves u twice as far, and a step in u moves y 2u times as far, so . At x = 1, u = 3 and , which is 8x + 4, the derivative of the multiplied-out .
Times the derivative of the inside
So . At x = 0 the inside is 1, and the gradient is 15. At the inside is 2, and the gradient is .
Check at x = 0 with a chord. , so the chord from x = 0 to x = 0.001 has gradient .
A linear inside, such as 3x + 1, contributes just its coefficient. An inside that is not linear contributes its own derivative, which depends on x.
Insides that are not linear
For , the inner function is and the outer function is . Then and , so . At x = 1 that is 6 × 4 = 24. Multiplying out instead, , which differentiates to , and that is 6 + 12 + 6 = 24 at x = 1.
For , the inner function is and the outer function is . Then and , so . At x = 4 the root is , and the gradient is . Check: , so the chord from x = 4 to x = 4.01 has gradient 0.8004.
For , the inner function is and the outer function is . The chain rule gives , the same as the quotient rule, and −0.5 at x = 1.
The gold curve , lowest at (0, 3), and its tangent at (4, 5), the gold line with gradient .
More than two layers
Each layer adds one factor. has three: the innermost u = 2x + 1, then , then the outer . So .
At x = 0, u = 1 and w = 2, so . The chord from x = 0 to x = 0.001 has gradient 48.14, and with a step of 0.000001 the chord gradient is 48.0001.
The usual mistakes
Stopping after the outer function. leaves out the factor 3, so every gradient comes out 3 times too small: 5 at x = 0 instead of 15.
Multiplying by the inner derivative without lowering the power. is 480 at , not 240.
Giving as the answer. is the rate per unit of u, and a rate per unit of x needs the factor .
A balloon being inflated
In the application below, the volume of a balloon depends on its radius, and the radius depends on time. The chain rule multiplies the two rates: , from the power rule, times , the rate at which the radius grows.
Worked example: A Weather Balloon Being Inflated: the Volume and the Surface Area Growing Through a Radius That Grows
Question A weather balloon is inflated so that it stays spherical and its radius grows at a steady 0.5 cm per second. Its volume is V = 43π r3 and its surface area is A = 4π r2, with r in centimeters. Let x be the number of seconds. (a) How fast is the volume growing when the radius is 6 cm? (b) How fast is the surface area growing at that same moment?
1.Let x be the number of seconds. The radius grows steadily, so drdx = 0.5 centimeters per second.
The radius grows steadily, so drdx = 0.5 cm per second. The dashed circle is the balloon a moment later. 2.The chain rule links the two rates: dVdx = dVdr × drdx.
The chain rule links the two rates: dVdx = dVdr × drdx. 3.Differentiate the volume with respect to the radius by the power rule: V = 43π r3 gives dVdr = 4π r2, which is 144π when r = 6.
The power rule gives dVdr = 4π r2, which is 144π at r = 6: the gradient of the tangent drawn on the curve. 4.(a) dVdx = 144π × 0.5 = 72π ≈ 226 cubic centimeters per second.
(a) dVdx = 144π × 0.5 = 72π ≈ 226 cubic cm per second. 5.For the surface area, A = 4π r2 gives dAdr = 8π r, which is 48π when r = 6.
The surface area is A = 4π r2, so dAdr = 8π r = 48π at r = 6. 6.(b) dAdx = 48π × 0.5 = 24π ≈ 75.4 square centimeters per second. Check: in a tenth of a second the radius goes from 6 to 6.05 cm and the volume grows by about 22.8 cubic centimeters.
(b) dAdx = 48π × 0.5 = 24π ≈ 75.4 square cm per second.
Answer: (a) 72π ≈ 226 cubic centimeters per second; (b) 24π ≈ 75.4 square centimeters per second
Common mistakes
- Giving dVdr = 144π as the answer to part (a). That is the rate for each centimeter of radius, not for each second; it must still be multiplied by drdx.
- Differentiating 43π r3 as though π were a variable. Here π is a constant multiplier and stays where it is, while only r3 is differentiated.
More rules of differentiation problems, worked step by step →