Rahul Sharma (Editor)

Steffensen's method

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In numerical analysis, Steffensen's method is a root-finding technique similar to Newton's method, named after Johan Frederik Steffensen. Steffensen's method also achieves quadratic convergence, but without using derivatives as Newton's method does.

Contents

Simple description

The simplest form of the formula for Steffensen's method occurs when it is used to find the zeros, or roots, of a function f  ; that is: to find the value x that satisfies f ( x ) = 0  . Near the solution x  , the function f is supposed to approximately satisfy 1 < f ( x ) < 0  ; this condition makes the function f adequate as a correction for finding its own solution, although it is not required to work efficiently. For some functions, Steffensen's method can work even if this condition is not met, but in such a case, the starting value x 0   must be very close to the actual solution x  , and convergence to the solution may be slow.

Given an adequate starting value x 0    , a sequence of values x 0 ,   x 1 ,   x 2 , ,   x n , can be generated using the formula below. When it works, each value in the sequence is much closer to the solution x than the prior value. The value x n   from the current step generates the value x n + 1   for the next step, via this formula:

x n + 1 = x n f ( x n ) g ( x n )

for n = 0, 1, 2, 3, ... , where the slope function g ( x n ) is a composite of the original function f given by the following formula:

g ( x n ) = f ( x n + f ( x n ) ) f ( x n ) f ( x n ) .

The function g is the average value for the slope of the function f between the last sequence point ( x , y ) = ( x n ,   f ( x n ) ) and the auxiliary point ( x , y ) = ( x n + h ,   f ( x n + h ) )  , with the step h = f ( x n )    . It is also called the first-order divided difference of f between those two points.

It is only for the purpose of finding h for this auxiliary point that the value of the function f must be an adequate correction to get closer to its own solution, and for that reason fulfill the requirement that 1 < f ( x ) < 0  . For all other parts of the calculation, Steffensen's method only requires the function f to be continuous and to actually have a nearby solution. Several modest modifications of the step h in the slope calculation g exist to accommodate functions f that do not quite meet the requirement.

Advantages and drawbacks

The main advantage of Steffensen’s method is that it has quadratic convergence like Newton's method – that is, both methods find roots to an equation f just as ‘quickly’. In this case quickly means that for both methods, the number of correct digits in the answer doubles with each step. But the formula for Newton's method requires a separate function for the derivative; Steffensen’s method does not. So Steffensen's method can be programmed for a generic function, as long as that function meets the constraints mentioned above.

The price for the quick convergence is the double function evaluation: both f ( x n ) and f ( x n + h ) must be calculated, which might be time-consuming if f is a complicated function. For comparison, the secant method needs only one function evaluation per step, so with two function evaluations the secant method can do two steps, and two steps of the secant method increase the number of correct digits by a factor of 1.6 . The equally time-consuming single step of Steffensen’s (or Newton’s) method increases the correct digits by a factor of 2 , which is only slightly better than the secant method.

Similar to Newton's method and most other quadratically convergent algorithms, the crucial weakness in Steffensen’s method is the choice of the starting value x 0  . If the value of x 0 is not close ‘enough’ to the actual solution x  , the method may fail and the sequence of values x 0 , x 1 , x 2 , x 3 , may either flip flop between two extremes, or diverge to infinity (possibly both!).

Derivation using Aitken's delta-squared process

The version of Steffensen's method implemented in the MATLAB code shown below can be found using the Aitken's delta-squared process for accelerating convergence of a sequence. To compare the following formulae to the formulae in the section above, notice that x n = p     p n  . This method assumes starting with a linearly convergent sequence and increases the rate of convergence of that sequence. If the signs of p n ,   p n + 1 ,   p n + 2 agree and p n   is sufficiently close to the desired limit of the sequence p   , we can assume the following:

p n + 1 p p n p p n + 2 p p n + 1 p

then

( p n + 1 p ) 2 ( p n + 2 p ) ( p n p )

so

p n + 1 2 2 p n + 1 p + p 2 p n + 2 p n ( p n + p n + 2 ) p + p 2

and hence

( p n + 2 2 p n + 1 + p n ) p p n + 2 p n p n + 1 2  .


Solving for the desired limit of the sequence p gives:

p p n + 2 p n p n + 1 2 p n + 2 2 p n + 1 + p n = p n 2 + p n p n + 2 + 2 p n p n + 1 2 p n p n + 1 p n 2 p n + 1 2 p n + 2 2 p n + 1 + p n = ( p n 2 + p n p n + 2 2 p n p n + 1 ) ( p n 2 2 p n p n + 1 + p n + 1 2 ) p n + 2 2 p n + 1 + p n = p n ( p n + 1 p n ) 2 p n + 2 2 p n + 1 + p n ,


which results in the more rapidly convergent sequence:

p p n + 3 = p n ( p n + 1 p n ) 2 p n + 2 2 p n + 1 + p n .

Implementation in Matlab

Here is the source for an implementation of Steffensen's Method in MATLAB.

Generalization

Steffensen's method can also be used to find an input x = x for a different kind of function F that produces output the same as its input: x = F ( x ) for the special value x  . Solutions like x are called fixed points. Many such functions can be used to find their own solutions by repeatedly recycling the result back as input, but the rate of convergence can be slow, or the function can fail to converge at all, depending on the individual function. Steffensen's method accelerates this convergence, to make it quadratic.

This method for finding fixed points of a real-valued function has been generalised for functions F : X X on a Banach space X  . The generalised method assumes that a family of bounded linear operators { L ( u , v ) : u , v X } associated with u   and v   can be found to satisfy the condition

F ( u ) F ( v ) = L ( u , v )   ( u v ) .

In the simple form given in the section above, the function f simply takes in and produces real numbers. There, the function g is a divided difference. In the generalized form here, the operator L is the analogue of a divided difference for use in the Banach space. The operator L is equivalent to a matrix whose entries are all functions of vector arguments u   and v   .

Steffensen's method is then very similar to the Newton's method, except that it uses the divided difference L ( F ( x ) , x )   instead of the derivative F ( x )    . It is thus defined by

x n + 1 = x n + [ I L ( F ( x n ) , x n ) ] 1 ( F ( x n ) x n ) ,  

for n = 1 ,   2 ,   3 ,   . . .  , and where I   is the identity operator.

If the operator L   satisfies

L ( u , v ) L ( x , y ) K ( u x + v y )

for some constant K    , then the method converges quadratically to a fixed point of F if the initial approximation x 0   is "sufficiently close" to the desired solution x  , that satisfies x = F ( x )  .

References

Steffensen's method Wikipedia