01 / 20

Completing the Square
for Vertex Form

Learn to rewrite any quadratic \( ax^2 + bx + c \) into vertex form \( a(x - h)^2 + k \) and unlock the vertex, axis of symmetry, and graph behavior at a glance.

Math 2

What Is Vertex Form?

Every quadratic function can be written in vertex form:

\( a \)
Controls width and direction of opening (up if \( a > 0 \), down if \( a < 0 \)).
\( (h,\, k) \)
The vertex: the highest or lowest point on the parabola.
\( x = h \)
The axis of symmetry: a vertical line through the vertex.

Why Does Vertex Form Matter?

Standard form \( ax^2 + bx + c \) hides the most useful information. Vertex form reveals it instantly:

1
Graph quickly: Plot the vertex \( (h, k) \), draw the axis of symmetry, then sketch the parabola.
2
Find extremes: The vertex gives the maximum or minimum value of the function: no calculus needed.
3
Solve real problems: Projectile height, profit optimization, and area problems all depend on finding the vertex.

Visualizing the Parabola

-4 -3 -2 -1 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 x y (1, 1) x = 1 opens up opens up

The Core Idea: Completing the Square

To convert \( ax^2 + bx + c \) into vertex form, we force a perfect square trinomial inside the expression. The key identity is:

We add and subtract \( \left(\frac{b}{2}\right)^2 \) so the expression's value doesn't change, but we gain a squared binomial we can factor.

The Vertex Formula

After completing the square on \( ax^2 + bx + c \), the vertex form is:

From this, we read off the vertex directly:

\( h = -\frac{b}{2a} \)
The x-coordinate of the vertex (and axis of symmetry).
\( k = c - \frac{b^2}{4a} \)
The y-coordinate of the vertex (the min or max value).

Standard vs. Vertex Form

Standard Form Vertex Form
Template \( ax^2 + bx + c \) \( a(x - h)^2 + k \)
Vertex Must calculate \( h = -\frac{b}{2a} \) Read directly: \( (h, k) \)
y-intercept Read directly: \( (0, c) \) Must expand and evaluate
Axis of symmetry Must calculate Read directly: \( x = h \)
Best for Finding intercepts Graphing, optimization

How to Complete the Square

1
Factor out \( a \) from the first two terms if \( a \neq 1 \).
2
Identify \( b' \): the coefficient of \( x \) inside the parentheses (after factoring).
3
Compute \( \left(\frac{b'}{2}\right)^2 \) and add and subtract it inside the parentheses.
4
Factor the perfect square trinomial: \( x^2 + b'x + \left(\frac{b'}{2}\right)^2 = \left(x + \frac{b'}{2}\right)^2 \).
5
Distribute \( a \) to the leftover constant and simplify to get \( a(x - h)^2 + k \).

Example 1: \( a = 1 \)

Convert \( f(x) = x^2 + 6x + 5 \) to vertex form.

1
\( a = 1 \), so no factoring needed. We have \( x^2 + 6x + 5 \).
2
Half of \( 6 \) is \( 3 \). Square it: \( 3^2 = \) \( 9 \).
3
Add and subtract \( 9 \): \( (x^2 + 6x + 9) - 9 + 5 \).
4
Factor and simplify: \( (x + 3)^2 - 4 \).

Graph: \( (x+3)^2 - 4 \)

-7 -6 -5 -4 -3 -2 -1 1 1 2 3 4 5 -1 -2 -3 -4 9 12 x y (-3, -4) x = -3 (-5, 0) (-1, 0) (0, 5)

Example 2: \( a \neq 1 \)

Convert \( g(x) = 2x^2 - 12x + 22 \) to vertex form.

1
Factor out 2: \( 2(x^2 - 6x) + 22 \).
2
Half of \( -6 \) is \( -3 \). Square it: \( (-3)^2 = 9 \).
3
Add and subtract 9 inside: \( 2(x^2 - 6x + 9 - 9) + 22 \).
4
Factor and distribute: \( 2(x - 3)^2 - 18 + 22 \).
5
Simplify: \( 2(x - 3)^2 + 4 \).

Example 3: Negative \( a \)

Convert \( h(x) = -x^2 + 4x - 1 \) to vertex form.

1
Factor out \( -1 \): \( -(x^2 - 4x) - 1 \).
2
Half of \( -4 \) is \( -2 \). Square it: \( (-2)^2 = 4 \).
3
Add and subtract 4 inside: \( -(x^2 - 4x + 4 - 4) - 1 \).
4
Factor and distribute: \( -(x - 2)^2 + 4 - 1 \).
5
Simplify: \( -(x - 2)^2 + 3 \).

Vertex in Context

A ball is thrown upward. Its height in feet after \( t \) seconds is \( h(t) = -16t^2 + 64t + 5 \). Find the maximum height.

1
Factor out \( -16 \): \( -16(t^2 - 4t) + 5 \).
2
Complete the square: \( -16(t^2 - 4t + 4 - 4) + 5 \).
3
Simplify: \( -16(t - 2)^2 + 64 + 5 = -16(t - 2)^2 + 69 \).

Common Mistakes

✕ Forgetting to multiply by \( a \)
When you subtract the square term back out, you must distribute the factored \( a \). If you added \( 9 \) inside \( 2(\ldots) \), you actually added \( 18 \), so subtract \( 18 \).
✕ Wrong sign on \( h \)
Vertex form is \( a(x - h)^2 + k \). If you get \( (x + 3)^2 \), then \( h = -3 \), not \( 3 \). The sign flips.
✕ Squaring the wrong value
You need \( \left(\frac{b}{2}\right)^2 \), not \( \frac{b^2}{2} \). Half first, then square. For \( b = 6 \): \( 3^2 = 9 \), not \( \frac{36}{2} = 18 \).

Summary: Reading Vertex Form

Feature How to Find It Example: \( 2(x-3)^2+4 \)
Vertex \( (h,\, k) \) \( (3, 4) \)
Axis of symmetry \( x = h \) \( x = 3 \)
Direction \( a > 0 \): up; \( a < 0 \): down \( a = 2 > 0 \): opens up
Min/Max value \( k \) (min if up, max if down) Minimum = \( 4 \)
Width \( |a| > 1 \): narrow; \( |a| < 1 \): wide \( |2| > 1 \): narrower than \( x^2 \)

Question 1 of 5

What is the vertex form of \( f(x) = x^2 - 8x + 19 \)?

Question 2 of 5

What is the vertex of \( g(x) = -3(x + 5)^2 - 7 \)?

Question 3 of 5

When completing the square for \( 3x^2 + 12x + 7 \), after factoring out the 3, what value do you add and subtract inside the parentheses?

Question 4 of 5

A profit function is \( P(x) = -2x^2 + 20x - 8 \). What is the maximum profit?

Question 5 of 5

Which parabola opens downward and has its vertex at \( (1, 6) \)?