Expand by multiplying each term in the first expression by each term in the second expression.

Combine the opposite terms in .

Reorder the factors in the terms and .

Subtract from .

Add and .

Simplify each term.

Multiply by by adding the exponents.

Multiply by .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Multiply by .

Rewrite as .

Multiply by .

Combine the opposite terms in .

Subtract from .

Add and .

Multiply (x-1)(x^2+x+1)