A1453 of 55
0 XP
  1. Hook
  2. Predict
  3. Name it
  4. Check
  5. Explain

A14 · Lesson 53 · Project: proving a numerical method converges

Newton's method's error bound, derived from Taylor's theorem and checked against real iterates

A13 observed that Newton's method doubles its correct digits near a root. This project proves it, with an explicit constant, and then measures how good the proof is. The proof uses only the mean value theorem and Taylor's theorem with remainder: if the slope stays away from zero and the curvature is bounded near the root, each error is at most a fixed multiple of the previous error squared. From that one inequality follow a guaranteed region of convergence, an a priori bound on every iterate, and the number of steps that certainly suffices. You'll write each piece, then compare the guarantees with what Newton's method actually does.

Predict

For f(x)=x3−2x−5 on [2, 3], |f′|≥10 and |f′′|≤18. Starting from x = 3, the bound guarantees an error below 10−6 after how many steps, and how many does Newton actually need?

Name it

The theorem

Let f be twice continuously differentiable on an interval I containing a root r, with |f′(x)|≥m>0 and |f′′(x)|≤M on I. Let C=M2m. If the Newton iterate xn is in I, then

|xn+1−r|≤C|xn−r|2

The proof

By Taylor's theorem at xn, for some ξ between xn and r:

0=f(r)=f(xn)+f′(xn)(r−xn)+f′′(ξ)2(r−xn)2

Divide by f′(xn) and rearrange, using xn+1=xn−f(xn)f′(xn):

xn+1−r=f′′(ξ)2f′(xn)(xn−r)2

and bound the fraction by M2m.

Consequences

  • Region of convergence: if C|e0|<1 and the iterates stay in I (true, for instance, when I is symmetric about r and wide enough), the errors shrink every step.
  • A priori bound: writing q=C|e0|, induction gives
|en|≤q2nC
  • Steps that suffice for a tolerance ε: the smallest n with q2nC<ε, which is about log2⁡ln⁡(Cε)ln⁡q: a doubly logarithmic count.

Worked example

Apply the theorem to f(x)=x2−2 on [1, 2].

Show the solution
  1. The constant C. f′=2x≥2 and f′′=2, so C=22⋅2=12
  2. The start. From x0=2, e0=0.586 and q=0.293.
  3. The bound. |en|≤2(0.293)2n Against the actual errors:
nBoundActual error
10.170.086
20.0150.0025
31.1×10−42.1×10−6
45.9×10−91.6×10−12
  1. Check. The actual errors are inside the bound at every step.

Answer with C=12 the theorem bounds the errors by 0.17, 0.015, 1.1×10−4 and 5.9×10−9, and the actual errors stay inside at every step.

Worked example

Why is the hypothesis |f′|≥m>0 essential?

Show the solution
  1. A root where f' = 0. For f(x)=x2, whose root at 0 has f′(0)=0, Newton's iteration is xn+1=xn2 which converges only linearly.
  2. The constant blows up. C=M2m is infinite there, and the theorem rightly promises nothing.
  3. In general. Multiple roots break quadratic convergence (A13, lesson 6).

Answer without it, C can be infinite: at a root where f' = 0, like the root 0 of x2, Newton's method converges only linearly.

Check

Put the steps of the proof of |en+1|≤Cen2 in order.

  1. Divide by f′(xn), which is nonzero because |f′|≥m.
  2. Conclude |xn+1−r|≤M2m|xn−r|2.
  3. Bound |f′′(ξ)|≤M and |f′(xn)|≥m.
  4. Substitute the Newton step xn+1=xn−f(xn)/f′(xn) to get xn+1−r=f′′(ξ)2f′(xn)(xn−r)2.
  5. Expand f about xn by Taylor's theorem: 0=f(r)=f(xn)+f′(xn)(r−xn)+f′′(ξ)2(r−xn)2.

Check

Step 1. Write newton_errors(f, df, x0, r, n) returning the list of errors |xk−r| for k = 0 to n, and check_bound(errors, C) returning True if ek+1≤Cek2 for every step (allow 10−15 of rounding slack).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 2. Write bound_after(C, e0, n), the a priori bound (Ce0)2nC, and steps_needed(C, e0, eps), the smallest n whose bound is below eps (assume Ce0<1).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

On an interval where |f′′|≤ 6 and |f′|≥ 2, what's Newton's constant C?

Check

With C = 0.5 and e0 = 0.2, what's the a priori bound on e4?

Explain why

Why does a bound of the form en+1≤Cen2 make the number of correct digits roughly double each step?

Practice

Keep practicing

5 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.