Math

Equation Root Finder

Find where a function crosses zero using bisection, Newton-Raphson and the secant method, with automatic bracketing, convergence history and a comparison of the three methods.

Last reviewed by the Radiatus Cloud team

Roots appear here.

Need this done properly for your business?

Radiatus delivers secure cloud, DevOps & compliance engineering.

Book a free consult

Most equations cannot be solved algebraically

An equation mixing a polynomial with a trigonometric or exponential term, such as x equals cosine of x, has a perfectly definite solution that cannot be written in closed form. Numerical root finding answers these by starting from an approximation and improving it. The distinction matters: the root exists and is as real as any other number, and only its symbolic expression is unavailable.

Bisection is slow and never fails

If a continuous function is negative at one end of an interval and positive at the other, it must cross zero somewhere between, and halving the interval repeatedly is guaranteed to find it. Each step gains exactly one bit of precision, so about fifty steps take an interval of width one down to machine precision. It is the slowest common method and the only one that cannot diverge, which makes it the right choice when a bracket is known and reliability matters more than speed.

Newton is fast and can fail badly

Newton-Raphson uses the derivative to jump towards the root and roughly doubles the number of correct digits at each step near a simple root. Away from the root, or where the derivative is near zero, it can overshoot wildly, oscillate between two points forever, or fly off to a completely different root. Running both methods and comparing is the practical answer: bisection confirms the root exists and brackets it, Newton refines it quickly.

Related tools

  • Percentage Calculator — Calculate percentages, percentage change, increase and decrease, and reverse percentages, with the working shown for each result.
  • Statistical Calculator — Calculate mean, median, mode, standard deviation, and more.
  • Probability Calculator — Calculate probabilities for single and combined events, including conditional probability and Bayes' theorem.
  • Scientific Calculator — Perform advanced mathematical operations including trig, log, and exponents.

Frequently Asked Questions

Why does Newton's method sometimes fail?

Because it follows the tangent line, which points away from the root when the derivative is small or the starting point is far away. It can overshoot, oscillate between two values indefinitely, or converge to a different root than the one you wanted.

What is bracketing?

Finding two points where the function has opposite signs. For a continuous function that guarantees a root between them, which is the intermediate value theorem, and it is what makes bisection unable to fail.

Why does bisection need so many steps?

Because each step halves the interval, gaining exactly one bit of precision. Newton roughly doubles the number of correct digits per step near a simple root, which is why it needs a handful of steps where bisection needs fifty.

What if the function touches zero without crossing?

No bracketing method can find it, because the sign never changes. A double root of this kind needs Newton from a nearby start, and even then converges slowly because the derivative also vanishes there.

How do I find all the roots?

Scan the range for sign changes to locate each bracket, then refine within it. This tool does that automatically, though a root can still be missed if two lie inside one scanning step, so a finer scan is worth trying on a function that oscillates quickly.

Privacy & Security

Everything runs in your browser; nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Enter an equation and a search range to find every root numerically.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.