One way to factor an expression is to use the difference of two squares. Writing a binomial as the difference of two squares simply means you rewrite a binomial as the product of two sets of parentheses multiplied by each other. For example, \(a^2-b^2=(a+b)(a-b)\). The binomial \(a^2-b^2\) can be factored into two sets of parentheses multiplied by each other. \((a+b)(a-b)\) will produce \(a^2-b^2\) when multiplied.
Not all expressions can be factored using this method. There are a few clues to look for when determining whether an expression can be factored using the difference of squares. Notice in the previous example \(a^2-b^2\) that each term is a perfect square, and there is a subtraction symbol between each term. These are two helpful clues to look for when determining if a binomial can be factored using the difference of two squares. If these two clues are present, then the expression can be factored using the difference of squares.
Let’s look at a few examples.
Example 1
Consider the expression \(x^2-9\). Can this expression be factored using the difference of squares? We notice that the first term is raised to the second power, but the second term is not. Can we rewrite 9 so that it IS raised to the second power? We sure can. Let’s rewrite the expression \(x^2-9\) as \(x^2-3^2\) so that each term is a perfect square. Now the second clue. Is subtraction the symbol between each term? Yes! Both clues are present, so the expression can be factored using the difference of squares. Set up two empty sets of parentheses and break apart the original expression.
\(x^2-9\) becomes \((x+3)(x-3)\). Notice that if \((x+3)(x-3)\) is multiplied, the product is the original expression \(x^2-9\). This is one way to check that you have factored correctly.
Let’s examine why it is crucial that subtraction is the symbol between both terms. In the previous example, \(x^2-9\) was factored into \((x+3)(x−3)\). When this is multiplied using the FOIL technique (First, Outer, Inner, Last) \((x+3)(x−3)\) becomes \(x^2-3x+3x-9\). As you can see, the two middle terms \(-3x\) and \(3x\) will cancel out. This leaves only \(x^2-9\).
The original subtraction symbol between the terms is what allows these middle terms to cancel out. If the original expression was \(x^2+9\), with addition between the two terms, it would not be possible to factor this using the difference of squares. If we tried to break this apart into \((x+3)(x+3)\), the result would be \(x^2+3x+3x+9\), which simplifies to \(x^2+6x+9\), which does not match the original expression. The important thing to remember is that subtraction between the two terms is required for an expression to be factored using the difference of squares.
Example 2
Let’s look at a more complex example.
Consider the binomial \(4x^2-49\). Can this be factored using the difference of squares? Subtraction is the symbol between both terms, which is a good start. The first term is raised to the power of two which is also good. When we look at the second term, \(49\), we notice that this can be written as \(72\). Now we have \(4x^2-7^2\). All clues indicate that the expression \(4x^2-49\) can be rewritten as the difference of two squares. \(4x^2-49\) becomes \((2x+7)(2x-7)\). We can check this by (FOIL)ing and checking that the product is in fact \(4x^2-49\).
Sometimes a binomial can be factored in one step. For example, \(x^2-25\) can be factored simply by splitting the \(x\)-squared and the \(25\) into \((x+5)(x−5)\). Many binomials can be factored this way. However, some binomials will require you to pull out a common factor before it is in a form that can be factored using the difference of squares. For example, it appears that the binomial \(5x^2-45\) is unable to be factored using the difference of squares because \(5x^2\) and \(45\) are not perfect squares. However, when the common factor of \(5\) is pulled out, the expression becomes \(5(x^2-9)\) which has two terms that are perfect squares. From here, \((x^2-9)\) can be split up into the factors \((x+3)(x−3)\), resulting in a final answer of \(5(x+3)(x−3)\).
To review, we know that a binomial can be written as the difference of two squares if both terms are perfect squares and they are separated by subtraction. The difference of two squares is a useful theorem because it tells us if a quadratic equation can be written as the product of two binomials.
![Click here for 20% off of Mometrix Math College Readiness Online Course. Use code: IMCR20](https://cdn-academy.pressidium.com/academy/wp-content/uploads/2021/09/imcr20-New.png)
Difference of Squares Sample Questions
Here are a few sample questions going over the difference of squares.
Factor the binomial below using the difference of two squares method.
\(x^2-16\)
The expression \(x^2-16\) can be factored using the difference of two squares because both terms are perfect squares, and the terms are separated by a subtraction symbol. \(x^2\) is the same as \(x\) times \(x\) and \(16\) is the same as \(4\) times \(4\). \(x^2-16\) can be rewritten as the product of \((x+4)\) and \((x−4)\).
Factor the binomial below using the difference of two squares method.
\(9x^2-16y^2\)
The expression \(9x^2-16y^2\) can be factored using the difference of two squares because both terms are perfect squares, and the squared terms are separated by the subtraction symbol. \(9x^2\) can be expressed as \(3x\) times \(3x\), and \(16y^2\) can be expressed as \(4y\) times \(4y\). \(9x^2-16y^2\) becomes \((3x+4y)(3x-4y)\).
Can the expression \(x^2-2\) be factored using the difference of squares?
Yes
No
\(x^2-2\) is separated by subtraction, and the first term is a perfect square, however \(2\) is not a perfect square. There is no number that can be squared, with a result of \(2\). This expression cannot be factored using the difference of squares.
A binomial can be factored using the difference of squares if the two terms are __________ and are separated by a ___________ sign.
quadratics, subtraction
square roots, subtraction
perfect squares, addition
perfect squares, subtraction
If both terms in a binomial are perfect squares, and the terms are separated by subtraction, then the binomial can be factored using the difference of squares. For example, \(x^2-4\) can be factored using the difference of squares because both terms are perfect squares, and they are separated by a subtraction sign.
Factor the binomial below using the difference of two squares method.
\(9x^2-49y^2\)
The binomial \(9x^2-49y^2\) can be factored using the difference of squares because both terms are perfect squares and they are separated by a subtraction symbol. The first term \(9x^2\) can be split into \(3x\) times \(3x\). The second term \(49y^2\) can be split into \(7y\) times \(7y\). One set of parentheses needs to be addition and the other needs to be subtraction so that the middle term cancels out when FOILing.
(\(21xy\) and \(-21xy\) cancel out)
\(9x^2-49y^2\) becomes \((3x+7y)(3x-7y)\).