Newton–Raphson Method

Summary

Newton–Raphson linearizes f at the current guess and takes the root of that tangent line. For simple roots with a good start, convergence is locally quadratic.

Prerequisites

Problem Type

Solve f(x)=0 when f is available and a reasonable initial guess is known.

Method Definition

xn+1=xnf(xn)f(xn),f(xn)0.

Geometrically, xn+1 is where the tangent at (xn,f(xn)) hits the x -axis.[1]

Assumptions / Requirements

Algorithm

  1. Choose x0 , tolerance ε , max iterations.
  2. Compute xn+1=xnf(xn)/f(xn) .
  3. Stop if |xn+1xn|<ε or |f(xn+1)|<ε .
  4. Fail if f(xn)=0 or the budget is exhausted.

Convergence

For a simple root and x0 close enough, the error satisfies en+1Cen2 (quadratic). Multiple roots reduce the order to linear unless the method is modified.

Error / Accuracy

Use step size and residual together. Quadratic convergence means digits roughly double each successful iteration near the root.

Worked Example

f(x)=x32x5 , f(x)=3x22 , start x0=2 .

x1=2f(2)f(2)=2110=2.1 x2=2.12.134.2532.122=2.10.06111.232.09457 x32.09455148

Residual at x3 is already near machine noise for double precision in a few more steps.

Common Failure Modes

Connections

References


  1. Burden & Faires, Numerical Analysis, Newton’s method; NIST DLMF Ch. 3, https://dlmf.nist.gov/3 ↩︎