ABCD is a square whose side is a. The equation of the circle circumscribing the square, taking AB and AD as axes of reference, is
x2+y2+ax+ay=0
x2+y2+ax−ay=0
x2+y2−ax−ay=0
x2+y2−ax+ay=0
The circle passes through (0, 0), (a, 0), (0, a) and (a, a)
Hence , the required equation is x2+y2−ax−ay=0