=(a^2+ab)+(ab+b^2)
=a*(a+b)+b*(a+b)
=(a+b)*(a+b)
This is actually the "sum and square" formula, and the final result can be written as (a+b) 2.