Group the last three terms.
Factor out of .
Factor out of .
Factor out of .
Factor out of .
Remove unnecessary parentheses.
Factor out of .
Factor out of .
Factor out of .
Factor out of .
Factor out of .
Factor out of .
Factor out of .
Apply the distributive property.
Multiply by .
Add and .
Subtract from .
Factor 2a^2b+2b^2-3ab-4(ab-b^2)