the order of convergence for the secant method

3
Numerical Analysis Grinshpan THE ORDER OF CONVERGENCE FOR THE SECANT METHOD. Suppose that we are solving the equation f (x) = 0 using the secant method. Let the iterations (1) x n+1 = x n - f (x n ) x n - x n-1 f (x n ) - f (x n-1 ) , n =1, 2, 3,..., be successful and approach a solution α, f (α) = 0, as n →∞. How fast do they converge? Can we find the exponent p such that |x n+1 - α|≈ C |x n - α| p , as we did for bisections and Newton’s method? Yes we can, but the error analysis is a bit more involved. Equation (1) expresses the iterate x n+1 as a function of x n and x n-1 . Let x n = α + n . Since x n α, the sequence of errors n approaches 0 as n →∞. In terms of α and n the formula becomes (2) n+1 = n - f (α + n )( n - n-1 ) f (α + n ) - f (α + n-1 ) . Assume that f (x) is a two times differentiable function and that f (α),f (α) = 0. Write Taylor’s formula: f (α + )= f (α)+ f (α) + f (α) 2 2 + R 2 (). Here f (α) = 0, is small, and R 2 () is the remainder term. Recall that R 2 () vanishes at = 0 at a faster rate than 2 . Neglecting the terms of order higher than 2 in , we have the approximation f (α + ) f (α) + f (α) 2 2 . Set for brevity M = f (α) 2f (α) , and use the approximate equalities f (α + n ) n f (α) ( 1+ M n ) f (α + n ) - f (α + n-1 ) f (α)( n - n-1 ) ( 1+ M ( n + n-1 ) ) to simplify equation (2): n+1 n - n f (α)(1 + M n )( n - n-1 ) f (α)( n - n-1 ) ( 1+ M ( n + n-1 ) ) = n - n (1 + M n ) 1+ M ( n + n-1 ) = n-1 n M 1+ M ( n + n-1 ) n-1 n M.

Upload: phamhuong

Post on 18-Jan-2017

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: THE ORDER OF CONVERGENCE FOR THE SECANT METHOD

Numerical Analysis

Grinshpan

THE ORDER OF CONVERGENCE FOR THE SECANT METHOD.

Suppose that we are solving the equation f(x) = 0 using the secant method. Let theiterations

(1) xn+1 = xn − f(xn)xn − xn−1

f(xn)− f(xn−1), n = 1, 2, 3, . . . ,

be successful and approach a solution α, f(α) = 0, as n →∞. How fast do theyconverge? Can we find the exponent p such that

|xn+1 − α| ≈ C|xn − α|p,as we did for bisections and Newton’s method?Yes we can, but the error analysis is a bit more involved.

Equation (1) expresses the iterate xn+1 as a function of xn and xn−1.

Let xn = α + εn. Since xn → α, the sequence of errors εn approaches 0 as n →∞. Interms of α and εn the formula becomes

(2) εn+1 = εn −f(α + εn)(εn − εn−1)

f(α + εn)− f(α + εn−1).

Assume that f(x) is a two times differentiable function and that f ′(α), f ′′(α) 6= 0.Write Taylor’s formula:

f(α + ε) = f(α) + f ′(α)ε +f ′′(α)

2ε2 + R2(ε).

Here f(α) = 0, ε is small, and R2(ε) is the remainder term. Recall that R2(ε) vanishes atε = 0 at a faster rate than ε2. Neglecting the terms of order higher than 2 in ε, we havethe approximation

f(α + ε) ≈ f ′(α)ε +f ′′(α)

2ε2.

Set for brevity

M =f ′′(α)

2f ′(α),

and use the approximate equalities

f(α + εn) ≈ εnf′(α)

(1 + Mεn

)f(α + εn)− f(α + εn−1) ≈ f ′(α)(εn − εn−1)

(1 + M(εn + εn−1)

)to simplify equation (2):

εn+1 ≈ εn −εnf

′(α)(1 + Mεn)(εn − εn−1)

f ′(α)(εn − εn−1)(1 + M(εn + εn−1)

)= εn −

εn(1 + Mεn)

1 + M(εn + εn−1)

=εn−1εnM

1 + M(εn + εn−1)

≈ εn−1εnM.

Page 2: THE ORDER OF CONVERGENCE FOR THE SECANT METHOD

2

We have obtained a relation for the errors,

(3) εn+1 ≈f ′′(α)

2f ′(α)εn−1εn,

where the terms of order higher than 2 in ε are neglected.

Compare (3) to the corresponding formula for Newton’s method:

εn+1 ≈f ′′(α)

2f ′(α)ε2n.

Formula (3) tells us that, as n →∞, the error tends to zero faster than a linear functionand yet not quadratically. What exactly is the rule

|εn+1| ≈ C|εn|p

determined by (3)? Argue as follows. If |εn+1| ≈ C|εn|p then

C|εn|p ≈ |M ||εn−1||εn|

|εn|p−1 ≈ |M |C

|εn−1|

|εn| ≈(|M |C

) 1p−1

|εn−1|1

p−1 .

Therefore, C =(

|M |C

) 1p−1

and p = 1p−1

. Because p > 0, the condition on p gives

p =1 +

√5

2≈ 1.618.

The condition on C then implies that

Cp = |M | or C = |M |1/p =

∣∣∣∣ f ′′(α)

2f ′(α)

∣∣∣∣p−1

.

We conclude that for the secant method

|xn+1 − α| ≈∣∣∣∣ f ′′(α)

2f ′(α)

∣∣∣∣√

5−12

|xn − α|√

5+12 .

Evidently, the order of convergence is generally lower than for Newton’s method.However the derivatives f ′(xn) need not be evaluated, and this is a definitecomputational advantage.

Page 3: THE ORDER OF CONVERGENCE FOR THE SECANT METHOD

3

Remark. We can give a linear estimate of the error α− xn in terms of the iterates.It is valid for both Newton and secant methods. By the mean value theorem,

f(α)− f(xn) = f ′(cn)(α− xn),

where cn lies between xn and α. So, if xn → α, then cn ≈ xn for large n, and we have

α− xn = − f(xn)

f ′(cn)

≈ − f(xn)

f ′(xn)

≈ −f(xn)xn − xn−1

f(xn)− f(xn−1)

= xn+1 − xn.

Thusα− xn ≈ xn+1 − xn.

Although this formula is not deep enough to exhibit the order of convergence, it issimple and allows to judge the absolute error of xn after (n + 1) iterations.