dy/dx
x²
2x
f′(x)
Mathematics Ā· WASSCE + Cambridge O Level + IB + North America

Differentiation

Find the gradient of a curve at any point with the power rule, then use it to write the equations of tangents and normals.

ā± about 55 minšŸŽÆ 0 hands-on activitiesšŸƒ 20 flashcardsšŸ“Š 2 infographicsšŸŽ› 1 live explorer
⚔

Before you start

Your starting line

What you need: a pencil, an exercise book, graph paper and a calculator.

What you should already know: the gradient of a straight line and the equation of a line (Lessons 26 and 27), indices including negative and fractional powers (Lesson 7), and expanding brackets (Lesson 15).

By the end of this lesson you will be able to āœ” explain what the gradient of a curve at a point means
āœ” differentiate terms such as axn with the power rule
āœ” rewrite roots and fractions as powers, and expand brackets, before differentiating
āœ” find the gradient of a curve at a given point, and the point where the gradient has a given value
āœ” find the equation of a tangent and of a normal to a curve
ChallengeKadiatu rolls a ball down a ramp. After t seconds it has travelled t² metres. In the first 2 seconds it covers 4 m, an average of 2 m/s, but it keeps speeding up. How fast is it moving at exactly 2 seconds? An average cannot tell you. By the end of this lesson you will find the answer, 4 m/s, with one quick rule.
How this lesson fitsThis is the first lesson in the Calculus module. Differentiation measures how fast one quantity changes compared with another. It is used in physics, economics and engineering, and the next lesson uses it to find maximum and minimum values.
šŸŽš Learning mode
Look for this signWhat it means
šŸ“Š InfographicA picture that explains the idea. Study it before reading the words.
šŸŽ› Live explorerChange the numbers and watch the answer change.
ā–¶ Show next stepPredict the move first, then tap to check yourself.
🧠 Explain it to yourselfAnswer in your own words before opening the model answer.
1

The gradient of a curve

Steepness that changes from point to point

A straight line has one gradient, found by rise divided by run (Lesson 26). A curve bends, so its steepness is different at different points. The gradient of a curve at a point is the gradient of the tangent there: the straight line that just touches the curve at that point and points the same way as the curve.

To find it, we cannot use rise over run on a single point. Instead we take a second point Q close to P and find the gradient of the chord PQ, the straight line joining them. As Q slides closer to P, the chord turns to lie along the tangent, and its gradient settles on the answer.

šŸ“Š Infographic 1 Ā· Chords closing in on the tangent

y = x²: chords from P closing in on the tangent P (1, 1) Chord to x = 3: gradient 4 Chord to x = 2: gradient 3 Chord to x = 1.5: gradient 2.5 Tangent at P: gradient 2
The chord gradients 4, 3 and 2.5 shrink as Q moves towards P, and close in on 2. The gradient of the curve at P is the gradient of the tangent, which is 2.
Worked example 1: find the gradient of the chord from P(1, 1) to Q on y = x² where x = 1.1, and then where x = 1.01
1
Q = (1.1, 1.21)
Square 1.1 to find the y-coordinate of Q.
2
Gradient = (1.21 āˆ’ 1) Ć· (1.1 āˆ’ 1) = 0.21 Ć· 0.1 = 2.1
Change in y divided by change in x.
3
Q = (1.01, 1.0201) and gradient = 0.0201 Ć· 0.01 = 2.01
Move Q even closer and repeat.
4
The gradients 2.1 and 2.01 are heading for 2
The closer Q is to P, the closer the chord gradient is to the tangent gradient.
About 2.1, then 2.01. The gradient at P is 2. M1 A1 A1

The derivative

The gradient of the curve y = f(x) at any point is written dy/dx or f′(x). It is a formula in x, called the derivative or gradient function, and finding it is called differentiation. Read dy/dx as ā€œthe gradient of y with respect to xā€. It is one symbol, not a fraction.

We can find the derivative of y = x² exactly. Take a gap of h along the x-axis and let h shrink.

Worked example 2: use chords to find the gradient of y = x² at any point x
1
Take P with x-coordinate x and Q with x-coordinate x + h
The y-coordinates are x² and (x + h)².
2
Chord gradient = [(x + h)² āˆ’ x²] Ć· h
Change in y divided by change in x, which is h.
3
= (x² + 2xh + h² āˆ’ x²) Ć· h = (2xh + h²) Ć· h
Expand the bracket and cancel the x² terms.
4
= 2x + h
Divide the top by h.
5
As h shrinks towards 0, the gradient tends to 2x
The leftover h becomes negligible.
dy/dx = 2x. At x = 1 this gives 2, matching the chords. M1 M1 A1
🧠 Explain it to yourself: why does the chord gradient get closer to the tangent gradient as Q moves towards P?

Model answer: The chord and the tangent both pass through P. When Q is far away, the chord cuts across the curve and its slope is quite different. As Q slides towards P, the chord turns and lines up with the direction of the curve at P, which is the tangent. So its gradient settles on the gradient of the tangent.

2

The power rule

Differentiate in two quick steps

The result for x² is one case of a general rule. For any number n:

if y = axn then dy/dx = anxnāˆ’1

In words: multiply by the power, then reduce the power by 1. So x⁓ becomes 4x³, and x² becomes 2x, as we found. For 7x, which is 7x¹, the rule gives 7 Ɨ 1 Ɨ x⁰ = 7. A constant such as 9 has gradient 0, because the graph y = 9 is a horizontal line. Differentiate sums and differences term by term.

Worked example 3: differentiate (a) y = x⁓, (b) y = 5x³, (c) y = 7x, (d) y = 9
1
(a) x⁓ → 4x³
Multiply by 4, then reduce the power from 4 to 3.
2
(b) 5x³ → 5 Ɨ 3x² = 15x²
The 5 stays and multiplies the 3.
3
(c) 7x → 7
x is x¹, so 7 Ɨ 1 Ɨ x⁰ = 7.
4
(d) 9 → 0
A constant has zero gradient.
4x³, 15x², 7 and 0 B1 B1 B1 B1
Worked example 4: differentiate y = 3x⁓ āˆ’ 2x² + 5x āˆ’ 8
1
3x⁓ → 3 Ɨ 4x³ = 12x³
Multiply by the power, reduce the power.
2
āˆ’2x² → āˆ’2 Ɨ 2x = āˆ’4x
Keep the minus sign with the term.
3
5x → 5
The x disappears.
4
āˆ’8 → 0
The constant disappears.
dy/dx = 12x³ āˆ’ 4x + 5 M1 A1 A1
Worked example 5: Kadiatu’s ball travels s = t² metres in t seconds. Find its speed when t = 2 and when t = 5
1
Speed = ds/dt
Speed is the gradient of the distance-time graph, so differentiate distance with respect to time.
2
s = t², so ds/dt = 2t
Power rule.
3
When t = 2: 2 Ɨ 2 = 4 m/s
Substitute t = 2.
4
When t = 5: 2 Ɨ 5 = 10 m/s
Substitute t = 5.
4 m/s and 10 m/s. The ball is speeding up. M1 A1 A1

Roots and fractions

The power rule needs each term in the form axn. Use indices (Lesson 7) to rewrite first: 1/x = xāˆ’1, 1/x² = xāˆ’2, √x = x1/2 and 1/√x = xāˆ’1/2.

Worked example 6: differentiate y = 4√x + 6/x²
1
4√x = 4x1/2 and 6/x² = 6xāˆ’2
Rewrite as powers first.
2
4x1/2 → 4 Ɨ (1/2) xāˆ’1/2 = 2xāˆ’1/2
Multiply by 1/2, then reduce the power: 1/2 āˆ’ 1 = āˆ’1/2.
3
6xāˆ’2 → 6 Ɨ (āˆ’2) xāˆ’3 = āˆ’12xāˆ’3
Reduce the power: āˆ’2 āˆ’ 1 = āˆ’3.
dy/dx = 2xāˆ’1/2 āˆ’ 12xāˆ’3, which is 2/√x āˆ’ 12/x³ M1 M1 A1

Expand before you differentiate

The power rule works on single terms. If the expression is a product in brackets, or a fraction with one term on the bottom, turn it into separate terms first.

Worked example 7: differentiate (a) y = (2x + 3)(x āˆ’ 1), (b) y = (x³ + 5x²) Ć· x
1
(a) (2x + 3)(x āˆ’ 1) = 2x² āˆ’ 2x + 3x āˆ’ 3 = 2x² + x āˆ’ 3
Expand first, then collect like terms.
2
dy/dx = 4x + 1
2x² → 4x, x → 1 and āˆ’3 → 0.
3
(b) (x³ + 5x²) ÷ x = x² + 5x
Divide each term by x.
4
dy/dx = 2x + 5
Power rule on each term.
4x + 1 and 2x + 5 M1 A1 M1 A1
Brackets are not differentiated one at a time(2x + 3)(x āˆ’ 1) does not differentiate to 2 Ɨ 1 = 2. A product is not differentiated factor by factor. Expand it into separate terms first, as in the example above.
🧠 Explain it to yourself: why does the derivative of a constant equal zero?

Model answer: A constant such as 8 is the horizontal line y = 8, and a horizontal line has gradient 0 everywhere. Adding a constant to a curve only slides it up or down. It does not change how steep the curve is, so the gradient is unchanged and the constant contributes nothing to dy/dx.

3

Gradient at a point

Substitute x into the gradient function

Once you have dy/dx, the gradient at any point is found by substituting the x-value into dy/dx. Use the original equation y = f(x) only when you need the y-coordinate.

Worked example 8: find the gradient of y = x³ āˆ’ 4x at x = 2 and at x = āˆ’1
1
dy/dx = 3x² āˆ’ 4
Power rule on each term.
2
At x = 2: 3(2)² āˆ’ 4 = 12 āˆ’ 4 = 8
Substitute into dy/dx.
3
At x = āˆ’1: 3(āˆ’1)² āˆ’ 4 = 3 āˆ’ 4 = āˆ’1
Square āˆ’1 first: (āˆ’1)² = 1.
The gradients are 8 and āˆ’1. M1 A1 A1

šŸŽ› Live explorer Ā· The gradient finder

The curve is y = a Ɨ x to the power n. Choose a, n and x. Try a = 3, n = 4, x = 2, then a = 1, n = 2, x = āˆ’1, then a = 12, n = āˆ’1, x = 2.

The gradient formula is a Ɨ n Ɨ x to the power (n āˆ’ 1). The tangent passes through the point on the curve and has exactly that gradient.

Increasing and decreasing

The sign of the gradient tells you which way the curve is heading. A positive gradient means the curve rises as x increases: it is increasing. A negative gradient means it falls: it is decreasing. The size of the gradient tells you how steep it is.

Worked example 9: for y = x² āˆ’ 8x, say whether the curve is increasing or decreasing at x = 2 and at x = 6
1
dy/dx = 2x āˆ’ 8
Power rule on each term.
2
At x = 2: 2(2) āˆ’ 8 = āˆ’4
Negative, so the curve is decreasing.
3
At x = 6: 2(6) āˆ’ 8 = 4
Positive, so the curve is increasing.
Decreasing at x = 2 and increasing at x = 6. M1 A1 A1

Working backwards: where is the gradient a given value?

Sometimes you are told the gradient and asked for the point. Set dy/dx equal to the given value and solve for x. Then use the curve to find y.

Worked example 10: find the point on y = x² āˆ’ 6x + 5 where the gradient is 2
1
dy/dx = 2x āˆ’ 6
Power rule on each term.
2
2x āˆ’ 6 = 2
Set the gradient function equal to 2.
3
x = 4
Solve.
4
y = 4² āˆ’ 6(4) + 5 = 16 āˆ’ 24 + 5 = āˆ’3
Use the curve, not dy/dx, to find y.
The point is (4, āˆ’3). M1 M1 A1
Worked example 11: find the points on y = x³ āˆ’ 3x² where the gradient is 9
1
dy/dx = 3x² āˆ’ 6x
Power rule on each term.
2
3x² āˆ’ 6x = 9, so x² āˆ’ 2x āˆ’ 3 = 0
Set equal to 9, collect on one side and divide by 3.
3
(x āˆ’ 3)(x + 1) = 0, so x = 3 or x = āˆ’1
Factorise (Lesson 15) and solve. There are two solutions.
4
x = 3: y = 27 āˆ’ 27 = 0. x = āˆ’1: y = āˆ’1 āˆ’ 3 = āˆ’4
Substitute each x into the curve.
The points are (3, 0) and (āˆ’1, āˆ’4). M1 M1 A1 A1
Two functions, two jobsdy/dx gives gradients. The original equation y = f(x) gives coordinates. Say which one you are using each time, and you will not mix them up.
🧠 Explain it to yourself: why does a negative gradient mean the curve is falling?

Model answer: The gradient is the change in y for each step to the right. If it is negative, y decreases as you move right, so the curve slopes downhill from left to right. At x = 2 on y = x² āˆ’ 8x the gradient is āˆ’4, so each small step right takes the curve down about 4 times as far.

4

Tangents and normals

A line that touches and a line at right angles

To find the equation of the tangent at a point P on a curve you need the point and the gradient. (1) Find the y-coordinate of P from the curve. (2) Find the gradient m by substituting into dy/dx. (3) Use y āˆ’ y1 = m(x āˆ’ x1) from Lesson 27.

The normal at P is the straight line through P at right angles to the tangent. Perpendicular gradients multiply to āˆ’1 (Lesson 27), so if the tangent has gradient m, the normal has gradient āˆ’1/m, the negative reciprocal.

šŸ“Š Infographic 2 Ā· Tangent and normal at a point

Tangent and normal at P(3, 2) on y = x² āˆ’ 4x + 5 P (3, 2) Tangent Normal Tangent: gradient 2, equation y = 2x āˆ’ 4 Normal: gradient āˆ’1/2, equation x + 2y = 7
The tangent just touches the curve at P and has the curve’s gradient, 2. The normal crosses it at a right angle, so its gradient is āˆ’1/2. Tangent: y = 2x āˆ’ 4. Normal: x + 2y = 7.
Worked example 12: find the equation of the tangent to y = x² āˆ’ 4x + 5 at the point where x = 3
1
y = 3² āˆ’ 4(3) + 5 = 9 āˆ’ 12 + 5 = 2
The point is P(3, 2). Use the curve for y.
2
dy/dx = 2x āˆ’ 4, so m = 2(3) āˆ’ 4 = 2
Use the derivative for the gradient.
3
y āˆ’ 2 = 2(x āˆ’ 3)
The line through P with gradient 2.
4
y = 2x āˆ’ 4
Expand 2(x āˆ’ 3) = 2x āˆ’ 6, then add 2.
y = 2x āˆ’ 4 M1 M1 A1
Worked example 13: find the equation of the normal to the same curve at the same point, in the form x + by = c
1
Tangent gradient 2, so normal gradient = āˆ’1/2
Take the negative reciprocal: flip it and change the sign.
2
y āˆ’ 2 = āˆ’(1/2)(x āˆ’ 3)
The line through P(3, 2) with gradient āˆ’1/2.
3
2y āˆ’ 4 = āˆ’(x āˆ’ 3) = āˆ’x + 3
Multiply both sides by 2 to clear the fraction.
4
x + 2y = 7
Collect x and y on the left. Check: 3 + 2(2) = 7.
x + 2y = 7 B1 M1 A1
Worked example 14: find the tangent to y = 2x³ āˆ’ 5x at the point where x = 1, and the point where the tangent crosses the y-axis
1
y = 2(1) āˆ’ 5 = āˆ’3, so P is (1, āˆ’3)
Use the curve for the y-coordinate.
2
dy/dx = 6x² āˆ’ 5, so m = 6 āˆ’ 5 = 1
Use the derivative for the gradient.
3
y + 3 = 1(x āˆ’ 1), so y = x āˆ’ 4
The line through P with gradient 1.
4
On the y-axis x = 0, so y = āˆ’4
Use the tangent line, not the curve.
Tangent y = x āˆ’ 4, crossing the y-axis at (0, āˆ’4) M1 M1 A1 A1
Worked example 15: find the tangent and the normal to y = 12/x at the point where x = 2
1
y = 12xāˆ’1, so dy/dx = āˆ’12xāˆ’2 = āˆ’12/x²
Rewrite as a power, then differentiate.
2
When x = 2: y = 6 and m = āˆ’12/4 = āˆ’3
The point is P(2, 6).
3
Tangent: y āˆ’ 6 = āˆ’3(x āˆ’ 2), so y = āˆ’3x + 12
The line through P with gradient āˆ’3.
4
Normal gradient = 1/3, so y āˆ’ 6 = (1/3)(x āˆ’ 2)
The negative reciprocal of āˆ’3 is 1/3.
5
3y āˆ’ 18 = x āˆ’ 2, so x āˆ’ 3y + 16 = 0
Multiply by 3, then collect the terms on one side.
Tangent y = āˆ’3x + 12. Normal x āˆ’ 3y + 16 = 0. M1 A1 M1 A1 A1
Tangent and normal are different linesThe tangent uses the gradient m. The normal uses āˆ’1/m. Both pass through the same point P. If you use m for the normal, you have drawn the tangent again.
🧠 Explain it to yourself: why is the gradient of the normal āˆ’1/m?

Model answer: The normal is perpendicular to the tangent, and perpendicular gradients multiply to āˆ’1. If the tangent rises 1 for every 2 steps right (gradient 1/2), a line at right angles falls 2 for every 1 step right (gradient āˆ’2). Check: (1/2) Ɨ (āˆ’2) = āˆ’1. So the normal gradient is āˆ’1 divided by m.

5

Exam practice and errors

Questions in the style of WASSCE, Cambridge and IB

Common errors, side by side

Wrong: d/dx of 5x³ = 5x²
Right: Multiply by the power too: 5 Ɨ 3x² = 15x².
Wrong: d/dx of (x² + 7) = 2x + 7
Right: A constant differentiates to 0, so the derivative is 2x.
Wrong: d/dx of 1/x² = 1/(2x)
Right: Rewrite as xāˆ’2 first. The derivative is āˆ’2xāˆ’3 = āˆ’2/x³.
Wrong: (2x + 3)(x āˆ’ 1) differentiates to 2 Ɨ 1 = 2
Right: Expand first: 2x² + x āˆ’ 3, so dy/dx = 4x + 1.
Wrong: Gradient at x = 3: put x = 3 into y
Right: Put x = 3 into dy/dx. Putting it into y gives the y-coordinate.
Wrong: Normal gradient = āˆ’m
Right: Normal gradient = āˆ’1/m, the negative reciprocal. If m = 2 it is āˆ’1/2.

Exam-style questions with mark schemes

Cover the solution, try each question, then compare. M is a method mark, A is an accuracy mark that depends on the method, and B is an independent mark. Mistakes that carry forward can still earn follow-through marks.

Question 1 (7 marks): (a) Differentiate y = 2x³ āˆ’ 5x² + 4x āˆ’ 7. (b) Find the gradient of this curve at x = 2. (c) Differentiate y = 6√x āˆ’ 12/x.
1
(a) 2 Ɨ 3x² = 6x²
M1: multiplying by the power and reducing the power by 1.
2
dy/dx = 6x² āˆ’ 10x + 4
A1: all terms correct, and the constant āˆ’7 has disappeared.
3
(b) 6(2)² āˆ’ 10(2) + 4
M1: substituting x = 2 into dy/dx, not into y.
4
= 24 āˆ’ 20 + 4 = 8
A1: the gradient is 8.
5
(c) y = 6x1/2 āˆ’ 12xāˆ’1
M1: rewriting the root and the fraction as powers.
6
dy/dx = 3xāˆ’1/2 + 12xāˆ’2
M1: differentiating each term. A1: both terms correct, with āˆ’12 Ɨ (āˆ’1) = +12.
Why students score marks hereThey multiply by the power and reduce it by one in the same step, term by term, and the constant disappears. They put x = 2 into dy/dx and not into y. They rewrite √x and 1/x as powers before differentiating, and watch the sign: the derivative of āˆ’12xāˆ’1 is +12xāˆ’2.
Why students lose marks hereThey forget to multiply by the power, writing 5x instead of 10x. They keep the constant āˆ’7. They put x = 2 into the curve, which gives the y-coordinate āˆ’3 and not the gradient. They differentiate 1/x as if it were x, or lose the sign in part (c).
Question 2 (7 marks): the curve y = x² āˆ’ 3x + 4 passes through the point P(3, 4). (a) Find dy/dx. (b) Find the gradient of the curve at P. (c) Find the equation of the tangent at P. (d) Find the equation of the normal at P, in the form ax + by + c = 0 with whole-number coefficients.
1
(a) dy/dx = 2x āˆ’ 3
B1: correct derivative, with the constant 4 gone.
2
(b) At x = 3: 2(3) āˆ’ 3 = 3
B1: the gradient of the tangent at P.
3
(c) y āˆ’ 4 = 3(x āˆ’ 3)
M1: a line through P with gradient 3.
4
y = 3x āˆ’ 5
A1: simplified correctly.
5
(d) Normal gradient = āˆ’1/3
B1: the negative reciprocal of 3.
6
y āˆ’ 4 = āˆ’(1/3)(x āˆ’ 3), so 3y āˆ’ 12 = āˆ’x + 3
M1: a line through P with the normal gradient, with the fraction cleared.
7
x + 3y āˆ’ 15 = 0
A1: the required form. Check: 3 + 12 āˆ’ 15 = 0.
Why students score marks hereThey use dy/dx for the gradient and the point P for the line. They take the negative reciprocal for the normal, and clear the fraction by multiplying every term by 3. They check that P satisfies both final equations.
Why students lose marks hereThey use the gradient 3 for the normal as well as the tangent. They change the sign only, giving āˆ’3, or flip only, giving 1/3. They leave a fraction in the answer when whole numbers are asked for. They give y = 3x āˆ’ 5 without showing the line through P.
Question 3 (8 marks): a curve has equation y = x³ āˆ’ 6x² + 9x. (a) Find dy/dx. (b) Find the coordinates of the points on the curve where the gradient is 9. (c) Find the gradient at x = 1.5, and say whether the curve is increasing or decreasing there.
1
(a) dy/dx = 3x² āˆ’ 12x + 9
M1 A1: each term multiplied by its power and reduced by 1, with no constant.
2
(b) 3x² āˆ’ 12x + 9 = 9
M1: setting the gradient function equal to 9.
3
3x² āˆ’ 12x = 0, so 3x(x āˆ’ 4) = 0, x = 0 or x = 4
A1: both values of x. Dividing by x would lose x = 0.
4
x = 0: y = 0. x = 4: y = 64 āˆ’ 96 + 36 = 4
M1: substituting back into the curve, not into dy/dx.
5
The points are (0, 0) and (4, 4)
A1: both points, with both coordinates.
6
(c) 3(2.25) āˆ’ 12(1.5) + 9 = 6.75 āˆ’ 18 + 9 = āˆ’2.25
M1: substituting x = 1.5 into dy/dx.
7
The gradient is negative, so the curve is decreasing
A1: the value āˆ’2.25 and the correct conclusion.
Why students score marks hereThey differentiate first, then factorise the quadratic and keep both solutions. They put each x back into the original curve to find y. They read the sign of the gradient to decide whether the curve is rising or falling.
Why students lose marks hereThey divide both sides by x and lose x = 0. They give only the x-values when the question asks for coordinates. They substitute into the curve instead of dy/dx to find the gradient. They say the curve is increasing because the y-value is positive, instead of using the sign of the gradient.
Five exam habits āœ” Say the rule as you write it: multiply by the power, then take one off the power.
āœ” Rewrite roots and fractions as powers, and expand brackets, before you differentiate.
āœ” Use dy/dx for gradients and the original equation for coordinates. Label which is which.
āœ” For a tangent write y āˆ’ y1 = m(x āˆ’ x1). For a normal use the negative reciprocal of m.
āœ” Check the sign of your gradient against a quick sketch: positive rises, negative falls.
6

Check

Test yourself without looking back

Recap checklist

Up nextYou can now find the gradient of a curve at any point. The next lesson uses it to find turning points, maximum and minimum values, and rates of change in real problems.
šŸƒ

Flashcards

20 cards that test only today’s lesson

Tap the card to turn it over. Choose ā€œGot itā€ only if you could have said the answer aloud. Use the arrow keys to move.

šŸŽ‰ Lesson done?

Back to the top