Loading…

Numerical Root Finder

Math Algebra • Equations

View all topics

Find real roots of \(f(x)=0\) using bisection, Newton-Raphson, or the secant method. The calculator shows every iteration, explains each update, and graphs the function with the current approximation.

Bisection: bracket a sign change and repeatedly cut the interval in half Newton: use the tangent update xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ) Secant: approximate the derivative from two previous points Root: a value where f(x) is approximately 0

Function input

Use x as the variable. Supported examples include x^3 - x - 2, sin(x) - x/2, exp(x) - 3, sqrt(x) - 2, and log(x) - 1. You may use pi, e, ^ for powers, and functions such as sin, cos, tan, sqrt, abs, log, ln, and exp.

Method and starting values

Graph and scan settings

For bisection, \(f(a)\) and \(f(b)\) should have opposite signs. Newton and secant can be faster, but they depend strongly on the starting values. Drag the graph to pan and use the wheel, trackpad, pinch gesture, or buttons to zoom.

Quick examples

Ready
Enter a function and click “Find root”.

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 is a numerical root?

A numerical root is an approximate value of x where f(x) is close to zero.

What is the bisection method?

Bisection starts with an interval where f(a) and f(b) have opposite signs, then repeatedly halves the interval to trap the root.

Why does bisection require opposite signs?

If f is continuous and f(a) and f(b) have opposite signs, the Intermediate Value Theorem guarantees at least one root between a and b.

What is Newton-Raphson?

Newton-Raphson uses tangent-line updates with x_(n+1) = x_n - f(x_n)/f'(x_n). It can be very fast near a root.

What is the secant method?

The secant method uses two previous points to approximate the derivative, avoiding the need for an exact derivative.

Which method should I choose?

Use bisection for reliability when you have a sign-changing bracket, Newton-Raphson for speed when you have a good starting guess, and secant when you have two good guesses but no derivative.

Can the calculator find multiple roots?

Yes. Enable the scan option to search an interval for sign changes and refine each detected root using bisection.

Can scanning miss some roots?

Yes. A sign-change scan can miss roots where the graph touches the x-axis without changing sign.

What does the residual mean?

The residual is |f(root)|. A smaller residual means the approximation satisfies f(x)=0 more closely.

What does the convergence graph show?

It shows log10(error) versus iteration. A downward trend means the approximations are improving.

Can I pan and zoom the graph?

Yes. You can drag to pan, use the mouse wheel or trackpad to zoom, pinch on touch screens, or use the graph control buttons.

Does this give exact roots?

No. Numerical methods give approximations. For exact symbolic roots, use an algebraic or symbolic equation solver when possible.