The chain rule is the single most-used tool in differentiation, and also the single biggest source of mistakes. Once you internalise the "outer-then-inner" pattern, you can differentiate almost any composite function in three lines. This guide shows you the pattern, walks through seven escalating examples, and lists the four mistakes worth memorising in advance.
What the chain rule says
If and are differentiable, the derivative of the composition is
In words: differentiate the outer function evaluated at the inner, then multiply by the derivative of the inner. The "outer" and "inner" labels are non-negotiable — confusing them flips the answer.
A useful mnemonic: the chain rule is "the outer derivative times the inner derivative", never plus, never just one.
Worked examples (easy → hard)
Example 1:
- Outer: , inner: .
- , .
- Result: .
Example 2:
- Outer: , inner: .
- , .
- Result: .
Example 3:
- Outer: , inner: .
- , .
- Result: .
Example 4:
- Outer: , inner: .
- , .
- Result: .
Example 5:
- Rewrite as .
- Outer: , inner: .
- Outer derivative: . Inner: .
- Result: .
Example 6: Nested chain —
Three layers — apply chain rule twice.
- Outermost: , inner .
- (chain rule on ).
- Result: .
Example 7: Chain + product rule together —
- Use the product rule first: .
- , . , by chain rule .
- Result: .
The four mistakes worth memorising
- Forgetting the inner derivative. Writing is the single most common chain-rule error. The factor of is mandatory.
- Differentiating the inner before substituting. is not . The outer derivative is evaluated at the inner expression, not at the inner derivative.
- Mistaking nested function for product. is a composition, not a product. Use the chain rule, not the product rule.
- Bracketing trig powers wrong. — outer is , inner is . Easily confused with where outer is and inner is .
When you're stuck: the substitution trick
Set , find and , multiply. Even when the function looks intimidating, this rote substitution always works.
Try it yourself
Paste any composite function into our free Derivative Calculator and watch each chain-rule application happen step-by-step. Pair it with our chain rule cheat sheet section for quick reference during homework.
For deeper related material:
- Limit Calculator — limits feed into the chain rule's foundation
- Integral Calculator — substitution is the chain rule run backwards
- Worked example: derivative of sin(2x)
- Worked example: derivative of e^(2x)