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 equation
  • c — 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.

  1. 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.
  2. 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.
  3. 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>.
  4. 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.

Frequently Asked Questions

Can I use completing the square if the coefficient of x² is not 1?

Yes, but you must first divide the entire equation by that coefficient. For <code>2x² + 8x + 6 = 0</code>, divide by 2 to get <code>x² + 4x + 3 = 0</code>, then complete the square. This step ensures the leading coefficient is 1, which is required for the standard process. After solving, your solutions are valid for the original equation.

What does it mean when the expression under the square root is zero?

When <code>(b/2)² − c = 0</code>, the equation has exactly one solution (a repeated root). For example, <code>x² − 6x + 9 = 0</code> becomes <code>(x − 3)² = 0</code>, so <code>x = 3</code>. Geometrically, this means the parabola touches the x-axis at exactly one point. There is no ± because both roots coincide.

Is completing the square faster than the quadratic formula?

For straightforward arithmetic, the quadratic formula is typically faster—you substitute three numbers into a fixed formula. Completing the square requires more intermediate steps. However, completing the square becomes competitive when coefficients are simple or when you need to show your work conceptually. For exams or situations requiring written reasoning, completing the square often proves more convincing.

How does completing the square relate to factoring quadratics?

Completing the square and factoring are two ways to express the same quadratic structure. When a quadratic factors into <code>(x − r)(x − s)</code>, completing the square reveals the roots <code>r</code> and <code>s</code> algebraically. Not all quadratics factor neatly over the integers, but <em>every</em> quadratic can be solved by completing the square, making it the more universal technique.

Can I complete the square for equations beyond quadratics?

The technique generalizes to higher-degree polynomials in limited ways. For cubic equations, you can use a similar process, but it is more involved. For quartic equations, completing the square reduces them to depressed forms. For most polynomials of degree 5 or higher, completing the square does not lead to a general closed-form solution, which is why numerical methods are used instead.

Why is it called 'completing' the square?

The name refers to the geometric idea: a quadratic expression <code>x² + bx</code> can be visualized as a square of side length <code>x</code> plus a rectangle of width <code>b</code> and length <code>x</code>. This shape is 'incomplete.' By adding <code>(b/2)²</code>, you add a small square that fills the gap, creating a complete large square of side <code>x + b/2</code>. This visual intuition underlies the algebraic process.

More math calculators (see all)