01 / 20

Completing the
Square

Learn how to solve any quadratic equation by transforming it into a perfect square trinomial: a powerful technique that reveals the vertex form and unlocks every solution.

Math 2

What Is a Perfect Square Trinomial?

A perfect square trinomial is a quadratic expression that factors neatly into the square of a binomial. Recognising this pattern is the foundation of completing the square.

The Geometric Picture

Completing the square literally means building a geometric square from an incomplete rectangle. The missing corner piece is the value we add.

\( x^2 \)
\( 3x \)
\( 3x \)
\( 9 \)
\( x \)
\( 3 \)
\( x \)
\( 3 \)
\( x^2 + 6x \)
needs \(+9\) to
complete the square
\( (x+3)^2 \)

Why Complete the Square?

Solve Any Quadratic
Works even when factoring fails: irrational or complex solutions are no problem.
Find the Vertex
Converts \( ax^2+bx+c \) to vertex form \( a(x-h)^2+k \), revealing the parabola's peak.
Derive the Formula
The quadratic formula itself is proven by completing the square on the general equation.

The Core Technique

To complete the square on \( x^2 + bx \), add and subtract \(\left(\dfrac{b}{2}\right)^2\):

When solving an equation \( x^2 + bx + c = 0 \):

1
Move the constant to the other side: \( x^2 + bx = -c \)
2
Add \(\left(\dfrac{b}{2}\right)^2\) to both sides
3
Factor the left side as \(\left(x + \dfrac{b}{2}\right)^2\)
4
Take the square root of both sides (don't forget \( \pm \))
5
Isolate \( x \) and simplify

From Standard to Vertex Form

Completing the square converts standard form \( ax^2 + bx + c \) into vertex form \( a(x - h)^2 + k \), where \((h,k)\) is the vertex of the parabola.

x y (h, k) vertex
\( x = h \)
Standard:
\( ax^2 + bx + c \)
Vertex:
\( a(x-h)^2 + k \)

Factoring vs Completing the Square

Factoring Completing the Square
When it works Only for "nice" integer roots Always works
Irrational roots Cannot find them Finds them exactly
Vertex form Does not produce it Produces it directly
Speed Fast when applicable More steps, but reliable
Complex roots No Yes

Step-by-Step Checklist

1
Leading coefficient = 1? If \( a \neq 1 \), divide the entire equation by \( a \).
2
Isolate the variable terms: move the constant to the right side.
3
Half the linear coefficient, square it: compute \(\left(\dfrac{b}{2}\right)^2\).
4
Add that value to both sides to keep the equation balanced.
5
Factor the left side as \(\left(x + \dfrac{b}{2}\right)^2\).
6
Square root both sides: remember the \( \pm \) symbol.
7
Solve for \( x \) and simplify any radicals.

Example 1: Basic Case

Solve \( x^2 + 8x + 7 = 0 \) by completing the square.

1
Move constant: \( x^2 + 8x = -7 \)
2
Half of 8 is 4; square it: \( 4^2 = 16 \)
3
Add 16 to both sides: \( x^2 + 8x + 16 = -7 + 16 \)
4
Factor: \( (x+4)^2 = 9 \)
5
Square root: \( x + 4 = \pm 3 \)
6
Solve: \( x = -1 \) or \( x = -7 \)

Example 2: Irrational Roots

Solve \( x^2 - 6x + 2 = 0 \).

1
Move constant: \( x^2 - 6x = -2 \)
2
Half of \(-6\) is \(-3\); square it: \( (-3)^2 = 9 \)
3
Add 9 to both sides: \( x^2 - 6x + 9 = -2 + 9 \)
4
Factor: \( (x-3)^2 = 7 \)
5
Square root: \( x - 3 = \pm\sqrt{7} \)
6
Solve: \( x = 3 \pm \sqrt{7} \)

Example 3: When \( a \neq 1 \)

Solve \( 2x^2 + 12x + 10 = 0 \).

1
Divide by 2: \( x^2 + 6x + 5 = 0 \)
2
Move constant: \( x^2 + 6x = -5 \)
3
Half of 6 is 3; square: \( 3^2 = 9 \)
4
Add 9: \( x^2 + 6x + 9 = 4 \)
5
Factor: \( (x+3)^2 = 4 \)
6
Square root: \( x + 3 = \pm 2 \) → \( x = -1 \) or \( x = -5 \)

Example 4: Finding the Vertex

Rewrite \( f(x) = x^2 - 4x + 1 \) in vertex form and identify the vertex.

1
Group variable terms: \( f(x) = (x^2 - 4x) + 1 \)
2
Half of \(-4\) is \(-2\); square it: \((-2)^2 = 4\)
3
Add and subtract 4 inside: \( f(x) = (x^2 - 4x + 4) - 4 + 1 \)
4
Factor: \( f(x) = (x - 2)^2 - 3 \)

What If the Right Side Is Negative?

Solve \( x^2 + 2x + 5 = 0 \) by completing the square.

1
Move constant: \( x^2 + 2x = -5 \)
2
Add \( 1^2 = 1 \): \( x^2 + 2x + 1 = -4 \)
3
Factor: \( (x+1)^2 = -4 \)

Common Mistakes

✕ Forgetting to add to both sides
When you add \(\left(\frac{b}{2}\right)^2\) to the left side, you must add it to the right side too, or the equation is no longer balanced.
✕ Dropping the \( \pm \)
When taking the square root of both sides, \( \sqrt{k} \) gives only one root. You need \( \pm\sqrt{k} \) to find both solutions.
✕ Not dividing by \( a \) first
If the \( x^2 \) coefficient is not 1, the half-and-square trick doesn't work correctly. Always divide by \( a \) first.

Methods Comparison

Factoring Completing Square Quadratic Formula
Always works? No Yes Yes
Gives vertex? No Yes No
Best for Simple integer roots Vertex form, deriving formula Quick solutions
Steps Fewest More, but systematic Plug and compute
Shows reasoning Somewhat Deeply Not really

Question 1 of 5

What value do you add to both sides to complete the square for \( x^2 + 10x = 3 \)?

Question 2 of 5

Solve by completing the square: \( x^2 - 4x - 5 = 0 \)

Question 3 of 5

What is the vertex form of \( f(x) = x^2 + 6x + 11 \)?

Question 4 of 5

Solve \( 3x^2 + 6x - 9 = 0 \) by completing the square.

Question 5 of 5

Which equation has no real solutions?