# Explainer: Completing the Square

In this explainer, we will learn how to complete the square to factor and solve quadratic expressions.

When working with quadratic expressions, a very useful skill to master is the ability to complete the square. This method allows us to solve quadratic equations and identify the coordinates and nature of the vertex of a quadratic, and it ultimately gives us the ability to derive the quadratic formula.

Explained simply, the method involves starting with a quadratic expression, finding the square of a related binomial, and then adjusting the constant to make the two expressions equivalent (hence, completing the square).

When learning the technique of completing the square, it is useful to start with quadratics where the leading coefficient is one (monic quadratics). Before looking at the method of completing the square, we will start by introducing what are called perfect square binomials.

Consider the expression .

This is called a perfect square binomial. If we expand this expression, we get

The result is a quadratic that is a perfect square. Another example would be

Notice in both cases that the constant in the binomial is half the coefficient of the term in the resulting quadratic. We can use this result to help us complete the square.

Let us consider the quadratic expression

The coefficient of is 4, so we need to to consider the perfect square binomial which we have already seen expand to .

If we then compare the two qudratics, we can see that

This comparison method is one way in which we can complete the square, and it is certainly a useful approach to help us understand the method. We can generalize this method for completing the square for a monic quadratic in the following way. For a quadratic in the form the formula to complete the square is

This is a direct result of the method that we have outlined above. As an additional exercise, it is certainly worth completing the square for a monic quadratic using both methods. Now, let us look at a couple of examples of completing the square for monic quadratics.

### Example 1: Completing the Square for a Monic Quadratic

Given that , what are the values of and ?

Given that the coefficient of the leading term of the quadratic is one (it is monic), we can use the formula to complete the square. In this case, and . Therefore, substituting into the formula, we get which simplifies to

This gives us and .

Let us also have a look at a second example of this but this time present our solution by comparing the expansion with the original quadratic.

### Example 2: Completing the Square for a Monic Quadratic

Given that , what are the values of and ?

As the coefficient of the leading term of the quadratic is one, we need to find a perfect square binomial in the form with which we can compare our original quadratic. The general result is that the value of is always equal to half the coefficient of in the original quadratic. Therefore, our perfect square binomial is .

If we expand this expression, we get

If we compare this to our original quadratic, we can see that

From here, we can see that and .

Now, let us move on to looking at how to complete the square for quadratics where the coefficient of the leading term is not equal to one (nonmonic). There are two fairly standard approaches for doing this and we will explore both.

If we start by considering the quadratic our first approach is to factor the 4 from each of the terms: .

Note here that it is usually easier to work with fractions rather than decimals with these calculations. Once we have the factored form of the quadratic, we can complete the square for the resulting monic quadratic:

At this point, we can then expand the 4 to get

This is our first method for completing the square for nonmonic quadratics. Our second method involves only factoring the 4 from the terms containing the variable ; that is,

At this point, we can complete the square for the expression in the parentheses:

We now need to expand the parentheses and simplify the resulting expression:

Both methods produce the same result, but the second is generally easier to use.

Let us now have a look at some examples demonstrating how to complete the square for nonmonic quadratics.

### Example 3: Completing the Square for a Nonmonic Quadratic

Given that , what are the values of , , and ?

As the coefficient of the term is not one, we need to start by factoring this out of the first two terms of the expression:

If we then complete the square for the expression inside the parentheses, we get

If we then expand the parentheses and simplify, we get

Therefore, , , and .

### Example 4: Completing the Square for a Nonmonic Quadratic

Given that , what are the values of , , and ?

Our first step is to factor from the first two terms of the quadratic:

If we then complete the square for the quadratic inside the parentheses, we get

If we then expand the parentheses and simplify, we get

As mentioned at the start, we can use the method of completing the square to identify the coordinates of the vertex of a quadratic. For this reason, the form of the quadratic obtained after completing the square is often called the vertex form. If we look at a previous example, we have that

To find the coordinates of the vertex, once we have the quadratic in vertex form, we need to use the equation to determine when the quadratic takes its minimum (or sometimes maximum) value. We can see from this example that the minimum value of the quadratic will be , as for all other values of we will be adding a square number which is always positive. This minimum value will occur when the square is minimum, that is, equal to zero. This will happen precisely when . Therefore, the coordinates of the vertex are .

Let us finish by looking at two more examples where we are asked to convert a quadratic into vertex form.

### Example 5: Converting a Quadratic into Vertex Form

What is the vertex form of the function ?

To start, we need to factor the from the first two terms of the quadratic to get

Once we have done this, we can complete the square for the quadratic inside the parentheses:

If we then expand the parentheses and simplify we get

As a piece of additional information, the vertex of the quadratic will have the coordinates where the maximum value of the quadratic is 14.

### Example 6: Converting a Quadratic into Vertex Form

What is the vertex form of the function ?