Lesson Explainer: Completing the Square | Nagwa Lesson Explainer: Completing the Square | Nagwa

Lesson Explainer: Completing the Square Mathematics

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 (𝑥+2).

This is called a perfect square binomial. If we expand this expression, we get (𝑥+2)=(𝑥+2)(𝑥+2)=𝑥+2𝑥+2𝑥+4=𝑥+4𝑥+4.

The result 𝑥+4𝑥+4 is a quadratic that is a perfect square. Another example would be (𝑥+5)=𝑥+10𝑥+25.

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 𝑥+4𝑥7.

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

If we then compare the two qudratics, we can see that 𝑥+4𝑥7=𝑥+4𝑥+447=(𝑥+2)11.

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 𝑥+𝑏2𝑏2+𝑐.

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 𝑥+2𝑥+5=(𝑥+𝑝)+𝑞, what are the values of 𝑝and 𝑞?

Answer

Given that the coefficient of the leading term of the quadratic is one (it is monic), we can use the formula 𝑥+𝑏2𝑏2+𝑐 to complete the square. In this case, 𝑏=2 and 𝑐=5. Therefore, substituting into the formula, we get (𝑥+1)(1)+5 which simplifies to (𝑥+1)+4.

This gives us 𝑝=1 and 𝑞=4.

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 𝑥10𝑥=(𝑥+𝑝)+𝑞, what are the values of 𝑝 and 𝑞?

Answer

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 (𝑥5).

If we expand this expression, we get 𝑥10𝑥+25.

If we compare this to our original quadratic, we can see that 𝑥10𝑥=𝑥10𝑥+2525=(𝑥5)25.

From here, we can see that 𝑝=5 and 𝑞=25.

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 4𝑥+8𝑥15, our first approach is to factor the 4 from each of the terms: 4𝑥+2𝑥+154.

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: 4𝑥+2𝑥154=4(𝑥+1)(1)154=4(𝑥+1)44154=4(𝑥+1)194.

At this point, we can then expand the 4 to get 4(𝑥+1)19.

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, 4𝑥+2𝑥15.

At this point, we can complete the square for the expression in the parentheses: 4𝑥+2𝑥15=4(𝑥+1)(1)15=4(𝑥+1)115.

We now need to expand the parentheses and simplify the resulting expression: 4(𝑥+1)115=4(𝑥+1)415=4(𝑥+1)19.

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 3𝑥+3𝑥+5=𝑎(𝑥+𝑝)+𝑞, what are the values of 𝑎, 𝑝, and 𝑞?

Answer

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: 3𝑥+𝑥+5.

If we then complete the square for the expression inside the parentheses, we get 3𝑥+𝑥+5=3𝑥+1212+5=3𝑥+1214+5.

If we then expand the parentheses and simplify, we get 3𝑥+1214+5=3𝑥+1234+5=3𝑥+1234+204=3𝑥+12+174.

Therefore, 𝑎=3, 𝑝=12, and 𝑞=174.

Example 4: Completing the Square for a Nonmonic Quadratic

Given that 𝑥+3𝑥+4=𝑎(𝑥+𝑝)+𝑞, what are the values of 𝑎, 𝑝, and 𝑞?

Answer

Our first step is to factor from the first two terms of the quadratic: 𝑥3𝑥+4.

If we then complete the square for the quadratic inside the parentheses, we get 𝑥3𝑥+4=𝑥3232+4=𝑥3294+4.

If we then expand the parentheses and simplify, we get 𝑥3294+4=𝑥32+94+4=𝑥32+94+164=𝑥32+254.

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 𝑥+4𝑥7=(𝑥+2)11.

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 11, 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 𝑥=2. Therefore, the coordinates of the vertex are (2,11).

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 𝑓(𝑥)=𝑥+6𝑥+5?

Answer

To start, we need to factor the 1 from the first two terms of the quadratic to get 𝑥6𝑥+5.

Once we have done this, we can complete the square for the quadratic inside the parentheses: 𝑥6𝑥+5=(𝑥3)(3)+5=(𝑥3)9+5.

If we then expand the parentheses and simplify we get (𝑥3)9+5=(𝑥3)+9+5=(𝑥3)+14.

As a piece of additional information, the vertex of the quadratic will have the coordinates (3,14) 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 𝑓(𝑥)=5𝑥𝑥+1?

Answer

To start, we need to factor the 5 from the first two terms of the quadratic to get 5𝑥𝑥5+1.

Once we have done this, we can complete the square for the quadratic inside the parentheses: 5𝑥𝑥5+1=5𝑥110110+1=5𝑥1101100+1.

If we then expand the parentheses and simplify, we get 5𝑥1101100+1=5𝑥110120+1=5𝑥110120+2020=5𝑥110+1920.

As a piece of additional information, the vertex of the quadratic will have the coordinates 110,1920 where the minimum value of the quadratic is 1920.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy