Lesson Video: Factoring by Completing the Square Mathematics

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.

Download the Nagwa Classes App

Attend sessions, chat with your teacher and class, and access class-specific questions. Download the Nagwa Classes app today!

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