Most functions you meet in calculus are built in layers: , , , . None of them is a plain power, sine or exponential, so the rules you know so far cannot finish the job alone. The chain rule handles every one of them, and the idea behind it fits in one sentence: when one function feeds another, their rates of change multiply.
Layers: the inside and the outside function
A composite function works like an assembly line. First the inside function acts on . Then the outside function acts on whatever produced. To see the layers, ask how you would compute the value with a calculator. For you square first, then take the sine: the inside is and the outside is .
| Function | Inside | Outside |
|---|---|---|
Why the rates multiply
Think of two gears. If the small gear turns 3 times for every turn of the pedal, and the wheel turns 2 times for every turn of the small gear, the wheel turns times per pedal turn. Rates of change pass through a chain in the same way. Suppose changes by a tiny amount. The inside function changes about times as much. The outside function then changes about times as much as its own input did. So changes about times as much as :
In Leibniz notation, with and , the same rule reads . It looks like fractions cancelling. They are not really fractions, but the picture is a good memory aid.
The figure shows the rule at work. The graph of is the graph of squeezed sideways by a factor of 2, so every slope is twice as steep. The chain rule says the same thing:
The two-step routine
- Differentiate the outside function and leave the inside alone. Write with the original inside function still in it: .
- Multiply by the derivative of the inside function, .
Worked example 1. Differentiate .
Outside: , whose derivative is . Keep the inside: .
Inside: , whose derivative is .
So
Worked example 2. Differentiate and .
For : the outside is its own derivative, so we keep , then multiply by the inside derivative : . The power rule does not apply here, because the variable is in the exponent.
For : the outside derivative is , giving ; the inside derivative is . So
More than two layers
Some functions have three layers, such as . Peel them from the outside in, multiplying one derivative for each layer: the cube, then the sine, then .
Worked example 3. Differentiate .
Layer 1, the cube: . Layer 2, the sine: . Layer 3, the inside : .
So
The chain rule from a table
The exam often gives values of , and their derivatives in a table instead of formulas. The rule is the same, but you must read each value at the right input. Suppose , and . For :
The outside derivative is read at the inside value , not at . Write the middle step, , every time; it keeps you from grabbing by mistake.
The slips that cost points
| Slip | Wrong | Right |
|---|---|---|
| Dropping the inside derivative | ||
| Changing the inside function | ||
| Power rule on | ||
| Wrong input in a table |
A quick check catches most of them: count the layers, and make sure your answer has one factor for each.