Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor by grouping.

For a polynomial of the form , rewrite the middle term as a sum of two terms whose product is and whose sum is .

Reorder terms.

Reorder and .

Factor out of .

Rewrite as plus

Apply the distributive property.

Remove unnecessary parentheses.

Remove unnecessary parentheses.

Factor out the greatest common factor from each group.

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, .

Remove unnecessary parentheses.

Factor out of .

Factor out of .

Factor out of .

Reorder terms.

Raise to the power of .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Remove unnecessary parentheses.

Factor out negative.

Multiply by .

Multiply by .

Factor z^2(z-x)+4zx(z-x)-5x^2(z-x)