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 .

Rewrite as .

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

Reorder terms.

Reorder terms.

Factor out of .

Factor out of .

Factor out of .

Rewrite as .

Factor out of .

Factor out of .

Remove unnecessary parentheses.

Factor out negative.

Remove unnecessary parentheses.

Factor x^2+10x+25-x^4