Solving a quadratic, step by step
A quadratic equation has an x² term and nothing higher: ax² + bx + c = 0, with a not 0. Its graph is a parabola, a U shape that opens up when a is positive and down when a is negative. The roots, or solutions, are where the parabola crosses the x-axis, and there can be two, one or none on the real line.
Take x² − 5x + 6 = 0, so a = 1, b = −5 and c = 6. The discriminant is b² − 4ac = 25 − 24 = 1. It is above 0, so there are two real roots. The formula gives x = (5 ± √1) / 2, which is (5 + 1) / 2 = 3 or (5 − 1) / 2 = 2. Since both roots are whole numbers, the equation factors as (x − 3)(x − 2) = 0, which you can check by multiplying out.
Now try x² + 2x + 5 = 0. The discriminant is 4 − 20 = −16. There is no real square root of −16, so the parabola sits entirely above the axis. In the complex numbers, √−16 is 4i, where i is the square root of −1. The roots are (−2 ± 4i) / 2, which is −1 + 2i and −1 − 2i. They always come in such pairs, called conjugates.
The vertex is the turning point of the parabola, at x = −b / 2a. For x² − 5x + 6 it is at x = 2.5, where y = −0.25. It sits exactly halfway between the two roots, which is a quick check on any answer. When the roots are irrational, as for x² − 2 = 0, the exact form x = ±√2 is more useful than the decimals ±1.414214, and the tool gives both.
The tool has limits. The working rounds decimals to 6 places to stay readable, while the roots themselves are computed at full double precision. The exact form and the factors need a, b and c to be whole numbers; with decimals you get the decimal roots only. It solves quadratics alone, not cubics or higher, and it does not graph the curve.