Skip to content

§ II · Algebra

Equation Solver

Exact roots to degree two, numerical roots above it.

  • Updated 2026-11-25
  • Free · no sign-up
  • Runs in your browser
Equation solverexact to degree two · numerical above

Write both sides, or just the expression for = 0. Implicit multiplication is understood, so 5x reads as a product.

Degree 2

exact
  • x 1 =2
  • x 2 =3

How it was solved

  1. 01Set the left-hand side against zero.
  2. 02Discriminant Δ = b² − 4ac = 1.
  3. 03Δ is not negative, so the two roots are real and are written in exact form.

Try one

How to use it

§ How to use
  1. 01

    Type the equation with both sides, such as x^2 - 5x + 6 = 0. A bare expression is read as "= 0".

  2. 02

    Read the degree or kind above the roots, so you know whether to expect an exact or a rounded answer.

  3. 03

    Read the roots. Exact roots are set as fractions or surds; rounded roots carry the rounded label.

  4. 04

    Check a root by substituting it back. The steps underneath say how the roots were obtained.

Where it stops being a keypad

§ 02

A calculator can evaluate a formula. Solving is the other direction.

EquationBasic calculatorThis page
Linear and quadraticsolve, one form onlyexact, surd form when needed
Cubic and quarticnonumerical, real roots
Mixed functionsnonumerical scan and bisection
Shows the methodnosteps: move, discriminant, solve
Shareable statenoequation in the URL

Exact where it can be, honest where it cannot

§ 03

A linear equation has one root and it is a fraction. A quadratic has two, and the quadratic formula writes them in terms of the discriminant. Both of those stay inside the exact arithmetic this site is built on, so the answer is a fraction or a simplified surd rather than a decimal that has been rounded until it looks tidy.

For x² − 5x + 6 = 0 the discriminant is 25 − 24 = 1, so the roots are rational and come out as 3 and 2. For x² − 2 = 0 the discriminant is 8, which is not square, so the roots are printed as ±√2.

Why degree three changes the rules

A cubic formula exists, but it is a page of nested radicals and most readers would rather have 1, 2, 3 to ten digits than an unreadable exact form. The solver switches to real-root isolation. It removes repeated factors using an exact polynomial greatest common divisor, then uses derivative critical points to bracket the remaining roots. Bisection refines each bracket and substitution checks the residual. Repeated real roots appear once. The results are rounded; degree above twelve and higher-degree complex roots are outside this tool’s scope.

The scan for non-polynomials

For sin(x) = 0.5 there is no polynomial to factor. The page samples the difference between the two sides, finds where it changes sign, and bisects. It reports the roots it finds in the window and says that it only looked there, so a root at x = 100 is not silently missing — it is out of scope.

Questions

§ 04
Which equations can it solve?
Any polynomial in x up to degree twelve, written with + − × ÷ and whole-number powers. Equations that mix functions — sin(x) = 0.5, e^x = 2, ln(x) = 1 — are solved numerically by scanning for sign changes.
Are the roots exact?
Linear and quadratic equations are exact. A quadratic with a non-square discriminant is written with a simplified surd, so x² − 2 = 0 gives ±√2 rather than ±1.41421356. Cubic and higher roots, and non-polynomial roots, are rounded and marked as such.
Why are cubic roots rounded?
The page first removes repeated polynomial factors using exact arithmetic. Derivative critical points then separate monotone intervals for real-root isolation. Each candidate is checked by substitution. Degree three through twelve gives rounded real roots; higher-degree complex roots are not listed.
How does it find non-polynomial roots?
It samples the expression between −20 and 20, bisects sign changes, and checks that a candidate has a small residual in the original expression. A pole is not accepted just because the sign changes. Non-polynomial roots that touch zero without crossing, or lie outside the window, can still be missed.
Does it show complex roots?
Only for a quadratic with a negative discriminant, where it prints a ± bi. Higher-degree complex roots are not listed, because the panel is about real solutions and a mixed list would need more explanation than it saves.
Why does it say there are no real roots?
For a quadratic, that means the discriminant is negative. For a higher degree, it means no real root was found in the probed range. The steps underneath say which case you are in.
What does "double root" mean?
The two roots of the quadratic coincide, as in x² − 4x + 4 = 0. The page prints the root once and labels it, instead of listing the same number twice.
How do I check a root?
Substitute it back into the original equation. A root marked exact should give exactly zero; a rounded root should give something very close to zero, with the size of the residue telling you how much rounding was involved.

ShowSteps

Free calculators with exact fractions, simplified surds and recorded working, so you can check supported calculations.

© 2026 ShowSteps ·