KO

Solving quadratic and simultaneous equations

The quadratic formula and how the discriminant tells you whether roots are real, repeated or complex; when a system of linear equations has no solution or infinitely many; and how to use the equation solver.

The roots of ax²+bx+c = 0 are x = (−b ± √(b²−4ac)) / 2a. If the discriminant D = b²−4ac is positive there are two real roots, if it is 0 one repeated root, and if negative two complex roots. Enter a, b and c on the equation screen to get exact roots like 1+√2.

Quadratic examples

EquationDiscriminant DRoots
x² − 2x − 1 = 08 (positive)x = 1 − √2, 1 + √2 (about −0.4142135624, 2.414213562)
x² − 6x + 9 = 00x = 3 (repeated)
x² + 2x + 5 = 0−16 (negative)x = −1 − 2i, −1 + 2i

For the first one, the formula gives x = (2 ± √8)/2 = (2 ± 2√2)/2 = 1 ± √2. The calculator simplifies √8 to 2√2 for you.

The graph of y = x² − 2x − 1 is lowest at x = 1, where y = −2 (vertex (1, −2)). The equation screen shows the vertex along with the roots.

Solve x²−2x−1=0 on the equation screen ▸

Cubics and quartics

From degree three on, solving by hand gets hard. The calculator first looks for whole-number and fraction roots to lower the degree, then solves what is left with the quadratic formula or numerically. For example, x³ − 6x² + 11x − 6 = 0 has roots 1, 2 and 3.

Simultaneous linear equations

Solving 2x + 3y = 12 and x − y = 1 gives x = 3, y = 2. From the second equation x = y + 1; substituting, 2(y + 1) + 3y = 12, so 5y = 10 and y = 2.

A system does not always have exactly one solution:

The equation screen reports these cases as “no solution” and “infinitely many solutions”. It handles up to four unknowns.

Tips

Published 2026-10-06 · Updated 2026-10-06 · Lumen Lab

More guides