MathorynMathematical Formula Database

Calculus

Newton's Method

Newton's method finds roots of an equation f(x)=0f(x)=0 by repeatedly following the tangent line to where it crosses the xx-axis. Near a simple root it converges very fast, roughly doubling the number of correct digits each step, and is used in calculators and solvers.

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

Variables

xnx_n
current approximation
xn+1x_{n+1}
next approximation
f, f′f,\ f'
the function and its derivative

Example

Approximate 2\sqrt2 using f(x)=x2−2f(x)=x^2-2 and x0=1x_0=1.

  1. x1=1−−12=1.5x_1=1-\frac{-1}{2}=1.5.
  2. x2=1.5−0.253≈1.416667x_2=1.5-\frac{0.25}{3}\approx1.416667.
  3. x3≈1.414216x_3\approx1.414216.

Answer: 2≈1.414216\sqrt2\approx1.414216 after three steps.

Related formulas