Ridders' method

From testwiki
Jump to navigation Jump to search

In numerical analysis, Ridders' method is a root-finding algorithm based on the false position method and the use of an exponential function to successively approximate a root of a continuous function f(x). The method is due to C. Ridders.[1][2]

Ridders' method is simpler than Muller's method or Brent's method but with similar performance.[3] The formula below converges quadratically when the function is well-behaved, which implies that the number of additional significant digits found at each step approximately doubles; but the function has to be evaluated twice for each step, so the overall order of convergence of the method with respect to function evaluations rather than with respect to number of iterates is 2. If the function is not well-behaved, the root remains bracketed and the length of the bracketing interval at least halves on each iteration, so convergence is guaranteed.

Method

Given two values of the independent variable, x0 and x2, which are on two different sides of the root being sought so thatf(x0)f(x2)<0, the method begins by evaluating the function at the midpoint x1=(x0+x2)/2. One then finds the unique exponential function eax such that function h(x)=f(x)eax satisfies h(x1)=(h(x0)+h(x2))/2. Specifically, parameter a is determined by

ea(x1x0)=f(x1)sign[f(x0)]f(x1)2f(x0)f(x2)f(x2).

The false position method is then applied to the points (x0,h(x0)) and (x2,h(x2)), leading to a new value x3 between x0 and x2,

x3=x1+(x1x0)sign[f(x0)]f(x1)f(x1)2f(x0)f(x2),

which will be used as one of the two bracketing values in the next step of the iteration. The other bracketing value is taken to be x1 if f(x1)f(x3)<0 (which will be true in the well-behaved case), or otherwise whichever of x0 and x2 has a function value of opposite sign to f(x3). The iterative procedure can be terminated when a target accuracy is obtained.

References

Template:Reflist

Template:Root-finding algorithms

Template:Mathapplied-stub