Skip to content

9709 · Unit 12 · Papers 2–3: Pure Mathematics 2 and 3

Further differentiation.

9709 · Unit 12 · Further differentiation
Revisionbyexamplicity

Derivatives of eˣ, ln x and the trig functions

§2.4 · §3.4 · Further differentiation · Papers 2 and 3

Most curves in this unit are built from a few pieces: eˣ, ln x, sin x, cos x and tan x. Learn each derivative once. The chain rule then handles any input: differentiate the outside, and multiply by the derivative of the inside.

1eˣ and ln x: keep the inner factor

eˣ differentiates to itself, and ln x to 1/x (only for x > 0). When the input is ax + b, multiply by a.
FunctionDerivative
exex
ea⁢x+ba⁢ea⁢x+b
ln(x)1x
ln(a⁢x+b)aa⁢x+b
Worked example

Differentiate y=−4ln(x)+2e3x for x > 0, and find the gradient at x = 1.

  1. Differentiate e³ˣ: it gives itself, times 3
    2e³ˣ → 2 × 3e³ˣ=6e³ˣ
  2. Differentiate ln x: it gives 1/x
    dydx=6e3x−4x
  3. Substitute x = 1 last
    6e³ − 4/1
  4. Answer
    gradient = 6e³ − 4
Worked example

Differentiate y=e−x.

  1. The input −x has derivative −1
    dydx=e−x×(−1)
  2. Answer
    dydx=−e−xPositive, but always falling.
Worked example

Differentiate y=ln(3x+4).

  1. ln u gives 1/u; then times du/dx = 3
    dydx=13x+4×3
  2. Answer
    dydx=33x+4Valid only where 3x + 4 > 0, so x > −4/3.
Differentiate y=e−x.
dydx=e−x×(−1)The input −x has derivative −1.dydx=−e−xPositive, but always falling.
Differentiate y=ln(3x+4).
dydx=13x+4×3ln u gives 1/u; then times du/dx = 3.dydx=33x+4Valid only where 3x + 4 > 0, so x > −4/3.
A logarithm never differentiates to a logarithm. ln(3x + 4) gives 3/(3x + 4), not ln 3.

2sin, cos and tan: radians only

With x in radians: sin x → cos x, cos x → −sin x, tan x → sec²x. The minus sign belongs to cosine. An angle 3x brings a factor 3.
−1.5−1−0.500.511.5sin x and its derivative cos xx0π/2π3π/22πsin xcos x
Worked example

Find the gradient of y=sin(3x)+2cos(x) at x = π/6, and the gradient of the normal there.

  1. Differentiate each term
    dydx=3cos(3x)−2sin(x)
  2. Substitute x = π/6
    3cos(π/2) − 2sin(π/6)=3(0) − 2(1/2) = −1
  3. Normal gradient is −1 ÷ (tangent gradient)
    −1 ÷ (−1)=1
  4. Answer
    gradient −1; normal gradient 1
✓Check the point itself is (π/6, 1 + √3): height and gradient are different facts
Where cos x = 0, tan x has no derivative: sec²x = 1/cos²x is undefined there.

3Several layers: work from the outside in

Peel the function: differentiate the outside layer, leave its inside alone, then multiply by the derivative of the next layer in. Keep every factor.
Worked example

Differentiate y=ln(2+sin(3x)) and find the gradient at x = 0.

  1. Name the layers
    outside: ln u, with u=2 + sin 3xinside u: sin v, with v=3x
  2. Differentiate each layer
    ln u → 1/usin v → cos v3x → 3
  1. Multiply the three
    dydx=3cos(3x)2+sin(3x)
  2. Substitute x = 0
    3cos 0 ÷ (2 + sin 0)=3/2
  3. Answer
    gradient = 3/2
Worked example

Differentiate y=e−x2 and find the gradient at x = 1.

  1. Two layers: eᵘ outside gives itself; u = −x² gives −2x
    dydx=e−x2(−2x)
  2. Answer
    dydx=−2xe−x2; at x = 1: −2/eSubstitute after differentiating.
Differentiate y=e−x2 and find the gradient at x = 1.
dydx=e−x2(−2x)Two layers: eᵘ outside gives itself; u = −x² gives −2x.dydx=−2xe−x2; at x = 1: −2/eSubstitute after differentiating.
The curveWhat changesRule
y = x²e⁻ˣtwo factors, both changingthe product rule
x = t² + 1, y = t³ − 3tx and y both change with tparametric
x² + xy + y² = 7y changes with x but is not aloneimplicit

4Try it

Your turn

1 Differentiate y=−3ln(2x+1)+e5x.

2 Find the gradient of y=4cos(2x)+tan(x) at x = π/4.

3 Differentiate y=ln(3+cos(2x)).

  1. 1
    dy/dx = 5e⁵ˣ − 6/(2x + 1)
  2. 2
    dy/dx = −8sin 2x + sec²x; at π/4: −8(1) + 2 = −6
  3. 3
    dy/dx = −2sin 2x/(3 + cos 2x)
Tick what you can do now
Practise with s26/22 Q4; m26/22 Q4; m26/22 Q8; s26/31 Q6(a); s26/31 Q11(a); s26/32 Q5(a)
1 / 5
9709 · Unit 12 · Further differentiation
Revisionbyexamplicity

The product and quotient rules

§2.4 · §3.4 · Further differentiation · Papers 2 and 3

When two changing factors are multiplied, each one moves the product. So the derivative of a product has two terms, one for each factor. F(x) = x²e⁻ˣ is the model: x² grows while e⁻ˣ dies away, and the rule finds where the balance turns.

1Product rule: one term for each factor

Product ruleddx(uv)=vdudx+udvdx
Worked example

Differentiate F(x)=x2e−x.

  1. Name the factors and differentiate each
    u=x², du/dx = 2xv=e⁻ˣ, dv/dx = −e⁻ˣ
  2. Put them into the rule
    F′(x)=2x·e⁻ˣ + x²·(−e⁻ˣ)
  3. Take out the common factor e⁻ˣ
    F′(x)=e−x(2x−x2)
  4. Answer
    F′(x)=e−x(2x−x2)
−0.200.20.40.60.8F(x) = x²e⁻ˣx0123456(0, 0)(2, 4/e²)
Multiplying the two derivatives gives 2x × (−e⁻ˣ) = −2xe⁻ˣ. That loses a whole term, and with it the turning point at x = 2.

2Turning points: e⁻ˣ is never zero

Set the derivative to zero. e⁻ˣ > 0 always, so only the other factor can be zero. Use the original F for each height.
Worked example

Find and classify the stationary points of F.

  1. Solve F′(x) = 0
    e⁻ˣ·x(2 − x)=0x=0 or x = 2
  2. Find each height from F
    F(0)=0F(2)=4e⁻² = 4/e²
  1. Read the sign of F′ either side
    − then + at x=0: minimum+ then − at x=2: maximum
  2. Answer
    minimum (0, 0); maximum (2, 4/e²)
xx < 00 < x < 2x > 2
Sign of F′−+−
F isfallingrisingfalling

3Quotient rule: the denominator’s term comes first

Quotient ruleddx(uv)=vdudx−udvdxv2
The minus sign makes the order matter. Square the whole denominator, and v ≠ 0.
Worked example

The same curve is y=x2ex. Differentiate it with the quotient rule.

  1. u = x², v = eˣ
    du/dx=2xdv/dx=eˣ
  2. Substitute in order
    dy/dx=(eˣ·2x − x²·eˣ) ÷ (eˣ)²
  1. Cancel one eˣ
    dy/dx=(2x − x²) ÷ eˣ
  2. Answer
    dy/dx = e⁻ˣ(2x − x²), the same as the product rule

4Tangent and normal at a point

The point fixes where the line goes; the derivative fixes its slope. A normal is at right angles: its gradient is −1 ÷ (tangent gradient).
−0.200.20.40.60.8F(x) = x²e⁻ˣx0123456P (1, 1/e)tangentnormal
Worked example

Find the tangent and the normal to y = F(x) at x = 1.

  1. Point and gradient
    F(1)=1/eF′(1)=e⁻¹(2 − 1) = 1/e
  2. Tangent through (1, 1/e)
    y − 1/e=(1/e)(x − 1)y=x/e
  3. Normal: gradient −1 ÷ (1/e) = −e
    y − 1/e=−e(x − 1)
  4. Answer
    tangent y = x/e; normal y = −ex + e + 1/e
✓Check x = 1 gives y = 1/e on both lines

5Try it

Your turn

1 Differentiate y=x3ln(x).

2 Differentiate y=exx+1 with the quotient rule.

3 Find the stationary point of y=xe−2x.

  1. 1
    3x²ln x + x³(1/x) = 3x²ln x + x²
  2. 2
    ((x + 1)eˣ − eˣ)/(x + 1)² = xeˣ/(x + 1)²
  3. 3
    dy/dx = e⁻²ˣ(1 − 2x) = 0, so x = 1/2: the point (1/2, 1/(2e))
Tick what you can do now
Practise with s26/31 Q6(a); s26/22 Q4; s26/31 Q3
2 / 5
9709 · Unit 12 · Further differentiation
Revisionbyexamplicity

Parametric differentiation

§2.4 · §3.4 · Further differentiation · Papers 2 and 3

Some curves are easiest to describe as a journey. A point moves, and a parameter t says where it is at each moment: x and y both depend on t. To find the gradient, ask how fast each one changes with t, then divide.

1Gradient in terms of t

Parametric gradientdydx=dydt÷dxdt
Worked example

For x=t2+1, y=t3−3t, find dy/dx in terms of t.

  1. Differentiate both with respect to t
    dx/dt=2tdy/dt=3t² − 3
  2. Divide dy/dt by dx/dt
    dydx=3t2−32t
  3. Answer
    dydx=3t2−32t
At t = 0, dx/dt = 0 but dy/dt = −3: the curve is moving straight down at (1, 0). The tangent there is the vertical line x = 1. There is no finite gradient, so never divide by zero.

2Tangent and normal: find the point from t first

Worked example

Find the tangent and the normal at t = 2.

  1. Put t = 2 into x and y
    x=2² + 1 = 5y=2³ − 3(2) = 2
  2. Put t = 2 into dy/dx
    (3(4) − 3) ÷ (2(2))=9/4
  3. Tangent through (5, 2)
    y − 2=(9/4)(x − 5)9x − 4y − 37=0
  4. Normal: gradient −4/9
    y − 2=−(4/9)(x − 5)4x + 9y − 38=0
  5. Answer
    tangent 9x − 4y − 37 = 0; normal 4x + 9y − 38 = 0
0123456−4−3−2−101234x = t² + 1; y = t³ − 3txt = 0vertical tangent x = 1 at (1, 0)Ptangentnormal

3Turning points: dy/dt = 0, dx/dt ≠ 0

A horizontal tangent needs the top of the fraction to be zero and the bottom not. Find every t, then put each one into both x and y.
0123456−4−3−2−101234x = t² + 1; y = t³ − 3txt = −1: (2, 2)t = 1: (2, −2)(4, 0)
Worked example

Find the stationary points of the curve.

  1. Top of dy/dx is zero
    3t² − 3=0t=−1 or t = 1
  2. Put each t into x and y
    t=−1: (2, 2)t=1: (2, −2)
  3. Answer
    (2, 2) and (2, −2)
To classify, check dy/dx on each side, following the branch. Near t = −1 it goes + to −: (2, 2) is a maximum. Near t = 1 it goes − to +: (2, −2) is a minimum.

4Points where the gradient is given

Worked example

Find the points on the curve where the gradient is 3/2.

  1. Set dy/dx equal to 3/2 (t ≠ 0)
    (3t² − 3)/(2t)=3/23t² − 3=3t
  2. Solve the quadratic in t
    t² − t − 1=0t=(1 ± √5)/2
  1. Use t² = t + 1 to simplify x and y
    x=t² + 1 = t + 2y=t(t² − 3) = t(t − 2) = −t + 1
  2. Substitute each t into x = t + 2 and y = 1 − t
    t=(1 + √5)/2 or t = (1 − √5)/2
  3. Answer
    ((5 + √5)/2, (1 − √5)/2) and ((5 − √5)/2, (1 + √5)/2)

5Try it

Your turn

1 For x = t³, y = t² + 2t, find dy/dx in terms of t.

2 For x = 2t + 1, y = t² − 4t, find the stationary point.

3 For x = t², y = 2t, find the tangent at t = 1.

  1. 1
    (2t + 2)/(3t²)
  2. 2
    dy/dx = (2t − 4)/2 = 0 at t = 2: the point (5, −4)
  3. 3
    dy/dx = 2/(2t) = 1 at (1, 2): y = x + 1
Tick what you can do now
Practise with s26/21 Q6(a), Q6(b), Q6(c); s26/33 Q5(a), Q5(b); s26/32 Q5(b)
3 / 5
9709 · Unit 12 · Further differentiation
Revisionbyexamplicity

Implicit differentiation

§2.4 · §3.4 · Further differentiation · Papers 2 and 3

The oval x² + xy + y² = 7 has two values of y for most x, so it cannot be written as y = …. It still has a gradient. Differentiate every term with respect to x: each y-term picks up a factor dy/dx.

1Differentiate every term, then collect dy/dx

y² → 2y·dy/dx (chain rule). xy → x·dy/dx + y (product rule). A constant → 0.
Worked example

Find dy/dx for x2+xy+y2=7.

  1. Differentiate term by term
    2x + (x·dy/dx + y) + 2y·dy/dx=0
  2. Keep the dy/dx terms on one side
    (x + 2y)·dy/dx=−(2x + y)
  3. Divide (x + 2y ≠ 0)
    dydx=−(2x+y)x+2y
  4. Answer
    dydx=−(2x+y)x+2y
−4−3−2−101234−4−3−2−101234x² + xy + y² = 7xP (1, 2)
Treating y² as a constant, or differentiating xy as just y, forgets that y depends on x. The answer may contain both x and y.

2Gradient, tangent and normal at a point

Check that the point is on the curve, then put both coordinates into dy/dx.
−4−3−2−101234−4−3−2−101234x² + xy + y² = 7xP (1, 2)tangentnormal
Worked example

Find the tangent and the normal at P(1, 2).

  1. Check P is on the curve
    1 + 2 + 4=7
  2. Gradient at P
    −(2 + 2) ÷ (1 + 4)=−4/5
  3. Tangent through P
    y − 2=−(4/5)(x − 1)4x + 5y=14
  4. Normal: gradient 5/4
    y − 2=(5/4)(x − 1)5x − 4y + 3=0
  5. Answer
    tangent 4x + 5y = 14; normal 5x − 4y + 3 = 0

3ln y and trig terms: the same dy/dx factor

Inside a logarithm or a trig function, y still brings its chain factor: ln y → (1/y)·dy/dx, sin 2y → 2cos 2y·dy/dx. Angles are in radians.
Worked example

Find the gradient of ln y + xy = 2x at (0, 1).

  1. ln y and the product xy (y > 0)
    (1/y)·dy/dx + x·dy/dx + y=2
  2. Collect the dy/dx terms
    (1/y + x)·dy/dx=2 − y
  3. Answer
    (2 − 1) ÷ (1 + 0) = 1Check: ln 1 + 0 = 0. Then substitute.
Worked example

Find the gradient of x cos y + sin 2y = 1/2 + √3/2 at (1, π/3).

  1. Product rule on x cos y; chain rule on sin 2y
    cos y − x sin y·dy/dx + 2cos 2y·dy/dx=0
  2. cos(π/3) = 1/2, sin(π/3) = √3/2, cos(2π/3) = −1/2
    (1/2) − (√3/2)·dy/dx − dy/dx=0
  3. Answer
    dy/dx = 1/(2 + √3) = 2 − √3Rationalise the denominator.
Find the gradient of ln y + xy = 2x at (0, 1).
(1/y)·dy/dx + x·dy/dx + y = 2ln y and the product xy (y > 0).(1/y + x)·dy/dx = 2 − yCollect the dy/dx terms.(2 − 1) ÷ (1 + 0) = 1Check: ln 1 + 0 = 0. Then substitute.
Find the gradient of x cos y + sin 2y = 1/2 + √3/2 at (1, π/3).
cos y − x sin y·dy/dx + 2cos 2y·dy/dx = 0Product rule on x cos y; chain rule on sin 2y.(1/2) − (√3/2)·dy/dx − dy/dx = 0cos(π/3) = 1/2, sin(π/3) = √3/2, cos(2π/3) = −1/2.dy/dx = 1/(2 + √3) = 2 − √3Rationalise the denominator.

4Find unknown coefficients from a point and a gradient

Two facts give two equations: the point is on the curve, and the gradient there is known.
Worked example

The curve x² + Axy + By² = 7 passes through (1, 2), and its gradient there is −4/5. Find A and B.

  1. The point is on the curve
    1 + 2A + 4B=7A + 2B=3
  2. Differentiate implicitly
    dy/dx=−(2x + Ay) ÷ (Ax + 2By)
  1. Use the gradient at (1, 2)
    −(2 + 2A) ÷ (A + 4B)=−4/53A − 8B=−5
  2. Solve the pair
    A=3 − 2B, so 9 − 14B = −5
  3. Answer
    A = 1, B = 1: the curve is x² + xy + y² = 7
✓Check A + 4B = 5 ≠ 0, so the division was allowed

5Try it

Your turn

1 Find the gradient of x² + y² = 25 at (3, 4).

2 Find the gradient of x²y + y² = 12 at (2, 2).

3 Find the gradient of e²ʸ + xy = x at (1, 0).

  1. 1
    2x + 2y·dy/dx = 0, so dy/dx = −x/y = −3/4
  2. 2
    2xy + x²·dy/dx + 2y·dy/dx = 0: −8 ÷ 8 = −1
  3. 3
    2e²ʸ·dy/dx + y + x·dy/dx = 1: (1 − 0) ÷ (2 + 1) = 1/3
Tick what you can do now
Practise with m26/22 Q4; s26/35 Q2; s26/33 Q5(b) (related tangent practice); s26/32 Q7(a) (related inverse-gradient practice)
4 / 5
9709 · Unit 12 · Further differentiation
Revisionbyexamplicity

Arctangent differentiation [P3]

§3.4 · Further differentiation · Paper 3

Which angle has a tangent of 2? The answer is written arctan 2: arctan undoes tan. Its graph flattens towards π/2 and −π/2 without reaching them. Its gradient has a neat formula, and the chain rule works on it as usual.

1The rule, with its inner factor

Paper 3ddx(arctan x)=11+x2
Worked example

For y=arctan(2x), find dy/dx and the tangent at x = 1/2.

  1. Let u = 2x; multiply by du/dx = 2
    dydx=11+(2x)2×2
  2. Simplify
    dydx=21+4x2
  3. At x = 1/2
    y=arctan 1 = π/4gradient=2 ÷ (1 + 1) = 1
  4. Tangent through (1/2, π/4)
    y − π/4=x − 1/2
  5. Answer
    tangent y = x − 1/2 + π/4
−3−2−10123−2−1012y = arctan(2x)x(1/2, π/4)π/2−π/2
arctan(2x) is the angle whose tangent is 2x, in radians. It is not 1/tan(2x).

2arctan inside a product

Treat arctan like any other factor: one product-rule term for each factor.
Worked example

Find the gradient of J(x)=exarctan(2x) at x = 0.

  1. Product rule
    J′(x)=eˣ·arctan 2x + eˣ·2/(1 + 4x²)
  2. Substitute x = 0
    1(0) + 1(2)
  3. Answer
    J′(0) = 2

3Try it

Your turn

1 Differentiate y = arctan(3x).

2 Differentiate y = x arctan x.

3 Find the gradient of y = arctan(x/2) at x = 2.

  1. 1
    3/(1 + 9x²)
  2. 2
    arctan x + x/(1 + x²)
  3. 3
    (1/2) ÷ (1 + 1) = 1/4
Tick what you can do now
Practise with s26/32 Q6(a)
5 / 5