The chain rule in this visualization
A composite works in two stages: the inner function g takes x to , and the outer function f takes u to . When g is differentiable at x and f at , the chain rule says the composite's derivative is , or in Leibniz's notation . The picture draws x, u and y on three parallel lines to one scale, so lengths can be compared from line to line: a step of length h on the x line is carried down through g and then f. How far apart the images of its two ends land, compared with the step they came from, is that stage's stretch factor; ends that land the other way round give a negative one.
Why the derivatives multiply
A derivative is a signed stretch factor near a point: says about how many times g lengthens a very short step at x. Take the step from x to . Its ends land apart on the u line, counted with sign, and their images land apart on the y line. Whenever , holds exactly, for any h, even while the points in between land unevenly spaced. Shrink h and they land evenly spaced. heads for , the whole for , and the outer factor for at the place the step has been carried to, , not at x. For at 2 that is ; measures the outer stretch at the wrong place.
Turning around, and flattening
A decreasing stage turns the step around, and its stretch factor is negative. turns every step around and doubles it. Then at turns it around again, so the composite increases: . When both stages are differentiable, one with derivative 0 makes the derivative of the whole 0: it squeezes short steps to almost nothing, and the other can only multiply that by about its own derivative. at 0 has derivative 0, so has derivative 0 there, although .
When Δu = 0
The product of quotients needs . sends both −0.5 and 0.5 to 0.25, so on that step and does not exist. Some functions make for steps as short as you like, so the quotient argument cannot simply leave such steps out. The repair writes the outer stage without dividing: , where as and , true for as well. With , . As , because g is differentiable at x, so and the right side goes to .
Things to notice
- looks like fractions cancelling, but dy/du is a single symbol for a derivative, not a quotient of two numbers.
- Related rates are the chain rule with time as the variable: .
Controls
- Drag the x line left or right to move x; it catches whole and half numbers. The wheel and the field set x too; the field takes fractions such as 1/3.
- The fader sets the step h from 1 down to 0.001; the field takes an exact value. Choose the inner and the outer function with their keys.
- With the keyboard, Tab to the point on the x line and use the left and right arrow keys; hold Shift for finer steps.