Home / IGCSE Mathematics 0580 / Differentiation
Cambridge IGCSE Mathematics 0580 · Algebra and graphs

Differentiation

How to find the gradient of a curve: first by drawing a tangent, then exactly by differentiating. You will learn the rule for axn, write dydx, find gradients and stationary points, and decide whether a stationary point is a maximum or a minimum.

E2.12Extended onlyFree lesson
What the syllabus says

E2.12 (Extended)

  • 1 Estimate gradients of curves by drawing tangents.
  • 2 Use the derivatives of functions of the form axn, where a is a rational constant and n is a positive integer or zero, and simple sums of not more than three of these.
  • 3 Apply differentiation to gradients and stationary points (turning points).
  • 4 Discriminate between maxima and minima by any method.

Notes and examples

  • dydx notation will be expected.
  • Maximum and minimum points may be identified by:
  • an accurate sketch
  • use of the second differential
  • inspecting the gradient either side of a turning point.
  • Candidates are not expected to identify points of inflection.

Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.

Gradient of a curve Extended

A straight line has the same gradient everywhere. A curve does not: it can be steep in one place and almost flat in another. The gradient of a curve at a point is the gradient of the tangent at that point, the straight line that just touches the curve there without cutting across it.

To estimate a gradient from a graph:

  1. Place a ruler so it touches the curve at the point and makes equal angles with the curve on either side. Draw the tangent long.
  2. Choose two points on your tangent that are far apart and easy to read, ideally on grid lines.
  3. Gradient =change in ychange in x, read from those two points.

A tangent that goes down from left to right has a negative gradient. Because everyone draws a slightly different tangent, an examiner accepts a range of answers for an estimate. A long tangent and points far apart keep your estimate inside that range.

xy−1123−2−11234567890y = x²tangentP

The tangent at P passes through (0,−1) and (2,3). Its gradient is 3−(−1)2−0=42=2, so the gradient of y=x2 at P is 2.

Worked example 1 Extended

The diagram shows the curve y=6x−x2 and the tangent drawn at the point where x=1. Use the tangent to estimate the gradient of the curve at this point.

xy123456123456789100(1, 5)
  1. Pick two points on the tangent that sit on grid lines and are far apart: (0,1) and (2,9).

  2. Change in y: 9−1=8. Change in x: 2−0=2.

  3. Gradient =82=4. The tangent slopes upwards, so the gradient is positive.

Answer: 4 (an estimate; any value close to this from a well drawn tangent is accepted)

Differentiating powers of x Extended

Drawing tangents to y=x2 at x=1, 2 and 3 gives gradients of 2, 4 and 6. The gradient is always 2x. Doing the same for y=x3 gives 3x2. The pattern is the rule of differentiation: it gives a formula for the gradient at any point, so you no longer need to draw anything.

The formula for the gradient is called the derivative, written dydx (say "d y by d x"). Cambridge expects this notation.

The rule. If y=axn, then dydx=naxn−1: multiply by the power, then reduce the power by 1.

  • y=5x3 gives dydx=15x2.
  • y=4x gives dydx=4, because 4x=4x1 and x0=1. A straight line has a constant gradient.
  • y=7 gives dydx=0, because y=7 is a horizontal line. A constant on its own always differentiates to 0.
  • y=13x3 gives dydx=x2. The constant a can be a fraction.

Sums. Differentiate term by term: y=2x3−5x+1 gives dydx=6x2−5.

Brackets first. The rule works on separate powers of x only. Expand any brackets before you differentiate: y=x(x+3)=x2+3x, so the derivative is 2x+3. Differentiating each bracket separately and multiplying is wrong.

In this course the powers are positive whole numbers or zero, and there are at most three terms.

Worked example 2 Extended

Find dydx when (a) y=4x3−5x2+7, (b) y=x(2x−5), (c) y=x42.

  1. (a) 4x3 becomes 3×4x2=12x2; −5x2 becomes 2×(−5)x=−10x; the constant 7 becomes 0.

  2. So dydx=12x2−10x.

  3. (b) Expand first: y=2x2−5x. Then dydx=4x−5.

  4. (c) x42=12x4, so dydx=4×12x3=2x3.

Answer: (a) 12x2−10x (b) 4x−5 (c) 2x3

Check yourself Extended

Find dydx when y=5x4−3x+8.

Answer it in the portal, where your answer is checked as you type →

The gradient at a point Extended

Once you have dydx, the gradient at any point is found by substituting the x-coordinate into it. Substitute into dydx, not into y: putting x into the equation of the curve gives the height of the curve, not its steepness.

The process also runs backwards. If you are told the gradient, set dydx equal to that value and solve for x. Then substitute x into the equation of the curve to find y, if the question asks for the point.

Worked example 3 Extended

A curve has equation y=x2−6x+2.
(a) Find the gradient of the curve at the point where x=1.
(b) Find the coordinates of the point on the curve where the gradient is 4.

  1. dydx=2x−6.

  2. (a) At x=1: dydx=2(1)−6=−4.

  3. (b) Set the gradient equal to 4: 2x−6=4, so 2x=10 and x=5.

  4. Find y from the equation of the curve: y=52−6(5)+2=25−30+2=−3.

Answer: (a) −4 (b) (5,−3)

Check yourself Extended

Find the gradient of the curve y=2x3−x2 at the point where x=−1.

Answer it in the portal, where your answer is checked as you type →

Stationary points Extended

A stationary point (or turning point) is a point where the gradient is zero: the tangent there is horizontal. At the top of a hill it is a maximum point; at the bottom of a valley it is a minimum point.

Method.

  1. Find dydx.
  2. Solve dydx=0 to find the x-coordinate of each stationary point.
  3. Substitute each x into the equation of the curve to find its y-coordinate.

A quadratic curve has one stationary point. A cubic curve such as y=x3−12x+5 usually has two, because its derivative is a quadratic, which can have two solutions.

Worked example 4 Extended

The curve y=x3−12x+5 has two stationary points. Find their coordinates and determine whether each is a maximum or a minimum.

  1. dydx=3x2−12.

  2. Stationary points: 3x2−12=0, so x2=4 and x=2 or x=−2.

  3. At x=2: y=8−24+5=−11. At x=−2: y=−8+24+5=21.

  4. Second derivative: d2ydx2=6x.

  5. At x=2: d2ydx2=12, which is positive, so (2,−11) is a minimum.

  6. At x=−2: d2ydx2=−12, which is negative, so (−2,21) is a maximum.

Answer: (−2,21) is a maximum and (2,−11) is a minimum

xy−4−3−2−11234−15−10−55101520250maximumminimum

The graph confirms Worked example 4: a hill at x=−2 and a valley at x=2, each with a horizontal tangent.

Maximum or minimum? Extended

You may use any of three methods. Show the one you use.

1. The second derivative. Differentiate dydx again to get d2ydx2, then substitute the x-coordinate of the stationary point.

  • d2ydx2>0: a minimum. The gradient is increasing as you pass through it, from negative to positive.
  • d2ydx2<0: a maximum. The gradient is decreasing, from positive to negative.

2. The gradient either side. Work out dydx at a value of x just below and just above the stationary point. Positive then negative (uphill, then downhill) means a maximum. Negative then positive means a minimum. Choose values close enough that no other stationary point lies between them.

3. An accurate sketch. You know the shapes: a quadratic with a positive x2 term is a U shape, so its stationary point is a minimum; with a negative x2 term it is a hill, so a maximum. A cubic with a positive x3 term has its maximum on the left and its minimum on the right.

You are not expected to identify points of inflection, so every stationary point you meet in this course will be a maximum or a minimum.

Worked example 5 Extended

Find the stationary point of y=5+8x−2x2 and use the gradient either side of it to decide whether it is a maximum or a minimum.

  1. dydx=8−4x. Setting 8−4x=0 gives x=2.

  2. y=5+8(2)−2(2)2=5+16−8=13, so the stationary point is (2,13).

  3. At x=1: dydx=8−4=4, positive.

  4. At x=3: dydx=8−12=−4, negative.

  5. The gradient goes from positive to negative: uphill, then downhill. So (2,13) is a maximum. This agrees with the shape, as the x2 term is negative.

Answer: (2,13), a maximum

Check yourself Extended

Find the coordinates of the turning point of y=x2−10x+7.

Answer it in the portal, where your answer is checked as you type →

Using differentiation in a problem Extended

Many exam questions ask for the largest or smallest value of a quantity: the biggest area, the least cost. Write the quantity as a formula in one letter, differentiate, and set the derivative equal to zero. The letters may not be x and y: if the area is A and the length is x, the derivative is written dAdx.

Always answer the question that was asked. If it asks for the maximum area, the value of x is only a step on the way; substitute it back to find the area, and show that it really is a maximum.

Worked example 6 Extended

A gardener has 60 m of fencing to make a rectangular enclosure against a long wall, so only three sides need fencing. The two sides at right angles to the wall are each x m. Find the maximum area of the enclosure.

  1. The side parallel to the wall is 60−2x m, because the other two sides use 2x m.

  2. Area A=x(60−2x)=60x−2x2.

  3. dAdx=60−4x. Setting 60−4x=0 gives x=15.

  4. A=60(15)−2(15)2=900−450=450.

  5. d2Adx2=−4, which is negative, so this is a maximum.

Answer: 450m2

Check yourself Extended

For the curve y=x3−6x2+5, find the value of d2ydx2 at the stationary point where x=4.

Answer it in the portal, where your answer is checked as you type →

Key points

  • The gradient of a curve at a point is the gradient of the tangent there. A drawn tangent gives an estimate; differentiation gives the exact value.

  • If y=axn then dydx=naxn−1. A term in x becomes a number, and a constant becomes 0. Expand brackets first.

  • Gradient at a point: substitute x into dydx, not into y.

  • Stationary points: solve dydx=0, then find y from the equation of the curve.

  • Maximum or minimum: d2ydx2<0 is a maximum and d2ydx2>0 is a minimum; or check the gradient either side; or use the shape of the curve.

Where marks are lost Extended

  • Keeping the constant term: y=x2+5 gives dydx=2x, not 2x+5.

  • Reducing the power but forgetting to multiply by it, or the other way round: 3x4 becomes 12x3.

  • Differentiating a product of brackets bracket by bracket. Expand first.

  • Substituting into y when the question asks for the gradient, or into dydx when it asks for the y-coordinate.

  • Finding only the x-coordinate when the question asks for the coordinates of a stationary point.

  • Stating maximum or minimum with no reason. Show the second derivative, the gradients either side, or a reason from the shape.

  • Stopping at the value of x in a problem when the question asks for the maximum area or the least cost.

Related IGCSE Mathematics 0580 lessons

All IGCSE Mathematics 0580 lessons →

An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.