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 the exponents in .

Apply the power rule and multiply exponents, .

Multiply by .

Move to the left of .

Raise to the power of .

Factor.

Rewrite in a factored form.

Rewrite the middle term.

Rearrange terms.

Factor first three terms by perfect square rule.

Rewrite as .

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

Simplify.

Reorder terms.

Multiply by .

Reorder terms.

Remove unnecessary parentheses.

Factor s^6-729