Skip to content

Newton's method, step by step

5 min read

Short answer

Start with a guess x0x_0 and repeat xn+1=xn−f(xn)f′(xn)x_{n+1}=x_n-\dfrac{f(x_n)}{f'(x_n)}: draw the tangent at xnx_n and take its zero as the next guess. Near a simple root the number of correct digits roughly doubles each step (quadratic convergence).

Bar chartx₀x₁x₂x₃Iterates for √2 starting at 1 (true value 1.41421).
Three steps reach five correct digits.

Where the formula comes from

The tangent at xnx_n is y=f(xn)+f′(xn)(x−xn)y=f(x_n)+f'(x_n)(x-x_n). Setting y=0y=0 and solving for xx gives the update. It is a linearization (first Taylor term) solved exactly at each step.

When it fails

If f′(xn)≈0f'(x_n)\approx0 the step is huge. A bad starting point can send iterates to another root or make them cycle. At a repeated root (f′=0f'=0 there too) convergence is only linear. A safe plan is to bracket the root first (bisection), then polish with Newton.

Worked example

Use Newton's method on f(x)=x2−2f(x)=x^2-2 with x0=1x_0=1 to approximate 2\sqrt2.

f′(x)=2xf'(x)=2x. x1=1−−12=1.5x_1=1-\dfrac{-1}{2}=1.5. x2=1.5−0.253=1.41667x_2=1.5-\dfrac{0.25}{3}=1.41667. x3=1.41667−0.0069442.83333=1.414216x_3=1.41667-\dfrac{0.006944}{2.83333}=1.414216. The true value is 1.4142141.414214.

Try it yourself

Write the Newton update for finding a\sqrt a (that is, f(x)=x2−af(x)=x^2-a).

Show the answer

xn+1=xn−xn2−a2xn=12(xn+axn)x_{n+1}=x_n-\dfrac{x_n^2-a}{2x_n}=\dfrac12\left(x_n+\dfrac a{x_n}\right), the ancient Babylonian averaging rule.

Keep going with practice

Vidi's multivariable lessons extend Newton's method to systems of equations using the Jacobian.