The Chain Rule
Introduced
7:57
The Chain Rule
Think of two gears joined together. Turn the first one, and it drives the second. If the second turns three times as fast as the first, and the first turns…
English narration · English and 中文 subtitles you can switch
In this lesson
| English | Meaning |
|---|---|
| composite function/ˈkɒmpəzɪt ˈfʌŋkʃn/ | A function formed by applying one function to the output of another. |
| Chain Rule/tʃeɪn ruːl/ | The rule for differentiating a composite function by multiplying the appropriate derivatives. |
| outer/ˈaʊtə/ | In a composition f(g(x)), the function f applied to the output of g. |
| inner/ˈɪnə/ | In a composition f(g(x)), the function g evaluated first before its output is passed to f. |
Functions inside functions
- What is the derivative of $(3x+1)^{5}$? It's a power of a function — a composite function 复合函数.
- Expanding it would be brutal. There's a rule built exactly for this: the Chain Rule 链式法则.
- A composite is "an outer function wrapped around an inner one," like $f(g(x))$.
- The Chain Rule differentiates the layers one at a time and multiplies.

The rule
- For $y=f(g(x))$:
-
$$\frac{d}{dx}\big[f(g(x))\big]=f'(g(x))\cdot g'(x)$$
- In words: derivative of the outer (leaving the inner alone) times the derivative of the inner.
- The little "$\cdot\, g'(x)$" is the piece people forget — it's the whole point.
The chain rule: the rates of the outer and inner functions multiply
A composite curve
y = ax² + bx + c
A composite like $(3x+1)^2$ is steeper than its inner line alone — the chain rule multiplies the inner rate in.
The Chain Rule gives $\dfrac{d}{dx}[f(g(x))]=$
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Outer derivative at the inner, times the inner derivative.
Spot the outer and inner
- Before differentiating, name the outer 外层 and inner 内层 functions.
- In $(3x+1)^5$: outer is "(something)$^5$", inner is $3x+1$.
- Outer derivative: $5(3x+1)^4$. Inner derivative: $3$.
- Multiply: $\dfrac{d}{dx}[(3x+1)^5]=5(3x+1)^4\cdot 3=15(3x+1)^4$.
For $y=(2x+1)^3$, find $y'$ at $x=0$. (Chain rule: $3(2x+1)^2\cdot2$.)
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$y'=6(2x+1)^2$; at $0$: $6(1)=6$.
For $\sqrt{x^2+1}=(x^2+1)^{1/2}$, select all correct identifications.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
The square root is the outer; $x^2+1$ is the inner with derivative $2x$.
Chaining with the other rules
- The Chain Rule stacks with everything: power, product, quotient, and elementary derivatives.
- $\dfrac{d}{dx}[\sin(x^2)]=\cos(x^2)\cdot 2x$ — outer $\sin$, inner $x^2$.
- $\dfrac{d}{dx}[e^{3x}]=e^{3x}\cdot 3=3e^{3x}$.
- For deeply nested functions, peel one layer at a time, multiplying each inner derivative as you go.
What is $\dfrac{d}{dx}[\sin(x^2)]$?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Outer $\cos(x^2)$ times inner derivative $2x$.
The factor most often forgotten in the chain rule is the ____ derivative $g'(x)$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
You must multiply by $g'(x)$ after differentiating the outer.
What is $\dfrac{d}{dx}[e^{3x}]$?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Outer $e^{3x}$ times inner derivative $3$.
Never forget to multiply by the inner derivative $g'(x)$. $\frac{d}{dx}[\sin(x^2)]$ is $\cos(x^2)\cdot 2x$, not just $\cos(x^2)$. Leaving off the "$\cdot\,g'(x)$" is the single most common calculus error — the outer derivative alone is only half the answer.
Differentiate $y=\sqrt{x^2+1}$.
- Rewrite: $y=(x^2+1)^{1/2}$. Outer: $(\ )^{1/2}$; inner: $x^2+1$.
- Outer derivative: $\tfrac12(x^2+1)^{-1/2}$. Inner derivative: $2x$.
- $y'=\tfrac12(x^2+1)^{-1/2}\cdot 2x=\dfrac{x}{\sqrt{x^2+1}}$.
Three layers. Differentiate $y=\sin^3(2x)=\big(\sin(2x)\big)^3$.
- Peel from the outside: $(\ )^3$, then $\sin(\ )$, then $2x$.
- $y'=3\sin^2(2x)\cdot\cos(2x)\cdot2=6\sin^2(2x)\cos(2x)$.
What is the derivative of cos²(5x)?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
2cos(5x) · (−sin(5x)) · 5 = −10 cos(5x) sin(5x).
Chain inside a product. Differentiate $y=x^2e^{-3x}$.
- Product rule: $y'=2x\cdot e^{-3x}+x^2\cdot\dfrac{d}{dx}\big[e^{-3x}\big]$, and the chain rule gives $\dfrac{d}{dx}\big[e^{-3x}\big]=-3e^{-3x}$.
- $y'=2xe^{-3x}-3x^2e^{-3x}=xe^{-3x}(2-3x)$.
y = x · e^(2x). Find dy/dx at x = 0.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
y′ = e^(2x) + 2x e^(2x); at x = 0, y′ = 1.
The chain rule from a table
- AP often gives values of $f$, $g$, $f'$ and $g'$ in a table and asks for $h'(a)$ where $h(x)=f(g(x))$.
- Use $h'(a)=f'\big(g(a)\big)\cdot g'(a)$: first find $g(a)$, then look up $f'$ at that value, not at $a$.
Reading the table.
| $x$ | $f(x)$ | $f'(x)$ | $g(x)$ | $g'(x)$ |
|---|---|---|---|---|
| 1 | 4 | 2 | 4 | 5 |
| 4 | 7 | 6 | 1 | −3 |
- $h(x)=f(g(x))$: $h'(1)=f'\big(g(1)\big)\cdot g'(1)=f'(4)\cdot5=6\cdot5=30$.
- Using $f'(1)=2$ here is the classic mistake: the outer derivative is taken at $g(1)=4$, not at 1.
Using the table in the example, let k(x) = g(f(x)). Find k′(1).
Difficulty 2/5 · 140 coins + a small bonus on first completion today
k′(1) = g′(f(1)) · f′(1) = g′(4) · 2 = (−3)(2) = −6.
The Chain Rule differentiates a composite function: $\frac{d}{dx}[f(g(x))]=f'(g(x))\cdot g'(x)$ — derivative of the outer (inner untouched) times the derivative of the inner. Identify the layers first, and never drop the $\cdot\,g'(x)$ factor. It combines with every other rule for nested expressions.