Steffensen's method ends and converges quadratically near a simple root full
This proof shows: correctness, termination, local-convergence.
We write xk for the value of x at the start of pass k+1, yk=xk+f(xk), ek=xk−x∗, and dk=f[xk,yk]. The arithmetic is exact except in Claim 1.
Claim 1: termination and the flags
Each pass returns or increases k, and k≤kmax, so the loop ends after at most kmax passes, each with at most two evaluations. The flags record the tests of lines L3, L5 and L10. In floating point, y=x in line L5 happens exactly when the computed x+f(x) rounds to x, which implies ∣f(x)∣≤u∣x∣ in round-to-nearest.
Claim 2: the error identity
Assume f(xk)=0, so yk=xk, and dk=0. Then
ek+1=ek−dkf(xk)=dkek(dk−f[x∗,xk]), because f(xk)=f(xk)−f(x∗)=f[x∗,xk]ek. By the definition of the second divided difference, dk−f[x∗,xk]=f[xk,yk]−f[x∗,xk]=f[x∗,xk,yk](yk−x∗), and yk−x∗=ek+f(xk). Hence
ek+1=f[xk,yk]f[x∗,xk,yk]ek(ek+f(xk)). Claim 3: local quadratic convergence
Let f∈C2 on I=[x∗−r,x∗+r] with f(x∗)=0, and let L=maxI∣f′∣, μ=minI∣f′∣>0, M=maxI∣f′′∣ and K=M(1+L)/(2μ). Suppose (1+L)∣ek∣≤r and K∣ek∣≤21.
By the mean value theorem ∣f(xk)∣≤L∣ek∣, so ∣yk−x∗∣≤(1+L)∣ek∣≤r and yk∈I. On I, ∣f[xk,yk]∣≥μ because it equals f′ at a point of I, and ∣f[x∗,xk,yk]∣≤M/2 because it equals f′′/2 at a point of I. So dk=0, and Claim 2 gives
∣ek+1∣≤2μM∣ek∣(∣ek∣+L∣ek∣)=K∣ek∣2≤21∣ek∣. Then (1+L)∣ek+1∣≤r and K∣ek+1∣≤21, so by induction the hypotheses hold for all k, ek→0, and K∣ek∣≤(K∣e0∣)2k. If f(xk)=0 at some step, then xk=x∗ because f′=0 on I.
The constant. As ek→0, f[x∗,xk,yk]→f′′(x∗)/2, f[xk,yk]→f′(x∗) and (ek+f(xk))/ek→1+f′(x∗), so
ek2ek+1→2f′(x∗)f′′(x∗)(1+f′(x∗)). If f′(x∗)=−1 this limit is 0; with f∈C3 the identity then gives ∣ek+1∣=O(∣ek∣3).
For x=g(x) with g∈C2 and g′(x∗)=1, put f(x)=g(x)−x. Then f′(x∗)=g′(x∗)−1=0, xk+f(xk)=g(xk)=y and f(y)=g(y)−y=z−y, so the root step is −(y−xk)2/(z−2y+xk), the Aitken step. Claim 3 applies to f, so the fixed-point form converges quadratically from close starts, whatever the size of ∣g′(x∗)∣.
What is not proved
The behaviour far from the root, at multiple roots, and the pass counts of the examples are observations.