Enter the coefficients a, b and c for ax squared plus bx plus c equals 0. The calculator returns the discriminant and both roots, real or complex, with the steps.
Equation solved: a x squared + b x + c = 0.
Any quadratic equation can be written as a x squared plus b x plus c equals 0, with a not equal to zero. Rather than guessing at factors, the quadratic formula gives both solutions directly from the three coefficients.
The piece under the radical, b squared minus 4ac, is called the discriminant, and its sign alone tells you what kind of answer to expect before you even finish the arithmetic. A positive discriminant means two distinct real roots. A discriminant of exactly zero means the parabola just touches the x-axis at one repeated root. A negative discriminant means the parabola never crosses the x-axis at all, so the two roots are a conjugate pair of complex numbers.
The sign in front of b trips up more people than the rest of the formula combined: the formula uses negative b, so if b is already negative in your equation, the two negatives cancel and you add a positive number under the fraction bar. Another common error is forgetting the plus-or-minus and reporting only one root, which throws away exactly half the answer. When a equals zero, the equation is not quadratic at all; it collapses to a linear equation bx + c = 0, and this calculator switches to that simpler case automatically rather than dividing by zero.
For a fuller derivation by completing the square, see Wolfram MathWorld's page on the quadratic formula.
Once you have the roots, factoring or a quick slope check often comes next.
x = (-b plus or minus sqrt(b^2 - 4ac)) / 2a. It solves any equation in the form ax^2 + bx + c = 0 once you know a, b and c.
The discriminant is b^2 - 4ac. Positive gives two real roots, zero gives one repeated root, and negative gives a pair of complex roots.
When b^2 - 4ac is negative, the square root is imaginary. The roots take the form p plus or minus qi, which this tool reports automatically.
Then the equation is not quadratic but linear: bx + c = 0, which solves to x = -c / b. The tool handles this case too.