Difference of squares (something squared minus something else squared):
a2−b2=(a−b)(a+b)
Proof of this fact is straightforward.
We just prove it from right to left.
Apply FOIL to (a−b)(a+b):
(a−b)(a+b)=a⋅a+a⋅b+(−b)⋅a+(−b)⋅b=a2+ab−ab−b2=a2−b2.
This formula can also be derived by applying techniques from Factoring Quadratics note.
Note: formula is valid only for a2−b2. Sum of squares a2+b2 can't be factored at all.
Example 1. Factor x2−9.
Notice, that 9=32.
Thus, x2−9=x2−32=(x−3)(x+3).
Answer: x2−9=(x−3)(x+3).
Of course, there can be more complex expressions.
Example 2. Factor 9y2−49.
Notice, that 9y2=(3y)2 and 49=72.
Thus, 9y2−49=(3y)2−72=(3y−7)(3y+7).
Answer: 9y2−49=(3y−7)(3y+7).
And even harder...
Example 3. Factor the following: (x+y)2−25u4b6.
Notice, that 25u4b6=(5u2b3)2.
Thus, (x+y)2−25u4b6=(x+y)2−(5u2b3)2=((x+y)−5u2b3)((x+y)+5u2b3).
Answer: (x+y)2−25u4b6=(x+y−5u2b3)(x+y+5u2b3).
Now, it is time to exercise.
Exercise 1. Factor the following: n2−36.
Answer: (n−6)(n+6).
Exercise 2. Factor the following: −1+49x2.
Answer: (7x−1)(7x+1). Hint: −1+49x2=49x2−1.
Exercise 3. Factor 144c10d8−(m+n)2.
Answer: (12c5d4−m−n)(12c5d4+m+n).
Exercise 4. Factor (x+y)2−(x−y)2.
Answer: 4xy.