Scholars Gate
Find a TutorOnline Tutoring
GuidesHow It WorksBecome a Tutor
Log inGet Started
All guides
MathematicsA-Level 9 min read

The Chain Rule, Made Intuitive

Drag a point along a composite function and watch its slope split into two rates that multiply. The chain rule, finally intuitive.

The ScholarsGate Maths Team·Updated 03 Jul 2026

On this page

  • The core intuition
  • See it: rates multiply
  • The rule, formally
  • Worked examples
  • Common mistakes
  • Practice
  • FAQ

The chain rule is how you differentiate a function of a function — expressions like sin⁡(x2)\sin(x^2)sin(x2), e3xe^{3x}e3x or (2x+1)5(2x+1)^5(2x+1)5. Most students learn it as a formula to memorise. Here we’ll build the intuition first: once you see whytwo rates multiply, you’ll never forget the “×g′(x)\times g'(x)×g′(x)” again.

The core intuition: rates multiply

Imagine two connected gears. Turn the first gear and it drives the second. If the first turns twice as fast as your hand, and the second turns three times as fast as the first, then the second turns 2 × 3 = 6 times as fast as your hand. The rates compound — they multiply.

A composite function h(x)=f(g(x))h(x) = f(g(x))h(x)=f(g(x)) is exactly this chain of gears. Nudge xxx a tiny bit. First, the inner function ggg responds at its own rate, g′(x)g'(x)g′(x). That change in ggg then drives the outer function fff, which responds at its rate, f′(g(x))f'(g(x))f′(g(x)). The overall rate of change is the product of the two.

The rate of a composite is the outer rate times the inner rate.

Key idea

If h(x)=f(g(x))h(x) = f\big(g(x)\big)h(x)=f(g(x)), then

h′(x)=f′(g(x))⋅g′(x).h'(x) = f'\big(g(x)\big)\cdot g'(x).h′(x)=f′(g(x))⋅g′(x).

Differentiate the outside (leaving the inside alone), then multiply by the derivative of the inside.

See it: the two rates multiplying

Drag the point along the curve below. The panel breaks the slope of the tangent into its two factors — the inner rate g′(x)g'(x)g′(x) and the outer rate f′(u)f'(u)f′(u) — and shows their product. Notice that the product always equals the actual slope of the tangent line. Try each example function.

InteractiveChain rule: rate decomposition
Loading interactive…
Drag the point (or use arrow keys). The product of the inner and outer rates equals the tangent's slope for every x.
Text description ↓Hide text description ↑

An interactive graph of a composite function h(x)=f(g(x))h(x)=f(g(x))h(x)=f(g(x))with a draggable point and its tangent line. A readout decomposes the tangent’s slope into the inner rate g′(x)g'(x)g′(x) and outer rate f′(g(x))f'(g(x))f′(g(x)), whose product equals the slope. Available functions and their derivatives:

Function h(x)Inner g(x)Derivative h′(x)
sin(x²)x²2x·cos(x²)
e^(3x)3x3·e^(3x)
(2x+1)⁵2x+110·(2x+1)⁴
√(x²+1)x²+1x / √(x²+1)

The rule, formally

In Lagrange (prime) notation, for h(x)=f(g(x))h(x) = f(g(x))h(x)=f(g(x)):

ddx f(g(x))=f′(g(x))⋅g′(x)\frac{d}{dx}\,f\big(g(x)\big) = f'\big(g(x)\big)\cdot g'(x)dxd​f(g(x))=f′(g(x))⋅g′(x)

Leibniz notation makes the “compounding rates” idea even clearer. Write u=g(x)u = g(x)u=g(x) so that y=f(u)y = f(u)y=f(u). Then

dydx=dydu⋅dudx.\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}.dxdy​=dudy​⋅dxdu​.

It looks like the dududu’s cancel like fractions. That’s a useful memory hook, but not a proof — dydu\frac{dy}{du}dudy​ is a limit, not a fraction. The genuine justification is that the small changes satisfy Δy≈dydu Δu\Delta y \approx \frac{dy}{du}\,\Delta uΔy≈dudy​Δu and Δu≈dudx Δx\Delta u \approx \frac{du}{dx}\,\Delta xΔu≈dxdu​Δx, and substituting one into the other gives the product in the limit.

The three-step recipe

  1. Spot the layers. Identify the inner function g(x)g(x)g(x)(what’s “inside”) and the outer function fff.
  2. Differentiate the outside, keeping the inside untouched: f′(g(x))f'(g(x))f′(g(x)).
  3. Multiply by the derivative of the inside, g′(x)g'(x)g′(x).

Worked examples

1Worked example — a trig composite

Differentiate h(x)=sin⁡(x2)h(x) = \sin(x^2)h(x)=sin(x2).

Inner: g(x)=x2g(x) = x^2g(x)=x2, so g′(x)=2xg'(x) = 2xg′(x)=2x. Outer: f(u)=sin⁡uf(u) = \sin uf(u)=sinu, so f′(u)=cos⁡uf'(u) = \cos uf′(u)=cosu. Assemble:

h′(x)=cos⁡(x2)⋅2x=2xcos⁡(x2).h'(x) = \cos(x^2)\cdot 2x = 2x\cos(x^2).h′(x)=cos(x2)⋅2x=2xcos(x2).
2Worked example — an exponential

Differentiate h(x)=e3xh(x) = e^{3x}h(x)=e3x.

Inner g(x)=3xg(x)=3xg(x)=3x gives g′(x)=3g'(x)=3g′(x)=3; outer f(u)=euf(u)=e^uf(u)=eu gives f′(u)=euf'(u)=e^uf′(u)=eu. Hence

h′(x)=e3x⋅3=3e3x.h'(x) = e^{3x}\cdot 3 = 3e^{3x}.h′(x)=e3x⋅3=3e3x.
3Worked example — a power (the general power rule)

Differentiate h(x)=(2x+1)5h(x) = (2x+1)^5h(x)=(2x+1)5. Inner g(x)=2x+1g(x)=2x+1g(x)=2x+1, g′(x)=2g'(x)=2g′(x)=2; outer f(u)=u5f(u)=u^5f(u)=u5, f′(u)=5u4f'(u)=5u^4f′(u)=5u4. So

h′(x)=5(2x+1)4⋅2=10(2x+1)4.h'(x) = 5(2x+1)^4\cdot 2 = 10(2x+1)^4.h′(x)=5(2x+1)4⋅2=10(2x+1)4.

This is the “general power rule”: ddx [g(x)]n=n[g(x)]n−1g′(x)\frac{d}{dx}\,[g(x)]^n = n[g(x)]^{n-1}g'(x)dxd​[g(x)]n=n[g(x)]n−1g′(x) — just the chain rule with an outer power.

Common mistakes

Forgetting the inner derivative

The number-one error: writing ddxsin⁡(x2)=cos⁡(x2)\frac{d}{dx}\sin(x^2) = \cos(x^2)dxd​sin(x2)=cos(x2) and stopping. You must multiply by g′(x)=2xg'(x) = 2xg′(x)=2x. If differentiating the inside gives 1 (e.g. the inside is just xxx), the factor is invisible — which is exactly why students forget it exists.

Evaluating the outer derivative at x instead of g(x)

The outer derivative is f′(g(x))f'(g(x))f′(g(x)), not f′(x)f'(x)f′(x). For sin⁡(x2)\sin(x^2)sin(x2) that’s cos⁡(x2)\cos(x^2)cos(x2), not cos⁡x\cos xcosx. Keep the whole inner expression inside the outer derivative.

Practice

Your turn

Differentiate h(x)=cos⁡(5x)h(x) = \cos(5x)h(x)=cos(5x).

Show the answer ↓Hide the answer ↑

Inner 5x5x5x has derivative 5; outer cos⁡\coscos differentiates to −sin⁡-\sin−sin. So h′(x)=−5sin⁡(5x)h'(x) = -5\sin(5x)h′(x)=−5sin(5x).

Your turn

Differentiate h(x)=(3x2−1)4h(x) = (3x^2 - 1)^4h(x)=(3x2−1)4.

Show the answer ↓Hide the answer ↑

Outer power: 4(3x2−1)34(3x^2-1)^34(3x2−1)3. Inner derivative: 6x6x6x. Product: h′(x)=24x(3x2−1)3h'(x) = 24x(3x^2-1)^3h′(x)=24x(3x2−1)3.

Key takeaways
  • The chain rule differentiates a function of a function: outer rate × inner rate.
  • Formally, ddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx}f(g(x)) = f'(g(x))\,g'(x)dxd​f(g(x))=f′(g(x))g′(x).
  • Differentiate the outside (inside untouched), then multiply by the derivative of the inside.
  • The most common slip is forgetting that final “× derivative of the inside” factor.

Frequently asked questions

What is the chain rule in simple terms?+
The chain rule says that to differentiate a composite function — a function inside another function — you multiply the derivative of the outer function (evaluated at the inner function) by the derivative of the inner function. In words: outer rate × inner rate.
When do I use the chain rule?+
Use it whenever you have a "function of a function", such as sin(x²), e^(3x), or (2x+1)⁵. If you can spot an inner expression that has been substituted into an outer function, the chain rule applies.
What is the derivative of sin(x²)?+
By the chain rule, the outer function sin has derivative cos, and the inner function x² has derivative 2x. So d/dx sin(x²) = cos(x²) × 2x = 2x·cos(x²).
Why do you multiply the two derivatives?+
Because a small change in x first changes the inner function at rate g′(x), and that change then changes the outer function at rate f′(g(x)). The two rates compound, so the overall rate is their product — exactly like gear ratios multiplying.
What is the most common chain rule mistake?+
Forgetting to multiply by the derivative of the inner function. Writing d/dx sin(x²) = cos(x²) misses the ×2x factor. Always differentiate the inside as well.
SM

The ScholarsGate Maths Team

Oxbridge & Russell Group maths tutors

Written and reviewed by ScholarsGate tutors who teach A-Level and undergraduate mathematics. Every explainer is checked for accuracy against the AQA, Edexcel and OCR specifications.

Keep exploring

A-Level Maths tutorsCompleting the squareTaylor series, visualisedAll Mathematics tutors

Want a tutor to walk you through it?

Book a DBS-checked A-Level Mathematics tutor for a 1-on-1 lesson — online or in person.

Find a A-Level Mathematics tutor
Scholars GateTutoring & Learning

ScholarsGate (Scholars Gate) is a premium UK tutoring marketplace connecting ambitious students with expert tutors across every subject, level, and admissions pathway.

hello@scholarsgate.co.uk
+44 7544 736438
Bath, United Kingdom

Platform

  • Find a Tutor
  • Online Tutoring
  • How It Works
  • Become a Tutor
  • Interactive Guides
  • Blog
  • FAQ

Subjects

  • Mathematics & Computing
  • Natural Sciences
  • Humanities
  • Languages
  • All Subjects

Admissions

  • Medicine & UCAT
  • Maths (TMUA, STEP)
  • Law & LNAT
  • Statements & Interviews
  • All Admissions
4.9/5 average tutor rating
All tutors DBS verified
Secure payments via Stripe
500+ expert tutors

© 2026 ScholarsGate Ltd. All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicySafeguarding