Apply the distributive property.

Simplify.

Multiply by .

Rewrite using the commutative property of multiplication.

Multiply by .

Cancel the common factor of and .

Factor out of .

Cancel the common factors.

Factor out of .

Cancel the common factor.

Rewrite the expression.

Divide by .

Add and .

Simplify the expression.

Move .

Reorder and .

Simplify a(a-b+1)+(4a)/2-6b+2