The Chain Rule Explained (With 6 Worked Examples)
How to spot a composite function, the outside-inside method, and the chain rule combined with the product and quotient rules.
By Jasmine Devis · · 7 min read
The chain rule is how you differentiate a function inside another function — a composite function like or .
The rule
In words: differentiate the outside, keep the inside the same, then multiply by the derivative of the inside.
How to spot it
Ask: "If I plugged in a number, what would I calculate last?" That is the outside function. For you would square first and take the sine last, so sine is the outside.
Worked examples
1.
2.
3.
4.
5.
6. Three layers.
Each layer adds one more factor.
With the product rule
Use the product rule for the multiplication and the chain rule inside .
Common mistakes
- Forgetting the inside derivative: , not .
- Changing the inside: the derivative of keeps , not .
- Stopping after one layer when there are two or three.
Leibniz form
If and , then . The 's "cancel", which is an easy way to remember it.
Check your derivatives step by step with the Derivative Calculator, and see the chain rule formula page.
Practice problems
Try each one first, then open the answer to check your work.
1.Differentiate .
Show answer
.
2.Differentiate .
Show answer
.
3.Differentiate .
Show answer
.
4.Differentiate .
Show answer
.
5.Differentiate .
Show answer
.
Key terms
- Composite function
- A function of a function.
- Inner function
- The part applied first.
- Outer function
- The part applied last.
- Leibniz notation
- Writing derivatives as .
- Related rates
- Rates linked through the chain rule.