Completing the Square
Learning goals
- Add to complete the square
- Factor out first, then distribute it back
- Derive general vertex form and read the vertex
- Solve from with a
- Use it when factoring is not apparent, since it never fails
The identity that builds a perfect square
Everything here runs on one line of algebra you already know, read in an unfamiliar direction. Squaring a binomial gives
Read left to right, this expands a square. Read right to left, it is a recipe for recognizing one. A trinomial is a perfect square, and the number multiplying in the middle is exactly twice the number that appears in the answer. That single observation tells you what constant a bare is missing.
Try it on a number before doing it in general. Take . If this is missing one constant to become a perfect square , matching the middle terms means , so , and matching the constants means . Check it by expanding: , which is exactly with added. Nothing about that reasoning depended on being the coefficient; the same matching works for any coefficient in place of , which is what the argument below shows.
The one constant that completes a perfect square#
Fix a number . We ask which constant makes a perfect square, meaning equal to for some .
Suppose . Two polynomials are equal only when their matching coefficients agree, so the terms give and the constants give . The first equation forces , and then the second forces
Conversely, if , the identity runs forward: . So the constant that completes the square is not just a choice, it is the only choice, and it equals .
This is why the familiar instruction “take half the coefficient of , then square it” is true. It is not a rule to memorize; it is a consequence of matching the middle term , which forces , and then reading off the constant . Notice the added constant is never negative, whatever the sign of , because squaring kills the sign.
The added constant almost never happens to be sitting there already. So we add it and immediately subtract it, changing the expression’s appearance without changing its value:
That equation is the engine of the lesson. Every worked example below is this one move, applied and then cleaned up.
Completing the square, literally
The name is not a metaphor. Picture as area. The is a square with side . The is a rectangle with one side and the other side , so it is tall and wide, sitting next to the square. Now cut that rectangle down its length into two equal strips, each of width and length . Glue one strip to the right edge of the square and the other to the bottom edge. The two strips fit flush, and what you have built is almost a bigger square of side , missing only the little corner where the two strips would meet. That corner is a square of side , so its area is . Fill it in and the figure is a complete square of side .
The picture draws both and as positive lengths, since an actual rectangle cannot have a negative side. But the identity it illustrates is pure algebra, and algebra does not care about the sign of or . The very next worked example runs this same move on , where : the picture stops making sense as a picture, but the equation still holds, because it was already proved above for every real number , whatever real number eventually turns out to be too.
The area bookkeeping is the algebra. The original pieces have total area (the big square) plus (the two strips), which is , our starting expression. Fill in the corner of area and the whole figure is a square of side :
That is the identity from the last section, now seen rather than derived. The constant you add is the geometric corner that was missing, and “completing the square” describes precisely what your hand does to the picture.
The algorithm: standard form to a single square
To rewrite a whole quadratic, complete the square on its part and carry the leftover constant along. Start with a monic quadratic, one whose leading coefficient is .
Worked example 1 A monic quadratic to vertex form
Rewrite as a perfect square plus a constant.
The variable part is , so here and half of it is . The completing constant is . Add it and subtract it so the value is untouched:
The bracketed trinomial is the perfect square , and the loose constants combine to :
This is vertex form with , , . No factoring, no guessing, and it worked on the very quadratic that had no rational factorization.
When the leading coefficient is not , the square you are completing lives inside a factor of , so pull out of the and terms first. This is the step most often botched, because the has to come back out at the end.
Worked example 2 A leading coefficient, and reading the vertex
Write in vertex form, then read off its vertex, its minimum value, and its range.
Factor out of the first two terms only. The constant stays outside, because it has no in it:
Complete the square inside the parentheses. The coefficient of there is (not the original , since the has already been factored out), so half of it is , and . Add and subtract inside:
Now distribute the back across both pieces, the trap being to distribute it only to the square. The is inside the parentheses, so it is multiplied by as well:
In vertex form , so the vertex is . Because the parabola opens upward, the vertex is the lowest point, the minimum value is , and the range is .
Check your understanding
Written in vertex form, equals which of these?
Factor out of the first two terms: . Complete the square inside: half of is , and .
Distribute the across both pieces inside, then add the outside : . Adding the inside without subtracting it back gives instead. Distributing correctly but forgetting to add the outside gives . Keeping the right constant but dropping the leading gives .
Check your understanding
Written in vertex form, equals which of these?
Complete the square on . Half of is , and , so add and subtract .
The sign inside the square matches the sign of , so it is , and the constants combine as .
Two payoffs from one computation
Completing the square is the bridge from standard form to vertex form. The very same finished expression then answers two different questions depending on what you do with it next. Convert and read, and you get the vertex. Convert and solve, and you get the roots. One computation, two payoffs.
Payoff one: the vertex, the extremum, and the range
Run the algorithm on a completely general quadratic and the vertex appears in closed form.
Completing the square gives the vertex of every parabola#
Take with . Factor from the first two terms:
Inside, the coefficient of is , so half of it is and the completing constant is . Add and subtract it inside:
Distribute across both terms in the outer parentheses. The second term becomes :
This is vertex form with and , so the vertex is
Look at the -coordinate: is exactly the axis of symmetry the chapter derived earlier from the parabola’s mirror symmetry. That lesson found the vertex’s height too, but only by a separate evaluation, plugging the axis back into . Completing the square reaches the same height, , which is exactly , without a separate evaluation step: both coordinates fall out of the one rewritten expression, and together. From the vertex form the extremum and range follow with no extra work: when the vertex is the minimum and the range is . When the vertex is instead the maximum and the range is . That is the whole reason vertex form is worth reaching, and completing the square always reaches it.
Check your understanding
What is the minimum value of ?
Complete the square to reach vertex form. Half of is , and .
The leading coefficient is positive, so the vertex is the lowest point and the minimum value is the constant , reached at .
Payoff two: solving by isolating the square
To solve instead of read, do not distribute anything: get the square by itself on one side, then undo it. Undoing a square is where a genuinely important subtlety lives, so look at a number before stating it in general.
Take . Two numbers square to : and , so both and solve the equation. Yet the symbol names only one number, , the nonnegative one. If you solved by writing , you would report a true solution but miss the other one, , which is exactly as valid. The general case, for any , works the same way, and now you can see why.
Why the square root carries a plus or minus#
The symbol denotes, by definition, the nonnegative number whose square is (this needs ). So is one specific number, never two. The equation is a different object: it asks for every whose square is .
For , move everything to one side and factor as a difference of squares:
By the Zero Product Property a product is zero exactly when a factor is zero, so or , which we write together as . Both are genuine solutions, and there are no others. For the two collapse into the single solution . For there is no real solution at all, because a real square is never negative.
So the is not decoration, it is the second root. Writing by itself silently throws away , and that lost solution is one of the most common errors in all of algebra. One boundary case is worth seeing directly: if the isolated square already equals , such as , then and are both just , so the two solutions collapse into one, . With that pinned down, solving is mechanical: complete the square, isolate it, and extract the root with a .
Worked example 3 Solving the quadratic that would not factor
Solve , the equation from the opening that had no rational factorization.
From Worked Example 1 the left side is , so the equation is
Isolate the square by adding to both sides:
The right side is positive, so take the square root of both sides and attach the :
Finally add to both sides:
There are the two roots, and . They are irrational, which is exactly why the integer search of factoring could never have found them, and why a method that does not rely on guessing was needed.
Check your understanding
Solve by completing the square. What are the solutions?
Complete the square on . Half of is , and .
So the equation is , meaning . The right side is positive, so both signs of the square root give genuine solutions: , hence . Reporting only drops the second root, which is exactly as valid. The sign of inside the completed square is fixed by the algebra (, not ), so has the wrong sign on the shift. Combining the constants as instead of gives the wrong radicand, .
Worked example 4 When the isolated square is negative
Solve .
Complete the square on . Half of is , and :
So the equation is . Isolate the square:
The left side is a square, so it is never negative for any real , while the right side is . No real number satisfies this, so the equation has no real solution. Completing the square does not fail here; it succeeds, and what it reveals is that this parabola never touches the -axis. (Numbers whose square is negative are the subject of a later chapter, and they will give this equation two solutions of a new kind.)
Check your understanding
How many real solutions does have?
Complete the square. Half of is , and .
Setting this to zero gives . A real square cannot be negative, so no real works and the equation has no real solution.
Do this same isolate-and-extract computation on the fully general , carrying the letters instead of numbers, and the answer you get has a name: the quadratic formula. That is the next lesson, and it is why the formula is a theorem you can prove rather than a spell to memorize. You already own its one idea.