Let f,f’,f’’ be continuous near α and suppose f(α)=0,f′(α)=0.
For a sufficiently close initial value x0,x1 to α, the sequence {xn} defined by
xn+1:=xn−f(xn)f(xn)−f(xn−1)xn−xn−1
converges to α with order 21+5 when n→∞.
Explanation
The Golden Ratio
The order of convergence might seem quite familiar – it is precisely the golden ratio, 21+5=1.618⋯. During the proof involving three consecutive terms from the sequence definition, the Fibonacci sequence appears, which is an interesting phenomenon before mentioning the usefulness of the secant method. This order indicates that the secant method is faster than the bisection method, but slower than the Newton-Raphson method.
The reason for adopting this method despite the faster Newton-Raphson method is that finding the derivative can be excessively difficult at times. Moreover, when compared in terms of the amount of computation, the lower convergence order of the secant method entails more computations than the Newton-Raphson method. However, the secant method may be preferable in terms of the computation cost per operation. The choice of the method depends on the problem (though frankly, almost no method other than the Newton method is used).
Initial Value Problem
Similar to the Newton-Raphson method, if the initial value is incorrectly given, it may not converge if it is not sufficiently close to α.
H{a,b,c,⋯} represents the smallest interval including a,b,c,⋯.
Part 1. Difference Table
Let us define f[x0,x1]:=f[x0,x1,x2]:=x1−x0f(x1)−f(x0)x2−x0f[x1,x2]−f[x0,x1]. These are called difference tables, and there exist
ξ∈ζ∈H{x0,x1}H{x0,x1,x2}
satisfying f’(ξ)=f[x0,x1] and 21f’’(ζ)=f[x0,x1,x2].
Part 2. α−xn+1=−(α−xn−1)(α−xn)2f’(ξn)f′′(ζn)
Multiplying both sides of xn+1=xn−f(xn)f(xn)−f(xn−1)xn−xn−1 by −1 and adding α results in
α−xn+1=α−xn+f(xn)f(xn)−f(xn−1)xn−xn−1,
and
α−xn+1=========α−xn+f(xn)−f(xn−1)xnf(xn)−xn−1f(xn)f(xn)−f(xn−1)xnf(xn)−xn−1f(xn)+αf(xn)−xnf(xn)−αf(xn−1)+xnf(xn−1)f(xn)−f(xn−1)1[−xn−1f(xn)+αf(xn)−αf(xn−1)+xnf(xn−1)]f(xn)−f(xn−1)1[(α−xn−1)f(xn)−(α−xn)f(xn−1)]−f(xn)−f(xn−1)(α−xn−1)(α−xn)[xn−αf(xn)−f(xn−1)]−f(xn)−f(xn−1)(α−xn−1)(α−xn)[xn−αf(xn)−f(α)−xn−1−αf(xn−1)−f(α)]−(α−xn−1)(α−xn)f(xn)−f(xn−1)1[f[xn,α]−f[xn−1,α]]−(α−xn−1)(α−xn)f(xn)−f(xn−1)xn−xn−1[xn−xn−1f[xn,α]−f[xn−1,α]]−(α−xn−1)(α−xn)f[xn−1,xn]f[xn−1,xn,α].
Arranging yields
α−xn+1=−(α−xn−1)(α−xn)f[xn−1,xn]f[xn−1,xn,α],
and by the properties of the difference table, the following is obtained:
α−xn+1=−(α−xn−1)(α−xn)2f’(ξn)f′′(ζn).
Part 3. Convergence
Consider a sufficiently small I:=[α−δ,α+δ] in the vicinity of α that satisfies all given assumptions.
Defining
M:=2minx∈I∣f′(x)∣maxx∈I∣f′′(x)∣
as follows, based on the results from Part 1,
∣α−xn+1∣≤∣α−xn∣∣α−xn−1∣M
Multiplying both sides by M results in
∣α−xn+1∣M≤(∣α−xn∣M)⋅(∣α−xn−1∣M)
Assuming a sufficiently small I, setting
ε:=max{(∣α−xn∣M),(∣α−xn−1∣M)}<1
yields
∣α−xn+1∣M≤ε2∣α−xn+3∣M≤(∣α−xn+2∣M)⋅(∣α−xn+1∣M)≤ε2⋅ε=ε3∣α−xn+4∣M≤(∣α−xn+3∣M)⋅(∣α−xn+2∣M)≤ε3⋅ε2=ε5
and in this manner, the inequality
∣α−xn+m+1∣M≤(∣α−xn+m∣M)⋅(∣α−xn+m−1∣M)≤εqm⋅εqm−1=εqm+1
is obtained.
The General Term of the Fibonacci Sequence: Let’s say a sequence {Fn} is defined as Fn+1:=Fn+Fn−1. If F0=F1=1 then for r0:=21+5 and r1:=21−5, Fn=r0−r1r0n+1−r1n+1.
{qm} is none other than the Fibonacci sequence, for a sufficiently large m,
qm∼51(1.618)m+1
Thus,
∣α−xn+m∣≤M1εqm
and when n→∞, xn→α, not only that but it can be seen that it converges with order
21+5∼1.618.
The itmax option is the maximum number of iterations, which defaults to giving up on the calculation if a precision solution is not found even after 1000 iterations.