If a gear turns three times as fast as a second gear, and the second turns twice as fast as a third, then the first turns six times as fast as the third. Rates multiply along a chain. The chain rule says exactly this for functions built one inside another, and it is the rule you will use more than any other.
Key terms
Composition
Definition The composition of and is the function given by
Its domain is the set of all in the domain of for which lies in the domain of .
In plain words Apply first, then feed the result into . An input is allowed only if both steps make sense.
Example With and , . We need , so the domain is . In the other order, with domain , a different function.
Inner and outer functions
Definition When a function is written as , the function is the inner function and is the outer function. It is common to name the intermediate value, , so that . The same function can usually be split in more than one way, and any split into differentiable pieces works.
In plain words The inner function is what you compute first. The outer function is the last operation you would do with a calculator.
Example For the inner function is and the outer function is . For the inner function is and the outer is .
Derivative of a composite
Definition If is differentiable at and is differentiable at , then is differentiable at and
In Leibniz notation, with and ,
where is evaluated at .
In plain words Differentiate the outer function, leaving the inner one inside it untouched, then multiply by the derivative of the inner function.
Example For ,
At this is . Expanding first would give the same answer with much more work.
Nested compositions
Definition For three functions, if is differentiable at , is differentiable at and is differentiable at , then
Longer chains work the same way, with one factor for each layer.
In plain words Peel the layers from the outside in. Each layer contributes its derivative, evaluated at whatever sits inside it.
Example Let . The layers are , then , then . So
At we have and , so the slope there is
Rates with intermediate variables
Definition If a quantity is a differentiable function of , and is a differentiable function of time , then changes with at the rate
with evaluated at the current value of . The units match, since units of per times units of per give units of per .
In plain words If you know how responds to and how fast is changing, multiply to get how fast is changing.
Example A spherical balloon has volume , so . If the radius grows at centimeters per second, then at the moment centimeters,
Differentiability assumptions
Definition The chain rule needs differentiable at and differentiable at the point , not at . These conditions are sufficient but not necessary. If one of them fails, the composite may or may not be differentiable, and the formula cannot be used to decide. A careful proof also has to handle points where for small , which is why the tempting argument of cancelling in is not a complete proof.
In plain words Check that the inner function is smooth at your point and the outer function is smooth where the inner one lands. If not, go back to the limit definition.
Example Take and at . Here and is not differentiable at , so the chain rule does not apply. In fact has one-sided slopes and at , a corner. On the other hand, with and the inner function fails at , yet is differentiable there. The chain rule is silent in both cases, and the answers differ.
Check yourself
- Differentiate and find the slope at .
Show the answer
With inner function the chain rule gives
At the slope is
- Suppose , and . Find .
Show the answer
The chain rule gives
- Differentiate .
Show the answer
Write . For the chain rule gives