Solution: There are several ways to rewrite this into the form x = g(x). Consider the following
x = (2x + 3) 1/2 --------------- (1)
Now suppose we start with the initial guess x0 = 4, and iterate using xn = (2xn-1 + 3) 1/2 [which comes from (1)]. We get the following sequence of iterates
x1 = (2*4 + 3)1/2 = 111/2
=
3.32
x2 = (9.63325)1/2 = 3.1
x3 = 3.01144
x4 = etc. ...
The sequence converges to x = 3. Observe
that the two exact roots for the given problem are at x = -1 and x = 3.
Suppose, instead of using (1), we had decided
to rearrange the original problem as
The figure below shows a plot of g(x), and
illustrates the geometric progression of the above iterative process.
x = (x2 - 3) / 2 -------------- (2)
Now if we start with the initial guess x0 = 4, and iterate xn = (x2n-1 - 3) / 2 what do we get?
x1 = (16 - 3) / 2 = 6.5
x2 = 19.625
x3 = 191.07, etc.
Note that the iterates are getting bigger and bigger ==> the method is diverging!
The figure below shows a plot of this g(x) and the geometric progression of the iterations.
On the other hand, if we change the initial
guess to x0 = 0, and iterate using (2), we get x1 =
-1.5, x2 = -0.375, x3 = -1.4297, ... etc.
The iterates now converge (very slowly) to x = -1, which is one of
the roots of this problem.