All courses › Numerical Methods › Newton's method

Newton's method

Newton's method finds a root by following the tangent of ff down to where it crosses the x-axis, repeatedly. Near a simple root it converges quadratically — the number of correct digits roughly doubles each step — but it needs the derivative and can diverge with a poor initial guess.

xn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}the iteration formula

Symbols

xnx_ncurrent approximation
f′(xn)f'(x_n)the derivative at xnx_n

Example

f(x)=x3−5f(x) = x^3 - 5, x0=3x_0 = 3:

x1=3−27−527≈2.1852x_1 = 3 - \frac{27-5}{27} \approx 2.1852.

Newton's method can diverge if f′(xn)f'(x_n) is near zero or the initial guess is poor.
Practise solving equations for free →

← Bisection method · Secant method →

Part of Numerical Methods: Solving equations.