The Chain Rule is arguably the most important differentiation rule in calculus. It tells you how to differentiate composite functions — functions inside other functions. Without the Chain Rule, you'd be stuck with functions like $\sin(3x)$, $(x^2+1)^{10}$, or $\ln(2x)$.

🎯 In this section you will learn

📌 The Chain Rule

If $y = f(u)$ and $u = g(x)$, then:

$$ \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} $$ $$ \frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x) $$
💡 Memory Trick
"Derivative of the outside, times derivative of the inside."
"Outside stays the same (with inside plugged in), then multiply by derivative of inside."

🔍 Identifying Inner and Outer Functions

Before using the Chain Rule, you need to identify the inner function (what's inside) and the outer function (what's applied to it).

Composite FunctionInner $g(x)$Outer $f(u)$
$\sin(3x)$$3x$$\sin u$
$(x^2+1)^{10}$$x^2+1$$u^{10}$
$\ln(2x)$$2x$$\ln u$
$e^{\sin x}$$\sin x$$e^u$
$\sqrt{x^2+1}$$x^2+1$$\sqrt{u} = u^{1/2}$
Example 1Chain Rule with Power

Find $\frac{d}{dx}(3x+1)^5$.

Identify inner and outer
Inner: $g(x)=3x+1$, Outer: $f(u)=u^5$
Derivative of outer
$f'(u)=5u^4$, so $f'(g(x))=5(3x+1)^4$
Derivative of inner
$g'(x)=3$
Multiply
$\frac{d}{dx}(3x+1)^5 = 5(3x+1)^4 \cdot 3 = 15(3x+1)^4$
Example 2Chain Rule with Sine

Find $\frac{d}{dx}\sin(5x)$.

Identify
Inner: $5x$, Outer: $\sin u$
Derivative of outer
$\frac{d}{du}\sin u = \cos u$, so $\cos(5x)$
Derivative of inner
$\frac{d}{dx}(5x) = 5$
Multiply
$\frac{d}{dx}\sin(5x) = \cos(5x) \cdot 5 = 5\cos(5x)$
Example 3Chain Rule with Exponential

Find $\frac{d}{dx}e^{\sin x}$.

Example 4Chain Rule with Logarithm

Find $\frac{d}{dx}\ln(x^2+1)$.

Example 5Chain Rule with Square Root

Find $\frac{d}{dx}\sqrt{4x-3}$.

📌 Multiple Layers (Nested Functions)

Sometimes you have more than two layers — functions inside functions inside functions. Just apply the Chain Rule repeatedly:

$$ \frac{d}{dx}[f(g(h(x)))] = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x) $$
Example 6Chain Rule with Three Layers

Find $\frac{d}{dx}\sin^2(3x)$.

Rewrite
$\sin^2(3x) = [\sin(3x)]^2$
Outer: $u^2$, Middle: $\sin v$, Inner: $3x$
Derivative: $2[\sin(3x)] \cdot \cos(3x) \cdot 3$
Simplify
$\frac{d}{dx}\sin^2(3x) = 6\sin(3x)\cos(3x) = 3\sin(6x)$ (using double-angle)
⚠️ Common Mistakes
🔍 Key Takeaways
← Back to Module Page