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

Chain rule differentiation is the method used in A-Level Maths to differentiate composite functions, meaning a function nested inside another function. Across Edexcel, AQA and OCR Year 2 Pure Mathematics, the chain rule is the foundation for differentiating brackets, trigonometric powers, exponentials, logarithms, implicit equations and connected rates of change.
In this guide, you will learn the exact chain rule formula in both Leibniz and function notation, what every symbol and unit represents, and how to recognise when to apply it. You will also work through three step-by-step examples, review the most common exam mistakes, and test your understanding with exam-style practice questions.
The chain rule formula
In A-Level Mathematics, the chain rule is written in two equivalent forms. You should be comfortable switching between both, as exam questions use either notation.
Leibniz notation
If yyy is a function of uuu, and uuu is a function of xxx, then:
dydx=dydu×dudx \frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} dxdy=dudy×dxduFunction notation
If y=f(g(x))y = f(g(x))y=f(g(x)), where fff is the outer function and ggg is the inner function, then:
dydx=f′(g(x))⋅g′(x) \frac{dy}{dx} = f'(g(x)) \cdot g'(x) dxdy=f′(g(x))⋅g′(x)Defining every term and unit
In pure mathematics, variables are usually dimensionless, meaning they have no physical units. When the chain rule is applied to modelling or connected rates of change (such as kinematics, volume or population growth), the derivatives carry compound units that cancel dimensionally like fractions.
| Symbol | Meaning | Example units in context |
|---|---|---|
| xxx | The independent variable (input) | Seconds (s\text{s}s) or metres (m\text{m}m) |
| uuu or g(x)g(x)g(x) | The inner function (intermediate variable) | Metres (m\text{m}m) or radians (rad\text{rad}rad) |
| yyy or f(u)f(u)f(u) | The outer function (final output) | Cubic metres (m3\text{m}^3m3) |
| dudx\frac{du}{dx}dxdu or g′(x)g'(x)g′(x) | Rate of change of the inner variable with respect to xxx | m s−1\text{m s}^{-1}m s−1 |
| dydu\frac{dy}{du}dudy or f′(g(x))f'(g(x))f′(g(x)) | Rate of change of yyy with respect to the inner variable uuu | m3 m−1\text{m}^3\text{ m}^{-1}m3 m−1 (simplifies to m2\text{m}^2m2) |
| dydx\frac{dy}{dx}dxdy | Overall rate of change of yyy with respect to xxx | m3 s−1\text{m}^3\text{ s}^{-1}m3 s−1 |
Although dydu\frac{dy}{du}dudy and dudx\frac{du}{dx}dxdu are derivatives rather than ordinary algebraic fractions, their units multiply consistently. For example, multiplying cm2\text{cm}^2cm2 by cm s−1\text{cm s}^{-1}cm s−1 gives cm3 s−1\text{cm}^3\text{ s}^{-1}cm3 s−1, which provides a reliable check in modelling questions.
When to use chain rule differentiation
Before differentiating any expression in Year 2 Pure Maths, inspect its structure. Use chain rule differentiation whenever one mathematical operation is applied directly to another expression involving xxx, rather than to xxx alone.
Common structures that require the chain rule include:
- Powers of a bracket, such as y=(3x2−5x+1)4y = (3x^2 - 5x + 1)^4y=(3x2−5x+1)4 or y=64x+1y = \frac{6}{\sqrt{4x + 1}}y=4x+16.
- Trigonometric functions of a linear or non-linear expression, such as y=cos(5x)y = \cos(5x)y=cos(5x) or y=sin3(2x)y = \sin^3(2x)y=sin3(2x).
- Exponential and logarithmic composite functions, such as y=ex2y = e^{x^2}y=ex2 or y=ln(4x+7)y = \ln(4x + 7)y=ln(4x+7).
- Connected rates of change, where you are given one rate such as drdt\frac{dr}{dt}dtdr and asked to find another such as dVdt\frac{dV}{dt}dtdV.
It is equally important to distinguish the chain rule from the product rule and quotient rule. If two separate functions of xxx are multiplied together, such as x2e3xx^2 e^{3x}x2e3x, you need the product rule (often combined with the chain rule). You can practise those methods on the MathsGenie 9.4 The Product Rule questions and 9.5 The Quotient Rule questions pages. If you need to refresh basic polynomial differentiation first, revisit AS Pure Mathematics Differentiation.
Standard chain rule patterns for faster exam work
Once you understand the substitution method, recognising three recurring patterns will save valuable time in A-Level exams. Each result comes directly from applying dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}dxdy=dudy×dxdu:
- Power of a function: ddx[f(x)]n=n[f(x)]n−1f′(x)\frac{d}{dx}[f(x)]^n = n[f(x)]^{n-1}f'(x)dxd[f(x)]n=n[f(x)]n−1f′(x).
- Exponential of a function: ddx[ef(x)]=f′(x)ef(x)\frac{d}{dx}\left[e^{f(x)}\right] = f'(x)e^{f(x)}dxd[ef(x)]=f′(x)ef(x).
- Natural logarithm of a function: ddx[ln(f(x))]=f′(x)f(x)\frac{d}{dx}[\ln(f(x))] = \frac{f'(x)}{f(x)}dxd[ln(f(x))]=f(x)f′(x).
Memorising these forms is particularly helpful when the chain rule appears inside a larger product rule, quotient rule or integration by recognition question, where writing out a separate substitution for every factor can slow you down.
Worked examples
Writing out the substitution u=g(x)u = g(x)u=g(x) explicitly is the safest way to avoid sign and coefficient errors. Once you are confident, you can differentiate simpler composite functions mentally by differentiating the outer function and multiplying by the derivative of the inner function.
Example 1: Differentiating a polynomial inside a bracket
Differentiate y=(3x2−5x+1)4y = (3x^2 - 5x + 1)^4y=(3x2−5x+1)4 with respect to xxx.
- Identify the inner function and let u=3x2−5x+1u = 3x^2 - 5x + 1u=3x2−5x+1. Then y=u4y = u^4y=u4.
- Differentiate uuu with respect to xxx:
- Differentiate yyy with respect to uuu:
- Multiply the two derivatives using the chain rule:
- Substitute u=3x2−5x+1u = 3x^2 - 5x + 1u=3x2−5x+1 back into the expression:
Leave the answer in factorised form unless the question explicitly asks you to expand it.
Example 2: Differentiating a trigonometric power
Find f′(x)f'(x)f′(x) when f(x)=sin3(2x)f(x) = \sin^3(2x)f(x)=sin3(2x), where xxx is measured in radians.
- Rewrite the trigonometric power with explicit brackets: y=(sin(2x))3y = (\sin(2x))^3y=(sin(2x))3.
- Let u=sin(2x)u = \sin(2x)u=sin(2x), so y=u3y = u^3y=u3 and dydu=3u2\frac{dy}{du} = 3u^2dudy=3u2.
- To differentiate u=sin(2x)u = \sin(2x)u=sin(2x), apply the chain rule a second time with v=2xv = 2xv=2x. Since ddv(sinv)=cosv\frac{d}{dv}(\sin v) = \cos vdvd(sinv)=cosv and dvdx=2\frac{dv}{dx} = 2dxdv=2, you get:
- Multiply dydu\frac{dy}{du}dudy by dudx\frac{du}{dx}dxdu and substitute u=sin(2x)u = \sin(2x)u=sin(2x) back in:
Example 3: Finding a gradient using index notation
Find the gradient of the curve y=64x+1y = \frac{6}{\sqrt{4x + 1}}y=4x+16 at the point where x=2x = 2x=2.
- Rewrite the root and fraction using a negative fractional index:
- Let u=4x+1u = 4x + 1u=4x+1, so y=6u−12y = 6u^{-\frac{1}{2}}y=6u−21.
- Differentiate both expressions:
- Apply the chain rule:
- Substitute x=2x = 2x=2 to find the gradient:
Connected rates of change and reciprocal derivatives
Beyond differentiating explicit functions of xxx, A-Level examiners test two further consequences of the chain rule. The first is the reciprocal derivative identity:
dydx=1dxdy \frac{dy}{dx} = \frac{1}{\frac{dx}{dy}} dxdy=dydx1This is essential when an equation gives xxx in terms of yyy, such as x=y3+4yx = y^3 + 4yx=y3+4y, and rearranging for yyy is difficult or impossible. Instead of rearranging, differentiate with respect to yyy to find dxdy=3y2+4\frac{dx}{dy} = 3y^2 + 4dydx=3y2+4, then take the reciprocal to obtain dydx=13y2+4\frac{dy}{dx} = \frac{1}{3y^2 + 4}dxdy=3y2+41.
The second application is connected rates of change, where two quantities both vary with time ttt. Start by writing down the rate you are given, the rate you need to find, and a geometric or contextual equation linking the two variables. Linking them with the chain rule, such as dVdt=dVdr×drdt\frac{dV}{dt} = \frac{dV}{dr} \times \frac{dr}{dt}dtdV=drdV×dtdr, ensures the intermediate variable cancels cleanly and keeps the signs and units consistent.
Common mistakes to avoid
Exam mark schemes consistently penalise the same four errors in chain rule questions. Checking for these before moving on can save several marks per paper.
- Forgetting to multiply by dudx\frac{du}{dx}dxdu: Differentiating (5x+2)3(5x + 2)^3(5x+2)3 as 3(5x+2)23(5x + 2)^23(5x+2)2 omits the factor of 555 from the inner derivative.
- Differentiating the inside of the bracket at the same time as the outside: Writing 4(6x−5)34(6x - 5)^34(6x−5)3 for the derivative of (3x2−5x+1)4(3x^2 - 5x + 1)^4(3x2−5x+1)4 is incorrect. The inner expression uuu must stay unchanged inside the outer derivative.
- Misreading trigonometric powers: sin3(2x)\sin^3(2x)sin3(2x) means (sin(2x))3(\sin(2x))^3(sin(2x))3, not sin((2x)3)\sin((2x)^3)sin((2x)3). Always rewrite trigonometric powers with outer brackets before differentiating.
- Leaving uuu in the final answer: Your final derivative must be expressed entirely in terms of the original variable xxx, unless the question is a connected rates of change problem.
Exam-style practice questions
Attempt these three questions under timed conditions, then check your working against the answers below. For full past-paper style sets, download the MathsGenie A-Level Chain Rule booklet or work through the interactive 9.3 The Chain Rule revision page.
- Differentiate y=e5x−3y = e^{5x - 3}y=e5x−3 with respect to xxx.
- Given that y=ln(x2+4)y = \ln(x^2 + 4)y=ln(x2+4), find dydx\frac{dy}{dx}dxdy and evaluate it when x=3x = 3x=3.
- A spherical balloon is inflated so that its radius r cmr\text{ cm}r cm increases at a constant rate of 0.5 cm s−10.5\text{ cm s}^{-1}0.5 cm s−1. Given that the volume is V=43πr3V = \frac{4}{3}\pi r^3V=34πr3, find the rate of increase of the volume in cm3 s−1\text{cm}^3\text{ s}^{-1}cm3 s−1 when r=6 cmr = 6\text{ cm}r=6 cm. Give your answer in terms of π\piπ.
Answers
- Let u=5x−3u = 5x - 3u=5x−3, so dudx=5\frac{du}{dx} = 5dxdu=5 and dydu=eu\frac{dy}{du} = e^ududy=eu. Therefore, dydx=5e5x−3\frac{dy}{dx} = 5e^{5x - 3}dxdy=5e5x−3.
- Let u=x2+4u = x^2 + 4u=x2+4, so dudx=2x\frac{du}{dx} = 2xdxdu=2x and dydu=1u\frac{dy}{du} = \frac{1}{u}dudy=u1. Therefore, dydx=2xx2+4\frac{dy}{dx} = \frac{2x}{x^2 + 4}dxdy=x2+42x. When x=3x = 3x=3, dydx=2(3)32+4=613\frac{dy}{dx} = \frac{2(3)}{3^2 + 4} = \frac{6}{13}dxdy=32+42(3)=136.
- Differentiating the volume formula gives dVdr=4πr2\frac{dV}{dr} = 4\pi r^2drdV=4πr2, and you are given drdt=0.5\frac{dr}{dt} = 0.5dtdr=0.5. By the chain rule, dVdt=dVdr×drdt=4πr2×0.5=2πr2\frac{dV}{dt} = \frac{dV}{dr} \times \frac{dr}{dt} = 4\pi r^2 \times 0.5 = 2\pi r^2dtdV=drdV×dtdr=4πr2×0.5=2πr2. Substituting r=6r = 6r=6 gives dVdt=2π(6)2=72π cm3 s−1\frac{dV}{dt} = 2\pi(6)^2 = 72\pi\text{ cm}^3\text{ s}^{-1}dtdV=2π(6)2=72π cm3 s−1.
Once you are confident with standard chain rule questions, you will use the exact same principle in more advanced Year 2 topics. You can see how it extends to curves defined in both xxx and yyy in our Implicit Differentiation A-Level Maths Revision Guide.
Conclusion
Chain rule differentiation allows you to differentiate any composite function by multiplying the derivative of the outer function by the derivative of the inner function: dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}dxdy=dudy×dxdu. Rewriting roots and trigonometric powers in index form, keeping the inner function unchanged inside the outer derivative, and checking units in connected rates of change problems will help you avoid the most frequent A-Level exam errors.
To build fluency across all Year 2 calculus techniques, continue your revision with the MathsGenie Edexcel A-Level Differentiation hub, where you can access topic videos, exam-style questions and mark schemes.
Sources and referenced URLs
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-3-the-chain-rule
- https://old-asset.mathsgenie.co.uk/resources/a-pure-differentiation-chain-rule.pdf
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-differentiation
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-4-the-product-rule/questions
- https://www.mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-5-the-quotient-rule/questions
- https://mathsgenie.co.uk/a-level/maths/edexcel/as-pure-mathematics-12-differentiation
- https://mathsgenie.co.uk/blog/implicit-differentiation-a-level-maths



