MathsGenie logo
RevisionResourcesBlog
  1. Home
  2. /
  3. Blog
  4. /
  5. Chain Rule Differentiation: Formula and Worked Examples

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.

MathsGenie Team
•Last updated: 3 Dec 2026
Share
Add as a preferred source on Google

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​×dxdu​

Function 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.

SymbolMeaningExample units in context
xxxThe 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 xxxm 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 uuum3 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 xxxm3 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+1​6​.
  • Trigonometric functions of a linear or non-linear expression, such as y=cos⁡(5x)y = \cos(5x)y=cos(5x) or y=sin⁡3(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.

  1. Identify the inner function and let u=3x2−5x+1u = 3x^2 - 5x + 1u=3x2−5x+1. Then y=u4y = u^4y=u4.
  2. Differentiate uuu with respect to xxx:
dudx=6x−5 \frac{du}{dx} = 6x - 5 dxdu​=6x−5
  1. Differentiate yyy with respect to uuu:
dydu=4u3 \frac{dy}{du} = 4u^3 dudy​=4u3
  1. Multiply the two derivatives using the chain rule:
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)
  1. Substitute u=3x2−5x+1u = 3x^2 - 5x + 1u=3x2−5x+1 back into the expression:
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)3

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)=sin⁡3(2x)f(x) = \sin^3(2x)f(x)=sin3(2x), where xxx is measured in radians.

  1. Rewrite the trigonometric power with explicit brackets: y=(sin⁡(2x))3y = (\sin(2x))^3y=(sin(2x))3.
  2. 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.
  3. 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(sin⁡v)=cos⁡v\frac{d}{dv}(\sin v) = \cos vdvd​(sinv)=cosv and dvdx=2\frac{dv}{dx} = 2dxdv​=2, you get:
dudx=2cos⁡(2x) \frac{du}{dx} = 2\cos(2x) dxdu​=2cos(2x)
  1. 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:
f′(x)=3(sin⁡(2x))2×2cos⁡(2x)=6sin⁡2(2x)cos⁡(2x) f'(x) = 3(\sin(2x))^2 \times 2\cos(2x) = 6\sin^2(2x)\cos(2x) f′(x)=3(sin(2x))2×2cos(2x)=6sin2(2x)cos(2x)

Example 3: Finding a gradient using index notation

Find the gradient of the curve y=64x+1y = \frac{6}{\sqrt{4x + 1}}y=4x+1​6​ at the point where x=2x = 2x=2.

  1. Rewrite the root and fraction using a negative fractional index:
y=6(4x+1)−12 y = 6(4x + 1)^{-\frac{1}{2}} y=6(4x+1)−21​
  1. Let u=4x+1u = 4x + 1u=4x+1, so y=6u−12y = 6u^{-\frac{1}{2}}y=6u−21​.
  2. Differentiate both expressions:
dudx=4anddydu=6×(−12)u−32=−3u−32 \frac{du}{dx} = 4 \quad \text{and} \quad \frac{dy}{du} = 6 \times \left(-\frac{1}{2}\right)u^{-\frac{3}{2}} = -3u^{-\frac{3}{2}} dxdu​=4anddudy​=6×(−21​)u−23​=−3u−23​
  1. Apply the chain rule:
dydx=−3u−32×4=−12(4x+1)−32=−12(4x+1)32 \frac{dy}{dx} = -3u^{-\frac{3}{2}} \times 4 = -12(4x + 1)^{-\frac{3}{2}} = -\frac{12}{(4x + 1)^{\frac{3}{2}}} dxdy​=−3u−23​×4=−12(4x+1)−23​=−(4x+1)23​12​
  1. Substitute x=2x = 2x=2 to find the gradient:
dydx=−12(4(2)+1)32=−12932=−1227=−49 \frac{dy}{dx} = -\frac{12}{(4(2) + 1)^{\frac{3}{2}}} = -\frac{12}{9^{\frac{3}{2}}} = -\frac{12}{27} = -\frac{4}{9} dxdy​=−(4(2)+1)23​12​=−923​12​=−2712​=−94​

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​=dydx​1​

This 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: sin⁡3(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.

  1. Differentiate y=e5x−3y = e^{5x - 3}y=e5x−3 with respect to xxx.
  2. 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.
  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

  1. 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.
  2. 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​.
  3. 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
  • The chain rule formula
  • When to use chain rule differentiation
  • Worked examples
  • Connected rates of change and reciprocal derivatives
  • Common mistakes to avoid
  • Exam-style practice questions
  • Conclusion
  • Sources and referenced URLs

Frequently Asked Questions

How helpful was this article?
Add as a preferred source on Google

More from the blog

3 Dec 2026

AQA Biology A-Level Specification: Guide and Checklist

Learn what is in the AQA Biology A-level specification (7402), where to download it, what the three papers cover, and how to turn it into a revision checklist.

3 Dec 2026

AQA English Language Paper 1 Past Papers: How to Use Them

Find official AQA English Language Paper 1 past papers, mark schemes and examiner reports, and follow a four-step revision plan to raise your GCSE grade.

3 Dec 2026

AQA English Past Papers Language: Revision Guide

Find AQA GCSE English Language past papers, mark schemes and examiner reports, then use them effectively with timed practice and an error log.

3 Dec 2026

AQA GCSE Chemistry Past Papers: Find and Use Them

Find official AQA GCSE Chemistry past papers, mark schemes and examiner reports, then follow a practical plan for topic practice, timed papers and reviewing mistakes.

1m+ Students Can't Be Wrong

What GCSE and A-level students say after revising with MathsGenie.

Harvey B. avatar

Harvey B.

Student

“This is such an amazing platform, it offers everything needed to improve your grade in a time efficient manor. Personally I love the videos as I am able to find areas that I am weak at in the practice papers.”
Tameem R. avatar

Tameem R.

Student

“Genuinely took me from a grade 4 in maths to achieving a grade 8 in my GCSE's in less than a few months. Best mathematics revision website for those who are aiming to get those high grades.”
Anyim P. avatar

Anyim P.

Student

“Genuinely I think every maths student should have this site. It takes you through the entire AS and A level Maths course, alongside exam questions with step by step solutions.”
Muhammad A. avatar

Muhammad A.

Student

“predicted papers are very useful and i believe there's not a better website for GCSE maths in the UK”
Rayan K. avatar

Rayan K.

Student

“Best Maths Resource out there! Absolutely amazing videos and very concise explantions on everything. Don't even get me started on the loads of exam question/worksheets that are so helpful. And it's all free!”
Dee avatar

Dee

Student

“The best Maths resource site in the world! They have it all and do a great job of keeping everything up to date. I still don't know how they are able to make this free for all. You are truly amazing.”
Hamid I. avatar

Hamid I.

Student

“They have helped me with my A level Maths performance significantly and I jumped from a grade U to a Grade A in only 2-3 months. I HIGHLY recommend to Maths students especially for A level.”
Sophie avatar

Sophie

Student

“MathsGenie's YouTube videos and worksheets are amazing. The videos go into such great depth but in a way that's simple to understand.”
Maria E. avatar

Maria E.

Student

“Amazing website! Truly helped with my GCSEs - I was a very poor student. Managed to go up and reach all grade 6-9's from U-4's. Would definitely recommend :)”
Justine K. avatar

Justine K.

Student

“Absolutely brilliant website with well organised, well written resources for learning or revising maths. I never hesitate to recommend mathsgenie to my students.”
Daryl G. avatar

Daryl G.

Student

“Took me a bit of getting used to but this new site is excellent. I found the old one really useful but this is next level. I share it with all my colleagues and students.”
Binuk J. avatar

Binuk J.

Student

“I used to be really bad at math. My first GCSE mocks I had a 2 but after I found MathsGenie I jumped from 2 to 4 under 3 months.”
Jourdie avatar

Jourdie

Student

“Improved my grade, I used to be borderline passing maths now I'm performing much better. There are videos, practice papers, solutions, exam questions, past GCSE papers all for free. This is really useful.”
Olla avatar

Olla

Student

“Honestly, it's super great. Easy, with the explanation on the side. Every topic also has more than 50 questions, making you feel more confident in doing different types f question in one topic. Try it!”

Ready to breeze through your GCSEs?IGCSEs?A-Levels?AS Levels?GCSEs?GCSEs?

Sign inStart studying for free

Footer

Quick links

  • GCSE past papers
  • GCSE question bank
  • GCSE worksheets
  • GCSE revision guides
  • GCSE lessons
  • Literary Hub
  • Free maths course
  • A Level past papers
  • A Level question bank
  • Old MathsGenie

Tools

  • Revision planner
  • Mock exam builder
  • Ask Genie AI
  • Answer marking
  • Grade calculator
  • Pricing

Company

  • About MathsGenie
  • Maths Genie on Google Play
  • Contact
  • For educators
  • For parents
  • Download the app
  • More resources
  • Blog
  • Student questions
  • Sitemap
  • Privacy policy
  • Terms of Service
  • Cookie policy
  • Report a bug

GCSE

  • Biology
  • Chemistry
  • English Language
  • English Literature
  • Geography
  • Maths
  • Old Maths
  • Physics
  • Statistics

IGCSE

  • Biology
  • Business
  • Chemistry
  • Computer Science
  • English Language
  • English Literature
  • Geography
  • Maths
  • Physics

A Level

  • Biology
  • Business
  • Chemistry
  • Economics
  • Maths
  • Old Maths
  • Physics
  • Psychology
  • Sociology

AS Level

  • Biology
  • Business
  • Chemistry
  • Economics
  • Maths
  • Physics
  • Psychology
  • Religious Studies
  • Sociology
MathsGenie logo

© 2026 MyDojo, Inc. All rights reserved. MyDojo, Inc. does business as MathsGenie.

Exam board names are used for identification only and do not imply affiliation or endorsement.