The intercept on the line y = x by the circle is AB. The equation of the circle with AB as diameter, is
The equation of the circle passing through the intersect-ion of the circle and the line ( whose equation is), is
Line y = x will be a diameter of this circle, if it passes through
the centre
Putting we get
as the equation of the required circle