IB Maths AA SL Topic 5 — Calculus Paper 1 & 2 ~8 min read

Chain Rule

Use the chain rule whenever you have a “function inside a function” — like (3x + 1)⁵ or sin(x²) or ecosx. The trick: differentiate the outside, then multiply by the derivative of the inside. That’s it.

📘 What you need to know

When to use it

Composite functions need the chain rule. The variable x is “wrapped inside” something else.

⚠ Not composite
sin x
x appears alone — just use the standard rule
✓ Composite — use chain rule
sin(3x + 2)
x is wrapped inside (3x + 2) first

The formula

Chain rule
If   y = g(u)   and   u = f(x)   then   dydx = dydu × dudx
✓ in formula booklet

The 3-step method

How to apply the chain rule

  1. Set u = inside function, so y = outside function of u.
  2. Differentiate both: find dy/du and du/dx.
  3. Multiply: dy/dx = dy/du × du/dx, then sub u back in.

The 5 standard results (chain rule in action)

These are what the chain rule gives for the most common composite functions. Memorise the patterns — you’ll skip the u-substitution most of the time.

If y =Then dy/dx =
(f(x))nn · f′(x) · (f(x))n−1
ef(x)f′(x) · ef(x)
ln(f(x))f′(x) / f(x)
sin(f(x))f′(x) · cos(f(x))
cos(f(x))−f′(x) · sin(f(x))

The mental shortcut

What to say in your head

differentiate outside × differentiate inside
“Keep the inside the same, derivative of outside × derivative of inside”
🧠

“Outside × inside”

For sin(x²): outside is sin → cos. Inside is x² → 2x. Answer: cos(x²) × 2x = 2x cos(x²). Done in one line.

📍

Sometimes chain rule applies twice

For sin(e2x): outside is sin → cos. Inside is e2x — but THAT also needs chain rule → 2e2x. Final: 2e2x cos(e2x).

Worked examples

WE 1

Power of a function

Find the derivative of y = (x² − 5x + 7)⁷.

step 1 — set u u = x² − 5x + 7,  y = u⁷step 2 — differentiate both dy/du = 7u⁶,  du/dx = 2x − 5step 3 — multiply & sub back dy/dx = 7u⁶ × (2x − 5) = 7(2x − 5)(x² − 5x + 7)⁶ dy/dx = 7(2x − 5)(x² − 5x + 7)⁶ classic pattern: n · (inside)′ · (inside)n−1
WE 2

Trig with a power inside

Differentiate y = cos(x³).

Outside: cos → −sin Inside: x³ → 3x² Multiply: dy/dx = −sin(x³) × 3x² = −3x² sin(x³) dy/dx = −3x² sin(x³) keep the inside intact (x³) inside the sin — never simplify it!
WE 3

e to a function

Differentiate y = ex² + 1.

Outside: e( ) e( ) (stays the same!) Inside: x² + 1 → 2x Multiply: dy/dx = 2x · ex² + 1 dy/dx = 2x ex² + 1 e(anything) stays as e(anything) — that’s the easy bit!
WE 4

ln of a function

Differentiate y = ln(3x² − 4x).

Outside: ln( ) → 1/( ) Inside: 3x² − 4x → 6x − 4 Pattern: f′(x)/f(x): dy/dx = (6x − 4)/(3x² − 4x) “derivative of inside, over the inside” — that’s the ln pattern!
WE 5

Chain rule applied twice

Find the derivative of y = sin(e2x).

Three layers: sin( e( 2x ) ). Peel from outside in.Outermost: sin → cos Keep the inside e2x intact: cos(e2x) Multiply by derivative of e2x: e2x → 2 e2x (chain rule again!) dy/dx = cos(e2x) × 2 e2x dy/dx = 2 e2x cos(e2x) two applications: once for sin(__), once for e2x.

💡 Top tips

⚠ Common mistakes

Chain rule is for “function of a function”. The next note covers the product rule — for when two functions are multiplied together. Don’t mix them up.

Need help with the Chain Rule?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →