The Chain Rule

AP Calculus AB · Unit 3 — Differentiation: Composite, Implicit, and Inverse Functions

Outer times inner

$$\frac{d}{dx}f\big(g(x)\big)=f'\big(g(x)\big)\cdot g'(x)$$

In Leibniz notation, with $u=g(x)$: $\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx}$.

The reliable procedure: name the inner function, differentiate the outer function leaving the inner one untouched, then multiply by the derivative of the inner one. When functions are nested three deep, apply it repeatedly from the outside in.

Two patterns worth memorising because they appear constantly:

$$\frac{d}{dx}e^{g(x)}=e^{g(x)}g'(x),\qquad \frac{d}{dx}\ln\big(g(x)\big)=\frac{g'(x)}{g(x)}$$
x g u = g(x) f f(g(x)) derivative = (rate of the outer stage at u) × (rate of the inner stage at x) f′(g(x)) · g′(x)
Why it is multiplication. Picture two stages: $x$ passes through $g$ to give $u$, then $u$ passes through $f$ to give the result. If the inner stage runs $g'(x)$ times as fast and the outer stage amplifies by a further factor of $f'(u)$, then the overall rate is the product of the two factors — not the sum. This is also why forgetting to multiply by $g'(x)$ ruins the whole problem rather than being slightly off.

Worked example: three nested layers

Find $\dfrac{dy}{dx}$ for $y=\sin^3\left(4x^2+1\right)$.

Solution

Three layers: the outermost is the cube, the middle is $\sin$, the innermost is $4x^2+1$.

$$\frac{dy}{dx}=3\sin^2\left(4x^2+1\right)\cdot\cos\left(4x^2+1\right)\cdot 8x$$

Simplified: $24x\sin^2\left(4x^2+1\right)\cos\left(4x^2+1\right)$.

Missing any one of the three factors is wrong. A check: count the number of “layers” in the original expression; the answer must have exactly that many factors.

Common mistake

$\frac{d}{dx}\sin(2x)=2\cos(2x)$, not $\cos(2x)$. And $\frac{d}{dx}\ln(5x)=\frac{5}{5x}=\frac1x$ — exactly equal to $\frac{d}{dx}\ln x$, a result that looks strange but is correct, because $\ln(5x)=\ln 5+\ln x$ differs only by a constant.

Key takeaway

Count the layers, one factor per layer. Forgetting the innermost factor is the error that loses the most marks in the whole course.

← Tangent Lines and Linear Approximation · All AP Calculus AB lessons · Practice AP Calculus AB questions (free, instant scoring) · Implicit Differentiation →