Skip to content
Study Hall
Lesson 7 of 12Characteristics of Functions
Unit 1 · Lesson 7 of 12

Completing the Square

Completing the square rewrites any standard-form quadratic into vertex form algebraically, revealing the exact vertex and the maximum or minimum value.

4 min read10 practice questionsAsk AI about this →

Key things to remember

  1. 1To complete the square on : add and subtract .
  2. 2When , factor out of the and terms first, before completing the square.
  3. 3After completing the square, the constant subtracted outside the bracket must be multiplied by .
  4. 4Vertex form result: , vertex .
  5. 5If , is a minimum value; if , is a maximum value.

Factoring only finds the vertex quickly when the roots are nice integers, and many quadratics do not factor at all. Completing the square works on every quadratic, no matter how awkward the numbers are, and it converts standard form directly into vertex form. That matters because vertex form answers the questions people actually ask about quadratic models: what is the greatest height of a ball, the lowest cost, the largest area or the maximum revenue, and at what input does it happen? Completing the square is also the process that derives the quadratic formula in the next lesson, so understanding it here means the formula will never feel like magic. The whole method rests on one pattern, the perfect square trinomial, and one honest trick: adding zero in a clever form.

x²xx3x3x9Splitting bx = 6x into two 3x rectangles leaves a 3×3 corner missing.x² + 6x= x² + 6x + 9 - 9add and subtract (b/2)² = 9= (x + 3)² - 9the square is now completegeneral: x²+bx = (x + b/2)² - (b/2)²
Fig 1Completing the square turns a rectangle-plus-leftover picture into a perfect square, revealing the vertex.

The idea: make a perfect square trinomial

Expand any squared binomial and look at the pattern: . The middle coefficient is and the constant is , so the constant is always the square of half the -coefficient. For example factors as because . The picture explains why. Build from an -by- square plus two -by- strips placed along two sides. The shape is almost a big square of side , but one corner is missing: a -by- piece with area . "Completing the square" literally means filling in that missing corner. Since we cannot change the value of the expression, we add the and immediately subtract it again, which is the same as adding zero.

The key identity: square half of b, then take that amount back off.

Case 1: leading coefficient a = 1

  1. Take the coefficient of , halve it, and square the result: . For : half of is , and .
  2. Add and subtract that number right after the -term: .
  3. Group the first three terms as a perfect square binomial, using half of (with its sign) inside the bracket: .
  4. Simplify the leftover constants: , so the vertex is .

Two details make this reliable. First, the number inside the bracket is always half of with the same sign as : becomes , and becomes . Second, odd values of simply produce fractions, and the method still works. For , half of is and its square is , so The vertex is , or . Keep fractions exact until the last line; rounding early spoils the vertex.

Case 2: leading coefficient a ≠ 1

The perfect-square pattern only works when has coefficient . So when , first factor out of the and terms only, leaving the constant term outside and untouched. Complete the square inside the bracket as before, then distribute back through before simplifying. The coefficient inside may become a fraction, which is fine: becomes ; half of is , squared is , so When is negative, factor out the negative too: becomes , and every sign inside the bracket flips.

Don't forget to multiply back
When , the number you add inside the bracket is being multiplied by once you distribute — so the amount you must subtract outside the bracket is times that square, not just the square itself. In , the leftover is , not .

Reading the maximum or minimum

Once in vertex form , the vertex is . If , is the minimum value of the function; if , is the maximum value — because a squared term is always , so only ever adds to (when ) or subtracts from it (when ), and it equals zero only at . This is why completing the square is the standard tool for optimization. The completed form also tells you about the zeros. Solving gives , which has two solutions when , one when , and none when (a square cannot be negative). For : , so .

Standard formCompleted squareVertexMax or min
min
min
min
min
max
The sign of a decides whether k is a minimum (a > 0) or a maximum (a < 0).
Two quick checks
Check with the axis formula : for , ✓. Check by substituting into the original: ✓. On a test that asks only for the vertex, these two substitutions are a fast alternative, but when the question says "complete the square", show the full algebra.
VideoJensenMath's Functions 11 lesson uses completing the square to rewrite a quadratic in vertex form and read off its maximum or minimum value, the full process covered in this lesson.Watch on YouTube

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Complete the square for and state the vertex.
Example 2
Complete the square for (leading coefficient ≠ 1) and state the vertex.
Example 3
Complete the square for and state the maximum value.
Example 4
A ball's height in metres after seconds is . Complete the square to find the maximum height and when it occurs.

Where marks get lost

  • Forgetting to factor out of the -term before completing the square when .
  • Subtracting the completed-square number directly instead of multiplying it by first when distributing back out.
  • Sign errors when halving a negative (e.g. halving should give , not ).
  • Reporting as the maximum when (it's actually the minimum in that case).
  • Reading the vertex of as . The bracket means , so the vertex is .

Flashcards 9

Completing the square (a = 1)
Completing the square (a ≠ 1)
Perfect square trinomial pattern
Vertex from completed square
+ 5 more

Practice

1
Complete the square: . State the vertex.
2
For , what is the minimum value of ?
3
Complete the square for .
4
For , what is the maximum value of ?
5
When completing the square on , what number is added and subtracted inside the bracket?
6
State the vertex of after completing the square.
7
Order the steps for completing the square on y = 4x² + 16x + 9:
  1. 1Complete the square inside: half of 4 is 2, squared is 4
  2. 2Distribute the 4 and simplify: y = 4(x+2)² − 7
  3. 3Rewrite as y = 4((x+2)² − 4) + 9
  4. 4Factor 4 out of the first two terms: y = 4(x² + 4x) + 9
8
Match each expression with the number that completes the square.
  1. A.
  2. B.
  3. C.
  4. D.
9
A ball's height in metres is , where is in seconds. What is its maximum height?
m
10
Which is the completed-square form of ?

Spot a mistake on this page? Let us know