Most functions in practice are built in layers: $\sin(3x)$, $(x^2 + 1)^{10}$, $\sqrt{1 + x^4}$. You know Composition of Functions and the derivatives of the outer pieces, from Derivatives of Trig Functions and the power rule. The chain rule tells how the layers' rates combine: they multiply.
Key idea
Picture three linked gears. If gear $u$ turns 3 times for every turn of gear $x$, and gear $y$ turns 2 times for every turn of gear $u$, then $y$ turns $2 \times 3 = 6$ times for every turn of $x$. Rates of change behave the same way: a change in $x$ is stretched by $g'(x)$ on its way to $u$, then stretched again by $f'(u)$ on its way to $y$.
Why it works
Worked example: A power of a polynomial
- Inside $u = 3x^2 + 1$, outside $u^5$.
- Outer derivative: $5u^4 = 5(3x^2 + 1)^4$, with the inside left alone.
- Inner derivative: $6x$.
- Multiply: $5(3x^2 + 1)^4 \cdot 6x$.
Answer: $30x(3x^2 + 1)^4$
Worked example: Trig with an inside
- $\sin(4x)$: outer $\cos(4x)$, inner rate $4$, so the derivative is $4\cos(4x)$.
- $\sqrt{x^2 + 9} = (x^2 + 9)^{1/2}$: outer $\frac{1}{2}(x^2 + 9)^{-1/2}$, inner rate $2x$.
- Multiply: $\frac{2x}{2\sqrt{x^2 + 9}} = \frac{x}{\sqrt{x^2 + 9}}$.
Answer: $4\cos(4x)$ and $\frac{x}{\sqrt{x^2 + 9}}$
Worked example: From a table
- $h'(1) = f'\big(g(1)\big)\cdot g'(1) = f'(3)\cdot 2$.
- $= (-4)(2) = -8$. The outer rate is read at the inside value $g(1) = 3$, not at 1.
Answer: $-8$
Common mistake