Mathematical Tools

Active tool: Equation Solver

Selected option: Roots update automatically

What It Does

Solves linear, quadratic, and cubic equations and shows the work — the discriminant, the formula with your numbers plugged in, and every step — plus real and complex roots and (for quadratics) the vertex and a small graph. Everything runs in your browser.

How to Use It

  1. Choose the equation type (linear, quadratic, or cubic).
  2. Enter the coefficients (a, b, c, d as needed).
  3. Read the roots and the step-by-step working; toggle the graph.
  4. Copy any root.

Options Explained

OptionDescription
TypeLinear (ax+b=0), quadratic (ax²+bx+c=0), or cubic (ax³+bx²+cx+d=0).
a, b, c, dThe coefficients; the leading one (a) must be non-zero.
PrecisionHow many significant digits to show.
StepsShow the full worked solution (discriminant, formula, substitutions).
GraphShow a small sketch of the curve with its real roots marked.
💡 Tip: For a quadratic, the discriminant tells you the roots’ nature before you solve: positive → two real, zero → one repeated, negative → a complex-conjugate pair.
Equation

Enter the coefficients to solve the equation.

About the Discriminant, Complex Roots & the Vertex

For a quadratic ax² + bx + c = 0, the discriminant Δ = b² − 4ac is the quantity under the square root in the quadratic formula, and its sign alone tells you what the roots look like: a positive Δ gives two distinct real roots (the parabola crosses the x-axis twice), a zero Δ gives one repeated real root (it just touches the axis), and a negative Δ gives a complex-conjugate pair a ± bi (it never touches the axis).

Complex roots always come in conjugate pairs for real-coefficient polynomials, which is why an “imaginary” answer isn’t an error — it’s a perfectly valid solution in the complex plane. Every parabola also has a vertex, its highest or lowest point, at x = −b/2a; the vertical line through it, the axis of symmetry, mirrors the two roots around it.

Cubics are trickier: they always have at least one real root, and this tool depresses the cubic and uses either a trigonometric formula (three real roots) or Cardano’s formula (one real root plus a complex pair) depending on the cubic discriminant. Because floating-point arithmetic can turn a true repeated root into a tiny imaginary sliver, the solver rounds a near-zero discriminant to exactly zero — and, like every tool here, it runs entirely on your device.