What happens when a is zero?
With a = 0 and b nonzero, bx + c = 0 is linear and x = −c ÷ b. If a and b are zero, the equation has either every real number as a solution when c is zero, or no solution when c is nonzero.
Enter the coefficients in ax² + bx + c = 0. The calculator shows the roots and explains what the discriminant says about them.
Write the equation with zero on the right. For x² + 6 = 5x, the standard form is x² − 5x + 6 = 0. The coefficients are 1, −5 and 6. Including the minus sign when you enter b gives the roots 2 and 3.
The discriminant is b² − 4ac. A positive value gives two distinct real roots, zero gives a repeated real root and a negative value gives complex conjugates. For x² + 2x + 5 = 0, the discriminant is −16 and the roots are −1 + 2i and −1 − 2i.
The usual formula is (−b ± √(b² − 4ac)) ÷ (2a). With two real roots, subtracting nearly equal numbers can lose the small root’s precision. The calculator uses the stable sign for one root and the product of the roots, c ÷ a, to compute the other. Results are floating-point estimates.
With a = 0 and b nonzero, bx + c = 0 is linear and x = −c ÷ b. If a and b are zero, the equation has either every real number as a solution when c is zero, or no solution when c is nonzero.
A zero discriminant gives one distinct value, −b ÷ (2a), with multiplicity two. Very close computed roots depend on the precision of the coefficients.
The number i satisfies i² = −1. The roots shown as a conjugate pair have the same real part and opposite imaginary parts.