Factor out of .

Factor out of .

Raise to the power of .

Factor out of .

Factor out of .

Factor out of .

Rewrite as .

Check that the middle term is two times the product of the numbers being squared in the first term and third term.

Rewrite the polynomial.

Factor using the perfect square trinomial rule , where and .

Factor x^3-2x^2+x