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 .

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

Remove unnecessary parentheses.

Raise to the power of .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Factor x^3-2x^2-4x+8