Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify each term.

Multiply by .

Move to the left of .

Multiply by .

Multiply by .

Add and .

Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify each term.

Multiply by by adding the exponents.

Move .

Multiply by .

Multiply by .

Rewrite as .

Multiply by .

Subtract from .

Subtract from .

Add and .

Subtract from .

Subtract from .

Factor out of .

Rewrite as .

Factor out of .

Factor (a+1)(a+2)+(-a-1)(a+3)