IB Maths AA HL Topic 5 — Calculus Paper 1 & 2 ~7 min read

Chain Rule

The chain rule differentiates a “function of a function” — anything where x doesn’t appear alone, like sin(x² + 1), ecos x, or (3x − 7)⁵. The recipe: differentiate the outer function, leaving the inner alone, then multiply by the derivative of the inner. Once you’ve drilled it, you’ll do it in one line without the “let u = …” substitution.

📘 What you need to know

The rule and how to spot it

Chain rule (formula booklet) dydx  =  dydu  ×  dudx
Function notation if y = g(f(x))  then  y′ = g′(f(x)) · f′(x)
Spotting test: does x appear alone, or is it inside something? sin(3x²) — the x is wrapped in 3x², which is inside sin → composite → chain rule. (2x + 5)⁴ — the x is wrapped in 2x + 5, which is inside ()⁴ → composite → chain rule.

Standard chain-rule patterns

Memorise these five — they cover the vast majority of HL exam questions. The pattern is always the same: standard derivative of the outer × derivative of the inner.

Function yDerivative 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))

🧭 Recipe — apply the chain rule

  1. Identify outer and inner: outer is the “wrapper” (sin, e, ln, ()n); inner is the expression in x.
  2. Differentiate the outer first, leaving the inner unchanged.
  3. Multiply by f′(x) — the derivative of the inner.
  4. Simplify if straightforward — factor common terms when factoring is asked or natural.
  5. If nested (chain inside chain), apply the rule again to the inner derivative.

Worked examples

WE 1

Power chain rule — bracket to a power

Find the derivative of y = (3x² + 2x − 5)⁴.

Identify outer and inner outer: u⁴ inner: u = 3x² + 2x − 5 f′(x) = 6x + 2 Apply pattern: n · f′(x) · (f(x))^(n−1) dy/dx = 4 · (6x + 2) · (3x² + 2x − 5)³ Factor 2 from (6x + 2) for tidiness = 8(3x + 1)(3x² + 2x − 5)³ dy/dx = 8(3x + 1)(3x² + 2x − 5)³ power drops by 1 (4 → 3); 4 multiplies in; f′(x) multiplies in. Pattern: n · f′ · (f)^(n−1)
WE 2

Trig with polynomial inside

Find the derivative of y = sin(4x³ − x).

Identify outer and inner outer: sin(u) inner: u = 4x³ − x f′(x) = 12x² − 1 Apply pattern: f′(x) cos(f(x)) dy/dx = (12x² − 1) · cos(4x³ − x) dy/dx = (12x² − 1) cos(4x³ − x) “differentiate sin, ignore inside” → cos(4x³ − x), then “× derivative of inside” → ×(12x² − 1)
WE 3

Exponential with polynomial inside — tangent at a point

A curve has equation y = ex² − 3x. Find the equation of the tangent at the point where x = 2.

Find y at x = 2 y = e^(4 − 6) = e⁻² point: (2, e⁻²) Differentiate using chain rule outer: e^u inner: u = x² − 3x f′(x) = 2x − 3 dy/dx = (2x − 3) e^(x² − 3x) Gradient at x = 2 m = (4 − 3) e⁻² = e⁻² Apply point-slope form y − e⁻² = e⁻²(x − 2) y = e⁻² · x − 2 e⁻² + e⁻² = e⁻²(x − 1) Tangent: y = e⁻²(x − 1) also written as y = (x − 1)/e². Verify: at x = 2, y = 1·e⁻² = e⁻² ✓
WE 4

Logarithm with polynomial inside

Find the derivative of y = ln(5x³ + 2x + 1).

Identify outer and inner outer: ln(u) inner: u = 5x³ + 2x + 1 f′(x) = 15x² + 2 Apply pattern: f′(x) / f(x) dy/dx = (15x² + 2) / (5x³ + 2x + 1) dy/dx = (15x² + 2)/(5x³ + 2x + 1) ln(stuff) → derivative of stuff over stuff. Numerator = derivative of inside; denominator = inside itself
WE 5

Nested — chain rule applied twice

Find the derivative of y = esin(2x).

Outer is e^u where u = sin(2x). Apply chain rule (1st time) dy/dx = e^(sin 2x) · d/dx [sin(2x)] Differentiate sin(2x) — chain rule again (2nd time) d/dx [sin(2x)] = 2 cos(2x) Combine dy/dx = e^(sin 2x) · 2 cos(2x) dy/dx = 2 cos(2x) · e^(sin 2x) work outside-in: peel off e^□ first, then handle sin(2x). Each layer adds a multiplication
WE 6

Multi-part: derivative, stationary points, value at x = 1

The curve y = (3x² − 5)⁴.

(a) Find dy/dx in factored form. (b) Hence find the x-coordinates of all stationary points. (c) Find the gradient at x = 1.

(a) Apply chain rule: outer = u⁴, inner = 3x² − 5, f′ = 6x dy/dx = 4 · (6x) · (3x² − 5)³ = 24x(3x² − 5)³ (b) Stationary points: dy/dx = 0 24x(3x² − 5)³ = 0 → x = 0 OR 3x² − 5 = 0 → x² = 5/3 → x = ±√(5/3) = ±√15/3 (c) Substitute x = 1 into dy/dx dy/dx = 24(1)(3 − 5)³ = 24(−8) = −192 (a) 24x(3x² − 5)³; (b) x = 0, ±√15/3; (c) gradient = −192 factored form makes (b) trivial — never expand a chain-rule answer if the question doesn’t ask

💡 Top tips

⚠ Common mistakes

Up next: Product Rule. When two functions are multiplied — like x² sin x or ex ln x — chain rule alone won’t work. The product rule says (uv)′ = u′v + uv′. Combined with chain rule, you’ll be able to differentiate almost any algebraic combination of the standard functions.

Need help with Calculus?

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

Book Free Session →