Hello,

There is a direct way for it, by knowing the equation of a circle. Since I don't remember it, I'll show you how to retrieve it

Any point on the circle will be at distance R from the center, where R is the radius.

Let this point have coordinates (x,y) (yes, it will be the variables ).

Sketch a circle (see the attached picture).

Then let A be , that is to say coordinates of the center. Let B the point with coordinates (x,y).

a and b will be two perpendicular lines, intersecting in D.

What you want is that AB is always equal to R, the radius of the circle.

Now, how are we going to get it ? Thanks to the Pythagorean theorem.

The distance AD will be the difference between the absciss of A and B. This means that it will be

The distance BD will be the difference between the ordinates of A and B. So it's

Applying the theorem, we have :

Hence

Take for example your first circle.

and and

So just replace it in the equation