How to use it
- Write your equation as ax² + bx + c = 0.
- Enter a, b and c.
- Read the roots, discriminant and vertex.
How it works
The discriminant is D = b² − 4ac. If D > 0 there are two real roots, if D = 0 one repeated root, and if D < 0 two complex roots. The roots are x = (−b ± √D) ÷ 2a, and for D < 0 the real part is −b ÷ 2a with imaginary part ±√(−D) ÷ 2|a|. The vertex is at x = −b ÷ 2a. Arithmetic is exact decimal to 40 digits, shown to 8 decimal places.
Examples
- x² − 5x + 6 = 0 has roots 3 and 2. x² + 2x + 5 = 0 has roots −1 ± 2i.
Limitations
- Coefficients must be plain numbers (not fractions or expressions). If a = 0 the equation is treated as a linear equation.
- Answers are rounded to 8 decimal places, so irrational roots are approximations.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].