1MA1 · A20AlgebraHigherGrades 7–9

Iteration

Some equations, like x3+2x−5=0x^{3} + 2x - 5 = 0, cannot be solved with a formula you know. Iteration\textbf{Iteration} finds an approximate solution by repeatedly feeding an answer back into a formula, getting closer each time. It is how calculators and computers solve most equations in practice.

40 min Sequences & Functions

The big picture

Two ideas work together. A change of sign shows a root exists in an interval: if a continuous expression is negative at one value and positive at another, it must pass through zero in between. An iterative formula then homes in on that root.

Edexcel iteration questions follow a standard pattern worth learning: show that the equation has a root between two values, show that it rearranges to a given form, use the iterative formula to find x1x_{1}, x2x_{2}, x3x_{3}, and finally justify an answer to a given accuracy.

What you'll learn

  • Show that an equation has a root in an interval using a change of sign
  • Rearrange an equation into an iterative form x=g(x)x = \mathrm{g}(x)
  • Use an iterative formula xn+1=g(xn)x_{n+1} = \mathrm{g}(x_{n}) with a calculator
  • Justify a solution to a given degree of accuracy
1

Change of sign

Rewrite the equation as "expression =0= 0" and substitute the two endpoints of the interval.

If one result is negative and the other positive, the expression must equal zero somewhere between them, so a root lies in the interval.

Example 1Show that x3+2x−5=0x^{3} + 2x - 5 = 0 has a solution between x=1x = 1 and x=2x = 2.
1At x=1x = 1: 1+2−5=−21 + 2 - 5 = -2.
2At x=2x = 2: 8+4−5=78 + 4 - 5 = 7.
3There is a change of sign.
AnswerSince the value changes from negative to positive, there is a solution between 1 and 2.
Your turnSame method, new numbers — try it before moving on.

For f(x)=x3+2x−5f(x) = x^3 + 2x - 5, work out f(1)f(1).

Show worked solution
Solution
  1. 11+2−5=−21 + 2 - 5 = -2.
  2. 2(And f(2)=7f(2) = 7 — a change of sign.)

Answer: −2-2

Tip — The concluding sentence is part of the answer: "there is a change of sign, so there is a root between 1 and 2".

2

Rearranging into iterative form

An iterative formula has the form x=g(x)x = \mathrm{g}(x). Rearrange the equation so that xx is on its own on one side, even though xx also appears on the other.

For x3+2x−5=0x^{3} + 2x - 5 = 0: x3=5−2xx^{3} = 5 - 2x, so x=5−2x3x = \sqrt[3]{5 - 2x}.

Questions usually give the target form, so work towards it one step at a time.

Example 1Show that x2−5x+2=0x^{2} - 5x + 2 = 0 can be written as x=5x−2x = \sqrt{5x - 2}.
1Add 5x−25x - 2 to both sides: x2=5x−2x^{2} = 5x - 2.
2Take the square root.
Answerx=5x−2x = \sqrt{5x - 2}, as required.
3

Using the iterative formula

Write the rearrangement as xn+1=g(xn)x_{n+1} = \mathrm{g}(x_{n}) and start from the given x0x_{0} (or x1x_{1}).

On a calculator, type the starting value and press equals, then type the formula using ANS in place of xnx_{n}. Each press of equals gives the next value.

Write down each iterate to the accuracy the question requests, but keep full calculator values when continuing.

Example 1Using xn+1=5−2xn3x_{n+1} = \sqrt[3]{5 - 2x_{n}} with x0=1.5x_{0} = 1.5, find x1x_{1}, x2x_{2} and x3x_{3} to 5 decimal places.
1x1=5−33=1.25992x_{1} = \sqrt[3]{5 - 3} = 1.25992.
2x2=5−2(1.25992… )3=1.35361x_{2} = \sqrt[3]{5 - 2(1.25992\dots)} = 1.35361.
3x3=1.31862x_{3} = 1.31862.
Answerx1=1.25992x_{1} = 1.25992, x2=1.35361x_{2} = 1.35361, x3=1.31862x_{3} = 1.31862
Your turnSame method, new numbers — try it before moving on.

Using xn+1=5−2xn3x_{n+1} = \sqrt[3]{5 - 2x_n} with x0=1.3x_0 = 1.3, find x1x_1 to 5 decimal places.

To 5 decimal places.

Show worked solution
Solution
  1. 1x1=5−2.63=2.43x_1 = \sqrt[3]{5 - 2.6} = \sqrt[3]{2.4}.
  2. 2=1.338866…= 1.338866\ldots

Answer: x1=1.33887x_1 = 1.33887

Why this works

The iterates jump above and below the root — 1.26,1.35,1.32,1.33,…1.26, 1.35, 1.32, 1.33, \dots — closing in on about 1.3281.328. Not every rearrangement behaves this well: xn+1=5−xn32x_{n+1} = \dfrac{5 - x_{n}^{3}}{2} from the same equation runs away from the root entirely.

4

Justifying accuracy

To show a root is 1.331.33 correct to 2 decimal places, check the bounds of that rounding: substitute 1.3251.325 and 1.3351.335 into the original expression.

A change of sign between the bounds proves the root lies in 1.325≤x<1.3351.325 \le x < 1.335, which rounds to 1.331.33.

Example 1Show that a root of x3+2x−5=0x^{3} + 2x - 5 = 0 is 1.331.33 to 2 decimal places.
1At x=1.325x = 1.325: −0.0238-0.0238.
2At x=1.335x = 1.335: 0.04930.0493.
3Change of sign.
AnswerThe root lies between 1.325 and 1.335, so it is 1.331.33 to 2 d.p.

Think like an examiner

  • Show both substituted values and state the change of sign in words.
  • Write each iterate with its subscript: x1x_{1}, x2x_{2}, x3x_{3}.
  • Use the full calculator value of each iterate for the next step.

Iteration

xn+1=g(xn)x_{n+1} = \mathrm{g}(x_{n})
Iterative formula.
f(a)<0<f(b)\mathrm{f}(a) < 0 < \mathrm{f}(b)
Change of sign: root between a and b.
test x±0.005\text{test } x \pm 0.005
Justify 2 d.p. accuracy.

Watch out for these

Substituting into the rearranged formula to show a change of sign.
Use the original equation written as expression =0= 0.
Rounding each iterate before using it.
Continue with the unrounded value; round only what you write down.
Concluding a root without a statement.
Say "change of sign, so a root lies in the interval".
Checking 1.331.33 and 1.341.34 to justify 2 d.p.
Check the rounding bounds 1.3251.325 and 1.3351.335.

Stretch yourself

Use xn+1=5xn−2x_{n+1} = \sqrt{5x_{n} - 2} with x0=4x_{0} = 4 to find x3x_{3} to 4 decimal places. Explain which root of x2−5x+2=0x^{2} - 5x + 2 = 0 the iteration is approaching, and find that root exactly.

Hint — Iterate three times. Then solve the quadratic with the formula and compare.

Reveal solution
Solutionx1=18=4.2426x_{1} = \sqrt{18} = 4.2426, x2=5(4.2426… )−2=4.3833x_{2} = \sqrt{5(4.2426\dots) - 2} = 4.3833, x3=4.4628x_{3} = 4.4628. The values are increasing towards the larger root. By the quadratic formula, x=5±172x = \dfrac{5 \pm \sqrt{17}}{2}, giving 4.56164.5616 and 0.43840.4384. So the iteration approaches x=5+172≈4.5616x = \dfrac{5 + \sqrt{17}}{2} \approx 4.5616; further iterates 4.5071,4.5316,…4.5071, 4.5316, \dots confirm it. ■\blacksquare

Questions students ask

Does iteration always work?
No. Some rearrangements converge to a root and others diverge. Exam questions give formulas that converge.
Why does a change of sign prove a root exists?
A continuous graph cannot get from below the axis to above it without crossing the axis.
What is x0x_{0}?
The starting value. Some questions call it x1x_{1}; follow the notation in the question.

Key takeaways

  • A change of sign in a continuous expression shows a root in an interval.
  • Rearrange f(x)=0\mathrm{f}(x) = 0 into x=g(x)x = \mathrm{g}(x).
  • Iterate with xn+1=g(xn)x_{n+1} = \mathrm{g}(x_{n}) using the ANS key.
  • Keep full accuracy between iterations.
  • Justify accuracy by checking a change of sign at the rounding bounds.

Exam-style questions

Practise it the way it is examined

3 original questions · 8 marks, written to match the style and mark allocation of the real papers. Work on paper, then open the mark scheme and tick the marks you earned — method marks count even if the final answer slips.

Question 1Grade 72 marks
  1. Show that x3−3x−5=0x^3 - 3x - 5 = 0 has a solution between x=2x = 2 and x=3x = 3.[2]
    Show mark scheme
Answer on paper first, then mark it.
Question 2Grade 83 marks
  1. (a)Show that x3−3x−5=0x^3 - 3x - 5 = 0 can be written as x=3x+53x = \sqrt[3]{3x + 5}.[1]
    Show mark scheme (a)
  2. (b)Using xn+1=3xn+53x_{n+1} = \sqrt[3]{3x_n + 5} with x0=2x_0 = 2, find x1x_1, x2x_2 and x3x_3 to 4 decimal places.[2]
    Show mark scheme (b)
Answer on paper first, then mark it.
Question 3Grade 93 marks
  1. Show that 2.282.28 is a solution of x3−3x−5=0x^3 - 3x - 5 = 0 correct to 2 decimal places.[3]
    Show mark scheme
Answer on paper first, then mark it.

Unlimited practice

Skill drill

A new question every time, marked instantly, with a full worked solution. Aim for a streak of five, then move up a level.

0 / 0 first-time correct Streak 0Best at this level: 0

Generating a question…

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 3 lessons