Algorithm Search⌘K

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 [ak,bk][a_k, b_k] for the bracket after line L6 of pass kk, wk=bk−akw_k = b_k - a_k, xkx_k for the point evaluated in pass kk, and sk=xk+1−xks_k = x_{k+1} - x_k for the step chosen in pass kk (line L11). A pass is a Newton pass if line L9 keeps the Newton point and a bisection pass otherwise. Let w0=b−aw_0 = b - a for the input bracket.

Claim 1 (termination and the invariant). The method returns after at most kmax⁡k_{\max} passes. If line L2 passes, then in every pass xk∈(ak−1,bk−1)x_k \in (a_{k-1}, b_{k-1}), and f(ak)f(a_k), f(bk)f(b_k) are finite, nonzero and of opposite signs; xkx_k is one of aka_k, bkb_k, and [ak,bk]⊆[ak−1,bk−1][a_k, b_k] \subseteq [a_{k-1}, b_{k-1}].

Proof. The loop runs at most kmax⁡k_{\max} times. For k=1k = 1, x1x_1 is the midpoint. For k≥2k \ge 2, line L9 chooses xkx_k 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 xk−1x_{k-1}, the step is 00, and line L10 returns.) Line L5 returns unless f(xk)f(x_k) is finite and nonzero, and line L6 replaces the end whose value has the sign of f(xk)f(x_k) by xkx_k, which keeps opposite signs at the ends and makes xkx_k an end. □\square

Claim 2 (the number of passes). In exact arithmetic with δ>0\delta > 0, let N=⌈log⁡2(w0/δ)⌉N = \lceil \log_2 (w_0/\delta) \rceil. The method returns after at most (N+1)2(N + 1)^2 passes.

Proof. (i) Bisection passes. In a bisection pass kk, xk+1x_{k+1} is the midpoint of [ak,bk][a_k, b_k], and in pass k+1k + 1 line L6 makes it an end, so wk+1=wk/2w_{k+1} = w_k/2. Widths never increase. So after jj bisection passes, the width is at most w02−jw_0 2^{-j}, and once it is at most 2δ2\delta, line L7 returns at the next pass. Hence there are at most NN bisection passes before the pass in which line L7 returns.

(ii) Runs of Newton passes. Every step satisfies ∣sk∣<wk≤w0|s_k| < w_{k} \le w_0, since both xkx_k and xk+1x_{k+1} lie in [ak,bk][a_k, b_k]; also ∣s0∣:=w0|s_0| := w_0 for the initial value of sprevs_{\text{prev}}. A Newton pass kk has ∣sk∣≤∣sk−1∣/2|s_k| \le |s_{k-1}|/2. So in a run of rr consecutive Newton passes that starts after the step sjs_j, the last step has ∣s∣≤∣sj∣2−r≤w02−r|s| \le |s_j| 2^{-r} \le w_0 2^{-r}, and line L10 returns as soon as ∣s∣≤δ|s| \le \delta. So every run of Newton passes has at most NN passes.

(iii) The passes form at most N+1N + 1 runs of Newton passes separated by at most NN bisection passes, followed by the final pass. That is at most N(N+1)+N+1=(N+1)2N(N + 1) + N + 1 = (N + 1)^2 passes. □\square

Claim 3 (global convergence). Let f∈C1f \in C^1 on [a,b][a, b] with f(a)f(b)<0f(a) f(b) < 0, and run in exact arithmetic with δ=0\delta = 0 and kmax⁡=∞k_{\max} = \infty. If the method does not return an exact root, then xkx_k converges to a root of ff in [a,b][a, b].

Proof. The ends aka_k and bkb_k are monotone and bounded, with limits α≤β\alpha \le \beta, and f(α)f(\alpha) and f(β)f(\beta) have weakly opposite signs by continuity. Case 1: infinitely many bisection passes. Then wk→0w_k \to 0 by Claim 2(i), so α=β\alpha = \beta, and f(α)=0f(\alpha) = 0. Since xk∈[ak,bk]x_k \in [a_k, b_k], xk→αx_k \to \alpha. Case 2: finitely many. Then from some pass on all passes are Newton passes, and ∣sk∣≤∣sk−1∣/2|s_k| \le |s_{k-1}|/2, so ∑∣sk∣<∞\sum |s_k| < \infty and xkx_k converges to some L∈[a,b]L \in [a, b]. Since ∣f(xk)∣=∣f′(xk)∣ ∣sk∣≤max⁡[a,b]∣f′∣⋅∣sk∣→0|f(x_k)| = |f'(x_k)|\,|s_k| \le \max_{[a, b]} |f'| \cdot |s_k| \to 0, continuity gives f(L)=0f(L) = 0. □\square

Claim 4 (local quadratic convergence). Let f∈C2f \in C^2 on [a,b][a, b] with f′>0f' > 0 and f′′>0f'' > 0 there, let x∗x^* be the root, and M=max⁡∣f′′∣/(2min⁡∣f′∣)M = \max |f''|/(2 \min |f'|) over [a,b][a, b]. Suppose pass kk is a Newton pass from xk>x∗x_k > x^* with M(xk−x∗)≤1/6M(x_k - x^*) \le 1/6. Then every later pass is a Newton pass, x∗<xj+1<xjx^* < x_{j+1} < x_j (or an exact root is found), and ej+1≤Mej2e_{j+1} \le M e_j^2 for all j≥kj \ge k.

Proof. We show by induction on j≥kj \ge k: pass jj is a Newton pass from xj>x∗x_j > x^* with Mej≤1/6M e_j \le 1/6. It holds for j=kj = k. By the error identity of Newton's method, ej+1=f′′(ξ)ej2/(2f′(xj))e_{j+1} = f''(\xi) e_j^2/(2 f'(x_j)) with ξ∈(x∗,xj)\xi \in (x^*, x_j), so 0≤ej+1≤Mej2≤ej/60 \le e_{j+1} \le M e_j^2 \le e_j/6. If ej+1=0e_{j+1} = 0 the next pass returns at line L5. Otherwise x∗<xj+1<xjx^* < x_{j+1} < x_j, and Mej+1≤1/6M e_{j+1} \le 1/6. Now consider pass j+1j + 1. Since f(xj+1)>0f(x_{j+1}) > 0, line L6 sets b=xj+1b = x_{j+1}, and the bracket is [aj+1,xj+1][a_{j+1}, x_{j+1}] with aj+1<x∗a_{j+1} < x^*. The Newton point xj+2x_{j+2} lies in (x∗,xj+1)(x^*, x_{j+1}) by the same identity, so it is strictly inside the bracket. For the halving test, ∣sj∣=ej−ej+1≥56ej|s_j| = e_j - e_{j+1} \ge \tfrac56 e_j and ∣sj+1∣=ej+1−ej+2≤ej+1≤16ej|s_{j+1}| = e_{j+1} - e_{j+2} \le e_{j+1} \le \tfrac16 e_j, so ∣sj+1∣≤15∣sj∣≤12∣sj∣|s_{j+1}| \le \tfrac15 |s_j| \le \tfrac12 |s_j|. So pass j+1j + 1 is a Newton pass from xj+1>x∗x_{j+1} > x^* with Mej+1≤1/6M e_{j+1} \le 1/6. □\square

The other sign cases follow by applying Claim 4 to −f(x)-f(x), f(−x)f(-x) or −f(−x)-f(-x). 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 ∣f∣|f| reaches its rounding level, and the zero-step argument in Claim 1 ends the loop even with δ=0\delta = 0. ■\blacksquare

Back to Safeguarded Newton method