Rewrite as .

Rewrite as .

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

Rewrite as .

Since both terms are perfect squares, factor using the difference of squares formula, where and .

Multiply by .

Apply the power rule and multiply exponents, .

Multiply by .

One to any power is one.

Rewrite in a factored form.

Rewrite the middle term.

Rearrange terms.

Factor first three terms by perfect square rule.

Since both terms are perfect squares, factor using the difference of squares formula, where and .

Simplify.

Reorder terms.

Reorder terms.

Remove unnecessary parentheses.

Factor x^6-1