



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




92 C HAP. 2 S OLUTION OF N ONLINEAR E QUATIONS f ( x ) = 0
( p 1 , f ( p 1 ))
( p 0 , f ( p 0 ))
( p 2 , f ( p 2 ))
p 0 t = h 0
h 1
h 0
p 1 t = h 1
p 2 t = 0
p 3 t = z
y = f ( x )
Figure 2.17 The starting approximations p 0 , p 1 , and p 2 for Muller’s method, and the differences h 0 and h 1.
Muller’s method is a generalization of the secant method, in the sense that it does not require the derivative of the function. It is an iterative method that requires three starting points ( p 0 , f ( p 0 )), ( p 1 , f ( p 1 )), and ( p 2 , f ( p 2 )). A parabola is constructed that passes through the three points; then the quadratic formula is used to find a root of the quadratic for the next approximation. It has been proved that near a simple root Muller’s method converges faster than the secant method and almost as fast as Newton’s method. The method can be used to find real or complex zeros of a function and can be programmed to use complex arithmetic. Without loss of generality, we assume that p 2 is the best approximation to the root and consider the parabola through the three starting values, shown in Figure 2.17. Make the change of variable
(9) t = x − p 2 ,
and use the differences
(10) h 0 = p 0 − p 2 and h 1 = p 1 − p 2.
Consider the quadratic polynomial involving the variable t :
(11) y = at^2 + bt + c.
S EC. 2.5 A ITKEN’S P ROCESS AND S TEFFENSEN’S AND M ULLER’S M ETHODS 93
Each point is used to obtain an equation involving a , b , and c :
At t = h 0 : ah^20 + bh 0 + c = f 0 , At t = h 1 : ah^21 + bh 1 + c = f 1 , At t = 0: a 02 + b 0 + c = f 2.
From the third equation in (12), we see that
(13) c = f 2.
Substituting (13) into the first two equations in (12) and using the definition e 0 = f 0 − c and e 1 = f 1 − c results in the linear system
ah^20 + bh 0 = f 0 − c = e 0 , ah^21 + bh 1 = f 1 − c = e 1.
Solving the linear system for a and b results in
a =
e 0 h 1 − e 1 h 0 h 1 h^20 − h 0 h^21
b =
e 1 h^20 − e 0 h^21 h 1 h^20 − h 0 h^21
The quadratic formula is used to find the roots t = z 1 , z 2 of (11):
(16) z =
− 2 c b ±
b^2 − 4 ac
Formula (16) is equivalent to the standard formula for the roots of a quadratic and is better in this case because we know that c = f 2. To ensure the stability of the method, we choose the root in (16) that has the small- est absolute value. If b > 0, use the positive sign with the square root, and if b < 0, use the negative sign. Then p 3 is shown in Figure 2.17 and is given by
(17) p 3 = p 2 + z.
To update the iterates, choose the new p 0 and the new p 1 to be the two values selected from among the old { p 0 , p 1 , p 3 } that lie closest to p 3 (i.e., throw out the one that is farthest away). Then take new p 2 to be old p 3. Although a lot of auxiliary calculations are done in Muller’s method, it only requires one function evaluation per iteration. If Muller’s method is used to find the real roots of f ( x ) = 0, it is possible that one may encounter complex approximations, because the roots of the quadratic in (16) might be complex (nonzero imaginary components). In these cases the imaginary com- ponents will have a small magnitude and can be set equal to zero so that the calculations proceed with real numbers.
S EC. 2.5 A ITKEN’S P ROCESS AND S TEFFENSEN’S AND M ULLER’S M ETHODS 95
Table 2.13 Comparison of Convergence Near a Double Root
k
Secant method
Muller’s method
Newton’s method
Steffensen with Newton 0 1. 400000000 1. 400000000 1. 200000000 1. 200000000 1 1. 200000000 1. 300000000 1. 103030303 1. 103030303 2 1. 138461538 1. 200000000 1. 052356417 1. 052356417 3 1. 083873738 1. 003076923 1. 026400814 0. 996890433 4 1. 053093854 1. 003838922 1. 013257734 0. 998446023 5 1. 032853156 1. 000027140 1. 006643418 0. 999223213 6 1. 020429426 0. 999997914 1. 003325375 0. 999999193 7 1. 012648627 0. 999999747 1. 001663607 0. 999999597 8 1. 007832124 1. 000000000 1. 000832034 0. 999999798 9 1. 004844757 1. 000416075 0. 999999999 .. .
.. .
In the following program the sequence { pk }, generated by Steffensen’s method with the Newton-Raphson formula, is stored in a matrix Q that has max1 rows and three columns. The first column of Q contains the initial approximation to the root, p 0 , and the terms p 3 , p 6 ,... , p 3 k ,... generated by Aitken’s acceleration method (4). The second and third columns of Q contain the terms generated by Newton’s method. The stopping criteria in the program are based on the difference between consecutive terms from the first column of Q.
th