Newton's Method Calculator

Type a function and a starting guess to find a root.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Starting valuex0x_0

A first guess close to the root you want.

Up to 50; it stops early once two guesses agree.

Try

Result

You enteredf(x)=x3−2x−5=0,x0=2f(x) = x^{3} - 2x - 5 = 0,\quad x_0 = 2

x≈2.094551\displaystyle x \approx 2.094551
Show the work
  1. Newton's method

    Each step replaces the graph by its tangent line at the current guess and moves to where that line crosses the x-axis.

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

    f′(x)=3x2−2f'(x) = 3x^{2} - 2
  2. The first step

    Start at x0=2x_0 = 2.

    x1=2−−110=2.1\begin{aligned} x_1 &= 2 - \frac{-1}{10} \\ &= 2.1 \end{aligned}
  3. Table of the iterations

    The iteration stops when two guesses agree to 12 decimal places.

    nxnf(xn)02−112.10.06122.0945680.00018632.0945511.740×10−942.094551−8.882×10−1652.094551−8.882×10−16\begin{array}{c|c|c} n & x_n & f(x_n) \\ \hline 0 & 2 & -1 \\ 1 & 2.1 & 0.061 \\ 2 & 2.094568 & 0.000186 \\ 3 & 2.094551 & 1.740\times 10^{-9} \\ 4 & 2.094551 & -8.882\times 10^{-16} \\ 5 & 2.094551 & -8.882\times 10^{-16} \end{array}
  4. Result

    The estimate of the root is x≈2.094551x \approx 2.094551.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = x^3 - 2x - 5

Points on the graph

  • y = x^3 - 2x - 5: zero (2.094551, 0)

Worked examples