Difference of Squares
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Apply
- Spot two perfect squares joined by a minus
- Write squared terms like as , coefficient and all
- Factor again when a factor is itself a difference
- Explain why the difference-of-squares rule does not apply to a sum
Why a difference of squares always factors
Try a specific case first. Multiply the way you multiply any two binomials:
The middle terms, and , are opposites, so they cancel, leaving . Read that equation from right to left: the difference of squares breaks apart into .
The same cancellation works for any real and . Expanding proves the general identity.
Why #
First watch the cancellation with numbers:
Expand the proposed factorization the way you expand any product of two binomials, multiplying every term of the first factor by every term of the second:
Since , the middle products and cancel:
Read backward, this gives . The opposite signs make the cancellation work. Using two plus signs instead would give , including the extra term.
For positive lengths with , the identity also has a picture. Start with a square of side , whose area is , and cut a smaller square of side out of one corner, removing area . What is left is an L-shaped region of area . Slice that L into two rectangles, turn the upper one and slide it beside the lower one. They line up into a single rectangle with sides and . No area is created or lost in the move, so the leftover must equal the rectangle’s area .
Recognizing a difference of squares
For the integer-coefficient pattern here, use a three-part test: exactly two terms; each the square of a term with integer coefficients and whole-number exponents; and a minus sign between them. Examples of perfect-square terms are , , and .
A sum such as does not fit this identity. It has no real linear factors: is always positive, whereas a product of real linear factors would be zero at a root of either factor. The same reason works for when , because . Still check for a common factor: . A sum of squares can still factor in some other way, as this one does.
With two variables, consider . For instance, . To get zero, both nonnegative terms must be zero, so the only point where this expression is zero is . For example, is zero at , but there. So cannot be a factor. In fact, no real linear factor works. A real linear factor in and would be zero along a line in the coordinate plane, as in the graphing chapter. A product containing that factor would be zero on the whole line, not only at one point. So this quadratic cannot be a product of real linear factors. The same reasoning applies to for any positive constant .
Worked example 1 Which expressions are differences of squares?
Here we are testing for the integer-coefficient pattern: two terms, both squares of integer-coefficient terms, joined by a minus sign.
qualifies. It has two terms, both are perfect squares since and , and they are subtracted. The terms being squared are and .
qualifies too. Here and , with a minus between them, so the terms being squared are and .
fails. Both terms are perfect squares, but they are added, not subtracted. This is a sum of squares, and it does not factor over the real numbers.
fails as well. It does have a minus sign, but is not a perfect square of a whole number, since is not a whole number. So the second term does not meet this lesson’s test.
Only the first two fit the integer-coefficient square pattern here. The identity is more general: , but those factors have irrational constants.
Check your understanding
Which expression fits the difference-of-squares pattern with integer-coefficient factors?
A difference of squares is two perfect-square terms joined by a minus sign. In , both and are perfect squares, and they are subtracted.
The expression is a sum of squares and does not factor over the reals, is not a perfect square, and is not a square.
Factoring when the terms carry coefficients
Keep each coefficient with its variable. Since , the term being squared in is , not . This is the same whole-term squaring used in the previous lesson.
The routine is always the same. Find what the first term is the square of to get , find what the second term is the square of to get , and write . Then expand it in your head as a check: the two outer squares should return and the middle terms should cancel.
Worked example 2 Factor and
For , find what each term is the square of. The first term is , and , so and :
Check it by expanding: , because the middle terms cancel.
For , the number comes first this time and the variable term second, so is whatever squares to give the first term and is whatever squares to give the second: gives , and gives :
Both factors carry the same two terms, once added and once subtracted.
Worked example 3 Factor
The method is the same with a second variable. Find what each term is the square of, keeping each coefficient with its variable: and .
Each term being squared includes its coefficient. The check is the usual one: the cross terms and cancel, leaving .
Check your understanding
Factor .
Find what each term is the square of: and . Write the sum of the terms being squared times their difference.
The two factors must have opposite signs, so is wrong, and is , not .
Factoring more than once
For a complete factorization with integer coefficients, inspect every new factor. A fourth power often needs two passes: is the square of , and one resulting factor may still be a difference of squares.
Worked example 4 Factor completely
Read as , a difference of squares with and as the terms being squared:
Now inspect each factor. The second one, , is again a difference of squares, , so it factors further:
The first factor, , is plus a positive number, so it has no real linear factors and the work stops there. Assembling the pieces gives the complete factorization:
Stopping at would be an error, because still comes apart. After every pass, look at each new factor and ask whether it is a difference of squares.
Check your understanding
Factor completely.
First pass: . Stopping there leaves work undone, because is again a difference of squares, so a second pass gives . The complete factorization is ; the factor is always positive, so it has no real linear factors.
The choice is only the first pass, not complete. The choice mishandles the sign on the first factor. The choice factors as though it were also a difference of squares, but is always positive and has no real linear factors.
Pulling out a common factor first
An expression can hide a difference of squares behind a common factor. Take . Neither nor is a perfect square, so at first glance the pattern does not apply. But the two terms share a factor of , and once you pull it out, what is left is a clean difference of squares:
The habit to build is to factor out the greatest common factor first, then check whether what remains fits a special pattern. Skip that step and you either miss the difference of squares entirely or leave the factoring half-done.
Worked example 5 Factor completely
First find the greatest common factor of and . They share a factor of and a factor of , so the common factor is :
What is left inside is , a difference of squares with and as the terms being squared:
So the complete factorization keeps the common factor out front:
Check your understanding
Factor completely.
First pull out the greatest common factor, which is . What remains is a difference of squares.
Stopping at is incomplete because still factors, and is not fully factored either, since still has a common factor of . The two factors also need opposite signs, so is wrong.
Solving equations and a mental-math shortcut
The pattern also gives a quick way to solve some equations. To solve , factor the left side and use the zero-product property, which says a product is zero only when one of its factors is zero:
The same reasoning handles in general. Factoring gives , so either or , which means or . A difference of squares is zero exactly when the two quantities are equal or are exact opposites.
The identity is also a real arithmetic shortcut. A product of two numbers that sit the same distance on either side of a round number is a difference of squares in disguise. To multiply , notice that and , so the product is :
You have replaced a two-digit multiplication with a square and a subtraction. The same move gives . Later in this chapter you will use the same product to clear square roots out of a denominator.