Equation Solver

Enter any equation in x. We'll scan the interval you choose and find all real roots numerically using bisection + Newton refinement.

How the equation solver works

Solving general nonlinear equations exactly in closed form is impossible for most expressions, so DesmosGraph uses a robust two-stage numerical approach:

  1. Bracket scan: we evaluate the function at many sample points across your interval, looking for sign changes that indicate a root by the Intermediate Value Theorem.
  2. Bisection narrowing: for each bracket we halve the interval until it's tight (≈ 10⁻¹²).
  3. Newton refinement: a final Newton-Raphson polish using a finite-difference derivative gives full double precision.

This combination is reliable: bisection guarantees convergence inside a bracket, and Newton brings full precision quickly. Roots within rounding error of each other are merged automatically.

Limitations