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 on [2, 3], and . Starting from x = 3, the bound guarantees an error below after how many steps, and how many does Newton actually need?
The bound guarantees after 7 steps (after 6 it still allows ); the actual errors (0.27, 0.033, 5.8 × 10⁻⁴, 1.9 × 10⁻⁷) get there in 4. A proof works with the worst slope and curvature over the whole interval, so it's pessimistic, but it's a guarantee, which observation never is.
Name it
The theorem
Let f be twice continuously differentiable on an interval I containing a root r, with and on I. Let . If the Newton iterate is in I, then
The proof
By Taylor's theorem at , for some ξ between and r:
Divide by and rearrange, using :
and bound the fraction by .
Consequences
- Region of convergence: if 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 , induction gives
- Steps that suffice for a tolerance ε: the smallest n with , which is about : a doubly logarithmic count.
Worked example
Apply the theorem to on [1, 2].
Show the solution
- The constant C. and , so
- The start. From , and .
- The bound. Against the actual errors:
| n | Bound | Actual error |
|---|---|---|
| 1 | 0.17 | 0.086 |
| 2 | 0.015 | 0.0025 |
| 3 | ||
| 4 |
- Check. The actual errors are inside the bound at every step.
Answer with the theorem bounds the errors by 0.17, 0.015, and , and the actual errors stay inside at every step.
Worked example
Why is the hypothesis essential?
Show the solution
- A root where f' = 0. For , whose root at 0 has , Newton's iteration is which converges only linearly.
- The constant blows up. is infinite there, and the theorem rightly promises nothing.
- 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 , Newton's method converges only linearly.
Check
Put the steps of the proof of in order.
- Divide by , which is nonzero because .
- Conclude .
- Bound and .
- Substitute the Newton step to get .
- Expand f about by Taylor's theorem: .
Check
Step 1. Write newton_errors(f, df, x0, r, n) returning the list of errors for k = 0 to n, and check_bound(errors, C) returning True if for every step (allow 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 , and steps_needed(C, e0, eps), the smallest n whose bound is below eps (assume ).
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 6 and 2, what's Newton's constant C?
Check
With C = 0.5 and = 0.2, what's the a priori bound on ?
Explain why
Why does a bound of the form make the number of correct digits roughly double each step?
Multiply the inequality by C: . So the quantity is at most the square of the previous one. If , then , , : the exponent doubles each step, which is what "doubling the digits" means. The condition is what starts the squaring off in the shrinking direction; if the start is too far away, , the inequality allows the errors to grow, and Newton's method can indeed wander.
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.