Rewrite as .

Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify each term.

Multiply by .

Rewrite using the commutative property of multiplication.

Multiply by .

Multiply by .

Multiply by .

Subtract from .

Move .

Subtract from .

Simplify (a-b)^2