How the Quadratic Formula Works and Why It Always Solves
Understand where the quadratic formula comes from, how the discriminant predicts the type of roots, and how to apply it to any quadratic equation.
A quadratic equation has the form ax² + bx + c = 0, where a is not zero. Its graph is a parabola, and its real solutions are the points where that parabola crosses the horizontal axis. The quadratic formula gives those solutions for any values of a, b, and c, even when simple factoring fails. This guide shows where the formula comes from, what the discriminant tells you, and how to use the method without mistakes.
Why a formula is needed
Some quadratics factor easily. The equation x² - 5x + 6 = 0 factors into (x - 2)(x - 3) = 0, so the solutions are 2 and 3. Factoring depends on finding two numbers that multiply to c and add to b, and that search becomes hard when the numbers are large or irrational.
A general method removes the guesswork. Completing the square is a systematic procedure that works for every quadratic, and the quadratic formula is simply the result of applying that procedure once to the general form.
Deriving the formula by completing the square
Start with ax² + bx + c = 0 and divide by a so the leading coefficient becomes 1. This gives x² + (b/a)x + c/a = 0. Move the constant to the right side: x² + (b/a)x = -c/a.
Next, complete the square. Take half of the coefficient of x, which is b/(2a), and square it to get b²/(4a²). Add this value to both sides. The left side becomes a perfect square, (x + b/(2a))², and the right side becomes b²/(4a²) - c/a, which simplifies to (b² - 4ac)/(4a²).
Taking the square root of both sides gives x + b/(2a) = ±√(b² - 4ac) / (2a). Subtracting b/(2a) from both sides yields the final result:
x = (-b ± √(b² - 4ac)) / (2a)
The plus and minus signs produce the two possible solutions, which may be equal, distinct, or complex.
The discriminant
The expression under the square root, D = b² - 4ac, is called the discriminant. It decides what kind of solutions the equation has, before you finish the calculation.
If D is positive, the square root is a real number that is not zero, so there are two distinct real solutions. The parabola crosses the horizontal axis twice. If D is zero, the square root vanishes and both solutions coincide, giving one repeated real solution. The parabola touches the axis at its vertex. If D is negative, the square root of a negative number is not real, so there are two complex solutions that are conjugates of each other. The parabola does not cross the axis at all.
A quick check using the discriminant
Before solving, compute D. This tells you what to expect and gives a fast sanity check on your final answers.
Worked examples
Take x² - 5x + 6 = 0. Here a = 1, b = -5, and c = 6. The discriminant is 25 - 24 = 1, which is positive and a perfect square. The solutions are x = (5 ± 1) / 2, giving x = 3 and x = 2. These match the factored result.
Take 2x² + 4x - 6 = 0. Here a = 2, b = 4, and c = -6. The discriminant is 16 + 48 = 64, so the square root is 8. The solutions are x = (-4 ± 8) / 4, giving x = 1 and x = -3. Dividing the whole equation by 2 first would have produced the same answer with smaller numbers.
Take x² + x + 1 = 0. Here D = 1 - 4 = -3, which is negative. The solutions are x = (-1 ± i√3) / 2, where i is the imaginary unit. These are complex, so the graph never touches the horizontal axis.
Relationships between roots and coefficients
The two roots, call them r and s, satisfy two simple relationships. Their sum is r + s = -b/a, and their product is rs = c/a. These are called Vieta's formulas.
These relationships provide a fast check on your work. For x² - 5x + 6 = 0, the sum of roots 2 and 3 is 5, which equals -(-5)/1. The product 2 times 3 is 6, which equals 6/1. If either check fails, an error occurred somewhere.
Comparison of solution methods
Each method has a best use. Factoring is quickest when the numbers are small and the roots are rational. Completing the square works for every case and is the natural route when you need the vertex of the parabola. The formula is the most reliable general method, and it always works.
| Method | Best when | Works for complex roots | Gives vertex directly |
|---|---|---|---|
| Factoring | Small integer roots | No | No |
| Completing the square | Vertex needed | Yes | Yes |
| Quadratic formula | Any case | Yes | No |
The vertex sits at x = -b / (2a). Once you know this value, the y-coordinate follows by substitution. The vertex gives the maximum or minimum value of the quadratic, which is why the method matters in physics and optimization.
Common mistakes
The most frequent error is a sign mistake on b. Remember that the formula uses -b, so if b is already negative, the sign flips to positive. Another common slip is forgetting to divide both terms of the numerator by 2a, which happens when the square root is added to -b but the denominator is not applied to it.
Students also forget that a must be nonzero. If a equals zero, the equation is linear, and the quadratic formula does not apply.
Where quadratics appear
Quadratic equations describe the path of a thrown ball, the area of a rectangle with a fixed perimeter, and the profit of a business whose revenue and costs change with price. In physics, the height of a projectile under constant gravity follows a quadratic in time. Learning the formula gives you a tool for all of these problems.
Key takeaways
The quadratic formula is the general solution to ax² + bx + c = 0. It comes from completing the square, so it is not an arbitrary rule to memorize. Understanding the derivation makes it easier to recall and to trust.
The discriminant b² - 4ac tells you in advance whether the roots are two real numbers, one repeated real number, or a complex pair. Compute it first to set your expectations.
Use Vieta's relationships to verify your answers. The sum and product of the roots must match -b/a and c/a, and checking them catches arithmetic errors quickly.