Home / AS & A Level Mathematics 9709 / Numerical solution of equations
Cambridge International AS & A Level Mathematics 9709 · Pure Mathematics 3

Numerical solution of equations

Locating a root of an equation from graphs or a change of sign, the notation of a sequence of approximations converging to a root, and using an iterative formula xn+1=F(xn) to find a root to a stated accuracy, including recognising when an iteration fails to converge.

3.6Paper 3: Pure Mathematics 3Free lesson
What the syllabus says

3.6 (Paper 3)

  • locate approximately a root of an equation, by means of graphical considerations and/or searching for a sign change
  • understand the idea of, and use the notation for, a sequence of approximations which converges to a root of an equation
  • understand how a given simple iterative formula of the form xn+1=F(xn) relates to the equation being solved, and use a given iteration, or an iteration based on a given rearrangement of an equation, to determine a root to a prescribed degree of accuracy.

Notes and examples

  • e.g. finding a pair of consecutive integers between which a root lies.
  • Knowledge of the condition for convergence is not included, but an understanding that an iteration may fail to converge is expected.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

Why numerical methods Paper 3

Many equations that arise naturally cannot be solved by algebra. There is no rearrangement that gives x exactly from x=2sinx, from ex=4−x2, or from xex=4. A numerical method finds a root to whatever accuracy is needed, in two stages:

  1. locate the root roughly, from a sketch or by a change of sign;
  2. improve the estimate with an iterative formula until it is accurate enough.

Exam questions on this topic are usually structured in exactly that order, and often begin with a problem from elsewhere in the course (a stationary point, an area, a sector) that leads to the equation. All the work is done with a calculator, in radians for any trigonometry.

Locating a root from a graph Paper 3

Rearrange the equation as g(x)=h(x), where both sides have graphs you can sketch. Each point where the two graphs cross gives a root, so the sketch shows how many roots there are and roughly where they are.

For ex=4−x2, sketch y=ex and y=4−x2. The exponential curve is always positive and increasing; the parabola has its vertex at (0,4) and crosses the x-axis at ±2. They cross twice, once for negative x and once for positive x, so the equation has exactly two roots.

A sketch for this purpose needs the right shapes, the key intercepts, and the intersections clearly visible. It does not need to be drawn to scale, but your reasoning about how many times the graphs cross must be convincing.

xy−3−2−112−1123450y = e^xy = 4 - x^2

Two intersections: the equation ex=4−x2 has two roots.

Locating a root by a change of sign Paper 3

Write the equation as f(x)=0. If f is continuous between a and b, and f(a) and f(b) have opposite signs, then the graph of y=f(x) must cross the x-axis somewhere between them, so there is a root between a and b.

Show the working the examiner wants: the two values, a statement of the change of sign, and the conclusion. For example: f(1)=−0.282<0 and f(1.5)=2.73>0; there is a change of sign and f is continuous, so the root lies between 1 and 1.5. Give each value to 2 or 3 significant figures, enough to make the sign clear.

To find a pair of consecutive integers between which a root lies, evaluate f at 0,1,2,… (or −1,−2,…) until the sign changes.

The test can mislead in two ways:

  • A sign change with no root. f(x)=1x−2 changes sign between 1 and 3, but has no root: it is not continuous at x=2.
  • A root with no sign change. If the curve only touches the axis, as (x−3)2 does at 3, or crosses twice between a and b, then f(a) and f(b) have the same sign.

Worked example 1 Paper 3

Let f(x)=ex+x2−4. (a) Show that the equation f(x)=0 has a root between 1 and 1.5. (b) Find the pair of consecutive integers between which the negative root lies.

  1. (a) f(1)=e+1−4=−0.282 and f(1.5)=e1.5+2.25−4=2.73.

  2. The sign changes and f is continuous, so there is a root between 1 and 1.5.

  3. (b) f(−1)=e−1+1−4=−2.63 and f(−2)=e−2+4−4=0.135.

  4. The sign changes, so the negative root lies between −2 and −1.

Answer: (b) Between −2 and −1

Check yourself Paper 3

The equation x3+2x−15=0 has one real root. Find the integer n such that the root lies between n and n+1.

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

Iterative formulae Paper 3

An iterative formula xn+1=F(xn) builds a sequence of approximations x1,x2,x3,… from a starting value x1: put x1 into F to get x2, put x2 in to get x3, and so on. If the terms get closer and closer to a number α, the sequence converges to α.

Why the limit is a root. When the sequence has settled, xn and xn+1 are both essentially α, so the formula becomes α=F(α). The limit is a root of the equation x=F(x). So:

  • given an iterative formula, the equation it solves is found by replacing xn+1 and xn by x;
  • given an equation, rearrange it into the form x=F(x) to make a formula.

For example, x3+5x−20=0 can be rearranged as x=20−5x3, or as x=20−x35. Each gives an iterative formula, and they behave very differently, as the section on failure shows.

On a calculator, type the starting value and press equals, then type the formula using the answer key in place of xn. Each press of equals gives the next term.

Worked example 2 Paper 3

The sequence defined by xn+1=2xn3+4xn2, with x1=2, converges to α. (a) Find x2 and x3, giving x3 correct to 4 decimal places. (b) Find the exact value of α.

  1. (a) x2=43+44=73=2.3333.

  2. x3=23×73+4(73)2=149+3649=2.2902 (to 4 decimal places).

  3. (b) The limit satisfies α=2α3+4α2.

  4. So α3=4α2, which gives α3=12 and α=123.

Answer: (a) x2=2.3333, x3=2.2902 (b) 123

Finding a root to a given accuracy Paper 3

To find a root correct to a stated number of decimal places:

  1. start from the given x1, or a value from your sign-change work;
  2. write down each iterate to at least two more decimal places than the answer needs (questions often ask you to show the result of each iteration to 4 decimal places);
  3. stop when successive iterates agree when rounded to the required accuracy, and state the root to that accuracy.

Do not round between steps: carry the full calculator value forward and only round what you write down. If the iterates are still changing in the deciding digit, keep going. To be certain of a 2 decimal place answer such as 1.90, you can also check that f(1.895) and f(1.905) have opposite signs, which shows the root lies in the interval that rounds to 1.90.

Give the answer to exactly the accuracy asked: 2.310, not 2.31, when 3 decimal places are required.

Worked example 3 Paper 3

The equation x=2sinx has a root α with α>0. (a) By sketching suitable graphs, show that there is only one positive root. (b) Show that α lies between 1.5 and 2. (c) Use the iterative formula xn+1=2sinxn with x1=1.9 to find α correct to 2 decimal places, showing each iteration to 4 decimal places.

  1. (a) Sketch y=sinx and y=12x. The line rises above 1 once x>2, while sinx⩽1, so for x>0 they cross only once, between 0 and 2 (the origin gives the root 0, which is not positive).

  2. (b) Let f(x)=2sinx−x. f(1.5)=0.495>0 and f(2)=−0.181<0. The sign changes and f is continuous, so 1.5<α<2.

  3. (c) In radians: x2=1.8926, x3=1.8973, x4=1.8943, x5=1.8962, x6=1.8950, x7=1.8958, x8=1.8953.

  4. The iterates are on both sides of 1.895, so check: f(1.895)=0.0008>0 and f(1.905)=−0.0157<0.

  5. So α lies between 1.895 and 1.905: α=1.90 to 2 decimal places.

Answer: (c) α=1.90

When an iteration fails Paper 3

An iteration does not always converge, and you are expected to recognise this. You are not expected to know a test for convergence.

Picture it on a graph of y=F(x) and y=x. From x1, go vertically to the curve: the height is x2. Go horizontally to the line y=x, which moves you to x=x2, then vertically to the curve again for x3. The root is where the curve meets the line. If the curve is fairly flat where it crosses the line, the path closes in on the root in a staircase or a cobweb. If the curve is steep there, the path moves away.

For example, x2−3x+1=0 has roots near 0.382 and 2.618. The formula xn+1=3−1xn with x1=1 gives 2,2.5,2.6,2.615,…, converging to 2.618. The rearrangement xn+1=xn2+13 started at x1=2.5, very close to 2.618, gives 2.4167,2.2801,2.0663,…: it moves away from 2.618 and drifts to the other root, 0.382.

Signs that an iteration is failing: the terms move steadily away from the root, oscillate with growing size, repeat in a cycle without settling, or settle on a different root. The cure is a different rearrangement.

xy0.511.522.533.50.511.522.533.50y = xy = 3 - 1/xx1

The staircase from x1=1 closes in on the root near 2.618.

Check yourself Paper 3

Use the iterative formula xn+1=3−1xn with x1=1 to find x4.

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

Check yourself Paper 3

The sequence defined by xn+1=2xn+43, with x1=1, converges to α. By finding the equation that α satisfies, find the exact value of α.

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

Key points

  • Sketch y=g(x) and y=h(x): each intersection is a root of g(x)=h(x).

  • Change of sign: f(a) and f(b) of opposite signs, with f continuous, means a root between a and b. State the values, the sign change and the conclusion.

  • If xn+1=F(xn) converges to α, then α=F(α): replace both by x to find the equation.

  • Record iterates to more decimal places than needed; stop when they agree to the required accuracy; give the answer to exactly that accuracy.

  • Work in radians for any trigonometric iteration.

  • An iteration may fail: diverging, oscillating, cycling, or converging to a different root.

Where marks are lost

  • Stating that there is a root without the two values, the change of sign and the word continuous, or using values so rounded that the sign is unclear.

  • Using degrees in a trigonometric iteration.

  • Rounding each iterate before using it, so the errors build up.

  • Stopping as soon as two iterates agree to 1 decimal place when 2 or 3 are needed.

  • Giving 2.31 when the question asks for 3 decimal places.

  • Rearranging the equation wrongly when finding the equation an iteration solves, or forgetting to show it is equivalent to the original.

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.