01 / 21

Complete the Square
to Find Solutions

Learn to transform any quadratic equation into the form \((x - p)^2 = q\) and discover how this powerful technique derives the quadratic formula.

Algebra 1

What Is a Quadratic Equation?

A quadratic equation is any equation that can be written in the standard form:

The solutions (also called roots or zeros) are the values of \(x\) that make the equation true. We already know how to solve some quadratics by factoring, but not all quadratics factor neatly.

Why Complete the Square?

✕ Factoring Fails
Many quadratics like \(x^2 + 6x + 2 = 0\) don't factor over the integers.
✓ Always Works
Completing the square works for every quadratic equation, no exceptions.
★ Reveals Structure
It transforms the equation into vertex form, making the solutions visible.

The Key Idea: Making a Perfect Square

A perfect square trinomial is an expression like \(x^2 + 2px + p^2\), which equals \((x + p)^2\). The idea is to add the right constant to create one.

\(x^2\)
\(x\)
\(x\)
\(6x\)
\(6\)
→
\(x^2\)
\(x\)
\(x\)
\(3x\)
\(3\)
\(3x\)
\(3\)
\(9\)
\(x^2 + 6x\)
\((x + 3)^2 = x^2 + 6x + 9\)

The Core Rule

Take the coefficient of \(x\), divide by 2, then square the result. Add that number to both sides of the equation to keep it balanced.

\(b = 6\)
Half: \(3\). Square: \(9\).
\(x^2+6x+9=(x+3)^2\)
\(b = -10\)
Half: \(-5\). Square: \(25\).
\(x^2-10x+25=(x-5)^2\)
\(b = 3\)
Half: \(\frac{3}{2}\). Square: \(\frac{9}{4}\).
\(x^2+3x+\frac{9}{4}=(x+\frac{3}{2})^2\)

From Equation to \((x - p)^2 = q\)

When solving an equation, the goal is to rewrite it so the left side is a perfect square and the right side is a constant.

Once in the form \((x - p)^2 = q\), you solve by taking the square root of both sides:

Factoring vs. Completing the Square

Factoring Completing the Square
When it works Only when factors are "nice" Always
Result form \((x - r_1)(x - r_2) = 0\) \((x - p)^2 = q\)
Handles irrational roots ✕ ✓
Reveals vertex ✕ ✓
Speed (simple cases) Faster Moderate

How to Complete the Square: Step by Step

1
Isolate the quadratic and linear terms. Move the constant \(c\) to the right side: \(x^2 + bx = -c\).
2
If \(a \neq 1\), divide every term by \(a\). You need a leading coefficient of 1.
3
Compute \(\left(\frac{b}{2}\right)^2\). Take half the coefficient of \(x\) and square it.
4
Add that value to both sides. The left side is now a perfect square trinomial.
5
Factor the left side as \((x + \frac{b}{2})^2\), then take \(\pm\sqrt{}\) of both sides to solve.

Example 1: Solve \(x^2 + 6x + 2 = 0\)

1
Move constant: \(x^2 + 6x = -2\)
2
Half of 6, squared: \(\left(\frac{6}{2}\right)^2 = \) \(9\)
3
Add 9 to both sides: \(x^2 + 6x + 9 = -2 + 9\)
4
Factor: \((x + 3)^2 = 7\)
5
Solve: \(x + 3 = \pm\sqrt{7}\), so \(x = -3 \pm \sqrt{7}\)

Visualizing \(x^2 + 6x + 2 = 0\)

x y -3 -5 -7 -1 2 vertex (-3, -7)
\(-3-\sqrt{7}\)
\(-3+\sqrt{7}\)

Example 2: Solve \(2x^2 - 12x + 7 = 0\)

1
Divide by 2: \(x^2 - 6x + \frac{7}{2} = 0\)
2
Move constant: \(x^2 - 6x = -\frac{7}{2}\)
3
Half of \(-6\), squared: \(\left(\frac{-6}{2}\right)^2 = \) \(9\)
4
Add 9 to both sides: \(x^2 - 6x + 9 = -\frac{7}{2} + 9 = \frac{11}{2}\)
5
Factor and solve: \((x-3)^2 = \frac{11}{2}\), so \(x = 3 \pm \sqrt{\frac{11}{2}}\)

Example 3: Solve \(x^2 - 4x - 1 = 0\)

1
Move constant: \(x^2 - 4x = 1\)
2
Half of \(-4\), squared: \(\left(\frac{-4}{2}\right)^2 = \) \(4\)
3
Add 4 to both sides: \(x^2 - 4x + 4 = 1 + 4 = 5\)
4
Factor: \((x - 2)^2 = 5\)
5
Solve: \(x = 2 \pm \sqrt{5}\)

Deriving the Quadratic Formula

Start with the general equation \(ax^2 + bx + c = 0\) and complete the square on the entire thing:

1
\(x^2 + \frac{b}{a}x = -\frac{c}{a}\)
2
\(x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} = \frac{b^2}{4a^2} - \frac{c}{a}\)
3
\(\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}\)
4
\(x + \frac{b}{2a} = \pm\frac{\sqrt{b^2 - 4ac}}{2a}\)

Why the Derivation Matters

The quadratic formula is not magic: it is completing the square done once for all quadratics. Understanding the derivation means:

★ Deep Understanding
You know why the formula works, not just that it works.
★ Self-Sufficiency
Forgot the formula? You can re-derive it in 4 steps.
★ Foundation
This technique extends to higher math: conic sections, calculus, and beyond.

Common Mistakes to Avoid

✕ Forgetting Both Sides
When you add \(\left(\frac{b}{2}\right)^2\), you must add it to both sides of the equation, not just the left.
✕ Sign Error in \(p\)
If \(b = -4\), then \(\frac{b}{2} = -2\) and the square is \((x - 2)^2\), not \((x + 2)^2\).
✕ Skipping \(a \neq 1\)
Completing the square requires a leading coefficient of 1. Divide first!
✕ Dropping \(\pm\)
When taking \(\sqrt{}\) of both sides, you must write \(\pm\sqrt{q}\). There are usually two solutions.

Summary: Methods for Solving Quadratics

Method Best For Result Form
Factoring Integer roots, simple expressions \((x-r_1)(x-r_2)=0\)
Completing the Square Any quadratic, deriving formula \((x-p)^2=q\)
Quadratic Formula Any quadratic (quick computation) \(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\)
Graphing Estimating roots visually \(x\)-intercepts of parabola

Question 1 of 5

What value must be added to both sides to complete the square on \(x^2 + 10x = 3\)?

Question 2 of 5

Complete the square to rewrite \(x^2 - 8x + 5 = 0\) in the form \((x - p)^2 = q\). What are \(p\) and \(q\)?

Question 3 of 5

Solve by completing the square: \(x^2 + 2x - 8 = 0\)

Question 4 of 5

When completing the square on \(3x^2 + 12x + 1 = 0\), what is the first step?

Question 5 of 5

In the derivation of the quadratic formula, after completing the square on \(ax^2 + bx + c = 0\), which equation results?