Question: is (a-b)^2 equal to (b-a)^2?
Answer: Yes they are one and the same. hence (a-b)^2 & (b-a)^2 are same.