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

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.

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

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

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

RuleFunction structureExampleFormula
Chain ruleOne function inside another, f(g(x))f(g(x))f(g(x))y=(3x2+1)5y = (3x^2 + 1)^5y=(3x2+1)5dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}dxdy​=dudy​×dxdu​
Product ruleTwo functions multiplied together, u(x)v(x)u(x)v(x)u(x)v(x)y=x2sin⁡xy = x^2 \sin xy=x2sinxdydx=udvdx+vdudx\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}dxdy​=udxdv​+vdxdu​
Quotient ruleOne 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+1

This rewrites the outer function as:

y=u4 y = u^4 y=u4

Step 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​=4u3

Step 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)3

Example 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−2

So the outer function is:

y=sin⁡u y = \sin u y=sinu

Step 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=cos⁡u \frac{dy}{du} = \cos u dudy​=cosu

Step 3: Apply the chain rule and substitute uuu back in.

dydx=cos⁡u×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+1

Then:

y=ln⁡u y = \ln u y=lnu

Step 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​=u1​

Step 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+110x​

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

  1. 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.
  2. 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).
  3. Misreading trigonometric powers: Expressions such as sin⁡2x\sin^2 xsin2x mean (sin⁡x)2(\sin x)^2(sinx)2, where the outer function is squaring and the inner function is sin⁡x\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.
  4. 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.

  1. Differentiate y=(2x−7)5y = (2x - 7)^5y=(2x−7)5 with respect to xxx.
  2. Find dydx\frac{dy}{dx}dxdy​ when y=cos⁡(3x2+1)y = \cos(3x^2 + 1)y=cos(3x2+1).
  3. 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​.
  4. 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

  1. 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.
  2. Let u=3x2+1u = 3x^2 + 1u=3x2+1, so y=cos⁡uy = \cos uy=cosu. Then dudx=6x\frac{du}{dx} = 6xdxdu​=6x and dydu=−sin⁡u\frac{dy}{du} = -\sin ududy​=−sinu. Multiplying gives dydx=−6xsin⁡(3x2+1)\frac{dy}{dx} = -6x\sin(3x^2 + 1)dxdy​=−6xsin(3x2+1).
  3. 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.
  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
  • The Chain Rule Formula Explained
  • When to Use the Chain Rule
  • Worked Examples of the Differentiation of Chain Rule
  • 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.