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