Lesson Video: Factoring by Completing the Square | Nagwa Lesson Video: Factoring by Completing the Square | Nagwa

Lesson Video: Factoring by Completing the Square Mathematics • Second Year of Preparatory School

In this video, we will learn how to factor an expression by completing the square.

17:27

Video Transcript

In this video, we will learn how to factor an expression by completing the square. We will begin by recalling the form of a perfect square trinomial. A perfect square trinomial is a polynomial with three terms which can be represented in the form 𝑎 squared plus or minus two 𝑎𝑏 plus 𝑏 squared. They can be factored as shown. 𝑎 squared plus two 𝑎𝑏 plus 𝑏 squared is equal to 𝑎 plus 𝑏 all squared. And 𝑎 squared minus two 𝑎𝑏 plus 𝑏 squared is equal to 𝑎 minus 𝑏 all squared. In these trinomials, 𝑎 and 𝑏 may be variables, constants, or products of variables and constants.

Let’s consider the trinomial 𝑥 to the fourth power plus four 𝑥 squared plus four. In order to factor this, we begin by letting the first and last terms be 𝑎 squared and 𝑏 squared, respectively. If 𝑎 squared is equal to 𝑥 to the fourth power, then 𝑎 is equal to the square root of this, which is equal to 𝑥 squared. Likewise, since 𝑏 squared is equal to four, 𝑏 is equal to two. And it’s worth noting at this point that 𝑎 equals negative 𝑥 squared and 𝑏 equals negative two would also have been solutions to 𝑎 squared equals 𝑥 to the fourth power and 𝑏 squared equals four. However, since we want 𝑎 plus 𝑏 all squared to be equal to 𝑎 squared plus two 𝑎𝑏 plus 𝑏 squared, we can’t mix the positive and negative root solutions. And in fact, we only use the positive root solutions.

The middle term of our perfect square trinomial is equal to two 𝑎𝑏. Substituting our expressions for 𝑎 and 𝑏, we have two multiplied by 𝑥 squared multiplied by two. This is equal to the middle term of the initial expression four 𝑥 squared. The perfect square trinomial 𝑥 to the fourth power plus four 𝑥 squared plus four in its factored form is 𝑥 squared plus two all squared. It is worth noting from our original definition that the expression 𝑥 to the fourth power minus four 𝑥 squared plus four can be factored in the same way. This is equal to 𝑥 squared minus two all squared.

In this video, we will use this to help factor binomials that cannot be factored using other methods. For example, let’s consider the expression 𝑥 to the fourth power plus four. In this case, our usual methods of factoring do not work. However, we can factor this expression using a method known as completing the square. From the previous trinomial we factored, we know that when the middle term was four 𝑥 squared, we were able to factor this as a perfect square trinomial. As such, if we artificially introduce a term of four 𝑥 squared into this polynomial, we would create a perfect square trinomial. It is this method that helps us factor many polynomials of the form 𝑎 squared plus 𝑏 squared.

If we have two terms that are both perfect squares, that is, in the form 𝑎 squared plus 𝑏 squared, we can create a perfect square trinomial by completing the square as follows. Firstly, we determine the values of 𝑎 and 𝑏. In our example, we already know that 𝑎 is equal to 𝑥 squared and 𝑏 is equal to two. Secondly, we calculate two 𝑎𝑏. Once again, we already know that in our example, this is equal to four 𝑥 squared. Our next step is to add two 𝑎𝑏 and negative two 𝑎𝑏 to the expression. In our example, we have 𝑥 to the fourth power plus four plus four 𝑥 squared minus four 𝑥 squared. Since we’re adding the positive and negative of the same term, we’re effectively adding zero, which does not change the polynomial. We can then rewrite the expression as 𝑥 to the fourth power plus four 𝑥 squared plus four minus four 𝑥 squared.

The fourth and final step of completing the square is to factor the perfect square trinomial. 𝑥 to the fourth power plus four 𝑥 squared plus four factors to 𝑥 squared plus two all squared. And the entire expression is as shown. In this example, we can actually go one stage further by noting that four 𝑥 squared is also a perfect square. It is equal to two 𝑥 all squared. Rewriting our expression as 𝑥 squared plus two all squared minus two 𝑥 all squared, we note it is in the form 𝑎 squared minus 𝑏 squared. This is known as the difference of squares. And we know that any expression of this type can be factored as 𝑎 plus 𝑏 multiplied by 𝑎 minus 𝑏, where the values of 𝑎 and 𝑏 in this example are 𝑥 squared plus two and two 𝑥, respectively. Our expression can therefore be factored to 𝑥 squared plus two plus two 𝑥 multiplied by 𝑥 squared plus two minus two 𝑥. Finally, rewriting the order within the parentheses, we have 𝑥 to the fourth power plus four is equal to 𝑥 squared plus two 𝑥 plus two multiplied by 𝑥 squared minus two 𝑥 plus two. It is worth noting that we can check this answer by expanding or distributing the parentheses.

We will now consider a more complicated example of this type.

Factor 625𝑥 to the fourth power plus 64𝑦 to the fourth power fully by completing the square.

In this question, we are asked to factor the expression by completing the square. As such, we need to manipulate the given binomial to include a perfect square trinomial in the form 𝑎 squared plus two 𝑎𝑏 plus 𝑏 squared, as this factors to 𝑎 plus 𝑏 all squared. We begin by letting the two terms in our expression be 𝑎 squared and 𝑏 squared, respectively. This means that 𝑎 is equal to the square root of 625𝑥 to the fourth power. And since the square root of 625 is 25, 𝑎 is equal to 25𝑥 squared. In the same way, 𝑏 is equal to the square root of 64𝑦 to the fourth power. And this is equal to eight 𝑦 squared.

Our next step is to find an expression for two 𝑎𝑏. This is equal to two multiplied by 25𝑥 squared multiplied by eight 𝑦 squared. This is equal to 400𝑥 squared 𝑦 squared. It is this term we need to add to our expression to create a perfect square trinomial. Since we are adding 400𝑥 squared 𝑦 squared, we also need to subtract this from the initial expression in order for the expression to remain the same. We are now in a position where the first three terms form a perfect square trinomial. And this factors to 25𝑥 squared plus eight 𝑦 squared all squared. And the entire expression can be written as shown.

Next, we notice that 400𝑥 squared 𝑦 squared is a perfect square. It can be written as 20𝑥𝑦 all squared. Our expression simplifies to 25𝑥 squared plus eight 𝑦 squared all squared minus 20𝑥𝑦 all squared. This is written in the form 𝑐 squared minus 𝑑 squared, which is known as the difference of squares. And we know that this can be factored to 𝑐 plus 𝑑 multiplied by 𝑐 minus 𝑑. Our expression can therefore be written as 25𝑥 squared plus eight 𝑦 squared plus 20𝑥𝑦 multiplied by 25𝑥 squared plus eight 𝑦 squared minus 20𝑥𝑦. Rearranging the order of the terms, we have that 625𝑥 to the fourth power plus 64𝑦 to the fourth power is equal to 25𝑥 squared plus 20𝑥𝑦 plus eight 𝑦 squared multiplied by 25𝑥 squared minus 20𝑥𝑦 plus eight 𝑦 squared. We could check this answer by distributing the parentheses, where all terms apart from the first and last will cancel.

We will now look at one more example where other factoring methods are required first. But in the resulting expression, one of the factors can be factored using completing the square.

Factor 𝑥 to the eighth power minus 16𝑦 to the eighth power by completing the square.

In this question, it may not immediately be obvious how we can solve the problem by completing the square. However, we do notice that our expression is of the form 𝑎 squared minus 𝑏 squared. This is known as the difference of squares and can be factored as 𝑎 plus 𝑏 multiplied by 𝑎 minus 𝑏. Letting 𝑎 squared equal 𝑥 to the eighth power, we know that 𝑎 is equal to 𝑥 to the fourth power. And letting 𝑏 squared equals 16𝑦 to the eighth power, we know that 𝑏 is the square root of this, which is equal to four 𝑦 to the fourth power. The original expression can therefore be rewritten as 𝑥 to the fourth power all squared minus four 𝑦 to the fourth power all squared. And factoring this using the difference of squares, we have 𝑥 to the fourth power plus four 𝑦 to the fourth power multiplied by 𝑥 to the fourth power minus four 𝑦 to the fourth power.

The second part of our expression is once again written in the form 𝑎 squared minus 𝑏 squared. 𝑥 to the fourth power minus four 𝑦 to the fourth power is equal to 𝑥 squared plus two 𝑦 squared multiplied by 𝑥 squared minus two 𝑦 squared. These two parentheses cannot be factored any further. So we now need to consider the expression 𝑥 to the fourth power plus four 𝑦 to the fourth power. It is this expression that we’ll be able to factor by completing the square. This is in the form 𝑐 squared plus 𝑑 squared. And we need to manipulate this so it is in the form of a perfect square trinomial.

We know that any perfect square trinomial of the form 𝑐 squared plus two 𝑐𝑑 plus 𝑑 squared can be factored into the form 𝑐 plus 𝑑 all squared. Since 𝑐 squared is equal to 𝑥 to the fourth power, 𝑐 is equal to 𝑥 squared. Likewise, since 𝑑 squared is equal to four 𝑦 to the fourth power, 𝑑 is equal to two 𝑦 squared. The term two 𝑐𝑑 is therefore equal to two multiplied by 𝑥 squared multiplied by two 𝑦 squared. And this is equal to four 𝑥 squared 𝑦 squared.

We need to add the positive and negative of this to the expression in our first set of parentheses to create our perfect square trinomial. The full expression can be written as shown. And we can now factor the perfect square trinomial contained in the first set of parentheses. This is equal to 𝑥 squared plus two 𝑦 squared all squared. And rewriting four 𝑥 squared 𝑦 squared as two 𝑥𝑦 all squared, we have 𝑥 squared plus two 𝑦 squared all squared minus two 𝑥𝑦 all squared multiplied by 𝑥 squared plus two 𝑦 squared multiplied by 𝑥 squared minus two 𝑦 squared.

We note that the expression within the brackets is the difference of squares. And using the rule we saw earlier, this factors to 𝑥 squared plus two 𝑦 squared plus two 𝑥𝑦 multiplied by 𝑥 squared plus two 𝑦 squared minus two 𝑥𝑦. We can then reorder the terms in these parentheses as shown, giving us a final answer of 𝑥 squared plus two 𝑥𝑦 plus two 𝑦 squared multiplied by 𝑥 squared minus two 𝑥𝑦 plus two 𝑦 squared multiplied by 𝑥 squared plus two 𝑦 squared multiplied by 𝑥 squared minus two 𝑦 squared. This is the fully factored form of 𝑥 to the eighth power minus 16𝑦 to the eighth power.

We will now finish this video by recapping the key points. We saw in this video that a perfect square trinomial is of the form 𝑎 squared plus or minus two 𝑎𝑏 plus 𝑏 squared and can be factored as 𝑎 plus or minus 𝑏 all squared. If we’re asked to factor a polynomial that we cannot factor by other means and the polynomial contains two terms of the form 𝑎 squared plus 𝑏 squared, we can complete the square to form a perfect square trinomial. The term that must be added to create this is positive or negative two 𝑎𝑏. It is important to note that both two 𝑎𝑏 and negative two 𝑎𝑏 must be included so that we are effectively adding zero. Whilst we did not see an example of this type in this video, if possible, we need to factor out the greatest common factor first, as this reduces the complexity of the polynomial that needs to be factored.

Often after completing the square, factoring the resulting expression or parts of the expression using the difference of squares will be possible. As with our second example, it may also be the case that we need to do this prior to completing the square. In all cases, once the polynomial has been factored in one way, it is important to check to see if the resulting expressions can be factored further.

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