Find the equation of the circle touching each axis and passing through $(2,1)$
My Attempt:
Since the circle touches both axes, the x-coordinate of the center = y-coordinate of the center = radius. If $h$, $k$ and $r$ are the x-coordinate, y-coordinate and radius then $$h=k=r.$$
Let $(x_{0}, y_{0})$ denote the coordinates of the center of the circle. Then $x_{0}=y_{0}$. Also $r$ is $x_{0}$. Now, we have: $$(2-x_{0})^2 +(1-x_{0})^2 = x_{0}^2 \implies x_{0}^2 -6x_{0}+5=0$$