If coordinates of the center of the circle are (x0,y0)(x_0, y_0)(x0,y0) and radius of the circle is RRR then equation of the circle is such:
In our case:
Substituting this into circle equation we get:
Simplifying: