Chain Rule: Differentiating Composite Functions
Build a clear mental model of the chain rule so composite derivatives feel predictable. Learn to spot the inner and outer functions, translate between notations, and sanity check results with quick slope estimates.
A lot of derivative mistakes come from treating a complicated expression like one blob. The chain rule fixes that by forcing you to respect how changes flow through layers. The surprising part is that the final slope is not added or averaged. It is multiplied. Once you see why multiplying makes sense, the rule stops feeling like a memorized formula and starts feeling like a shortcut you can trust.
Chain rule as change through layers
Think of a composite function as two steps in a row. First gets turned into . Then that output gets turned into . If nudges a little, nudges some amount, and then reacts to that nudge.
The chain rule says the overall sensitivity is the product of the sensitivities at each step.
The multiplication is the whole point. If the inner step doubles tiny changes, and the outer step triples tiny changes, the combined machine makes changes about six times bigger. If either step flattens changes toward zero, the whole composite flattens too.
Multiply sensitivities
The slope of a composite is outside sensitivity evaluated at the inside output, times inside sensitivity.
Composite functions and the idea of sensitivity
A composite function is a function plugged into another function, like . The part that happens last is the outer function . The part that happens first is the inner function .
Instead of thinking outer and inner as labels, think cause and effect.
- turns a change in into a change in the intermediate value .
- turns a change in into a change in the final output .
Sensitivity is just slope in disguise. When you compute , you are asking how sensitive is to . When you compute , you are asking how sensitive is to . For the composite, you want sensitivity of to , and it has to pass through the middle step.
The chain rule statement and notation
Chain rule (single layer). If and both derivatives exist, then
Read it as evaluate the slope of the outside function at the inside output, then multiply by the slope of the inside.
The different notations all point at the same idea.
- reminds you there is a single final slope you want.
- emphasizes you are differentiating a composed function.
- makes the multiplication feel natural because is the intermediate variable.
Leibniz lens
behaves like a ratio of tiny changes, so chaining and matches how changes pass through .
A reliable method that rarely fails
When you are new to the chain rule, the hardest part is seeing the layers. A dependable trick is to name the inner expression.
The u-substitution style workflow
- Choose as the inner function.
- Rewrite the original function in terms of , so it becomes .
- Differentiate using ordinary rules in .
- Multiply by and substitute back .
A quick example shows the structure. For , let . Then , so . Also . Multiply and substitute back.
Notice you never differentiated the inside first or the outside first. You differentiated each with respect to its own input, then multiplied.
Common patterns that are really chain rule
Many derivative rules you memorize in practice are chain rule plus a basic derivative. The inside is often a line like , but it can be any .
The habit to build is to look for an expression that is acting like a single chunk being fed into a familiar outer shape.
- Power outer. Anything like .
- Root outer. Anything like or .
- Trig outer. Anything like , , .
- Exponential outer. Anything like or .
- Log outer. Anything like .
One warning that saves time. If the derivative you got looks exactly like the original function with a small tweak but you never multiplied by , you probably did not finish the chain rule.
Always pay the inside
When you differentiate the outer form, immediately ask what is and multiply it in before moving on.
Multiple layers and mixed rules
Real problems often have more than one layer, or they mix composition with multiplication or division. The key is to treat rules like building blocks, not rivals. You can stack them.
More than one layer
If , you apply the chain rule repeatedly. Each layer contributes its own derivative factor, and they multiply.
Chain rule with product or quotient
For something like , there is a product, so the product rule is the outer structure. Inside the product rule, you still differentiate using the chain rule.
A good mental move is to decide the top-level operation first.
- Are you multiplying two big chunks? Use product rule, then chain rule inside a chunk if needed.
- Are you dividing? Use quotient rule, then chain rule inside numerator or denominator if needed.
- Is it one big outer shape around everything? Pure chain rule, possibly repeated.
Sanity-checking your derivative
A derivative is a slope. If your result does not behave like a slope, something went wrong. You can catch many errors without redoing the whole problem.
- Sign check. If the function is increasing at a point, your derivative should be positive there.
- Scale check. If the inside grows fast, the derivative usually gets bigger in magnitude.
- Plug-in check. Pick an , estimate the slope from a small , compare to your derivative value.
Even a rough numeric slope is useful. If your symbolic derivative predicts a slope of but the function barely changes when you nudge , you likely missed a factor like or made a constant mistake.
One-point reality check
Testing at a single value often finds the exact spot you dropped a minus sign or forgot an inner derivative.
Next steps for practice and mistake-proofing
Practice is less about doing dozens of random problems and more about training your eyes to see inner functions quickly.
Start every problem by circling the outermost shape. Is it a power, a trig function, a log, an exponential. Then put parentheses around what is being fed into it. That is your first inner candidate. If there are more layers, repeat.
The most common mistakes to watch for are predictable.
- Differentiating the outer correctly but forgetting to multiply by
- Treating as and only multiplying by after the fact, which usually leads to missing a power of in harder problems
- Confusing with , which is a product you do not actually have
- Dropping parentheses when you substitute back, especially with negatives
A good self-check habit is to rewrite your final derivative in a factored form that shows the chain rule pieces. You should be able to point to the outer derivative part and the inner derivative factor immediately.
Generate a follow-up sub-lesson on any aspect of this topic