NUMERICAL METHODS

Newton’s Method Calculator

Find approximate roots of nonlinear equations with Newton-Raphson iterations, derivative values, error checks, and a step-by-step solution.

NUMERICAL ROOT FINDER

Set up the iteration

x^3 - 2*x - 5

Use x, numbers, powers, parentheses, and supported functions such as sin, cos, exp, ln, and sqrt. Trigonometric inputs use radians.

Enter or Ctrl + Enter
Examples
Your root and iteration table will appear here.Choose an example or enter a function and initial value, then calculate.
NEWTON-RAPHSON BASICS

What is Newton’s method?

Newton’s method, also called the Newton-Raphson method, is an iterative numerical method for approximating a root of f(x)=0. Starting with an estimate x₀, each step uses the tangent line to the graph to choose a new estimate.

x_{n+1}=x_n- rac{f(x_n)}{f'(x_n)}

The tangent line at (xₙ, f(xₙ)) crosses the x-axis at xₙ − f(xₙ)/f′(xₙ). Newton’s method uses that intercept as the next estimate.

The function must be defined and differentiable at the iterates, and f′(xₙ) must not be zero or numerically too small. Convergence depends on both the function and the starting estimate.

How to use the calculator

  1. Enter f(x) so the equation to solve is f(x)=0.
  2. Choose an initial value near the root, a positive tolerance, and an iteration limit.
  3. At each step evaluate f(xₙ) and f′(xₙ), then calculate xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ).
  4. Check both the change between estimates and the residual |f(xₙ₊₁)| before calling the result converged.

Advantages and limitations

Newton’s method often converges rapidly near a simple root, but it is not guaranteed to converge from every initial value. A small step alone is not proof of a root: this calculator checks the function residual as well and reports when an iteration fails, stagnates, or reaches its limit.

  • Solving f(x)=c without first rewriting it as f(x)−c=0.
  • Dividing by f′(xₙ)=0 or a derivative too close to zero.
  • Treating a small change in x as sufficient without checking |f(x)|.
  • Assuming one starting value finds every root.
  • Reading a numerical approximation as an exact root.

Newton’s method FAQ

What does a Newton’s Method Calculator do?

It repeatedly applies xₙ₊₁=xₙ−f(xₙ)/f′(xₙ) to approximate a root of f(x)=0, showing the derivative, each update, step error, and residual.

Is Newton’s method guaranteed to find a root?

No. Convergence depends on the function and starting value. The iteration can diverge, oscillate, or encounter an undefined function or a zero derivative.

Why check the residual as well as the step error?

The step can become small because of rounding or stagnation even while f(x) is not near zero. Checking both gives stronger evidence that the approximation is useful.

How do I choose an initial guess?

Use a value near the root if you know its approximate location. A graph or interval estimate can help, but different starting values may converge to different roots.

Does the calculator support trigonometric functions?

Yes. Supported trigonometric and other allowlisted functions use radians. The function and derivative are evaluated locally in the browser.

What if the derivative is zero?

The calculator stops and explains that the Newton update cannot safely divide by that derivative. It does not silently switch to another numerical method.

Related calculus tools