a(a-1)-(a^2-b)=2
a^2-a-a^2+b=2
b=a+2
ab - (a^2+b^2)/2
= a(a+2) - [a^2+(a+2)^2]/2
= a^2+2a - [2a^2+4a+4]/2
= a^2+2a - a^2-2a-2
= -2
a(a-1)-(a^2-b)=2
a^2-a-a^2+b=2
b=a+2
ab - (a^2+b^2)/2
= a(a+2) - [a^2+(a+2)^2]/2
= a^2+2a - [2a^2+4a+4]/2
= a^2+2a - a^2-2a-2
= -2