Group the first two terms and the last two terms.

Factor out the greatest common factor (GCF) from each group.

Factor the polynomial by factoring out the greatest common factor, .

Rewrite as .

Rewrite as .

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

Simplify.

Rewrite as .

Factor.

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

Remove unnecessary parentheses.

Remove unnecessary parentheses.

Factor x^5+6x^4-x-6