|
|
Iterative Methods

Solving an equation by an iterative method is carrying out a process to get closer to a value. We are given a rough approximated initial value, and then become more and more accurate. This gets us closer to the real value and is necessary when we do not have a straightforward way of solving for the roots of the equation.

Mockup Schule

Explore our app and discover over 50 million learning materials for free.

Iterative Methods

Illustration

Lerne mit deinen Freunden und bleibe auf dem richtigen Kurs mit deinen persönlichen Lernstatistiken

Jetzt kostenlos anmelden

Nie wieder prokastinieren mit unseren Lernerinnerungen.

Jetzt kostenlos anmelden
Illustration

Solving an equation by an iterative method is carrying out a process to get closer to a value. We are given a rough approximated initial value, and then become more and more accurate. This gets us closer to the real value and is necessary when we do not have a straightforward way of solving for the roots of the equation.

Using the iterative method

An iterative method can be used to find a value of x when f(x)=0. To perform this iteration we first need to rearrange the function.

The basis of this is we need to rearrange f(x)=0 to x=g(x). Therefore we need to make x the subject of f(x)=0. However, it does not matter if we have x terms remaining on the other side.

This is because we can perform xn+1=g(xn), meaning we take our value of x and iterate it.

Let's look at two key worked examples below.

Worked examples of iteration calculation

1. x2-3x-5=0

a) Prove that x=3x+5.

b) Using the iterative formula xn+1=3xn+5, and letting x0=4, find values for x1,x2,x3. SOLUTION: 1a) x2-3x-5=0x2=3x+5x=3x+51b)x0=4x1=3(4)+5x1=17=4.123105626x2=3(4.123105626)+5=4.167651242x3=3(4.167651242)+5=4.183653156

When iterating we use all the digits our calculator has given us to find our next value. You can do this easily by using the ANS button on your calculator

Let's look at a more difficult example.

2. f(x)=xe-x-x+3

a) Prove that f(x)=0 can be rearranged to form x=-ln(1-3x).

b) Using the iterative formula xn+1=-ln(1-3xn) and lettingx0=-1.

SOLUTION:

2a)

xe-x-x+3=0xe-x=x-3e-x=1-3x-x=ln(1-3x)x=-ln(1-3x)2 B)x0=-1x1=-ln(1-3-1)x1=-ln(4)=-1.386294361x2=-ln(1-3-1.386294361)=-ln(3.164042561)=-1.151850501x3=-ln(1-3-1.151850501)=-ln(3.604504661)=-1.282184358

How do we see iterative methods on a graph?

Iterative methods are all about getting closer and closer to a root of an equation. We use them when we cannot directly solve Equations with any other methods.

The higher the value of n in xn, the closer we are to the root of this equation as we are performing this process more and more times.

We can see this on a graph in two ways: a staircase diagram or a cobweb diagram.

Staircase diagrams

A staircase diagram works for a function that directly converges to a root meaning that from x0we are either directly increasing or decreasing towards our root with each iterative value.

Let's look at our initial example f(x)=x2-3x-5.

We will solely be focusing on the positive root (the one on the right).

Iterative Methods Graph used for iterative method  StudySmarter

A graph of f(x)=x2-3x-5

We know from rearranging that x=3x+5whenf(x)=0 . Therefore if we sketch the lines y=x and y=3x+5, the intersection is the root of this equation.

Iterative methods Solving for intersection iteration StudySmarter

An intersection between the lines y=x andy=3x+5

Let's now plot our points for x0,x1,x2 and x3.

Values x0,x1,x2,x3 marked.

Alt-text: Values marked on graph.

This is a more zoomed-in version and we can see that these points are slowly converging to the intersection. If we add a few lines, we can see our staircase.

Iterative Methods Iteration staircase diagram StudySmarter

A staircase diagram attaching all of the aforementioned points.

If we continue and use more values we will get closer and closer to that intersection. We will never actually reach it but we can get it in view of high accuracy.

Cobweb Diagrams

A cobweb diagram is when we are converging on a root in more than one direction, meaning our values become both too high and too low around the root.

Our second example f(x)=xe-x-x+3 demonstrates this. We will be focusing on the negative root, the one to the left.

terative Methods Graph sketch for iteration StudySmarterImage Caption

A sketch of the graph f(x)=xe-x-x+3

Once again, from rearranging we know that x=-ln(1-3x)when f(x)=0. Therefore we can sketch the lines y=x and y=-ln(1-3x), and their intersection is the solution to the equation f(x)=0.

Iterative Methods Intersection between lines before iteration. StudySmarter

Intersection between the lines y=x and y=-ln(1-3x),

Now let's plot our points for x0,x1,x2 and x3.

Iterative Methods Values marked on graph StudySmarter

Points x0,x1,x2,x3 marked.

We can clearly see these points are not in order. Therefore we do not have a staircase, we have a cobweb and are converging on the value from different directions. This is what it looks like.

Iterative Methods Cobweb Diagram Iteration StudySmarter

A cobweb diagram attaching all marked points.

We can see this is like a cobweb, and is converging towards a value from values greater than and less than the intersection.

Iterative Methods - Key takeaways

  • Iterative methods can be used to find solutions to Equations we cannot solve otherwise.
  • They give us formulas to help us converge on particular roots of equations.
  • We can use Graphs to help us visualise how the roots are getting more accurate (the closer to the intersection, the more accurate our answer is).
  • A staircase diagram is one where we are moving in one direction towards the intersection.
  • A cobweb diagram is where we are moving around the intersection in more than one direction.

Frequently Asked Questions about Iterative Methods

An iterative method is one in which we use the previous answers to generate more accurate answers.

We construct an iterative formula by rearranging and then using this formula to generate more values.

We can sketch either cobweb or staircase diagram to help us visualise how more accurate roots are moving.

There are many applications to iteration especially in physics and engineering in calculating next values when we cannot solve.

Join over 22 million students in learning with our StudySmarter App

The first learning app that truly has everything you need to ace your exams in one place

  • Flashcards & Quizzes
  • AI Study Assistant
  • Study Planner
  • Mock-Exams
  • Smart Note-Taking
Join over 22 million students in learning with our StudySmarter App Join over 22 million students in learning with our StudySmarter App

Sign up to highlight and take notes. It’s 100% free.

Entdecke Lernmaterial in der StudySmarter-App

Google Popup

Join over 22 million students in learning with our StudySmarter App

Join over 22 million students in learning with our StudySmarter App

The first learning app that truly has everything you need to ace your exams in one place

  • Flashcards & Quizzes
  • AI Study Assistant
  • Study Planner
  • Mock-Exams
  • Smart Note-Taking
Join over 22 million students in learning with our StudySmarter App