What's the derivative of $\sin(\cos(\tan x))$? This function has three layers:
The basic chain rule handles two functions composed together. For three or more, we extend the idea: peel away one layer at a time, multiplying the derivatives as we go.
The name "chain rule" really makes sense here—we're building a chain of derivatives, linking outer to middle to inner.
| Property | Value |
|---|---|
| Concept | Differentiation Rules |
| Chapter | Ch 3, §4 |
| Difficulty | Advanced |
| Time | ~15 minutes |
For a composition of three functions $y = f(g(h(x)))$:
$$\boxed{\frac{dy}{dx} = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)}$$
In Leibniz notation with $y = f(u)$, $u = g(v)$, $v = h(x)$:
$$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dv} \cdot \frac{dv}{dx}$$
Work from the outermost function inward:
y = sin(cos(tan x))
├── outer: sin(□)
│ └── middle: cos(□)
│ └── inner: tan x
Step 1: cos(cos(tan x)) [derivative of outer at inner]
Step 2: × (-sin(tan x)) [derivative of middle at its inner]
Step 3: × sec²x [derivative of innermost]
┌─────────────────────────────────┐
│ Outer: f │ ← Differentiate first
│ ┌───────────────────────────┐ │
│ │ Middle: g │ │ ← Differentiate second
│ │ ┌─────────────────────┐ │ │
│ │ │ Inner: h(x) │ │ │ ← Differentiate third
│ │ └─────────────────────┘ │ │
│ └───────────────────────────┘ │
└─────────────────────────────────┘
Result: f'(g(h(x))) · g'(h(x)) · h'(x)
Ask yourself: "In what order would I compute this for a specific $x$?"
Example: $\sqrt{\sec(x^3)}$
To compute at $x = 2$:
So the layers are: $\sqrt{\square}$, then $\sec(\square)$, then $x^3$.
| Function | Outer | Middle | Inner | Derivative |
|---|---|---|---|---|
| $\sin^2(3x)$ | $(\square)^2$ | $\sin(\square)$ | $3x$ | $2\sin(3x)\cos(3x) \cdot 3 = 6\sin(3x)\cos(3x)$ |
| $\cos(\tan(x^2))$ | $\cos(\square)$ | $\tan(\square)$ | $x^2$ | $-\sin(\tan(x^2)) \cdot \sec^2(x^2) \cdot 2x$ |
| $\sqrt{1 + \sin x}$ | $\sqrt{\square}$ | none | $1 + \sin x$ | $\frac{1}{2\sqrt{1+\sin x}} \cdot \cos x$ |
For the function $f(x) = \cos^3(2x)$, identify the outer, middle, and inner functions.
Find the derivative of $y = \sin^2(4x)$.
Differentiate $f(x) = \sqrt{\tan(x^2 + 1)}$.
Find $\frac{dy}{dx}$ for $y = \sin(\cos(\tan(\sec x)))$.
Let $F(x) = f(g(h(x)))$ where $f$, $g$, and $h$ are differentiable functions. Given the following values:
| Value at relevant point | |
|---|---|
| $h(1)$ | $2$ |
| $g(2)$ | $3$ |
| $h'(1)$ | $4$ |
| $g'(2)$ | $5$ |
| $f'(3)$ | $6$ |
Find $F'(1)$.
When differentiating $\sin^2(\ln x)$, which function should you differentiate first?
The Assembly Line:
Picture a factory assembly line with three machines in sequence. Raw material ($x$) goes in one end:
If you want to know how a small change in raw material affects the final product, you multiply the "sensitivity" of each machine:
$$\text{Total effect} = \text{Machine 3 sensitivity} \times \text{Machine 2 sensitivity} \times \text{Machine 1 sensitivity}$$
Each machine's sensitivity is its derivative, evaluated at whatever input it actually receives.
Looking back:
Looking ahead:
| Previous | Up | Next |
|---|---|---|
| Generalized Power Rule | Skills Index | Implicit Differentiation |
Last updated: 2026-01-22