Skip to main content
Examonaut

Topic A.3 · Lesson 4 of 6

Solving with graphs and iteration

Solving equations with graphs

Any equation can be solved approximately with a graph: the solutions of f(x)=0f(x) = 0 are the xx-coordinates where y=f(x)y = f(x) crosses the xx-axis, and the solutions of two simultaneous equations are where their graphs cross. Give readings to the accuracy the scale allows. The Graphs lesson shows how to rearrange an equation to match a graph you already have.

IterationHigher tier

Some equations, such as x3+4x−1=0x^3 + 4x - 1 = 0, cannot be solved with any method you know. Iteration finds a solution to any accuracy by repeating a calculation, each time feeding the answer back in.

First, locate a solution. If f(x)f(x) changes sign between two values of xx, and the graph has no breaks, the curve must cross the xx-axis in between. In the diagram, f(0)=−1f(0) = -1 is below the axis and f(1)=4f(1) = 4 is above, so there is a root between 0 and 1.

xyO148f(0) = −1f(1) = 4root

How to use an iterative formula

  1. Step 1: Rearrange f(x)=0f(x) = 0 into the form x=g(x)x = g(x) (the question usually tells you which rearrangement).
  2. Step 2: Write it as xn+1=g(xn)x_{n+1} = g(x_n): the next value comes from putting the current value into gg.
  3. Step 3: Start with the given x0x_0 and calculate x1x_1, x2x_2, x3x_3, …, writing each one down. On a calculator, type x0x_0 and press =, then type the formula using ANS and press = repeatedly.
  4. Step 4: Stop when the values agree to the accuracy you need.

Try the Change of sign and x = g(x) parts (Newton–Raphson is A level only).

Try it: simulation

Iteration and Newton–Raphson

Loading the simulation…

Worked example

Iterationgrade 8–9

a) Show that x3+4x−1=0x^3 + 4x - 1 = 0 can be written as x=1−x34x = \frac{1 - x^3}{4}. b) Starting with x0=0x_0 = 0, use xn+1=1−xn34x_{n+1} = \frac{1 - x_n^3}{4} to find a solution to 3 decimal places.

Show solution
  1. a) x3+4x−1=0x^3 + 4x - 1 = 0 gives 4x=1−x34x = 1 - x^3, so x=1−x34x = \frac{1 - x^3}{4}.
  2. b) x1=1−04=0.25x_1 = \frac{1 - 0}{4} = 0.25.
  3. x2=1−0.2534=0.246 09…x_2 = \frac{1 - 0.25^3}{4} = 0.246\,09…
  4. x3=1−0.246 0934=0.246 27…x_3 = \frac{1 - 0.246\,09^3}{4} = 0.246\,27… and x4=0.246 27…x_4 = 0.246\,27…
  5. x3x_3 and x4x_4 agree to 3 decimal places, so x=0.246x = 0.246.

Practise this topic

Both are part of Premium.