Rewrite as .

Rewrite as .

Since both terms are perfect cubes, factor using the sum of cubes formula, where and .

Multiply the exponents in .

Apply the power rule and multiply exponents, .

Multiply by .

Multiply the exponents in .

Apply the power rule and multiply exponents, .

Multiply by .

Factor a^6+b^6