Differentiation of Chain Rule: Formula and Examples
Master the differentiation of chain rule for A-Level Maths with the formula, clear explanations, worked examples, common mistakes and practice questions.

The differentiation of chain rule is the method used in A-Level Mathematics to differentiate composite functions, where one function is nested inside another. Rather than expanding complex brackets or guessing derivatives, the chain rule breaks a composite function into an outer function and an inner function, differentiates each part separately, and multiplies the results together. Because the chain rule is not printed in the Edexcel, AQA, or OCR A-Level Maths formula booklets, you must memorise it and apply it fluently across pure mathematics and mechanics.
In this guide, you will learn the exact chain rule formula, what every symbol and unit represents, and how to recognise when to use it instead of the product or quotient rule. You will also work through three fully solved A-Level examples, review the most common exam mistakes, and test your understanding with exam-style practice questions and answers.
The Chain Rule Formula Explained
In A-Level Maths, the chain rule is written in two equivalent forms: Leibniz notation and function notation. You should be comfortable using both, as exam questions switch between yyy and f(x)f(x)f(x) depending on the context.
In 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×dxduIn function notation, if y=f(g(x))y = f(g(x))y=f(g(x)), 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
Understanding what each term represents prevents mechanical errors when questions involve unfamiliar variables or rates of change:
- yyy: The dependent variable, representing the overall composite function.
- xxx: The independent variable with respect to which you are differentiating.
- uuu (or g(x)g(x)g(x)): The inner function, substituted to simplify the expression into a standard form.
- dydx\frac{dy}{dx}dxdy: The derivative of yyy with respect to xxx, representing the gradient of the curve or the rate of change of yyy as xxx changes.
- dydu\frac{dy}{du}dudy (or f′(g(x))f'(g(x))f′(g(x))): The derivative of the outer function with respect to the inner function uuu, keeping the inner expression unchanged.
- dudx\frac{du}{dx}dxdu (or g′(x)g'(x)g′(x)): The derivative of the inner function with respect to xxx.
In pure mathematics, xxx, yyy, and uuu are typically dimensionless numbers, so their derivatives have no physical units. In applied questions involving connected rates of change, however, every derivative carries the units of its numerator divided by its denominator. For example, if volume VVV is measured in cm3\text{cm}^3cm3, radius rrr in cm\text{cm}cm, and time ttt in s\text{s}s, then dVdt=dVdr×drdt\frac{dV}{dt} = \frac{dV}{dr} \times \frac{dr}{dt}dtdV=drdV×dtdr gives units of cm3cm×cms=cm3 s−1\frac{\text{cm}^3}{\text{cm}} \times \frac{\text{cm}}{\text{s}} = \text{cm}^3\text{ s}^{-1}cmcm3×scm=cm3 s−1. Checking that the intermediate units cancel is a reliable way to verify your setup in modelling questions.
When to Use the Chain Rule
You should use the chain rule whenever you need to differentiate a composite function, meaning a function of a function. Typical A-Level examples include a bracket raised to a power, a trigonometric function of an algebraic expression, an exponential with a non-linear power, or a natural logarithm of a polynomial.
A common challenge in Year 13 exams is deciding which differentiation rule applies to a given expression. The table below compares the three core A-Level rules so you can identify the right method immediately.
| Rule | Function structure | Example | Formula |
|---|---|---|---|
| Chain rule | One function inside another, f(g(x))f(g(x))f(g(x)) | y=(3x2+1)5y = (3x^2 + 1)^5y=(3x2+1)5 | dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}dxdy=dudy×dxdu |
| Product rule | Two functions multiplied together, u(x)v(x)u(x)v(x)u(x)v(x) | y=x2sinxy = x^2 \sin xy=x2sinx | dydx=udvdx+vdudx\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}dxdy=udxdv+vdxdu |
| Quotient rule | One function divided by another, u(x)v(x)\frac{u(x)}{v(x)}v(x)u(x) | y=x32x+1y = \frac{x^3}{2x + 1}y=2x+1x3 | dydx=vdudx−udvdxv2\frac{dy}{dx} = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2}dxdy=v2vdxdu−udxdv |
In many A-Level questions, you will combine these rules. For instance, differentiating y=x2e3xy = x^2 e^{3x}y=x2e3x requires the product rule overall, with the chain rule used to differentiate e3xe^{3x}e3x. If you need to revise the companion techniques, you can practise Edexcel A-Level Maths product rule questions and review the quotient rule revision page on MathsGenie.
Worked Examples of the Differentiation of Chain Rule
Writing out the substitution u=g(x)u = g(x)u=g(x) explicitly is the safest approach when learning the chain rule. Once you are confident, you can differentiate directly by inspection while keeping the same logical steps.
Example 1: Differentiating a Power of a Polynomial
Differentiate y=(3x2−5x+1)4y = (3x^2 - 5x + 1)^4y=(3x2−5x+1)4 with respect to xxx.
Step 1: Identify the inner function and let it equal uuu.
u=3x2−5x+1 u = 3x^2 - 5x + 1 u=3x2−5x+1This rewrites the outer function as:
y=u4 y = u^4 y=u4Step 2: Differentiate uuu with respect to xxx, and differentiate yyy with respect to uuu.
dudx=6x−5 \frac{du}{dx} = 6x - 5 dxdu=6x−5 dydu=4u3 \frac{dy}{du} = 4u^3 dudy=4u3Step 3: Multiply the two derivatives using the chain rule formula.
dydx=dydu×dudx=4u3(6x−5) \frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} = 4u^3(6x - 5) dxdy=dudy×dxdu=4u3(6x−5)Step 4: Substitute u=3x2−5x+1u = 3x^2 - 5x + 1u=3x2−5x+1 back into the expression so the final answer is purely in terms of xxx.
dydx=4(6x−5)(3x2−5x+1)3 \frac{dy}{dx} = 4(6x - 5)(3x^2 - 5x + 1)^3 dxdy=4(6x−5)(3x2−5x+1)3Example 2: Differentiating a Trigonometric Composite Function
Find dydx\frac{dy}{dx}dxdy for y=sin(4x3−2)y = \sin(4x^3 - 2)y=sin(4x3−2).
Step 1: Set the inner algebraic expression equal to uuu.
u=4x3−2 u = 4x^3 - 2 u=4x3−2So the outer function is:
y=sinu y = \sin u y=sinuStep 2: Differentiate both expressions. Remember that in A-Level calculus, all trigonometric derivatives assume angles are measured in radians.
dudx=12x2 \frac{du}{dx} = 12x^2 dxdu=12x2 dydu=cosu \frac{dy}{du} = \cos u dudy=cosuStep 3: Apply the chain rule and substitute uuu back in.
dydx=cosu×12x2=12x2cos(4x3−2) \frac{dy}{dx} = \cos u \times 12x^2 = 12x^2 \cos(4x^3 - 2) dxdy=cosu×12x2=12x2cos(4x3−2)Example 3: Differentiating a Natural Logarithm
Differentiate y=ln(5x2+1)y = \ln(5x^2 + 1)y=ln(5x2+1) with respect to xxx.
Step 1: Let the expression inside the logarithm be uuu.
u=5x2+1 u = 5x^2 + 1 u=5x2+1Then:
y=lnu y = \ln u y=lnuStep 2: Differentiate uuu with respect to xxx and yyy with respect to uuu.
dudx=10x \frac{du}{dx} = 10x dxdu=10x dydu=1u \frac{dy}{du} = \frac{1}{u} dudy=u1Step 3: Combine using the chain rule and replace uuu.
dydx=1u×10x=10x5x2+1 \frac{dy}{dx} = \frac{1}{u} \times 10x = \frac{10x}{5x^2 + 1} dxdy=u1×10x=5x2+110xThis result illustrates a useful shortcut worth recognising in A-Level Maths: the derivative of ln(f(x))\ln(f(x))ln(f(x)) is always f′(x)f(x)\frac{f'(x)}{f(x)}f(x)f′(x).
Common Mistakes to Avoid
Examiners frequently report the same avoidable errors on chain rule questions. Watching for these four pitfalls will protect your method and accuracy marks.
- Forgetting to multiply by the inner derivative: Students often differentiate the outer function and stop, writing the derivative of (2x+3)5(2x + 3)^5(2x+3)5 as 5(2x+3)45(2x + 3)^45(2x+3)4 instead of 10(2x+3)410(2x + 3)^410(2x+3)4. Always check whether the inner expression has a derivative other than 111.
- Differentiating the inside while differentiating the outside: When applying f′(g(x))⋅g′(x)f'(g(x)) \cdot g'(x)f′(g(x))⋅g′(x), the inner function g(x)g(x)g(x) must remain untouched inside f′f'f′. For example, the derivative of sin(3x2)\sin(3x^2)sin(3x2) is 6xcos(3x2)6x\cos(3x^2)6xcos(3x2), not cos(6x)\cos(6x)cos(6x).
- Misreading trigonometric powers: Expressions such as sin2x\sin^2 xsin2x mean (sinx)2(\sin x)^2(sinx)2, where the outer function is squaring and the inner function is sinx\sin xsinx. Do not confuse this with sin(x2)\sin(x^2)sin(x2), where the outer function is sine and the inner function is x2x^2x2.
- Leaving uuu in the final answer: If you introduce a substitution uuu, you must replace it with the original expression in xxx before finishing, unless the question explicitly asks for an answer in terms of uuu.
Exam-Style Practice Questions
Attempt the following four A-Level style questions on paper before checking the answers below. Show every step of your working clearly.
- Differentiate y=(2x−7)5y = (2x - 7)^5y=(2x−7)5 with respect to xxx.
- Find dydx\frac{dy}{dx}dxdy when y=cos(3x2+1)y = \cos(3x^2 + 1)y=cos(3x2+1).
- Given that y=e4x−1y = e^{4x - 1}y=e4x−1, find the gradient of the curve at the point where x=14x = \frac{1}{4}x=41.
- Differentiate y=3(4x+1)2y = \frac{3}{(4x + 1)^2}y=(4x+1)23 with respect to xxx, giving your answer as a single fraction.
Answers
- Let u=2x−7u = 2x - 7u=2x−7, so y=u5y = u^5y=u5. Then dudx=2\frac{du}{dx} = 2dxdu=2 and dydu=5u4\frac{dy}{du} = 5u^4dudy=5u4. Multiplying gives dydx=5(2x−7)4×2=10(2x−7)4\frac{dy}{dx} = 5(2x - 7)^4 \times 2 = 10(2x - 7)^4dxdy=5(2x−7)4×2=10(2x−7)4.
- Let u=3x2+1u = 3x^2 + 1u=3x2+1, so y=cosuy = \cos uy=cosu. Then dudx=6x\frac{du}{dx} = 6xdxdu=6x and dydu=−sinu\frac{dy}{du} = -\sin ududy=−sinu. Multiplying gives dydx=−6xsin(3x2+1)\frac{dy}{dx} = -6x\sin(3x^2 + 1)dxdy=−6xsin(3x2+1).
- Let u=4x−1u = 4x - 1u=4x−1, so y=euy = e^uy=eu. Then dudx=4\frac{du}{dx} = 4dxdu=4 and dydu=eu\frac{dy}{du} = e^ududy=eu, giving dydx=4e4x−1\frac{dy}{dx} = 4e^{4x - 1}dxdy=4e4x−1. Substituting x=14x = \frac{1}{4}x=41 gives 4e4(0.25)−1=4e0=44e^{4(0.25) - 1} = 4e^0 = 44e4(0.25)−1=4e0=4.
- First rewrite the fraction using a negative index: y=3(4x+1)−2y = 3(4x + 1)^{-2}y=3(4x+1)−2. Let u=4x+1u = 4x + 1u=4x+1, so y=3u−2y = 3u^{-2}y=3u−2. Then dudx=4\frac{du}{dx} = 4dxdu=4 and dydu=−6u−3\frac{dy}{du} = -6u^{-3}dudy=−6u−3. Multiplying gives dydx=−24(4x+1)−3=−24(4x+1)3\frac{dy}{dx} = -24(4x + 1)^{-3} = -\frac{24}{(4x + 1)^3}dxdy=−24(4x+1)−3=−(4x+1)324.
To build fluency beyond these four questions, download the MathsGenie A-Level Differentiation Chain Rule booklet and work through the 9.3 The Chain Rule exam-style question bank. Once you are comfortable with standard composite functions, you will also rely on the chain rule in implicit differentiation and connected rates of change.
Conclusion
The differentiation of chain rule is one of the most frequently tested techniques in A-Level Maths because it underpins trigonometric, exponential, logarithmic, and implicit differentiation. By memorising dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}dxdy=dudy×dxdu, identifying the inner and outer functions clearly, and remembering to multiply by the inner derivative without altering the expression inside the outer derivative, you can handle composite functions reliably under exam conditions.
Consistent practice is the best way to make the method automatic. Use the MathsGenie 9.3 The Chain Rule revision page, test yourself against full Edexcel A-Level Maths past papers, and explore the wider A-Level Maths revision hub to consolidate your calculus skills before exam day.
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-3-the-chain-rule/questions/q1
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-9-4-the-product-rule/questions/q1
- 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/edexcel/papers
- https://mathsgenie.co.uk/a-level/maths



