Differentiation with Chain Rule: Formula & Worked Examples
Master differentiation with the chain rule for A-level Maths. Learn the formula, when to use it, worked examples, common mistakes, and exam-style practice.

Introduction
Differentiation with the chain rule is the method used in A-level Mathematics to differentiate a composite function, meaning a function placed inside another function. If yyy is a function of uuu and uuu is a function of xxx, the chain rule states that:
dydx=dydu×dudx \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{\mathrm{d}y}{\mathrm{d}u} \times \frac{\mathrm{d}u}{\mathrm{d}x} dxdy=dudy×dxduWithout the chain rule, differentiating expressions such as (4x3−5x)6(4x^3 - 5x)^6(4x3−5x)6, cos3(2x)\cos^3(2x)cos3(2x), or esin2x\mathrm{e}^{\sin 2x}esin2x would be either extremely slow or impossible using basic power rules alone. In this guide, you will learn the exact formula and its notation, how to recognise when to apply it, step-by-step worked examples, common mistakes to avoid, and exam-style practice questions with full answers.
The Chain Rule Formula and Terms Explained
In UK A-level Mathematics specifications (including Edexcel, AQA, and OCR), the chain rule is written in two standard forms. You must memorise both, because the chain rule is not printed in the standard A-level formula booklet.
In Leibniz notation:
dydx=dydu×dudx \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{\mathrm{d}y}{\mathrm{d}u} \times \frac{\mathrm{d}u}{\mathrm{d}x} dxdy=dudy×dxduIn function notation:
ddx[f(g(x))]=f′(g(x))g′(x) \frac{\mathrm{d}}{\mathrm{d}x}\left[\mathrm{f}(\mathrm{g}(x))\right] = \mathrm{f}'(\mathrm{g}(x))\mathrm{g}'(x) dxd[f(g(x))]=f′(g(x))g′(x)Understanding why the formula works makes it easier to apply under exam pressure. A derivative measures how fast one quantity changes relative to another. If yyy changes three times as fast as uuu, and uuu changes twice as fast as xxx, then yyy must change 3×2=63 \times 2 = 63×2=6 times as fast as xxx. Multiplying the two rates of change together gives the overall rate of change of yyy with respect to xxx.
Two closely related forms also appear in Year 13 pure mathematics. For inverse functions, you can use the reciprocal relation dydx=1dxdy\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{1}{\frac{\mathrm{d}x}{\mathrm{d}y}}dxdy=dydx1. For connected rates of change, you can link three variables such as volume VVV, radius rrr, and time ttt using dVdt=dVdr×drdt\frac{\mathrm{d}V}{\mathrm{d}t} = \frac{\mathrm{d}V}{\mathrm{d}r} \times \frac{\mathrm{d}r}{\mathrm{d}t}dtdV=drdV×dtdr.
| Symbol or Term | Meaning | Units (Pure vs Applied Contexts) |
|---|---|---|
| xxx | The independent variable | Dimensionless in pure maths; e.g. s\mathrm{s}s or m\mathrm{m}m in modelling |
| yyy | The dependent variable | Dimensionless in pure maths; e.g. cm3\mathrm{cm}^3cm3 or m\mathrm{m}m in modelling |
| uuu or g(x)\mathrm{g}(x)g(x) | The inner function substituted to simplify yyy | Same units as the quantity it represents |
| f(u)\mathrm{f}(u)f(u) | The outer function applied to uuu | Same units as yyy |
| dudx\frac{\mathrm{d}u}{\mathrm{d}x}dxdu or g′(x)\mathrm{g}'(x)g′(x) | Rate of change of the inner function with respect to xxx | Units of uuu divided by units of xxx |
| dydu\frac{\mathrm{d}y}{\mathrm{d}u}dudy or f′(g(x))\mathrm{f}'(\mathrm{g}(x))f′(g(x)) | Rate of change of the outer function with respect to uuu | Units of yyy divided by units of uuu |
| dydx\frac{\mathrm{d}y}{\mathrm{d}x}dxdy | Overall derivative of yyy with respect to xxx | Units of yyy divided by units of xxx |
Checking units in applied questions is a reliable way to verify your setup. When you multiply dVdr\frac{\mathrm{d}V}{\mathrm{d}r}drdV (in cm3 cm−1\mathrm{cm}^3\,\mathrm{cm}^{-1}cm3cm−1, or cm2\mathrm{cm}^2cm2) by drdt\frac{\mathrm{d}r}{\mathrm{d}t}dtdr (in cm s−1\mathrm{cm}\,\mathrm{s}^{-1}cms−1), the cm\mathrm{cm}cm units cancel to leave cm3 s−1\mathrm{cm}^3\,\mathrm{s}^{-1}cm3s−1, which matches dVdt\frac{\mathrm{d}V}{\mathrm{d}t}dtdV.
When to Use Differentiation with the Chain Rule
Use the chain rule whenever one function is nested inside another. Ask yourself whether you can identify a clear inner function u=g(x)u = \mathrm{g}(x)u=g(x) and an outer function y=f(u)y = \mathrm{f}(u)y=f(u).
Common A-level examples include:
- Powers of expressions: (3x2−7)5(3x^2 - 7)^5(3x2−7)5 or 5x2+3=(5x2+3)1/2\sqrt{5x^2 + 3} = (5x^2 + 3)^{1/2}5x2+3=(5x2+3)1/2, where the bracket is the inner function.
- Exponentials: e4x2\mathrm{e}^{4x^2}e4x2 or esin2x\mathrm{e}^{\sin 2x}esin2x, where the exponent is the inner function.
- Logarithms: ln(3x−2)\ln(3x - 2)ln(3x−2), where the argument inside the logarithm is the inner function.
- Trigonometric functions: sin(5x)\sin(5x)sin(5x), tan(x2)\tan(x^2)tan(x2), or cos3(2x)=(cos2x)3\cos^3(2x) = (\cos 2x)^3cos3(2x)=(cos2x)3, where either the angle or the trigonometric term itself is the inner function.
It is important to distinguish the chain rule from the product rule and the quotient rule. Use the product rule when two separate functions of xxx are multiplied together, such as x2sinxx^2\sin xx2sinx, and the quotient rule when one function is divided by another. In many A-level questions, you will combine the chain rule with the product or quotient rule, and you will also rely on it when tackling implicit differentiation and parametric curves.
Standard Chain Rule Patterns for Exam Speed
Once you are comfortable writing out the substitution u=g(x)u = \mathrm{g}(x)u=g(x), you can save time in exams by differentiating straightforward composite functions by inspection. The mental process is always the same: differentiate the outer function while keeping the inner function unchanged, then multiply by the derivative of the inner function.
| Function Form | Derivative |
|---|---|
| [f(x)]n[\mathrm{f}(x)]^n[f(x)]n | nf′(x)[f(x)]n−1n\mathrm{f}'(x)[\mathrm{f}(x)]^{n-1}nf′(x)[f(x)]n−1 |
| ef(x)\mathrm{e}^{\mathrm{f}(x)}ef(x) | f′(x)ef(x)\mathrm{f}'(x)\mathrm{e}^{\mathrm{f}(x)}f′(x)ef(x) |
| ln(f(x))\ln(\mathrm{f}(x))ln(f(x)) | f′(x)f(x)\frac{\mathrm{f}'(x)}{\mathrm{f}(x)}f(x)f′(x) |
| sin(f(x))\sin(\mathrm{f}(x))sin(f(x)) | f′(x)cos(f(x))\mathrm{f}'(x)\cos(\mathrm{f}(x))f′(x)cos(f(x)) |
| cos(f(x))\cos(\mathrm{f}(x))cos(f(x)) | −f′(x)sin(f(x))-\mathrm{f}'(x)\sin(\mathrm{f}(x))−f′(x)sin(f(x)) |
Use inspection for two-layer functions such as e5x\mathrm{e}^{5x}e5x or (2x−1)4(2x - 1)^4(2x−1)4. For three-layer functions, negative fractional powers, or expressions combined with the product rule, writing down uuu explicitly reduces the risk of sign errors and makes your method marks clear to the examiner.
Worked Examples
Example 1: Differentiating a Power of a Bracket
Differentiate y=(4x3−5x)6y = (4x^3 - 5x)^6y=(4x3−5x)6 with respect to xxx.
- Identify the inner function and let u=4x3−5xu = 4x^3 - 5xu=4x3−5x. This gives the outer function y=u6y = u^6y=u6.
- Differentiate uuu with respect to xxx:
- Differentiate yyy with respect to uuu:
- Multiply the two derivatives using the chain rule:
- Substitute u=4x3−5xu = 4x^3 - 5xu=4x3−5x back into the expression:
Example 2: Differentiating a Trigonometric Composite Function
Differentiate y=cos3(2x)y = \cos^3(2x)y=cos3(2x) with respect to xxx.
- Rewrite the power clearly so the outer function is visible: y=(cos2x)3y = (\cos 2x)^3y=(cos2x)3.
- Let u=cos2xu = \cos 2xu=cos2x, so y=u3y = u^3y=u3.
- Differentiate u=cos2xu = \cos 2xu=cos2x with respect to xxx. This itself uses the chain rule (with 2x2x2x as the inner function), giving:
- Differentiate y=u3y = u^3y=u3 with respect to uuu:
- Multiply the derivatives and substitute u=cos2xu = \cos 2xu=cos2x back in:
Example 3: Connected Rates of Change
A spherical balloon is inflated so that its radius r cmr\text{ cm}r cm increases at a constant rate of 0.4 cm s−10.4\text{ cm s}^{-1}0.4 cm s−1. Find the exact rate of increase of its volume V cm3V\text{ cm}^3V cm3 when r=5 cmr = 5\text{ cm}r=5 cm, given that V=43πr3V = \frac{4}{3}\pi r^3V=34πr3.
- Write down the given rate: drdt=0.4 cm s−1\frac{\mathrm{d}r}{\mathrm{d}t} = 0.4\text{ cm s}^{-1}dtdr=0.4 cm s−1.
- Differentiate V=43πr3V = \frac{4}{3}\pi r^3V=34πr3 with respect to rrr:
- Apply the chain rule to connect VVV, rrr, and ttt:
- Substitute r=5r = 5r=5:
The exact rate of increase of the volume is 40π cm3 s−140\pi\text{ cm}^3\text{ s}^{-1}40π cm3 s−1 (approximately 126 cm3 s−1126\text{ cm}^3\text{ s}^{-1}126 cm3 s−1 to 3 significant figures).
Example 4: Using the Reciprocal Form
Given that x=y3+2yx = y^3 + 2yx=y3+2y, find dydx\frac{\mathrm{d}y}{\mathrm{d}x}dxdy in terms of yyy.
- Because xxx is already written explicitly in terms of yyy, differentiate xxx with respect to yyy directly:
- Apply the reciprocal form of the chain rule, dydx=1dxdy\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{1}{\frac{\mathrm{d}x}{\mathrm{d}y}}dxdy=dydx1:
This technique is particularly useful when rearranging an equation to make yyy the subject would be difficult or impossible, and it appears regularly in Edexcel and OCR Year 13 pure papers.
Common Mistakes to Avoid
Examiners frequently see the same avoidable errors on chain rule questions. Watch out for these four pitfalls:
- Forgetting the inner derivative: Writing ddx[(3x+1)4]=4(3x+1)3\frac{\mathrm{d}}{\mathrm{d}x}\left[(3x + 1)^4\right] = 4(3x + 1)^3dxd[(3x+1)4]=4(3x+1)3 misses the factor of 333 from differentiating 3x+13x + 13x+1. Always multiply by dudx\frac{\mathrm{d}u}{\mathrm{d}x}dxdu.
- Differentiating inside the bracket too early: When you differentiate the outer power, the inner bracket must stay unchanged. For y=(4x3−5x)6y = (4x^3 - 5x)^6y=(4x3−5x)6, writing 6(12x2−5)56(12x^2 - 5)^56(12x2−5)5 is incorrect.
- Using degrees instead of radians: Standard A-level trigonometric derivatives such as ddx(sinx)=cosx\frac{\mathrm{d}}{\mathrm{d}x}(\sin x) = \cos xdxd(sinx)=cosx only hold when xxx is measured in radians.
- Leaving uuu in the final answer: If you introduce a substitution uuu, always replace uuu with the original expression in xxx before finishing.
Exam-Style Practice Questions and Answers
Try these three questions without looking at the solutions first, then check your working.
- Differentiate y=5x2+3y = \sqrt{5x^2 + 3}y=5x2+3 with respect to xxx.
- Find the exact gradient of the curve y=ln(3x−2)y = \ln(3x - 2)y=ln(3x−2) at the point where x=2x = 2x=2.
- Given that y=esin2xy = \mathrm{e}^{\sin 2x}y=esin2x, find dydx\frac{\mathrm{d}y}{\mathrm{d}x}dxdy.
Answers
- Rewrite the square root as a fractional power: y=(5x2+3)1/2y = (5x^2 + 3)^{1/2}y=(5x2+3)1/2. Let u=5x2+3u = 5x^2 + 3u=5x2+3, so dudx=10x\frac{\mathrm{d}u}{\mathrm{d}x} = 10xdxdu=10x and dydu=12u−1/2\frac{\mathrm{d}y}{\mathrm{d}u} = \frac{1}{2}u^{-1/2}dudy=21u−1/2. Multiplying gives:
- Let u=3x−2u = 3x - 2u=3x−2, so dudx=3\frac{\mathrm{d}u}{\mathrm{d}x} = 3dxdu=3 and dydu=1u\frac{\mathrm{d}y}{\mathrm{d}u} = \frac{1}{u}dudy=u1. Therefore dydx=33x−2\frac{\mathrm{d}y}{\mathrm{d}x} = \frac{3}{3x - 2}dxdy=3x−23. Substituting x=2x = 2x=2 gives:
- Let u=sin2xu = \sin 2xu=sin2x, so dudx=2cos2x\frac{\mathrm{d}u}{\mathrm{d}x} = 2\cos 2xdxdu=2cos2x and dydu=eu\frac{\mathrm{d}y}{\mathrm{d}u} = \mathrm{e}^ududy=eu. Multiplying gives:
For structured topic practice, work through the Edexcel A-Level Maths 9.3 The Chain Rule booklet and the full Differentiation exam booklet. Once you are confident with isolated questions, test yourself under timed conditions using Edexcel A-Level Maths past papers or browse the wider A-Level Maths revision hub for your exam board.
Conclusion
Differentiation with the chain rule is built on one clear principle: differentiate the outer function while keeping the inner function intact, then multiply by the derivative of the inner function. Writing down uuu explicitly prevents most algebraic slips, and checking units keeps connected rates of change accurate. When you are ready to build exam speed, use the Edexcel A-Level Maths revision page on MathsGenie to combine targeted chain rule worksheets with full past-paper practice.
Sources and referenced URLs
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-3-the-chain-rule/booklet
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-differentiation/booklet
- https://mathsgenie.co.uk/a-level/maths/edexcel/papers
- https://mathsgenie.co.uk/a-level/maths/edexcel
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-5-the-quotient-rule
- https://mathsgenie.co.uk/blog/implicit-differentiation-a-level-maths
- https://mathsgenie.co.uk/a-level/maths



