Lesson 5: Differentiation
🎧 Audio narration for this lesson is coming soon.
Differentiation is the mathematics of change — how fast, in which direction, and where the turning points lie. It computes the speed from a distance–time graph, the maximum profit from a revenue curve, the steepest point of a hill. A-level differentiation goes far beyond GCSE gradients: first principles, the chain, product and quotient rules, and applications to optimisation and connected rates. This is the single most powerful tool in the A-level course, and fluency here pays off in physics, economics, and every applied lesson that follows.
First principles — the definition
The derivative f'(x) is the limit of the gradient of chords as the chord shrinks: f'(x) = lim(h→0) [f(x + h) − f(x)]/h. This is not just a formula to memorise — it is the meaning of differentiation: instantaneous rate of change. Worked example: differentiate x² from first principles. [f(x + h) − f(x)]/h = [(x + h)² − x²]/h = [2xh + h²]/h = 2x + h → 2x as h → 0. The h²/h = h term vanishes in the limit — that vanishing is the whole idea.
Worked example: differentiate x³ from first principles: [(x + h)³ − x³]/h = [3x²h + 3xh² + h³]/h = 3x² + 3xh + h² → 3x². Examiners award marks for each stage: setting up the difference quotient, expanding correctly, dividing by h, then taking the limit. The common error is 'taking the limit' too early (setting h = 0 before dividing — division by zero) or too late (leaving h in the answer).
First principles also differentiates 1/x: [(1/(x + h)) − (1/x)]/h = [(x − (x + h))/(x(x + h))]/h = −h/(x(x + h)h) = −1/(x(x + h)) → −1/x². And √x gives 1/(2√x) (rationalise the numerator). You will not differentiate every function from first principles in the exam — but understanding the definition is what makes the rules meaningful rather than magical.
The rules — power, chain, product, quotient
The power rule: d/dx(xⁿ) = nxⁿ⁻¹ for any real n (proved for integers by first principles, extended by the chain rule). So d/dx(√x) = d/dx(x^{1/2}) = (1/2)x^{−1/2} = 1/(2√x), and d/dx(1/x³) = −3x⁻⁴. Differentiate term by term; constants vanish. Example: f(x) = 4x³ − 2x^{1/2} + 5/x − 7 → f'(x) = 12x² − x^{−1/2} − 5x⁻².
The chain rule handles composites: if y = f(g(x)), dy/dx = f'(g) × g'(x) — 'differentiate the outside, multiply by the derivative of the inside'. For y = (3x² + 1)⁵: outside derivative 5(3x² + 1)⁴ times inside derivative 6x → dy/dx = 30x(3x² + 1)⁴. For y = sin(4x − π/3): dy/dx = 4cos(4x − π/3). For y = e^{x²}: dy/dx = 2xe^{x²}. The chain rule is the most-used A-level rule — spot the composition first, then apply mechanically.
The product rule: d/dx(uv) = u'v + uv'. The quotient rule: d/dx(u/v) = (u'v − uv')/v² ('low d-high minus high d-low, over low-low'). Example: differentiate x³ sin x: = 3x² sin x + x³ cos x. Differentiate (2x + 1)/(x² + 3): = [2(x² + 3) − (2x + 1)(2x)]/(x² + 3)² = (2x² + 6 − 4x² − 2x)/(x² + 3)² = (−2x² − 2x + 6)/(x² + 3)². Simplify numerators — examiners expect it.
Second derivatives and stationary points
The second derivative f''(x) measures curvature: f'' > 0 means concave up (∪, a minimum), f'' < 0 means concave down (∩, a maximum). Stationary points satisfy f'(x) = 0; classify by the second derivative or by testing gradients either side. Worked example: f(x) = x³ − 3x² − 9x + 5. f'(x) = 3x² − 6x − 9 = 3(x − 3)(x + 1) = 0 → x = 3, x = −1. f''(x) = 6x − 6: f''(3) = 12 > 0 → minimum at (3, −22); f''(−1) = −12 < 0 → maximum at (−1, 10).
Points of inflection have f''(x) = 0 with a sign change (the curve straightens momentarily). For f(x) = x³, f''(0) = 0 and the curvature changes from ∩ to ∪ — a stationary point of inflection. But f''(x) = 0 alone does not guarantee inflection: for f(x) = x⁴, f''(0) = 0 yet x = 0 is a minimum. Always check the sign change — the second-derivative test is inconclusive when f'' = 0.
In context: a firm's profit is P(x) = −2x² + 80x − 500 (x items sold, £). P'(x) = −4x + 80 = 0 → x = 20; P''(x) = −4 < 0 → maximum; maximum profit P(20) = −800 + 1600 − 500 = £300. Optimisation questions follow this exact template: model, differentiate, solve, classify, interpret.
Worked example (optimisation). An open-topped box is made from a 20 cm square sheet by cutting squares of side x from the corners and folding. Maximise the volume. V = x(20 − 2x)². dV/dx = (20 − 2x)² + x · 2(20 − 2x)(−2) = (20 − 2x)(20 − 6x) (product rule, then factorise). Setting dV/dx = 0: x = 10 (rejected — nothing left to fold) or x = 10/3 ≈ 3.33 cm. Maximum volume V = (10/3)(40/3)² = 16000/27 ≈ 593 cm³. Rejecting the spurious root with a reason is part of the answer, not an afterthought.
Tangents, normals, and connected rates
The tangent at (x₁, y₁) has gradient f'(x₁): equation y − y₁ = f'(x₁)(x − x₁). The normal is perpendicular: gradient −1/f'(x₁). Worked example: f(x) = x³ − 2x at x = 2: f(2) = 4, f'(x) = 3x² − 2, f'(2) = 10. Tangent: y − 4 = 10(x − 2) → y = 10x − 16. Normal: y − 4 = (−1/10)(x − 2) → x + 10y = 42. Sketch to verify: the normal should look perpendicular.
Connected rates use the chain rule with time: if V depends on r which depends on t, dV/dt = (dV/dr) × (dr/dt). Classic: a spherical balloon inflates so its radius increases at 2 cm/s; how fast does the volume increase when r = 10 cm? V = (4/3)πr³, dV/dr = 4πr², dr/dt = 2 → dV/dt = 4π(100)(2) = 800π ≈ 2513 cm³/s. The method: write the chain, compute each rate, substitute. Related rates appear in A-level as 'melting ice cream cone' or 'filling trough' problems.
Small changes: dy ≈ f'(x) dx. If y = x³ and x increases from 5 to 5.02, dy ≈ 3(25)(0.02) = 1.5 (actual: 126.51 − 125 = 1.51). Differentials estimate errors: a sphere's radius measured as 10 cm ± 0.1 cm; volume error ≈ 4π(100)(0.1) ≈ 126 cm³ on 4189 cm³ — about 3%. Error propagation via derivatives is used in every experimental science.
Sketching with calculus
Calculus makes sketching rigorous: f' gives increasing/decreasing and stationary points; f'' gives curvature. Full analysis of f(x) = x³ − 3x: f'(x) = 3x² − 3 = 0 at x = ±1; f''(x) = 6x: maximum at (−1, 2), minimum at (1, −2); f'' = 0 at x = 0 (point of inflection at origin). Intercepts: (0, 0), (±√3, 0). As x → ±∞, f → ±∞. This is a complete curve sketch from calculus alone — no plotting needed.
Domain restrictions matter: for f(x) = x + 1/x (x ≠ 0): f'(x) = 1 − 1/x² = 0 → x = ±1; f''(x) = 2/x³: minimum at (1, 2) (f'' > 0), maximum at (−1, −2) (f'' < 0). Two separate branches, two stationary points — the sketch must show the asymptote x = 0 between them.
Exam strategy: for 'sketch' questions, tabulate — intercepts, stationary points with classification, asymptotes, end behaviour — then draw. For 'find the range' questions on restricted domains, evaluate f at stationary points and endpoints. For proof-flavoured questions ('show that the equation has exactly one root in [1, 2]'), combine f' sign analysis with the intermediate value theorem: f continuous, f(1) and f(2) opposite signs, f' > 0 throughout ⟹ exactly one root.
Implicit differentiation
Some curves cannot be written as y = f(x): the circle x² + y² = 25, or the folium x³ + y³ = 6xy. Implicit differentiation differentiates every term with respect to x, attaching dy/dx to each y-term via the chain rule. For x² + y² = 25: 2x + 2y · dy/dx = 0, so dy/dx = −x/y. At (3, 4): gradient −3/4 — matching the tangent 3x + 4y = 25 from Lesson 3. The implicit method finds gradients where explicit rearrangement is impossible.
Worked: find dy/dx for x³ + y³ = 6xy. Differentiate: 3x² + 3y² · dy/dx = 6y + 6x · dy/dx (product rule on 6xy!). Collect dy/dx terms: dy/dx (3y² − 6x) = 6y − 3x², so dy/dx = (6y − 3x²)/(3y² − 6x) = (2y − x²)/(y² − 2x). Stationary points occur where the numerator is zero (2y = x²) — substitute back into the curve to find them. Implicit differentiation turns 'unsolvable for y' into 'differentiable anyway'.
Related techniques: logarithmic differentiation for y = xˣ or messy products — take ln of both sides first: ln y = x ln x, then (1/y) dy/dx = ln x + 1, so dy/dx = xˣ(ln x + 1). And differentiating inverse functions implicitly gave d/dx(arcsin x) = 1/√(1 − x²) in Lesson 7. Implicit differentiation is the chain rule's most versatile application — whenever y is trapped inside an equation, differentiate through it.
Common mistakes
- Forgetting to multiply by the derivative of the inside. d/dx(sin(4x)) is 4cos(4x), not cos(4x). The chain rule's second factor is where most marks bleed.
- Quotient rule numerator in the wrong order. It is u'v − uv' over v² — reversing the subtraction changes the sign of the whole derivative.
- Classifying with f'' = 0. The test is inconclusive, not 'inflection'. Check gradients either side or the sign change of f''.
- Omitting one stationary point. Factorise f'(x) fully; a quadratic derivative usually means two stationary points. Both need coordinates and classification.
- In implicit differentiation, dropping dy/dx from y-terms. d/dx(y²) is 2y · dy/dx, not 2y. Every y-term carries the chain-rule passenger.
Exam Experience
Questions in the style of the A-level pure paper. Attempt them before reading the mark scheme.
1. Let f(x) = 2x³ − 3x² − 12x + 5. (a) Show that f'(x) = 6(x − 2)(x + 1). [2] (b) Hence find the coordinates of the stationary points of f and classify each. [4]
2. Differentiate y = x² e^{2x} with respect to x, giving your answer as a single simplified expression. [3]
Mark scheme.
- 1(a) f'(x) = 6x² − 6x − 12 (M1) for correct term-by-term differentiation. 6(x − 2)(x + 1) = 6(x² − x − 2) = 6x² − 6x − 12 (A1) — expanding the target to meet your derivative is the cleanest 'show that' route.
- 1(b) Stationary points where f'(x) = 0: x = 2 or x = −1 (M1). f(2) = 16 − 12 − 24 + 5 = −15; f(−1) = −2 − 3 + 12 + 5 = 12 (A1) for both coordinates. f''(x) = 12x − 6: f''(2) = 18 > 0 → minimum at (2, −15) (A1); f''(−1) = −18 < 0 → maximum at (−1, 12) (A1).
- 2. Product rule with u = x², v = e^{2x}: dy/dx = 2x e^{2x} + x² · 2e^{2x} (M1) for the product structure, (M1) for the chain-rule factor 2 in the derivative of e^{2x}. = 2x e^{2x}(1 + x) (A1) for the factorised final form.
📈 Interactive Graph: Differentiation — cubic
A curve whose slope and area are the heart of calculus
🎛️ Interactive Explorer: Quadratic Explorer — Differentiation
Drag the sliders to change the coefficients of y = ax² + bx + c and watch the parabola transform live.
Notice how a controls the width and direction, b shifts the axis of symmetry, and c moves the graph up and down.
Key Terms
- Derivative
- The instantaneous rate of change: f'(x) = lim(h→0) [f(x+h) - f(x)]/h.
- First principles
- Differentiating directly from the limit definition.
- Chain rule
- dy/dx = f'(g(x))·g'(x) for composite functions — outside derivative times inside derivative.
- Product rule
- d(uv)/dx = u'v + uv'.
- Quotient rule
- d(u/v)/dx = (u'v - uv')/v².
- Stationary point
- A point where f'(x) = 0: maximum, minimum, or point of inflection.
- Point of inflection
- Where curvature changes sign (f'' = 0 with sign change).
- Normal
- The line perpendicular to the tangent at the point of contact.
- Connected rates
- Related time-derivatives linked by the chain rule, e.g. dV/dt = dV/dr × dr/dt.
- Optimisation
- Finding maxima/minima of a modelled quantity via f'(x) = 0.
Discussion Questions
- Differentiate from first principles: (a) f(x) = 5x² - 3x, (b) f(x) = 1/(2x). Show every step of the limit.
- Differentiate: (a) (x² + 1)³(2x - 5), (b) e^{2x}sin 3x, (c) ln(x² + 4)/(x - 1). Simplify where possible.
- Find and classify all stationary points of f(x) = 2x³ - 9x² + 12x - 4, and sketch the curve fully.
- A 20 cm wire is bent into a rectangle in a Birmingham workshop. Find the dimensions maximising the area, prove it is a maximum, and state the maximum area. Then: the wire is bent into a sector of radius r — find r maximising the sector area.
- A conical funnel (radius 6 cm, height 10 cm) drains so the water depth h decreases at 0.5 cm/s. Find dh... rather, find the rate of change of the water volume when h = 4 cm. (V = πr²h/3; relate r and h by similar triangles.)