Factor out of .

Factor out of .

Factor out of .

Rewrite as .

Rewrite as .

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

Simplify.

Multiply the exponents in .

Apply the power rule and multiply exponents, .

Multiply by .

Multiply by .

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.

Remove unnecessary parentheses.

Factor 3x^6y^2+81y^2