Grasp Maths

Year 11

Iteration and numerical methods

Use iterative formulas of the form xn+1=f(xn)x_{n+1} = f(x_n) to find approximate solutions to equations. Understand convergence and divergence of iterations.

Back to Year 11Progress: not startedMastery: not started

Lesson overview

Algebra — numerical methods

**Iteration** is a method for finding approximate solutions to equations that cannot be solved exactly. We rearrange the equation into the form x=f(x)x = f(x), then use the iterative formula xn+1=f(xn)x_{n+1} = f(x_n). Starting with an initial guess x0x_0, we repeatedly substitute to get closer to the solution: x1=f(x0),x2=f(x1),x3=f(x2),x_1 = f(x_0), \quad x_2 = f(x_1), \quad x_3 = f(x_2), \quad \ldots The iteration **converges** when successive values agree to the required degree of accuracy. Not all rearrangements converge — it depends on the gradient of f(x)f(x) near the solution. **Sign change method**: if f(a)f(a) and f(b)f(b) have opposite signs, there is a root between aa and bb (provided ff is continuous).

Using an iterative formula

Use the iteration xn+1=2xn+3x_{n+1} = \sqrt{2x_n + 3} with x0=4x_0 = 4 to find the solution to x22x3=0x^2 - 2x - 3 = 0 correct to 33 decimal places.

Keep iterating until consecutive values agree to the required accuracy.

Rearranging to find an iteration formula

To solve x3+2x5=0x^3 + 2x - 5 = 0, rearrange: x3=52xx^3 = 5 - 2x, so x=52x3x = \sqrt[3]{5 - 2x}, giving xn+1=52xn3x_{n+1} = \sqrt[3]{5 - 2x_n}.

Different rearrangements may or may not converge.

Sign change method to locate a root

Show that x3x1=0x^3 - x - 1 = 0 has a root between 11 and 22.

f(1)f(1)111=11 - 1 - 1 = -1

negative

f(2)f(2)821=58 - 2 - 1 = 5

positive

If f(a)<0f(a) < 0 and f(b)>0f(b) > 0, there is a root in (a,b)(a, b).

Worked example

Show that the equation x34x+1=0x^3 - 4x + 1 = 0 has a root between 00 and 11, then use the iteration xn+1=xn3+14x_{n+1} = \dfrac{x_n^3 + 1}{4} with x0=0.5x_0 = 0.5 to find the root correct to 22 decimal places.

  1. Check sign change: f(0)=1f(0) = 1 (positive), f(1)=2f(1) = -2 (negative). Sign change, so root exists in (0,1)(0, 1).
  2. Start with x0=0.5x_0 = 0.5: x1=0.53+14=1.1254=0.28125x_1 = \dfrac{0.5^3 + 1}{4} = \dfrac{1.125}{4} = 0.28125.
  3. x2=0.281253+140.25552x_2 = \dfrac{0.28125^3 + 1}{4} \approx 0.25552, x30.25417x_3 \approx 0.25417, x40.25410x_4 \approx 0.25410.
  4. The values agree to 2 d.p. at 0.250.25. So the root is 0.250.25 (to 2 d.p.).

Try it

Check for a sign change first, then iterate until consecutive values agree to the required accuracy.

Question 1

The iteration xn+1=5+xnx_{n+1} = \sqrt{5 + x_n} with x0=2x_0 = 2 gives x1=x_1 =?

Question 2

If f(1)=3f(1) = -3 and f(2)=5f(2) = 5, what can we conclude?

Question 3

Rearrange x2+3x7=0x^2 + 3x - 7 = 0 to give an iteration formula.

Question 4

An iteration converges when:

Question 5

Using xn+1=xn2+25x_{n+1} = \dfrac{x_n^2 + 2}{5} with x0=1x_0 = 1, what is x2x_2?

Common mistakes

Watch for these when working through the lesson.

  • Not checking whether the iteration actually converges — some rearrangements diverge.
  • Rounding too early in the iteration, which accumulates errors.
  • Stopping the iteration before consecutive values agree to the required number of decimal places.

Related topics

These ideas fit closely with this lesson.

  • Quadratic formula and solving equations.
  • Graphs of functions and finding roots.
  • Trial and improvement methods.

Practice next

Independent practice will plug in here

This lesson builds the understanding first. Deeper adaptive practice can sit here later.