Home › Algebraic Equations › Lesson 13

Numerical Solution — Newton's Method and Its Convergence

Lesson 13 of 13

Key idea of this section

xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ)
xₙ₊₁ − r = (f″(ξₙ) / (2f′(xₙ))) (xₙ − r)²          (quadratic convergence at a simple root)

When the roots of an equation have no expression by radicals, or when the expression is unusable, we compute them. Every serious root-finder rests on a few ideas: bracketing (bisection), local linearization (Newton), counting (Sturm), and linear algebra (eigenvalues of the companion matrix).

Newton's method

Replace f near xₙ by its tangent line f(xₙ) + f′(xₙ)(x − xₙ) and take the zero of the tangent as the next approximation. The idea goes back to Newton (1669, for polynomials, in a different form) and Raphson (1690); the modern formulation with derivatives is due to Simpson (1740).

Theorem 13.1 (Local quadratic convergence). Let f be twice continuously differentiable near r with f(r) = 0 and f′(r) ≠ 0. Then there is δ > 0 such that for every x₀ ∈ [r − δ, r + δ], the Newton iterates stay in this interval, converge to r, and satisfy |xₙ₊₁ − r| ≤ C|xₙ − r|² for a constant C. Moreover (xₙ₊₁ − r)/(xₙ − r)² → f″(r)/(2f′(r)).

Proof. Choose δ > 0 so that on I = [r − δ, r + δ] we have |f′| ≥ m > 0 and |f″| ≤ M, and so that Cδ < 1, where C = M/(2m). For xₙ ∈ I, Taylor's theorem with Lagrange remainder gives 0 = f(r) = f(xₙ) + f′(xₙ)(r − xₙ) + ½f″(ξₙ)(r − xₙ)² for some ξₙ between r and xₙ. Dividing by f′(xₙ) and rearranging,

xₙ₊₁ − r = xₙ − r − f(xₙ)/f′(xₙ) = (f″(ξₙ)/(2f′(xₙ))) (xₙ − r)²

so |xₙ₊₁ − r| ≤ C|xₙ − r|² ≤ Cδ|xₙ − r| < |xₙ − r|, and xₙ₊₁ ∈ I. By induction all iterates lie in I, and C|xₙ − r| ≤ (C|x₀ − r|)2ⁿ → 0, a doubly exponential decay. As xₙ → r, also ξₙ → r, giving the limit. ∎

In practice, quadratic convergence means that the number of correct digits roughly doubles at each step. For f = x² − 2 the iteration is xₙ₊₁ = (xₙ + 2/xₙ)/2, the ancient Babylonian (Heron's) method, and xₙ₊₁ − √2 = (xₙ − √2)²/(2xₙ) exactly. From x₀ = 1:

x₁ = 1.5
x₂ = 1.416666666667
x₃ = 1.414215686275
x₄ = 1.414213562375          (√2 = 1.41421356237…)

The ratio (xₙ₊₁ − √2)/(xₙ − √2)² tends to 1/(2√2) ≈ 0.3536, which is f″(r)/(2f′(r)) = 2/(4√2).

Multiple roots

If r is a root of multiplicity m ≥ 2, write f = (x − r)ᵐ g with g(r) ≠ 0. The Newton map N(x) = x − f(x)/f′(x) has f/f′ = (x − r)g/(mg + (x − r)g′), so N′(r) = 1 − 1/m ≠ 0. Convergence is merely linear, with ratio (m − 1)/m. For f = (x − 1)²(x + 2) from x₀ = 2, the errors are 0.5556, 0.2979, 0.1554, 0.0796, 0.0403: each roughly half the previous one, as m = 2 predicts. The modified iteration xₙ₊₁ = xₙ − m f(xₙ)/f′(xₙ) restores quadratic convergence (iterates 1.1111, 1.00195, 1.0000006), and Newton's method applied to f/f′, whose roots are all simple, avoids needing to know m.

Global behaviour, cycles and fractals

Newton's method is local. For f = x³ − 2x + 2 and x₀ = 0, one finds x₁ = 0 − 2/(−2) = 1 and x₂ = 1 − 1/1 = 0, so the iteration cycles forever between 0 and 1, while the only real root is r ≈ −1.7693. The cycle is attracting: the Newton map has N′(x) = f(x)f″(x)/f′(x)², which vanishes at 0 because f″(0) = 0, so the derivative of N∘N along the cycle is N′(0)N′(1) = 0, and an open interval of starting points around 0 is trapped. In the complex plane, Cayley (1879) asked for the basins of attraction of Newton's method for z³ − 1. The answer, understood only with the development of complex dynamics by Fatou and Julia (1918–1920) and visualized by computer in the 1980s, is that the three basins share a common fractal boundary, the Julia set of the Newton map: every boundary point of one basin is a boundary point of all three. Despite this, Hubbard, Schleicher and Sutherland (2001) showed that for every polynomial of degree d, suitably normalized, an explicit set of O(d log² d) starting points finds all the roots.

Bisection and Sturm sequences

If f is continuous with f(a)f(b) < 0, halving the interval and keeping the half with a sign change gains one binary digit per step, regardless of f′. Robust solvers (Brent's method) combine guaranteed bisection with fast interpolation steps. To find intervals with exactly one root, one counts roots.

Theorem 13.2 (Sturm, 1829). Let f ∈ ℝ[x] be square-free. Define p₀ = f, p₁ = f′, and pᵢ₊₁ = −(remainder of pᵢ₋₁ divided by pᵢ), until a constant pₖ is reached. For x not a root of f, let V(x) be the number of sign changes in p₀(x), p₁(x), …, pₖ(x), ignoring zeros. Then for a < b, neither a root, the number of distinct real roots of f in (a, b) is V(a) − V(b).

Idea of proof. V can change only where some pᵢ vanishes. Consecutive pᵢ have no common zero (their gcd is gcd(f, f′) = 1), and if pᵢ(c) = 0 with 0 < i < k then pᵢ₋₁(c) = −pᵢ₊₁(c), so the pair around pᵢ contributes exactly one sign change on both sides of c, and V does not change. At a root c of f, f and f′ have opposite signs just to the left of c and equal signs just to the right, so V drops by exactly one. ∎

Example. For f = x³ − 3x + 1: p₁ = 3x² − 3; dividing, f = (x/3)p₁ + (−2x + 1), so p₂ = 2x − 1; then p₁ evaluated at x = 1/2 gives the remainder −9/4, so p₃ = 9/4. At x = 0 the signs are (+, −, −, +), with V(0) = 2. At x = 2 the values are (3, 9, 3, 9/4), with V(2) = 0. So f has exactly two roots in (0, 2) (they are 2cos(4π/9) ≈ 0.3473 and 2cos(2π/9) ≈ 1.5321). As x → −∞ the signs are (−, +, −, +), with V = 3, and as x → +∞ they are all +, so f has three real roots in total.

Linear algebra and conditioning

The roots of the monic polynomial xⁿ + cₙ₋₁xⁿ⁻¹ + ⋯ + c₀ are the eigenvalues of its companion matrix, the n × n matrix with ones on the subdiagonal and last column (−c₀, −c₁, …, −cₙ₋₁)ᵀ. Computing them by the QR algorithm, which is backward stable, is how standard numerical libraries compute polynomial roots. Simultaneous iterations such as Weierstrass's (Durand–Kerner) method and the Aberth–Ehrlich method approximate all n roots at once.

Backward stability does not mean that roots are well determined by the coefficients. Wilkinson's polynomial w(x) = (x − 1)(x − 2)⋯(x − 20) became the classic warning: changing the coefficient −210 of x¹⁹ by 2⁻²³ (about 10⁻⁷) moves the roots 10 to 19 dramatically, five pairs becoming complex with imaginary parts of size up to about 2.8. The condition number of a simple root r with respect to a coefficient aₖ is |aₖ rᵏ| / |r f′(r)|, which is enormous for w. The lesson is that representing a polynomial by its monomial coefficients can itself be the ill-conditioned step; this is why the problem is often posed in other bases or as an eigenvalue problem from the start.

Exercise

  • (a)
    Apply two steps of Newton's method to x² − 3 starting from x₀ = 2.
  • (b)
    Show that the Newton map for f = (x − r)ᵐ is linear, and find its fixed-point ratio.
Show solution

Answers: (a) xₙ₊₁ = (xₙ + 3/xₙ)/2. Then x₁ = (2 + 1.5)/2 = 1.75 and x₂ = (1.75 + 1.714285…)/2 = 1.732142857…, compared with √3 = 1.732050808…; the error went from 0.268 to 0.018 to 0.000092. (b) f/f′ = (x − r)/m, so N(x) = x − (x − r)/m and N(x) − r = (1 − 1/m)(x − r). Each step multiplies the error by exactly (m − 1)/m.

V.3.1