What is Completing the Square?
A Geometric Intuition for Completing the Square
Completing the square is one of the most important concepts taught in an algebra class. It allows us to solve equations of the form or rewrite equations such as in vertex form. But one of the first questions a student might have is: why is it even called completing the square? Hopefully, by the end of this post, you will know why.
Case 1
Let’s start off with a simple expression, If we assume that and are both positive, we can represent this quantity as the sum of the areas of a square with length and a rectangle with a length of and a width of Geometrically, it might look something like this:
We somehow want to rearrange these components to look like an incomplete square, so that we can then “complete the square.” Is this achieveable? Certainly! We can split the rectangle into two identical, smaller rectangles with a length of and a width of We can then place one on top and one to the right of the square. We now have the following:
This now looks like an incomplete square! The entire figure looks like a square of length with a missing portion on the top right. Note that the figure still has an area of since we didn’t add or remove any components (we only did some rearranging). Let’s fill in this missing portion and continue our investigation.
The purple shape on the top right actually turns out to be a square of length (our splitting of the green rectangle exactly in half ensures this). The area of this purple square is
So, what did we just show? If we take our original area, and add we achieve the area of a square with length . Algebraically, we have the following:
As mentioned prior, this geometric intution only works for positive values of and but the equation actually holds for all values of and
Case 2
Let’s now consider the expression Similar to case 1, we will assume that and are both positive so that our geometric representation makes sense. In this case, however, since we are subtracting we will also assume that so that we will still have an area left over once we perform the subtraction. I am stating these assumptions and restrictions in order to be rigorous, but there’s no need to get caught up with them if they’re confusing to understand, as they are not integral in the demonstration.
So far we have the quantity which can be represented as the area of a square with length minus the area of a rectangle with a length of and a width of The diagram is essentially the same as that of the beginning of case 1, but the rectangle is now shaded in red because we want to subtract off this area.
Similar to case 1, we’re going to split the rectangle into two identical, smaller rectangles with a length of and a width of This time, however, we’re going to subtract off the areas of the smaller rectangles one at a time:
After we subtract off the first rectangle, we are left with the following:
Let’s now try to subtract off the remaining rectangle:
We’re not able to subtract this rectangle completely; it seems like a small square is left over. Remember, we’re subtracting off these rectangles in this specific manner in order to be left with an incomplete square. We’re now left with the following:
Finally, let’s shave off this tiny square from the top right of our larger square.
What does this accomplish? Well, the area of our remaining figure is actually equal to the original quantity that we started with, Notice that we were successfully able to subtract off the red area from the blue area in such a way that we are left with an incomplete square. All that’s left now is to complete the square, and with the way that the diagram is already set up, it’s really easy! We just have to add back the same area as the small red square, which is If we do so, we’ll have the area of a square with length Algebraically, we just showed the following:
As mentioned prior, this geometric intution only works for positive values of and with the additional constraint that but the equation actually holds for all values of and
Application
Hopefully by this point, you know exactly why completing the square is named the way it is. Along the way, we also discovered two powerful equations:
But so what? What are these equations useful for? Remember, completing the square gives us a method for solving certain types of equations. Going over some examples will demonstrate this.
Example 1
Let’s consider the equation Analagous to splitting the rectangle in half, we’re going to take half of the coefficient of the term, which is in this case. Half of is Going back to our analogy, we now have the side length of the small square. We now have to add the area of this small square to both sides, which is We now have the following:
We can now factor the left side as the square of a term (which was the whole point of completing the square):
We can now take the square root of both sides, but remember, we have to consider plus or minus.
Solving for we get which leads us to or Plugging in these values to the original equation indeed shows that the equality holds.
Example 2
Let’s consider a more complex equation, You might be tempted to just take half of square it, and add that number to both sides of the equation. However, this would be incorrect! Notice that the coefficient of the term is in this example. Everything that we went through so far was with an term with a coefficient of So, to solve this example, we’ll have to be a bit more clever.
First, in order to achieve an term with a coefficient of we’re going to factor out a from the left side of the equation. It might be odd to factor out a from but it’s actually possible! We’ll end up with the following:
Dividing both sides by would have also been possible, but let’s just continue with this method for the sake of demonstration. Now that the inside of the parenthesis looks like something familiar, we can begin to complete the square. We take half of which is and square it to get We want to add this quantity to the inside of the parenthesis. But remember, if we add something to one side of the equation, we must add the same thing to the other side. But are we really adding just to the left side? No! We’re actually adding because of the on the outside of the parenthesis. So, by adding to the inside of the parenthesis, we’re actually adding by So, we’ll have the following:
Factoring and simplifying, we have:
Now, if we divide by we have:
Taking the square root of both sides, we get:
Finally, we subtract by to get our final answer: