Docsity

A Secant Method for Multiple Roots - Prof. N. Gibson, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
BIT 17 (1977), 321-328
A SECANT METHOD FOR MULTIPLE ROOTS
RICHARD F. KING*
Abstract.
A superlinear procedure for finding a multiple root is presented. In it the secant method
is applied to the given function divided by a divided difference whose increment shrinks
toward zero as the root is approached. Two function evaluations per step are required, but
no derivatives need be calculated.
CR Category:
5.15.
Key words and phrases: nonlinear equation, root finding, multiple root, secant method,
Steffensen procedure, order of convergence, efficiency, stability,
1. Introduction.
We seek a method of secant type for finding a real, multiple root e of the
nonlinear equation f(x)=0. But direct application of the secant method to f
(1) x,+2
=
Xn+l__(Xn__Xn+l)
f,+l
f~=f(xi) '
f.-f.+,'
yields a procedure whose convergence for a root of multiplicity m > 1 apparently is
linear at best (see Espelid [3], Stewart [5], and Woodhouse [7]). That is, for given
initial values Xo and x~, the order of convergence p is 1 in
lime"+l = K,.,
(2) .-.~ g.P
for errors e~= x~- ~. Stewart [5] has computed K,. for various m > 1 as the posi-
tive root of K m + K"- ~ -
1 =
0.
Since it is well known that the function F =J/f' has a simple root at = (see
Traub [1], p. 235, for example), we can avoid the difficulty of (slow) linear
convergence by applying (1) to F instead of tof Using F, however, requires that a
derivative as well as a function value be calculated each step; moreover f' is
frequently more complicated than f.
The function F may also be used in Newton's method,
Fo fo 1
(3) xi =Xo , -Xo
,,
Fo f'o fofo '
t----
f'o 2
Received March 2. 1977. Revised July 27, 1977.
* Work supported by the U.S. Energy Research and Development Administration.
pf3
pf4
pf5
pf8

Partial preview of the text

Download A Secant Method for Multiple Roots - Prof. N. Gibson and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

BIT 17 (1977),321-

A S E C A N T M E T H O D F O R M U L T I P L E R O O T S

RICHARD F. KING*

Abstract. A superlinear procedure for finding a multiple root is presented. In it the secant method is applied to the given function divided by a divided difference whose increment shrinks toward zero as the root is approached. Two function evaluations per step are required, but no derivatives need be calculated. CR Category: 5.15. Key words and phrases: nonlinear equation, root finding, multiple root, secant method, Steffensen procedure, order of convergence, efficiency, stability,

1. Introduction. We seek a method of secant type for finding a real, multiple root e of the nonlinear equation f ( x ) = 0. But direct application of the secant method to f

(1) x,+2 = Xn+l(Xn__Xn+l) f , + l f~=f(xi) '

f.-f.+,'

yields a procedure whose convergence for a root of multiplicity m > 1 apparently is linear at best (see Espelid [3], Stewart [5], and Woodhouse [7]). That is, for given initial values Xo and x~, the order of convergence p is 1 in

(2) .-.~lime"+l g.P^ =^ K ,. ,

for errors e~= x~- ~. Stewart [5] has computed K,. for various m > 1 as the posi- tive root of K m+ K " - ~- 1 = 0. Since it is well known that the function F = J / f ' has a simple root at = (see Traub [1], p. 235, for example), we can avoid the difficulty of (slow) linear convergence by applying (1) to F instead of t o f Using F, however, requires that a derivative as well as a function value be calculated each step; moreover f ' is frequently more complicated than f. The function F may also be used in Newton's method,

Fo fo 1 (3) xi = X o , - X o , , Fo f'o (^) t - - - -f o f o ' f'o

Received March 2. 1977. Revised July 27, 1977.

  • Work supported by the U.S. Energy Research and Development Administration.

3 2 2 RICHARD F, KING

where here and henceforth we suppress n in the subscripts. Since F has a simple root at ~, the process converges quadratically (p = 2), whereas fitself in Newton's method yields linear convergence with K,, = ( m - 1)/m (see Rall [2]). The price of gaining quadratic convergence is having to calculate not only f and f ' but also f ". Inspired by a procedure due to Steffensen, Esser [6] has recently proposed that the derivatives of f i n (3) be replaced by divided differences. The increment ( - f ) for these differences is not constant, however, but shrinks as the root is approached. Such a scheme is a natural way of defining differences with the desired derivative properties. Esser's method indeed is quadratic, calls for three function evaluations per step, and provides the multiplicity m as well as the root ~. 1 Its efficiency index (see Traub [1], p. 263) is 27= 1.260.

2. A method for multiple roots.

In the same spirit we propose for multiple roots that the secant method be used not with the function F = f / f ' but rather with

(4) G f ( x ) - f 2 ( x ) f ( x - f ( x ) ) - f ( x ) - f ( x - f ( x ) ) - f ( x ) " ( x - f ( x ) ) - x Here again f ' has been replaced by a divided difference off, with increment ( - f ). It will be instructive to compare G with F, to see why both yield superlinear convergence when used as secant method functions. First of all we want to find the value of F and its first three derivatives at ~. Note that if the function f h a s a root of multiplicity m at ~, then it may be written a s

(5) f ( x ) = (x-oO'~g(x), g ( , ) , 0.

Furthermore since the secant algorithm (1) gives x2 as a linear function of Xo and xl, it follows that a translation of f by ( x - ~ ) enables us without loss of generality to t~tke ~=0. Consequently F (. ) may be expressed in terms of g as

(6) F(0) = (^) mg (x) + xg'(x) xg(x) (^) x=0 = 0 ,

i.e., ~ is a root of F. Differentiating F we see that

(7) F' (0) = mgz + x2 - - , - ~ - (g,2 _ gg")l (^) = - - 4 = 0 1 (mg ÷ xg ) I~= o m '

so that in fact ~ is a simple root of F. Further differentiation shows that

2 g'(0) (8) F"(0) = m2 g(0)

3 2 4 RICHARD F. KING

m = l m = 2 m = 3 m > 4 f'(c 0 g(~) 0 0 0 f"(~) 2g'(~) 2g(~) 0 0 f'"(~) 3g"(,) 6g'(~) 6g(~) 0. Thus G has a simple root at ~, and otherwise exhibits ~enavior quite similar to that of F. When G is used in the secam method,

G (13) x2 = x i - (x0 - x l ) Go_ G 1

it produces superlinear convergence. The_asymptotic error equation for this, the proposed method, is f l G"(a)) )'1 G'i'(a) /'1 G"(a)'~2) ,

It is well known that for this procedure the order of convergence is p = (1 + 5¢)/

= 1.618. Since the two function evaluations f(xl) and f ( x l - f ( x l ) ) are required

each step, it follows that the efficiency index is (1.618) ~= 1.272. Wo2niakowski [8] has shown that secant iteration such as that proposed is stable provided only that G be computed by a well-behaved algorithm.* For example, a polynomial f u s e d in forming G should be evaluated by Homer's rule rather than term by term. Furthermore one must remember that in order to calculate a multiple root accurately it is necessary to use multiprecision arithmetic.

3. Finding the multiplicity m. From (11) and (6) we can see that for small ~ e l g ( x l ). ~ (15) G~ "-- F 1 = = - -.

mg(xl)+eig'(xl) m

Similarly we know that G2-~2/m. Furthermore e2 - e 1 = x 2 - x l. Consequently when nearing the root c~ we can estimate its multiplicity by computing

X 2 - - X l (16) m "- G2 - G i

Thus m is approximately the reciprocal of the divided difference of G for successive iterates Xl and x 2. It may be computed ,and displayed at each step along with the current iterate.

  • T h a n k s are due to the referee for raising the question of the m e t h o d ' s stability.

A SECANT METHOD FOR MULTIPLE ROOTS 325

4. Examples.

Results from three examples computed (in quadruple precision) on an IBM 370 are shown in Tables 1-3. In each case the predicted error e2 as calculated from (14) is seen to be a good approximation to the actual error x - e , and the estimated multiplicity m from (16) approaches its actual value. N o careful convergence criteria were either discussed in the analysis or used in the examples. The secant method was also applied to f directly for the examples; some 47, 69, and 66 steps, respectively, were required to obtain final accuracy comparable to that of the proposed method.

R E F E R E N C E S

  1. J. F. Traub, Iterative Methods for the Solution of Equations, Prentice-Hall, Englewood Cliffs, N.J. (1964).
  2. L. B. Rall, Convergence of the Newton process to multiple solutions, Numerische Mathematik 9 (1966), 23-37.
  3. T. O. Espelid, On the behavior of the secant method near a multiple root, BIT I1 (1972), 112-115.
  4. N. Anderson and ,~,. Bj6rck, A new high order method of regula falsi type for computing a root of an equation, BIT 13 (i975), 253-264.
  5. G. W. Stewart, The convergence ofmultipoint iterations to multiple zeros, SIAM J. Numer. Anal. 11 (1974), 1105-1120.
  6. H. Esser, Eine stets quadratisch konvergente Modifikation des Steffensen-Verfahrens, Computing 14 (1975), 367-369.
  7. D. Woodhouse, A note on the secant method, BIT 15 (1975), 323-327.
  8. H. Wo~niakowski, Numerical stability for solving nonlinear equations, Numerische Mathematik 27 (1977), 373-390.

Table 2. f g m cx g (e) g' (~) g" (e) G' (e) G" (~) G"' (e) x (x - 2) 3 x 3 2 2 1 0 1/3 -- 1/9 38/

(' Z,-q

,--t G x - ~ ~ m

- 1. 0 - 1. 0

  • .803700 -. --.250516 --,490577 - 3.71250. -. 1 2 4 8 6 9 -. 3 0 5 1 6 4 -- 1.35268 1.4756629 (^) t-, --.0422846 --.120899 --.273133 2,
  • .00890302 -- .0265526 -- .0388973 2,
  • -. 5 3 6 7 5 1 ( - 8 ) --.000463443 -. 0 0 1 3 9 0 0 0 --.00152117 2. 7 1.99999175536 - A 12084( - 14) -. 0 0 0 0 0 2 7 4 8 2 2 --.00000824464 -. 0 0 0 0 0 8 2 9 9 9 2 2. 8 1.99999999806 -. 1 4 6 7 8 5 ( - 2 5 ) -. 6 4 7 7 8 3 ( - 9 ) -. 1 9 4 3 3 5 ( - 8 ) -. 1 9 4 3 3 9 ( - 8 ) 2:

n x f 0 1.0 --1, 1 t.1 --. 2 1.509423 --. 3 1.694836 --. 4 1.879101 --. 5 1.9734474 - , 0 0 0 0 3 6 9 4 4 3 6 1.

"--....

©

O

Table 3. f g m g g(~) g'(~) g"(~) G'(~) G"(g) G"(g) (x-2)4/((x-1)2+l) ( ( x - 1 ) 2 + l ). -1 4 2 1/2 - 1 / 2 1/2 1/4 1/8 3/ 8n+2 .~- 1/4~n~n+

n x .............. f G x - ~ e 0 3.0 .2 .386861 1. 1 2.9 .142321 .328118. 2 2.341439 .00485487 .0946965 .341439. 3 2.114837 .0000775386 .0295811 .114837. 4 2.0118941 .988848(-8) .00298239 .0118941. 5 2.000351611 .763957(- 14) .0000879106 .000351611. 6 2.00000104590 .598310(-24) .261474(-6) .104590(-5) .104552(-5)

m

I'-o

~