Proofs: Safeguarded Newton method
These are the human proofs of Safeguarded Newton method, at full length.
The safeguarded Newton method keeps its bracket, ends within (N + 1)^2 passes, converges for every C^1 function, and is quadratic once it takes a good Newton step full
This proof shows: correctness, termination, invariant, global-convergence, local-convergence.
We write for the bracket after line L6 of pass , , for the point evaluated in pass , and for the step chosen in pass (line L11). A pass is a Newton pass if line L9 keeps the Newton point and a bisection pass otherwise. Let for the input bracket.
Claim 1 (termination and the invariant). The method returns after at most passes. If line L2 passes, then in every pass , and , are finite, nonzero and of opposite signs; is one of , , and .
Proof. The loop runs at most times. For , is the midpoint. For , line L9 chooses strictly inside the bracket or as its midpoint. (In floating point the computed midpoint can equal an end when the ends are adjacent; then it equals , the step is , and line L10 returns.) Line L5 returns unless is finite and nonzero, and line L6 replaces the end whose value has the sign of by , which keeps opposite signs at the ends and makes an end.
Claim 2 (the number of passes). In exact arithmetic with , let . The method returns after at most passes.
Proof. (i) Bisection passes. In a bisection pass , is the midpoint of , and in pass line L6 makes it an end, so . Widths never increase. So after bisection passes, the width is at most , and once it is at most , line L7 returns at the next pass. Hence there are at most bisection passes before the pass in which line L7 returns.
(ii) Runs of Newton passes. Every step satisfies , since both and lie in ; also for the initial value of . A Newton pass has . So in a run of consecutive Newton passes that starts after the step , the last step has , and line L10 returns as soon as . So every run of Newton passes has at most passes.
(iii) The passes form at most runs of Newton passes separated by at most bisection passes, followed by the final pass. That is at most passes.
Claim 3 (global convergence). Let on with , and run in exact arithmetic with and . If the method does not return an exact root, then converges to a root of in .
Proof. The ends and are monotone and bounded, with limits , and and have weakly opposite signs by continuity. Case 1: infinitely many bisection passes. Then by Claim 2(i), so , and . Since , . Case 2: finitely many. Then from some pass on all passes are Newton passes, and , so and converges to some . Since , continuity gives .
Claim 4 (local quadratic convergence). Let on with and there, let be the root, and over . Suppose pass is a Newton pass from with . Then every later pass is a Newton pass, (or an exact root is found), and for all .
Proof. We show by induction on : pass is a Newton pass from with . It holds for . By the error identity of Newton's method, with , so . If the next pass returns at line L5. Otherwise , and . Now consider pass . Since , line L6 sets , and the bracket is with . The Newton point lies in by the same identity, so it is strictly inside the bracket. For the halving test, and , so . So pass is a Newton pass from with .
The other sign cases follow by applying Claim 4 to , or . Claim 4 does not say that such a pass occurs: after a bisection pass the next Newton step can fail the halving test against the long bisection step. In that case the width still halves, and Claim 2 bounds the number of passes.
Floating point. Claim 1 holds as stated. Claims 2 to 4 hold in exact arithmetic; in floating point the iterates follow them until reaches its rounding level, and the zero-step argument in Claim 1 ends the loop even with .