Numerical solution of equations

Maths Pure 3 · Numerical solution of equations. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths Pure 3 topics

The idea

Many equations, such as ex = 3x, cannot be solved exactly, so we find a root as a decimal instead.

First we locate the root. Write the equation as f(x) = 0. If f is continuous and f(a) and f(b) have opposite signs, there is a root between a and b. This is the change of sign method. A sketch of two graphs, for example y = ex and y = 3x, shows how many roots there are: one for each crossing point.

Then we improve the value with an iterative formula xn+1 = F(xn), made by rearranging the equation into the form x = F(x). Each answer is put back into the formula. If the values settle down, they converge to a root.

In simpler words

Some equations, like e to the x equals 3x, cannot be solved exactly. So we find a decimal answer. First, find where the root is. If the function changes from negative to positive between two numbers, a root sits in between. Then use a formula over and over. Each answer goes back in. If the answers settle down, that is the root.

An everyday comparison

Iteration is like tuning an old radio. You turn the dial a little, listen, and turn again, getting closer each time until the station is clear. The change of sign is like knowing the station is somewhere between two numbers on the dial. Unlike tuning, though, an iteration can drift further away with each turn, so a different rearrangement may be needed.

Rules to remember

Common mistake

Students stop the iteration too early or round each iterate to 2 decimal places before using it again. Use the full calculator value (the ANS key) each time, write down each iterate to 4 decimal places, and round only at the end.

In the exam

For a change of sign, write f(x) = 0, calculate f(a) and f(b) with values, state that the signs differ and that f is continuous, so a root lies between a and b. For iteration, state the starting value, write each iterate to 4 decimal places, and give the root once two iterates agree. To confirm a root to 2 decimal places, show a sign change across the interval, such as 1.525 to 1.535.

Worked example

The equation x3 − 2x − 5 = 0 has a root between 2 and 3. Use xn+1 = ∛(2xn + 5) with x1 = 2 to find the root correct to 2 decimal places.

  1. Check the interval: f(2) = 8 − 4 − 5 = −1 and f(3) = 27 − 6 − 5 = 16, so the sign changes.
  2. x2 = ∛(2 × 2 + 5) = ∛9 = 2.0801.
  3. x3 = ∛(2 × 2.0801 + 5) = 2.0924, x4 = 2.0942, x5 = 2.0945.
  4. The iterates all round to 2.09 from x3 onwards.

Answer: The root is 2.09 (2 decimal places)

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← IntegrationVectors →Take a Maths Pure 3 test