Chain Rule (AA SL)

The chain rule handles composite functions - one function nested inside another, like \((3x^2+1)^4\) or \(\cos(3x^2)\). It's one of the most heavily tested pieces of calculus in the course, because it shows up inside almost every harder differentiation question. This page covers the formula, worked examples, and the mistake that loses the most marks. It's part of the broader Differentiation topic.

16 questions on this sub-topic.

Practise the chain rule → Try exam-style questions

The formula

Covered under IB syllabus reference SL5.6, which lists the chain rule for composite functions alongside the derivatives of \(x^n\), \(\sin x\), \(\cos x\), \(e^x\) and \(\ln x\).

Chain rule

\[\dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}\]

Differentiate the outer function, then multiply by the derivative of the inner function.

✓ In the formula booklet

Power rule (as a reminder)

\[\dfrac{d}{dx}(ax^n) = anx^{n-1}\]

You'll need this for the "outer function" step whenever the composite is a bracket raised to a power, such as \((3x^2+1)^4\).

Not in the formula booklet

Need the full derivative and integral reference table? See Differentiation.

Worked examples

1
Medium
No calc
[3 marks]

Differentiate \(y = (3x^2 + 1)^4\).

Worked solution

The chain rule applies when one function sits inside another. Outer \(u^4\), inner \(u=3x^2+1\). M1

\(\dfrac{dy}{du}=4u^3\), \(\dfrac{du}{dx}=6x.\) A1

Multiply the rates: \[\dfrac{dy}{dx}=4(3x^2+1)^3\cdot 6x=24x(3x^2+1)^3.\] A1

M1 Recognising the composite structure A1 For \(\frac{dy}{du}=4u^3\) and \(\frac{du}{dx}=6x\) A1 Chain rule applied and simplified
2
Hard
No calc
[3 marks]

Differentiate \(y = \cos(3x^2)\).

Worked solution

Write \(y=\cos u\) with inner function \(u=3x^2\). The chain rule states \(\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx}\). M1

\(\dfrac{dy}{du}=-\sin u\) (the derivative of cosine carries a minus sign) and \(\dfrac{du}{dx}=6x\). A1

\(\dfrac{dy}{dx}=-\sin(3x^2)\cdot 6x=-6x\sin(3x^2).\) A1

M1 Chain rule set-up A1 Inner and outer derivatives A1 Final form
3
Medium
No calc
[4 marks]

Consider \(y = \sin(3x).\)

(a) Find \(\dfrac{dy}{dx}\)

(b) Differentiate \(y = \cos(x^2).\)

Worked solution

(a) \(\sin(3x)\) is a composite, so chain rule: differentiate the sine and multiply by the derivative of the inner \(3x\). \(\dfrac{dy}{dx}=\cos(3x)\cdot 3\) M1
\(=3\cos(3x).\) A1

(b) Inner \(x^2\), derivative \(2x\); the derivative of \(\cos\) carries a minus sign. \(\dfrac{dy}{dx}=-\sin(x^2)\cdot 2x\) M1
\(=-2x\sin(x^2).\) A1

M1 Method A1 Chain rule, part (a) M1 Method A1 Chain rule, part (b)

Common mistakes

Ready to practise properly?

17 chain-rule questions, marked instantly like the real exam.

Quick answers

What is the chain rule?

If \(y=g(u)\) and \(u=h(x)\), then \(\dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}\). In practice: differentiate the outer function, keeping the inner function unchanged, then multiply by the derivative of the inner function.

How do you know when a function needs the chain rule?

Whenever one function is applied to another - a bracket raised to a power, a trig function of an expression, \(e\) to the power of an expression, or \(\ln\) of an expression - you have a composite function and need the chain rule.

← Back to Analysis & Approaches SL topics