01 / 20

Completing
the Square

Rewrite any quadratic \( ax^2 + bx + c \) as a perfect square plus a constant: \( a(x-h)^2 + k \).

ACCUPLACER Advanced Algebra & Functions

What Is a Perfect Square Trinomial?

A perfect square trinomial is a quadratic that factors into a single binomial squared. When you expand \( (x+p)^2 \), you always get a recognizable pattern.

\( (x + p)^2 = x^2 + 2px + p^2 \)
middle term
\( = 2p \)
last term
\( = p^2 \)
Half the middle, then square it \(\rightarrow\) the last term

Why Complete the Square?

Most quadratics are not already perfect squares. Completing the square is a technique that forces a quadratic into perfect-square form so we can solve, graph, or analyze it.

Solve Equations
Isolate \( (x-h)^2 \) and take the square root of both sides.
Find the Vertex
Vertex form \( a(x-h)^2 + k \) reveals the vertex \( (h, k) \) instantly.
Derive Formulas
The quadratic formula itself comes from completing the square.

The Geometric Picture

Think of \( x^2 + bx \) as a square of side \( x \) plus a rectangle. We split the rectangle and reattach it to build a bigger square, missing only one small corner piece.

\( x^2 \)
\( \tfrac{b}{2}x \)
\( \tfrac{b}{2}x \)
\( \left(\tfrac{b}{2}\right)^{\!2} \)
\( x \)
\( \tfrac{b}{2} \)
Add the yellow corner to complete the square

The Core Rule

\( x^2 + bx + \left(\tfrac{b}{2}\right)^2 = \left(x + \tfrac{b}{2}\right)^2 \)
Add the square of half the linear coefficient

To keep the expression equal, whatever you add you must also subtract (in an expression) or add to the other side (in an equation).

Standard Form vs. Vertex Form

Completing the square converts between two equivalent ways of writing the same parabola. Each form is useful for different tasks.

Standard Form Vertex Form
Looks like \( ax^2 + bx + c \) \( a(x-h)^2 + k \)
Best for Reading \( c \) (y-intercept) Reading vertex \( (h,k) \)
Get it by Expanding Completing the square

How to Apply It

1
Factor out \( a \) from the \( x^2 \) and \( x \) terms if \( a \neq 1 \).
2
Find \( \left(\tfrac{b}{2}\right)^2 \). Take half the coefficient of \( x \), then square it.
3
Add and subtract that value (or add to both sides of an equation).
4
Factor the perfect square trinomial as \( \left(x + \tfrac{b}{2}\right)^2 \).
5
Combine the leftover constants to finish in vertex form.

Example 1: Simple Case

Rewrite \( x^2 + 6x + 5 \) by completing the square.

1
Here \( b = 6 \), so \( \tfrac{b}{2} = 3 \) and \( \left(\tfrac{b}{2}\right)^2 = 9 \).
2
Add and subtract 9: \( x^2 + 6x + 9 - 9 + 5 \).
3
Factor: \( (x+3)^2 - 9 + 5 = (x+3)^2 - 4 \).

Example 2: Odd Coefficient

Rewrite \( x^2 - 5x + 2 \) in vertex form.

1
Here \( b = -5 \), so \( \tfrac{b}{2} = -\tfrac{5}{2} \) and \( \left(\tfrac{b}{2}\right)^2 = \tfrac{25}{4} \).
2
Add and subtract \( \tfrac{25}{4} \): \( x^2 - 5x + \tfrac{25}{4} - \tfrac{25}{4} + 2 \).
3
Factor and combine: \( \left(x - \tfrac{5}{2}\right)^2 - \tfrac{25}{4} + \tfrac{8}{4} \).

Example 3: Leading Coefficient

Rewrite \( 2x^2 + 8x + 3 \) in vertex form.

1
Factor 2 from the \( x \)-terms: \( 2(x^2 + 4x) + 3 \).
2
Inside, \( b = 4 \), so \( \left(\tfrac{b}{2}\right)^2 = 4 \): \( 2(x^2 + 4x + 4 - 4) + 3 \).
3
Factor and distribute: \( 2(x+2)^2 - 8 + 3 \).

Using It to Solve

Solve \( x^2 + 4x - 1 = 0 \) by completing the square.

1
Move constant: \( x^2 + 4x = 1 \).
2
\( \left(\tfrac{b}{2}\right)^2 = 4 \); add to both sides: \( x^2 + 4x + 4 = 5 \).
3
Factor: \( (x+2)^2 = 5 \), so \( x + 2 = \pm\sqrt{5} \).

Common Mistakes

Forgetting to Subtract
Adding \( \left(\tfrac{b}{2}\right)^2 \) without also subtracting it changes the expression's value.
Ignoring the Factor
When \( a \neq 1 \), the added constant gets multiplied by \( a \) when you distribute back out.
Using \( b^2 \), Not \( (b/2)^2 \)
You add the square of half of \( b \), not the square of \( b \) itself.
Sign Errors
If \( b \) is negative, the binomial uses a minus sign: \( \left(x - \tfrac{|b|}{2}\right)^2 \).

Quick Reference

Expression Half of b Add Result
\( x^2 + 6x \) 3 9 \( (x+3)^2 \)
\( x^2 - 10x \) \( -5 \) 25 \( (x-5)^2 \)
\( x^2 + x \) \( \tfrac{1}{2} \) \( \tfrac{1}{4} \) \( \left(x+\tfrac{1}{2}\right)^2 \)
\( x^2 - 3x \) \( -\tfrac{3}{2} \) \( \tfrac{9}{4} \) \( \left(x-\tfrac{3}{2}\right)^2 \)

Reading the Vertex

Once in vertex form \( a(x-h)^2 + k \), the parabola's turning point is \( (h, k) \). Watch the sign of \( h \) carefully.

Vertex \((h, k)\)
x y

Question 1 of 5

To complete the square on \( x^2 + 8x \), what number should you add?

Question 2 of 5

Which is the vertex form of \( x^2 + 10x + 21 \)?

Question 3 of 5

What is the vertex of the parabola \( y = (x-4)^2 + 7 \)?

Question 4 of 5

Solve \( x^2 - 6x + 2 = 0 \) by completing the square. What are the solutions?

Question 5 of 5

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

You've Got It!

Completing the square turns any quadratic into vertex form using one repeatable move: half, square, add.

The Move
Add \( \left(\tfrac{b}{2}\right)^2 \), balancing by subtracting it back.
The Payoff
Vertex form \( a(x-h)^2 + k \) reveals the vertex and solves equations.
Watch For
Leading coefficients and the sign of \( b \) in the binomial.