Lesson 3 of 3 · 15 min
The chain rule: derivatives of composite functions
How to differentiate a function inside a function - and how not to lose the derivative of the inner function along the way.
The chain rule
A composite function is a function inside a function, for example : on the outside there’s a power, on the inside there’s . You differentiate it like this:
In words: the derivative of the outer function (with the inside left untouched) times the derivative of the inner function.
Example 1: a power
For , the outer function is and the inner function is :
Example 2: sine
Example 3: a square root
A common mistake
Forgetting the inner derivative. If you skipped multiplying by in Example 1, you’d get - a result three times too small. A good habit: once you’ve differentiated the outer function, always ask yourself what’s inside.
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- Active Calculus (Boelkins) - 2.5 The chain rule (inner and outer functions, C'(x) = f'(g(x)) g'(x), the example sin(x²)) · CC BY-SA 4.0
- Dale Hoffman - Contemporary Calculus, 2.4 The Chain Rule (derivative of the outside function times the derivative of the inside function) (PDF) · CC BY 3.0 US
- Calaway, Hoffman and Lippman - Applied Calculus, 2.5 Chain Rule (the rule in words, the most common place for mistakes) (PDF) · CC BY 3.0 US
- Jameson, Machaba and Fasinu - Misconceptions and Errors Among Grade 12 Students When Learning Differentiation Rules, Mathematics Education Journal 8(2), 2024 (overlooking the chain rule, treating the inner function as a constant) · CC BY-SA 4.0
- Wikibooks - Calculus/Chain Rule (the rule and the exercise with the square root of 1 + x²) · CC BY-SA 4.0