Prove by direct method that for any real numbers x, y if x = y, then x2 = y2.