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=xn−f(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=xn−f(xn)/f′(xn) .
  3. Stop if |xn+1−xn|<ε 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+1≈Cen2 (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)=x3−2x−5 , f′(x)=3x2−2 , start x0=2 .

x1=2−f(2)f′(2)=2−−110=2.1 x2=2.1−2.13−4.2−53⋅2.12−2=2.1−0.06111.23≈2.09457 x3≈2.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 ↩︎