In this section, we will learn how to “complete the square” with a quadratic expression. This topic is useful for solving quadratic equations and putting quadratic functions in vertex form.
The “missing” square in the upper right corner of Figure 2 is on each side, so its area is . This means that if we have and add , we are “completing” the larger square.
Solve the quadratic equation by completing the square.
Explanation.
To solve the quadratic equation , on the left side we can complete the square by adding ; note that in this case, which makes . We add it to both sides to maintain equality.
Now that we have completed the square, we can solve the equation using the square root property.
We see that the polynomial on the left side is not a perfect square trinomial, so we need to complete the square. We subtract from both sides so we can add the missing term on the left.
Next comes the completing-the-square step. We need to add the correct number to both sides of the equation to make the left side a perfect square. Remember that Fact 3 states that we need to use for this. In our case, , so
First move the constant term to the right side of the equation:
Next, to complete the square, we need to find the right number to add to both sides. According to Fact 3, we need to divide the value of by and then square the result to find the right number. First, divide by :
(13.3.1)
and then we square that result:
(13.3.2)
Now we can add the from Equation (13.3.2) to both sides of the equation to complete the square.
Now, to factor the seemingly complicated expression on the left, just know that it should always factor using the number from the first step in the completing the square process, Equation (13.3.1).
In each of the previous examples, the value of was equal to . This is necessary for our missing term formula to work. When is not equal to we will divide both sides by . Let’s look at an example of that.
In Section 7.2, we learned the Quadratic Formula. You may have wondered where the formula comes from, and now that we know how to complete the square, we can derive it. We will solve the standard form equation for .
Now that we have completed the square, we can see that the -value of the vertex is . That is the vertex formula. Next, we solve the equation using the square root property to find the Quadratic Formula.
In Section 2, we learned about the vertex form of a parabola, which allows us to quickly read the coordinates of the vertex. We can now use the method of completing the square to put a quadratic function in vertex form. Completing the square with a function is a little different than with an equation so we will start with an example.
Write a formula in vertex form for the function defined by
Explanation.
The formula is in the form , so we need to add to complete the square by Fact 3. When we had an equation, we could add the same quantity to both sides. But now we do not wish to change the left side, since we are trying to end up with a formula that still says . Instead, we add and subtract the term from the right side in order to maintain equality. In this case,
To maintain equality, we both add and subtract on the same side of the equation. It is functionally the same as adding on the right, but the makes it possible to factor the expression in a particular way:
Now that we have completed the square, our function is in vertex form. The vertex is . One way to verify that our work is correct is to graph the original version of the function and check that the vertex is where it should be.
In the first two examples, was equal to . When is not equal to one, we have an additional step. Since we are working with an expression where we intend to preserve the left side as , we cannot divide both sides by . Instead we factor out of the first two terms. Let’s look at an example of that.
Write a formula in vertex form for the function defined by
Explanation.
Before we can complete the square, we factor the out of the first two terms.
Now we complete the square inside the parentheses by adding and subtracting .
Notice that the constant that we subtracted is inside the parentheses, but it will not be part of our perfect square trinomial. In order to bring it outside, we need to multiply it by . We are distributing the to that term so we can combine it with the outside term.
Write a formula in vertex form for the function defined by
Explanation.
First, we factor the leading coefficient out of the first two terms.
Next, we complete the square for inside the grouping symbols by adding and subtracting the right number. To find that number, we divide the value of by two and square the result. That looks like:
Remember that when completing the square, the expression should always factor with the number found in the first step of the completing-the-square process, Equation (13.3.7).
In Example 5.4.16, we learned that artist Tyrone’s annual income from paintings can be modeled by , where is the number of times he will raise the price per painting by $20.00. To maximize his income, how should Tyrone set his price per painting? Find the maximum by completing the square.
Explanation.
To find the maximum is essentially the same as finding the vertex, which we can find by completing the square. To complete the square for , we start by factoring out the from the first two terms:
Next, we complete the square for by adding and subtracting .
The vertex is the point . This implies Tyrone should raise the price per painting times, which is dollars. He would sell paintings. This would make the price per painting dollars, and his annual income from paintings would become $22,500 by this model.
Write a formula in vertex form for the function defined by , and find the graph’s key features algebraically. Then sketch the graph.
Explanation.
In this function, the leading coefficient is negative so it will open downward. To complete the square we first factor out of the first two terms.
Now, we add and subtract the correct number on the right side of the function: .
The vertex is so the axis of symmetry is the line .
We find the -intercept by looking at the value of , which is . So, the -intercept is and we can find its symmetric point on the graph, .
The original expression, , does not factor so to find the -intercepts we need to set and complete the square or use the quadratic formula. Since we just went through the process of completing the square above, we can use that result to save several repetitive steps.
ororor
The -intercepts are approximately and . Now we can plot all of the points and draw the parabola.