Sum and Difference of Cubes:
a3±b3=(a±b)(a2∓ab+b2)
Proof of this fact is straightforward.
We just prove it from right to left.
Multiply polynomials:
(a−b)(a2+ab+b2)=a⋅a2+a⋅ab+a⋅b2−b⋅a2−b⋅ab−b⋅b2=
=a3+a2b+ab2−a2b−ab2−b3=a3−b3.
Similarly, it can be shown, that a3+b3=(a+b)(a2−ab+b2).
Or written more compactly: a3±b3=(a±b)(a2∓ab+b2)
Expressions a2+ab+b2 and a2−ab+b2 are often called incomplete squares, because they lack one ab to become perfect square ((a±b)2=a2±2ab+b2).
Don't attempt to factor an incomplete square. It can't be factored.
Example 1. Factor x3+8.
Notice, that 8=23.
Thus, x3+8=x3+23=(x+2)(x2−x⋅2+22)=(x+2)(x2−2x+4).
Answer: x3+8=(x+2)(x2−2x+4).
Of course, there can be more complex expressions.
Example 2. Factor 27y3−64.
Notice, that 27y3=(3y)3 and 64=43.
Thus, 27y3−64=(3y)3−43=(3y−4)((3y)2+3y⋅4+42)=(3y−4)(9y2+12y+16).
Answer: 27y3−64=(3y−4)(9y2+12y+16).
And even harder...
Example 3. Factor the following: 8m6n9+27a9b3.
Notice, that 8m6n9=(2m2n3)3 and 27a9b3=(3a3b)3.
Thus, 8m6n9+27a9b3=(2m2n3)3+(3a3b)3=
=(2m2n3+3a3b)((2m2n3)2−2m2n3⋅3a3b+(3a3b)2)=
=(2m2n3+3a3b)(4m4n6−6a3bm2n3+9a6b2).
Answer: 8m6n9+27a9b3=(2m2n3+3a3b)(4m4n6−6a3bm2n3+9a6b2).
Now, it is time to exercise.
Exercise 1. Factor the following: n3+125.
Answer: (n−5)(n2+5n+25).
Exercise 2. Factor the following: −343+y6x3.
Answer: (y2x−7)(y4x2+7y2x+49). Hint: −343+y6x3=y6x3−343.
Exercise 3. Factor x3y3z3−27a3.
Answer: (xyz−3a)(x2y2z2+3axyz+9a2).
Exercise 4. Factor 8x3+1.
Answer: (2x+1)(4x2−2x+1).