How it works
The discriminant b² − 4ac tells you what kind of roots the equation has: positive means two real roots, zero means one repeated root, and negative means two complex roots.
Formula
x = (−b ± √(b² − 4ac)) ÷ 2a
Solve ax² + bx + c = 0 and get real or complex roots, the discriminant and the vertex.
The discriminant b² − 4ac tells you what kind of roots the equation has: positive means two real roots, zero means one repeated root, and negative means two complex roots.