Cube of sum and difference:
(a±b)3=a3±3a2b+3ab2±b3
Let's see how to derive it.
Recall, that exponent is just repeating multiplication.
Thus, we can write that (a+b)3=(a+b)(a+b)2.
From square of sum/difference note, we know, that (a+b)2=a2+2ab+b2.
Thus, (a+b)3=(a+b)(a2+2ab+b2).
Finally, just multiply polynomials: (a+b)(a2+2ab+b2)=a⋅a2+a⋅2ab+a⋅b2+b⋅a2+b⋅2ab+b⋅b2=
=a3+3a2b+3ab2+b3.
Similarly, it can be shown, that (a−b)3=a3−3a2b+3ab2−b3.
Or, more shortly: (a±b)3=a3±3a2b+3ab2±b2.
Example 1. Multiply (2x+y)3.
Here a=2x and b=y.
Just use above formula: (2x+y)3=(2x)3+3⋅(2x)2⋅(y)+3⋅(2x)⋅(y)2+(y)3=8x3+12x2y+6xy2+y3.
Let's see how to handle minus sign.
Example 2. Multiply (43ab−2cd)3.
Here a=43ab and b=2cd.
Now, use formula for difference: (43ab−2cd)3=(43ab)3−3⋅(43ab)2⋅(2cd)+3⋅(43ab)⋅(2cd)2−(2cd)3=
=6427a3b3−827a2b2cd+9abc2d2−8c3d3.
Finally, let's do a slightly harder example.
Example 3. Multiply the following: (−xyz−2x2)3.
Till now, we didn't see two minus signs, but this case can be handled easily.
There are two options:
- a=−xyz and b=−2x2; apply sum formula.
- a=−xyz and b=2x2; apply difference formula.
I choose second option: (−xyz−2x2)3=(−xyz)3−3⋅(−xyz)2⋅(2x2)+3⋅(−xyz)⋅(2x2)2−(2x2)3=
=−x3y3z3−6x4y2z2−12x5yz−8x6.
From last example we see, that (−a−b)3=−(a+b)3.
Now, it is time to exercise.
Exercise 1. Multiply (4z+3y)3.
Answer: 64z3+144z2y+108zy2+27y3.
Exercise 2. Multiply (−31x3y2+2x)3.
Answer: −271x9y6+32x7y4−4x5y2+8x3.
Hint: either swap summands ((−31x3y2+2x)3=(2x−31x3y2)3: commutative property of addition) or proceed as always.
Exercise 3. Multiply the following: (−2x−1)3.
Answer: −8x3−12x2−6x−1.