What Is Completing the Square?
Completing the square is an algebraic method for solving quadratic equations of the form ax² + bx + c = 0. The technique restructures the equation by adding and subtracting a constant term to create a perfect square trinomial—an expression that factors as (x + p)² for some value p.
The core principle rests on the binomial expansion: (x + p)² = x² + 2px + p². By identifying the relationship between the coefficient of x and the constant needed to form this perfect square, you can isolate x and solve the equation.
This method applies to:
- Quadratic equations with real solutions
- Equations with no real solutions (which yield complex roots)
- Equations where factoring by inspection is impractical
- Deriving other solution methods, such as the quadratic formula itself
The Completing the Square Process
For a quadratic equation x² + bx + c = 0, the steps follow a consistent algebraic pattern. First, identify the coefficient b of the linear term. Then calculate the value needed to complete the square, which is always (b/2)². Add this value to both sides of the equation.
Starting equation: x² + bx + c = 0
Add (b/2)² to both sides: x² + bx + (b/2)² = (b/2)² − c
Factor the left side: (x + b/2)² = (b/2)² − c
Take the square root: x + b/2 = ±√[(b/2)² − c]
Isolate x: x = −b/2 ± √[(b/2)² − c]
b— The coefficient of the linear term in the quadratic equationc— The constant term in the quadratic equation(b/2)²— The value added to both sides to create the perfect square trinomial
Why Completing the Square Always Works
The method is mathematically guaranteed to work because it is built directly from the fundamental binomial expansion. Every quadratic expression contains an implicit perfect square waiting to be revealed—the algebra simply makes it explicit.
Consider the algebraic identity: (x + p)² = x² + 2px + p². In the equation x² + bx + c = 0, the term b corresponds to 2p, so p = b/2. Adding p² = (b/2)² to both sides transforms the left side into (x + b/2)², a form you can solve by taking square roots.
This approach even handles equations with no real solutions. When the expression under the square root is negative, you simply work with imaginary numbers to obtain complex solutions. The algebra remains valid—you're still solving the same underlying equation.
Example: For x² − 4x + 13 = 0, subtract 9 from both sides to get x² − 4x + 4 = −9. The left side factors as (x − 2)² = −9 = (3i)². Taking square roots yields x = 2 ± 3i—valid complex solutions.
Completing the Square vs. the Quadratic Formula
Completing the square offers deeper conceptual insight. You see why solutions exist and understand the geometric meaning of transforming a quadratic. This intuitive grasp makes the method memorable and helps you verify answers or adapt it for variations.
The quadratic formula (x = (−b ± √(b² − 4ac)) / 2a) is more efficient for routine computation, especially when coefficients are messy. It requires fewer steps and is trivial to program into software.
Many mathematicians recommend learning both methods:
- Completing the square: Build understanding, derive other formulas, work through equations systematically
- Quadratic formula: Speed up calculations, verify completing-the-square results, integrate into algorithms
Interestingly, the quadratic formula is itself derived by completing the square on the general form ax² + bx + c = 0, demonstrating the fundamental importance of this technique.
Common Pitfalls and Tips
Avoid these mistakes when completing the square.
- Forgetting to apply changes to both sides — When you add <code>(b/2)²</code> to isolate the perfect square on the left, you must add the same value to the right side. Skipping this step breaks the equation's balance and leads to incorrect solutions.
- Mishandling negative coefficients — If <code>b</code> is negative, <code>b/2</code> is also negative, which affects <code>(b/2)²</code>. For example, in <code>x² − 6x + 5 = 0</code>, you compute <code>(−6/2)² = (−3)² = 9</code>, not <code>−9</code>. Always square the half-coefficient, never subtract it.
- Overlooking complex solutions — Equations with no real roots still have solutions in the complex number system. If <code>(b/2)² − c</code> is negative, the square root is imaginary. Don't assume 'no solution'—instead, express answers using <code>i</code>.
- Simplifying the square root prematurely — Resist the urge to simplify <code>√[(b/2)² − c]</code> until you've fully set up the equation. Keep the expression under the radical intact until the algebra clearly indicates a simplification.