Loading…

Newton's Method Root Approximator

Math Calculus • Applications of Derivatives

View all topics
6. Newton's Method Root Approximator
Approximate roots of \(f(x)=0\) using Newton’s iteration \(\;x_{n+1}=x_n-\dfrac{f(x_n)}{f'(x_n)}\;\) with convergence checks and a step-by-step table.
Inputs
Supported: + − * / ^, parentheses, variable x, constants pi, e, sin cos tan, ln log(base 10), sqrt abs exp. Implicit multiplication: 2x, (x+1)(x-1), 3sin(x).
Choose a starting value near the expected root.
Used by the stop condition.
Upper limit on iterations.
Controls when the method stops.
Shows which initial guesses converge to which roots (rough preview).

Auto-fit recommended.
Graph uses \(x\in[c-w,c+w]\).
Ready
Graph
Drag to pan • wheel/pinch to zoom • \(f(x)\) curve + Newton steps (tangents) + root marker.
x: 0, y: 0, zoom(px/unit): 80
Result
Enter \(f(x)\), choose \(x_0\), then click Compute.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does Newton's method compute in this calculator?

It computes successive approximations x0, x1, x2, ... that aim to solve f(x)=0. Each update uses the tangent line at the current point through x_{n+1} = x_n - f(x_n)/f'(x_n).

Which stop condition should I use for Newton's method?

|x_{n+1}-x_n| < tol stops when the iterates stop changing much, while |f(x_n)| < tol stops when the function value is close to zero. The combined max(|Delta x|, |f(x_n)|) < tol is stricter and can be more reliable.

Why does Newton's method fail when f'(x) is near zero?

The update divides by f'(x_n), so if the derivative is very small the step can become extremely large or unstable. This can cause divergence, oscillation, or jumping to an unintended root.

How do I pick a good initial guess x0?

Choose x0 close to the desired root and avoid places where the derivative is zero or the function is not smooth. Using the graph window and tangent-step display can help you see whether the iterates are moving toward a root.

What are basins of attraction in the Newton's method preview?

When a function has multiple roots, different starting guesses can converge to different roots. A basin of attraction is the set of starting values that converge to the same root, and the 1D preview shows this behavior across the current x-window.