The Chain Rule, but Actually Intuitive

Why 'differentiate the outside, multiply by the inside's derivative' actually works.

Sat May 02

The rule (and why it looks confusing)

Most textbooks state the chain rule like this:

dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}

That notation is elegant once you understand it, but completely opaque when you first see it. Let's build the intuition first.


Intuition: peeling an onion

Think of a composite function as an onion. For example:

y=(3x2+1)5y = (3x^2 + 1)^5

The outer layer is ()5(\ldots)^5 — the "raise to the power of 5" operation.
The inner layer is 3x2+13x^2 + 1 — what's actually inside.

The chain rule says:

Differentiate the outside (leaving the inside untouched),
then multiply by the derivative of the inside.

dydx=5(3x2+1)46x=30x(3x2+1)4\frac{dy}{dx} = 5(3x^2 + 1)^4 \cdot 6x = 30x(3x^2 + 1)^4


Worked examples

Example 1 — Power of a function

Differentiate y=(2x34)7y = (2x^3 - 4)^7.

Let u=2x34u = 2x^3 - 4, so y=u7y = u^7.

dydu=7u6,dudx=6x2\frac{dy}{du} = 7u^6, \qquad \frac{du}{dx} = 6x^2

dydx=7(2x34)66x2=42x2(2x34)6\therefore \quad \frac{dy}{dx} = 7(2x^3-4)^6 \cdot 6x^2 = 42x^2(2x^3-4)^6

Example 2 — Trig

Differentiate y=sin(x2+1)y = \sin(x^2 + 1).

Outer: sin()\sin(\ldots) → derivative cos()\cos(\ldots)
Inner: x2+1x^2 + 1 → derivative 2x2x

dydx=cos(x2+1)2x=2xcos(x2+1)\frac{dy}{dx} = \cos(x^2 + 1) \cdot 2x = 2x\cos(x^2 + 1)

Example 3 — Exponential

Differentiate y=e3xy = e^{3x}.

Outer: e()e^{(\ldots)} → derivative e()e^{(\ldots)}
Inner: 3x3x → derivative 33

dydx=e3x3=3e3x\frac{dy}{dx} = e^{3x} \cdot 3 = 3e^{3x}


A note on the Leibniz notation

The fraction-like notation dydududx\frac{dy}{du} \cdot \frac{du}{dx} is helpful because it looks like the dudu's cancel:

dydududx=dydx\frac{dy}{\cancel{du}} \cdot \frac{\cancel{du}}{dx} = \frac{dy}{dx}

This isn't literally true (derivatives are limits, not fractions), but as a memory device it's almost impossible to forget.


Common mistakes

MistakeCorrect
ddx[sin(x2)]=cos(x2)\frac{d}{dx}[\sin(x^2)] = \cos(x^2)=2xcos(x2)= 2x\cos(x^2)
ddx[ex2]=ex2\frac{d}{dx}[e^{x^2}] = e^{x^2}=2xex2= 2xe^{x^2}
ddx[(5x+3)4]=4(5x+3)3\frac{d}{dx}[(5x+3)^4] = 4(5x+3)^3=20(5x+3)3= 20(5x+3)^3

The mistake in every case: forgetting to multiply by the inner derivative.


Practice

  1. Differentiate y=(x23x)4y = (x^2 - 3x)^4
  2. Differentiate y=cos(5x2)y = \cos(5x^2)
  3. Differentiate y=ex32y = e^{x^3 - 2}
  4. Differentiate y=ln(4x2+1)y = \ln(4x^2 + 1) (recall: ddx[lnu]=1ududx\frac{d}{dx}[\ln u] = \frac{1}{u}\cdot\frac{du}{dx})

Comments

Powered by giscus — uses GitHub Discussions, so you'll need a GitHub account to comment.

⚙️ Comments not configured yet. Visit giscus.app to get your repo/category IDs, then update lib/config.ts.