prove (a-b)2 formula