Welcome, welcome, welcome to the first in our new series: Beyond’s Monthly Maths Mastery. Each month, our astute army of arithmetic Adonises will share their maths-teacher approved method for solving challenging maths problems. This month, we will look at the iterative method for solving nonlinear equations…strap yourselves in…
What is an iterative formula?
An iterative formula is obtained by rearranging the equation you are trying to solve. This will usually be done for you, though sometimes you will need to verify that the original equations rearranges to give the correct formula.
Iteration means “the process of doing something again and again”, so to use an iterative formula, we substitute a starting value of x in to get a new value of x out. It’s a bit like using one of those penny arcade machines, hence the snazzy illustrations! We then do that over and over, until we get close to the actual answer (or to a required degree of accuracy such as 4 decimal places).
How do you use an iterative formula?
Iterative formulae can look a little scary as they have something called subscripts in them. These look like xn or xn+1. We don’t need to be scared though; these equations are telling us that when we substitute a value of x in, we get the next value of x out.
Use the iterative formula with x1=0.7 to find the value of x2 and x3, giving your answers correct to 3 decimal places.
We are given the first value of x as 0.7, so we substitute this into the formula in place of xn. Since we are substituting x1 into the formula, we know we are going to get x2 out.
This gives us a value of or 3.429 correct to 3 decimal places.
Next, we substitute this value back into the formula in place of xn. Since we are substituting x2 into the formula now, we are going to get x3out. This is a great time to use the previous answer button on your calculator!
This gives us a value of or 2.292 correct to 3 decimal places.
Iterative method for solving nonlinear equations: finding approximate solutions
The more we substitute values into the formula, the closer we get to the actual solution to the equation. We want to get to a stage where the value of xn is equal to the value xn+1 to a given degree of accuracy. In other words, the value of x that goes into the formula matches the value of x we get out.
Use the iterative formula together with a starting value of x1 = -4 to find a solution to the equation , giving your answer correct to 3 decimal places.
Remember, this formula is telling us that when we substitute a value of x in, we get the next value of x out.
We are given a starting value of x1 = -4, so if we substitute this into the iterative formula, we will find the value of x2.
This gives us x2 = -5.75.
We want an answer accurate to 3 decimal places, and if we compare x1 and x2, we see they are not equal to this given degree of accuracy, so we continue.
Substitute the value for x2 into the formula to get a value of x3. This is a great time to use the previous answer button on your calculator!
This gives us x3 = -5.522 (to 3 decimal places).
Comparing x2 and x3, we see they are not equal to 3 decimal places, so we repeat the process. Let’s keep going until we find two numbers which are equal correct to 3 decimal places.
x4 = -5.543 (to 3 decimal places),
x5 = -5.541 (to 3 decimal places),
x6 = -5.541 (to 3 decimal places).
Notice that x5 is equal to x6. This means we stop here, and we have answered the question.
A solution to the equation x2 + 5x – 3 = 0 is x = -5.541, correct to 3 decimal places.
Are you still with us? Shall we have a break? Meet back here in 5 with some biscuits…🍪
Finally, where does the iterative formula come from?
The iterative formula is found by rearranging the equation you are trying to solve.
Show that x2 – 5x – 8 = 0 can be rearranged to give the equation
Rearranging this formula looks different to our usual process for changing the subject. We would usually try to isolate x on one side of the equation, but here we see that we have an x on both sides. In fact, we have x as the denominator of a fraction which tells us we will need to divide through by x at some point.
Instead, let’s take the equation x2 – 5x – 8 = 0 and add 8 to both sides.
x2 – 5x = 8
Next, let’s add 5x.
x2 = 5x + 8
Now, we can see that we are starting to form an equation that looks like the one we want. Our last step is to divide by x.
We can cancel the x in our first fraction, leaving us with
, as required!
This equation could now be used as an iterative formula with a starting value of x to solve the quadratic equation we were originally given! Note that it can be easier to work backwards from the solution, remembering to present our work upside down.
If you’re struggling to picture all of this, our resident Maths Master has beautifully summarised in the video below:
So, there you have it! The iterative method for solving nonlinear equations laid bare. Why not share this post with your students or fellow maths aficionados? Until next month…happy mathsing!
Tackling iteration with your class? Why not try some of our resources below.
GCSE Escape the Room: Iterations Exit Ticket
Iterative Processes Worksheet
Iteration to Find Approximate Solutions Lesson Pack
Subscribe to Beyond for access to thousands of secondary teaching resources. You can sign up for a free account here and take a look around at our free resources before you subscribe too.