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

Numerical solution of equations

Locating a root of an equation from a sketch or a change of sign; sequences of approximations and the notation xn+1=F(xn); how an iterative formula relates to the equation it solves; finding a root to a stated accuracy; and recognising an iteration that fails to converge.

2.6Paper 2: Pure Mathematics 2Free lesson
What the syllabus says

2.6 (Paper 2)

  • 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 2

Many equations cannot be solved exactly. x3+5x−3=0 has no rational root, and an equation such as ex=x+4 or x=2cosx mixes different kinds of function, so no algebra isolates x. Such equations still have roots, and a numerical method pins a root down to any accuracy you want.

Paper 2 uses two stages: first locate a root roughly, from a sketch or a change of sign; then refine it with an iterative formula until it is correct to the accuracy asked for.

Locating a root from a graph Paper 2

Rearrange the equation into the form g(x)=h(x), where both sides are graphs you can sketch. The roots of the equation are the x-coordinates of the points where the two graphs meet, so the number of intersections is the number of roots.

For example, ex+x−4=0 can be written ex=4−x. The curve y=ex rises from just above the x-axis; the line y=4−x falls. They cross exactly once, so the equation has exactly one root, and the sketch shows it lies between 1 and 2.

A sketch earns its marks for correct shapes in the right places (intercepts, asymptotes, which graph is above the other) and for a sentence linking the intersections to the roots.

xy−2−11234−11234560y = e^xy = 4 - x

One intersection, so ex=4−x has exactly one root.

Searching for a sign change Paper 2

If f is continuous from x=a to x=b, and f(a) and f(b) have opposite signs, the graph of y=f(x) must cross the x-axis somewhere between, so f(x)=0 has a root between a and b.

To show that a root lies in an interval:

  1. Write the equation as f(x)=0.
  2. Work out f(a) and f(b), and write the values down (2 or 3 significant figures is enough).
  3. State that the sign changes and f is continuous, so there is a root between a and b.

To find a pair of consecutive integers between which a root lies, work out f(0), f(1), f(2), and so on, until the sign changes.

Two warnings. A sign change without continuity proves nothing: tanx changes sign between x=1 and x=2 but tanx=0 has no root there, because the graph jumps at the asymptote x=12π. And no sign change does not mean no root: if the curve dips below the axis and comes back up, there are two roots and the end values have the same sign.

Worked example 1 Paper 2

Show that the equation xex=3 has a root between 1 and 2.

  1. Let f(x)=xex−3.

  2. f(1)=e−3=−0.282 and f(2)=2e2−3=11.8.

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

Answer: f(1)<0<f(2), so a root lies between 1 and 2.

Check yourself Paper 2

The equation x3−4x−9=0 has one real root. Find the pair of consecutive integers between which it lies. Give the smaller integer first.

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

Iteration Paper 2

An iterative formula xn+1=F(xn) turns one approximation into the next. Start from a value x1 near the root, often taken from the sign-change interval, and work out x2=F(x1), then x3=F(x2), and so on. If the sequence of approximations x1,x2,x3,… converges, it settles down to a limit α.

How the formula relates to the equation. If xn→α, then xn+1→α too, so in the limit both sides of the formula become α: α=F(α). The limit is a root of the equation x=F(x). An iterative formula is just the equation rearranged with x alone on one side. For example x3+5x−3=0 rearranges to x=3−x35, which gives xn+1=3−xn35. It also rearranges to x=3−5x3, a different iteration for the same equation.

Questions run both ways:

  • given the equation, show that it can be rearranged into the form x=F(x);
  • given the iteration, replace xn+1 and xn by x to find the equation the limit satisfies, and sometimes solve it exactly.

To a stated accuracy. Keep each iterate in your calculator (use the answer key) and write each one down to more figures than you need, usually 4 decimal places when the answer is wanted to 2. Stop when two successive iterates agree to the accuracy required, and give that value.

Worked example 2 Paper 2

Use the iterative formula xn+1=3−xn35, with x1=0.5, to find the root of x3+5x−3=0 correct to 3 decimal places. Give each iterate to 5 decimal places.

  1. x2=3−0.535=0.575.

  2. Continuing: x2=0.57500, x3=0.56198, x4=0.56450, x5=0.56402, x6=0.56411, x7=0.56410.

  3. x6 and x7 both round to 0.564 to 3 decimal places, so the root is 0.564.

Answer: 0.564

Working back from an iteration Paper 2

Because the limit satisfies α=F(α), you can sometimes find it exactly. Suppose xn+1=13(2xn+9xn2) converges to α. Then
α=13(2α+9α2)
so 3α=2α+9α2, α=9α2 and α3=9. The iteration is homing in on 93.

This is also how a 'show that' part works: write the limit into the formula, and rearrange until you reach the equation given in the question.

Check yourself Paper 2

The sequence given by xn+1=12(xn+7xn), with x1=3, converges to α. Find the exact value of α.

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

When an iteration fails Paper 2

Not every rearrangement works. The same equation can give one iteration that converges to a root and another that moves away from it, however close the starting value. The condition that decides which is not in this syllabus, but you are expected to recognise failure when you see it.

For ex=x+4, the iteration xn+1=ln(xn+4) with x1=2 gives x2=1.7918, x3=1.7564, x4=1.7503: it converges to the root 1.749. The rearrangement xn+1=exn−4, with the same start, gives x2=3.3891, x3=25.64: the values run away, and the iteration diverges.

On a graph, an iteration traces a path between the curve y=F(x) and the line y=x: up to the curve, across to the line, up to the curve again. Where the curve is shallow at the crossing point, the path closes in on it, as below. Where it is steep, the path steps or spirals away.

If an iteration diverges, or converges to a different root from the one you want, use a different rearrangement or a different starting value.

xy0.511.522.50.511.522.50y = ln(x + 4)y = x

Starting from x1=0, each step up to the curve and across to the line gives the next iterate, closing in on the root.

Check yourself Paper 2

Use the iterative formula xn+1=ln(xn+4), with x1=2, to find the positive root of ex=x+4 correct to 3 decimal places.

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

Worked example 3 Paper 2

(a) By sketching suitable graphs, show that the equation lnx=5−2x has exactly one root.
(b) Show by calculation that this root lies between 2 and 3.
(c) Show that if a sequence of values given by the iterative formula xn+1=12(5−lnxn) converges, then it converges to the root of the equation in part (a).
(d) Use this iterative formula to find the root correct to 2 decimal places. Give the result of each iteration to 4 decimal places.

  1. (a) Sketch y=lnx (through (1,0), increasing, with the y-axis as an asymptote) and y=5−2x (a line through (0,5) and (2.5,0)). The increasing curve crosses the decreasing line exactly once, so there is exactly one root.

  2. (b) Let f(x)=lnx+2x−5. f(2)=−0.307 and f(3)=2.10. The sign changes and f is continuous for x>0, so the root lies between 2 and 3.

  3. (c) If the sequence converges to α, then α=12(5−lnα). So 2α=5−lnα, that is lnα=5−2α, and α is the root.

  4. (d) With x1=2: x2=2.1534, x3=2.1165, x4=2.1251, x5=2.1231, x6=2.1236.

  5. x5 and x6 both round to 2.12, so the root is 2.12 to 2 decimal places.

Answer: (d) 2.12

Key points

  • Roots of g(x)=h(x) are the x-coordinates of the intersections of y=g(x) and y=h(x); count the intersections to count the roots.

  • A change of sign of a continuous f between a and b shows a root of f(x)=0 between them. State the values, the sign change and the conclusion.

  • xn+1=F(xn): if it converges to α, then α=F(α), so α is a root of x=F(x).

  • Write each iterate to more figures than the answer needs; stop when two successive iterates agree to the required accuracy.

  • An iteration may diverge, or find a different root; then use another rearrangement or another starting value.

Where marks are lost

  • Showing a sign change without stating the values, or without the conclusion that a root lies in the interval.

  • Using degrees in an iteration involving sin, cos or tan: calculus questions use radians.

  • Rounding each iterate before using it in the next step, so the errors build up. Keep full calculator accuracy.

  • Stopping after one or two iterations, or giving the answer to the wrong number of decimal places.

  • In a 'show that' part, starting from the given equation and working back to the formula without saying that the limit α satisfies α=F(α).

  • Assuming a sign change always means a root, even across an asymptote.

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.