Chain rule derivative: never get lost
$(f \circ g)' = f'(g) \times g'$. The mnemonic: « differentiate outside, keep inside, multiply by the derivative of inside ».
The formula
If , then:
In English: derivative of the outer function evaluated at the inner function, times the derivative of the inner.
The mnemonic that always works
When you see , switch to « onion » mode: two layers to peel.
Differentiate the outer, keep the inner, multiply by the derivative of the inner.
A step-by-step example
Differentiate .
Chain rule, step by step
Étape 1 / ?
Step 1 — Identify the layers
Outer: raise to power 5. Inner: 3x + 2.
So f(y) = y⁵ and g(x) = 3x + 2.
Step 2 — Differentiate outer, keep inner
f’(y) = 5y⁴, so f’(g(x)) = 5·(3x + 2)⁴.
We don’t touch the inner, keep it as is.
Step 3 — Multiply by the inner’s derivative
g’(x) = 3.
So: u’(x) = 5·(3x + 2)⁴ · 3 = 15·(3x + 2)⁴.
Three quick examples
(outer: sin. Inner: 2x, derivative = 2.)
(outer: exp. Inner: x², derivative = 2x.)
(outer: sqrt. Inner: x² + 1, derivative = 2x.)
The classic mistake
Forgetting to multiply by the inner’s derivative. is wrong — missing the factor 2.
Quick test: if the inner isn’t just , you need the factor.
What is the derivative of f(x) = (x² + 1)³?
Derivative of f(x) = cos(3x + 1)?
