HomeLearning HubA Level MathsP2/3 4: Differentiation
P2/3 4

Differentiation

Pure Mathematics 2 & 3 · Papers 2 and 3

🎯What you need to be able to do

  • Differentiate \( \mathrm{e}^{x} \), \( \ln x \), \( \sin x \), \( \cos x \) and \( \tan x \).
  • P3 Differentiate \( \tan^{-1}x \).
  • Apply the product rule and the quotient rule, and combine them with the chain rule.
  • Differentiate implicitly, and find a gradient on a curve that is not a function.
  • Differentiate parametrically and find \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) from \( \dfrac{\mathrm{d}y}{\mathrm{d}t} \) and \( \dfrac{\mathrm{d}x}{\mathrm{d}t} \).
  • Find tangents, normals and stationary points for all of the above.
  • Work in radians, and know why that matters.

📚The mathematics

The standard derivatives

\( \dfrac{\mathrm{d}}{\mathrm{d}x}\mathrm{e}^{x} = \mathrm{e}^{x} \)
\( \dfrac{\mathrm{d}}{\mathrm{d}x}\ln x = \dfrac{1}{x} \)
\( \dfrac{\mathrm{d}}{\mathrm{d}x}\sin x = \cos x \)
\( \dfrac{\mathrm{d}}{\mathrm{d}x}\cos x = -\sin x \)
\( \dfrac{\mathrm{d}}{\mathrm{d}x}\tan x = \sec^{2}x \)
The trigonometric derivatives hold only in radians. In degrees they pick up a factor of \( \dfrac{\pi}{180} \), which is precisely why radians exist. Every calculus question involving trigonometry in 9709 is in radians — set your calculator accordingly and read angles as radians unless a degree symbol appears.

Combined with the chain rule these extend immediately: \( \dfrac{\mathrm{d}}{\mathrm{d}x}\mathrm{e}^{ax+b} = a\mathrm{e}^{ax+b} \), \( \dfrac{\mathrm{d}}{\mathrm{d}x}\ln(ax+b) = \dfrac{a}{ax+b} \), and \( \dfrac{\mathrm{d}}{\mathrm{d}x}\sin(ax+b) = a\cos(ax+b) \).

P3 The derivative of \( \tan^{-1}x \)

\[ \frac{\mathrm{d}}{\mathrm{d}x}\tan^{-1}x = \frac{1}{1 + x^{2}} \]

This one is on Paper 3 only, and it is the odd member of the list: an inverse trigonometric function whose derivative is purely algebraic, with no trigonometry left in it. It is in the list of formulae, so it does not need memorising — but recognising it does, because its real importance is in reverse. Read backwards it gives \( \displaystyle\int \frac{1}{x^{2}+a^{2}}\,\mathrm{d}x \) in P2/3 5, which is how it usually appears in an exam.

With the chain rule, \( \dfrac{\mathrm{d}}{\mathrm{d}x}\tan^{-1}(ax) = \dfrac{a}{1 + a^{2}x^{2}} \).

The derivatives of \( \sin^{-1}x \) and \( \cos^{-1}x \) are not required in 9709 — \( \tan^{-1}x \) is the only inverse trigonometric derivative on the syllabus.

The product and quotient rules

\( \dfrac{\mathrm{d}}{\mathrm{d}x}(uv) = u\dfrac{\mathrm{d}v}{\mathrm{d}x} + v\dfrac{\mathrm{d}u}{\mathrm{d}x} \)
\( \dfrac{\mathrm{d}}{\mathrm{d}x}\left(\dfrac{u}{v}\right) = \dfrac{v\dfrac{\mathrm{d}u}{\mathrm{d}x} - u\dfrac{\mathrm{d}v}{\mathrm{d}x}}{v^{2}} \)

In the quotient rule the order of the numerator matters, because subtraction is not commutative — it is bottom times derivative of top, minus top times derivative of bottom. Getting it backwards flips the sign of every answer.

Before reaching for the quotient rule, ask whether the expression can be rewritten. A quotient with a single-term denominator should be split, and \( \dfrac{1}{v} \) is often easier as \( v^{-1} \) with the chain rule. Less machinery means fewer sign errors.

Expect to nest rules: \( x^{2}\sin 3x \) needs the product rule with the chain rule inside it, and \( \dfrac{\mathrm{e}^{2x}}{x^{2}+1} \) needs the quotient rule with the chain rule on top. Identify the outermost structure first — is the whole thing a product, a quotient, or a composite? — and work inwards.

Implicit differentiation

When \(y\) is not isolated — as in \( x^{2} + xy + y^{3} = 7 \) — differentiate both sides with respect to \(x\), treating \(y\) as a function of \(x\). By the chain rule, every \(y\) term picks up a factor of \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \):

\[ \frac{\mathrm{d}}{\mathrm{d}x}\left(y^{3}\right) = 3y^{2}\frac{\mathrm{d}y}{\mathrm{d}x} \]

and any term containing both variables, such as \( xy \), needs the product rule:

\[ \frac{\mathrm{d}}{\mathrm{d}x}(xy) = x\frac{\mathrm{d}y}{\mathrm{d}x} + y \]

Then collect all the \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) terms on one side, factorise, and divide. The answer will normally involve both \(x\) and \(y\), which is expected — substitute the coordinates of the point to get a number.

Parametric differentiation

When \(x\) and \(y\) are both given in terms of a parameter \(t\):

\[ \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{\mathrm{d}y}{\mathrm{d}t} \div \frac{\mathrm{d}x}{\mathrm{d}t} \]

Differentiate each with respect to \(t\), then divide. The result is in terms of \(t\), so to find a gradient at a given point you first find the value of \(t\) there.

For a stationary point, set \( \dfrac{\mathrm{d}y}{\mathrm{d}t} = 0 \) — but check that \( \dfrac{\mathrm{d}x}{\mathrm{d}t} \ne 0 \) at the same value, since both vanishing signals something other than an ordinary stationary point.

✏️Worked example

(a) Differentiate \( y = x^{2}\mathrm{e}^{3x} \) and find the exact coordinates of its stationary points. (b) A curve has equation \( x^{2} + 3xy - y^{2} = 9 \). Find \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) in terms of \(x\) and \(y\), and hence the gradient at the point \( (3, 0) \). (c) A curve is given parametrically by \( x = t^{2} - 4t \), \( y = t^{3} - 3t \). Find \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) when \( t = 3 \).

(a) A product, with a chain rule inside the second factor. With \( u = x^{2} \) and \( v = \mathrm{e}^{3x} \): \( \dfrac{\mathrm{d}u}{\mathrm{d}x} = 2x \) and \( \dfrac{\mathrm{d}v}{\mathrm{d}x} = 3\mathrm{e}^{3x} \). So

\[ \frac{\mathrm{d}y}{\mathrm{d}x} = x^{2}\left(3\mathrm{e}^{3x}\right) + \mathrm{e}^{3x}(2x) = x\mathrm{e}^{3x}\left(3x + 2\right) \]

Factorising makes the stationary points visible at once. Since \( \mathrm{e}^{3x} \) is never zero, \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = 0 \) requires \( x = 0 \) or \( x = -\tfrac{2}{3} \). The \(y\)-values are \( y(0) = 0 \) and

\[ y\!\left(-\tfrac{2}{3}\right) = \left(\tfrac{4}{9}\right)\mathrm{e}^{-2} = \frac{4}{9\mathrm{e}^{2}} \]

so the stationary points are \( (0, 0) \) and \( \left(-\tfrac{2}{3},\ \dfrac{4}{9\mathrm{e}^{2}}\right) \).

(b) Differentiate term by term, remembering the product rule on \( 3xy \):

\[ 2x + 3\left(x\frac{\mathrm{d}y}{\mathrm{d}x} + y\right) - 2y\frac{\mathrm{d}y}{\mathrm{d}x} = 0 \]

Collecting the derivative terms: \( \dfrac{\mathrm{d}y}{\mathrm{d}x}\left(3x - 2y\right) = -2x - 3y \), so

\[ \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{-2x - 3y}{3x - 2y} \]

At \( (3, 0) \): \( \dfrac{-6 - 0}{9 - 0} = -\dfrac{2}{3} \). (Check the point is on the curve: \( 9 + 0 - 0 = 9 \) ✓.)

(c) \( \dfrac{\mathrm{d}x}{\mathrm{d}t} = 2t - 4 \) and \( \dfrac{\mathrm{d}y}{\mathrm{d}t} = 3t^{2} - 3 \). At \( t = 3 \) these are \( 2 \) and \( 24 \), so

\[ \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{24}{2} = 12 \]
Check it. In (a), note \( \mathrm{e}^{3x} > 0 \) always, so it can be divided out safely — a stationary point can only come from the polynomial factor. That observation is worth stating explicitly, because it is the reason there are exactly two. In (c), a quick sanity check: near \( t = 3 \), \(x\) is changing slowly (\( \dfrac{\mathrm{d}x}{\mathrm{d}t} = 2 \)) while \(y\) is changing fast (24), so a steep gradient of 12 is right.
Two things go wrong in implicit differentiation. First, forgetting the product rule on a mixed term: \( \dfrac{\mathrm{d}}{\mathrm{d}x}(3xy) \) is not \( 3x\dfrac{\mathrm{d}y}{\mathrm{d}x} \) — the \( +3y \) is part of it. Second, forgetting the \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) factor on a pure \(y\) term. Write the factor in as you differentiate rather than adding it afterwards, and both disappear.

📝Practise

Work through these, then reveal the answer. Each question targets a different objective from the list above.

1. Differentiate \( y = \dfrac{\ln x}{x^{2}} \).
Quotient rule with \( u = \ln x \), \( v = x^{2} \): \( \dfrac{\mathrm{d}u}{\mathrm{d}x} = \dfrac{1}{x} \), \( \dfrac{\mathrm{d}v}{\mathrm{d}x} = 2x \). So \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{x^{2}\left(\tfrac1x\right) - \ln x\,(2x)}{x^{4}} = \dfrac{x - 2x\ln x}{x^{4}} = \dfrac{1 - 2\ln x}{x^{3}} \). Cancelling the common factor of \(x\) at the end is expected — leaving it uncancelled may still score, but tidying is free.
2. Differentiate \( y = \mathrm{e}^{2x}\cos x \) and find the gradient at \( x = 0 \).
Product rule: \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{e}^{2x}(-\sin x) + \cos x\left(2\mathrm{e}^{2x}\right) = \mathrm{e}^{2x}\left(2\cos x - \sin x\right) \). At \( x = 0 \): \( \mathrm{e}^{0}(2 - 0) = 2 \).
3. Find \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) for the curve \( x^{3} + y^{3} = 6xy \).
Differentiate implicitly, using the product rule on the right: \( 3x^{2} + 3y^{2}\dfrac{\mathrm{d}y}{\mathrm{d}x} = 6\left(x\dfrac{\mathrm{d}y}{\mathrm{d}x} + y\right) \). Rearranging, \( 3y^{2}\dfrac{\mathrm{d}y}{\mathrm{d}x} - 6x\dfrac{\mathrm{d}y}{\mathrm{d}x} = 6y - 3x^{2} \), so \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{6y - 3x^{2}}{3y^{2} - 6x} = \dfrac{2y - x^{2}}{y^{2} - 2x} \).
4. Differentiate \( y = \tan 3x \) and find the equation of the tangent at \( x = \dfrac{\pi}{12} \).
Chain rule: \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = 3\sec^{2}3x \). At \( x = \dfrac{\pi}{12} \), \( 3x = \dfrac{\pi}{4} \), so \( \sec\dfrac{\pi}{4} = \sqrt2 \) and \( \sec^{2} = 2 \), giving gradient \( 6 \). The \(y\)-value is \( \tan\dfrac{\pi}{4} = 1 \). So the tangent is \( y - 1 = 6\left(x - \dfrac{\pi}{12}\right) \), that is \( y = 6x - \dfrac{\pi}{2} + 1 \).
5. A curve has parametric equations \( x = 2t + \sin 2t \), \( y = 4\sin t \). Find \( \dfrac{\mathrm{d}y}{\mathrm{d}x} \) when \( t = \dfrac{\pi}{4} \).
\( \dfrac{\mathrm{d}x}{\mathrm{d}t} = 2 + 2\cos 2t \) and \( \dfrac{\mathrm{d}y}{\mathrm{d}t} = 4\cos t \). At \( t = \dfrac{\pi}{4} \): \( \cos\dfrac{\pi}{2} = 0 \), so \( \dfrac{\mathrm{d}x}{\mathrm{d}t} = 2 + 0 = 2 \); and \( \cos\dfrac{\pi}{4} = \dfrac{1}{\sqrt2} \), so \( \dfrac{\mathrm{d}y}{\mathrm{d}t} = \dfrac{4}{\sqrt2} = 2\sqrt2 \). Hence \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = \dfrac{2\sqrt2}{2} = \sqrt2 \).
6. Find the exact \(x\)-coordinate of the stationary point of \( y = x\ln x \) for \( x > 0 \).
Product rule: \( \dfrac{\mathrm{d}y}{\mathrm{d}x} = x\left(\dfrac1x\right) + \ln x \times 1 = 1 + \ln x \). Setting this to zero: \( \ln x = -1 \), so \( x = \mathrm{e}^{-1} = \dfrac{1}{\mathrm{e}} \). (The second derivative is \( \dfrac1x > 0 \) there, so it is a minimum.) The question says exact, so \( \dfrac{1}{\mathrm{e}} \) is the answer, not 0.368.

🔗Go deeper — other people’s work

These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.

  • 3Blue1Brown — implicit differentiation, explained geometrically rather than mechanically
  • Desmos — plot a parametric curve and animate \(t\) to see where the gradient goes vertical
  • Khan Academy — the product, quotient and chain rules