01 / 20

Complete the Square
to Find Extrema

Transform quadratic expressions into vertex form to reveal the maximum or minimum value of the function they define.

Algebra 1

What Is a Quadratic Function?

A quadratic function has the general form \( f(x) = ax^2 + bx + c \) where \( a \neq 0 \). Its graph is a parabola: a smooth, symmetric U-shaped curve. The highest or lowest point on this curve is called the vertex.

\(x\)
\(y\)
vertex

Two Forms of a Quadratic

Standard Form
\( f(x) = ax^2 + bx + c \)

Shows the y-intercept \((0, c)\) directly but hides the vertex.
Vertex Form
\( f(x) = a(x - h)^2 + k \)

Reveals the vertex \((h, k)\) and the extremum \(k\) at a glance.

Why Does the Vertex Matter?

In real-world problems, the vertex tells you the optimal value: the maximum height of a projectile, the minimum cost, or the peak revenue. The sign of \(a\) determines which type.

\( a > 0 \): Opens Up
Vertex is the minimum point. The function decreases to the vertex then increases.
\( a < 0 \): Opens Down
Vertex is the maximum point. The function increases to the vertex then decreases.
min
\(a > 0\)
max
\(a < 0\)

The Completing the Square Identity

This identity works because expanding \( a(x-h)^2 + k \) always recovers \( ax^2 + bx + c \). Completing the square simply reverses the expansion, step by step.

Geometric Intuition

Consider \( x^2 + 6x \). We split the \( 6x \) into two equal parts (\( 3x + 3x \)) and arrange them as rectangle sides. A \( 3 \times 3 = 9 \) square completes the picture.

\(x^2\)
\(x\)
\(x\)
\(3x\)
\(3\)
\(3x\)
\(3\)
\(9\)
Add +9
to complete

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

Minimum vs Maximum

Opens Up (\(a > 0\)) Opens Down (\(a < 0\))
Shape U-shaped Inverted U
Vertex gives Minimum Maximum
Extremum value \( k \) (smallest \(y\)) \( k \) (largest \(y\))
Range \( [k, \infty) \) \( (-\infty, k] \)

How to Complete the Square

1
Factor out \(a\) from the \(x^2\) and \(x\) terms (skip if \(a = 1\)).
2
Halve the coefficient of \(x\) (inside the parentheses), then square it.
3
Add and subtract that square inside the parentheses.
4
Rewrite the perfect-square trinomial as \((x - h)^2\).
5
Simplify the constants to get \( a(x-h)^2 + k \). Read off the vertex \((h, k)\).

Example 1: \( f(x) = x^2 + 8x + 10 \)

1
\(a = 1\), so no factoring needed. Focus on \(x^2 + 8x\).
2
Half of 8 is 4. Squared: \(4^2 = \) 16.
3
Add and subtract 16: \( x^2 + 8x + 16 - 16 + 10 \).
4
Rewrite: \( (x + 4)^2 - 16 + 10 = (x + 4)^2 - 6 \).

Graphing \( (x+4)^2 - 6 \)

\(x\)
\(y\)
-8
-6
-4
-2
2
-6
-4
-2
2
4
6
8
10
(-4, -6)
\(x = -4\)
Minimum = -6

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

1
Factor out \(a = 2\): \( 2(x^2 - 6x) + 7 \).
2
Half of \(-6\) is \(-3\). Squared: \((-3)^2 = \) 9.
3
Add and subtract 9 inside: \( 2(x^2 - 6x + 9 - 9) + 7 \).
4
Distribute: \( 2(x - 3)^2 - 2(9) + 7 = 2(x-3)^2 - 18 + 7 \).
5
Simplify: \( 2(x-3)^2 - 11 \).

Example 3: \( h(x) = -x^2 + 4x + 1 \)

1
Factor out \(-1\): \( -(x^2 - 4x) + 1 \).
2
Half of \(-4\) is \(-2\). Squared: \((-2)^2 = 4\).
3
Inside: \( -(x^2 - 4x + 4 - 4) + 1 \).
4
Distribute: \( -(x-2)^2 + 4 + 1 \).
5
Simplify: \( -(x-2)^2 + 5 \).

Graphing \( -(x-2)^2 + 5 \)

\(x\)
\(y\)
1
2
3
4
5
-1
5
3
1
-2
-4
(2, 5)
\(x = 2\)
Maximum = 5

Common Mistakes to Avoid

✕ Forgetting to Subtract
When you add a value to complete the square, you must subtract the same value to keep the expression balanced.
✕ Ignoring the Factor \(a\)
If \(a \neq 1\), the subtracted value gets multiplied by \(a\) when distributed. Example: \(2(x^2 - 6x + 9 - 9) = 2(x-3)^2 - 18\), not \(-9\).
✕ Wrong Sign on \(h\)
In \(a(x - h)^2 + k\), the vertex is at \(x = h\). If you have \((x + 3)^2\), that means \(h = -3\), not \(+3\).

Summary at a Glance

Step Action Result
1 Factor out \(a\) \(a(x^2 + \tfrac{b}{a}x) + c\)
2 Halve and square \(\left(\frac{b}{2a}\right)^2\)
3 Add and subtract inside Perfect square trinomial
4 Rewrite as square \(a(x - h)^2\)
5 Collect constants \(a(x-h)^2 + k\)

Question 1 of 5

Complete the square for \( f(x) = x^2 + 6x + 2 \). What is the minimum value of \(f\)?

Question 2 of 5

For \( g(x) = -2x^2 + 8x - 3 \), does the function have a maximum or minimum, and what is it?

Question 3 of 5

Which is the vertex form of \( f(x) = 3x^2 + 12x + 5 \)?

Question 4 of 5

A ball is thrown upward with height \( h(t) = -16t^2 + 64t + 3 \) feet. What is the maximum height?

Question 5 of 5

When completing the square for \( f(x) = x^2 - 10x + 30 \), what value do you add and subtract?