Just as the names suggest, a **sum of cubes** is an expression of the form: *a* 3 + *b* 3. and a **difference of cubes** is an expression of the form: *a* 3 *b* 3. A sum of cubes can be factored like this: *a* 3 + *b* 3 = (*a* + *b* ) (*a* 2 *a b* + *b* 2 ), and a difference of cubes can be factored like this: *a* 3 *b* 3 = (*a* *b* ) (*a* 2 + *a b* + *b* 2 ). Notice the signs shown in red. The binomial on the right has the same sign as the binomial on the left and the trinomial on the right has the opposite sign.

You can easily verify both these factors by multiplying out the right hand sides and noticing that all the terms except the cube terms cancel. Here are some examples. In each case we recognize the form *a* 3 *b* 3. ( is an abbreviation for *plus or minus* ), then identify *a* and *b*. and then simply state the factored form.

**Example:** Factor *x* 3 + 27.

- Think of 27 as 3 3. Then this is a sum of cubes and we can apply the sum of cubes formula:
*a*3 +*b*3 = (*a*+*b*) (*a*2*a b*+*b*2 ). - Substituting
*a = x*and*b*= 3 into the formula yields:*x*3 + 27 = (*x*+ 3) (*x*2 3*x*+ 9).

**Example:** Factor 8 *x* 6 64 *y* 3.

- Think of 8
*x*6 as (2*x*2 ) 3 and 64*y*3 as (4*y*) 3. Then this is a difference of cubes and we can apply the difference of cubes formula:*a*3*b*3 = (*a**b*) (*a*2 +*a b*+*b*2 ). - Substituting
*a*= 2*x*2 and*b*= 4*y*into the formula yields: 8*x*6 64*y*3 = (2*x*2 4*y*) (4*x*4 + 8*x*2*y*+ 16*y*2 ).

**Algebra Coach Exercises**