Reorder the expression.

Reorder and .

Reorder and .

Reorder and .

Reorder and .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Rewrite as .

Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify each term.

Rewrite using the commutative property of multiplication.

Multiply by by adding the exponents.

Move .

Multiply by .

Multiply by .

Multiply by .

Multiply by .

Multiply by .

Multiply by .

Subtract from .

Apply the distributive property.

Multiply by .

Multiply by .

Add and .

Subtract from .

Add and .

Factor out of .

Factor out of .

Rewrite as .

Factor out of .

Remove unnecessary parentheses.

Factor out negative.

Multiply by .

Multiply by .

Factor 5(5-x)^2-(5-x)^3+3(5-x)