Put a compass point at (2,1) and open it to 5. Every point the pencil touches is 5 from (2,1). Take one such point, (5,5): it is 3 to the right and 4 up, and the Pythagorean theorem gives 32+42=25=52. For a general point (x,y) the horizontal gap is x−2 and the vertical gap is y−1, so the same theorem gives (x−2)2+(y−1)2=25. That is the circle's equation: Pythagoras applied to every point at once.
The brackets subtract the center, so their signs read backwards at a glance. (x+4)2 is (x−(−4))2, which puts the center at x=−4. The right side is the radius squared: (x+4)2+y2=9 has center (−4,0) and radius 3, not 9. Expanding that equation gives the general form x2+y2+8x+7=0, where the center and radius stay hidden until you complete the square again.
Not every equation with x2 and y2 is a circle. In x2+4y2=16 the y-direction counts four times as much, so the curve reaches x=±4 but only y=±2: that is an ellipse. In x2−y2=16 the minus sign makes a hyperbola. And (x−1)2+(y+2)2=−4 describes no points at all, since two squares cannot add to a negative number. A real circle needs matching coefficients on x2 and y2 and a positive number for r2.
Think of it like this. A circle's equation is a dog on a leash tied to a stake: the stake is (h,k), the leash length is r, and the equation lists every spot the dog reaches with the leash pulled tight. Spots where the leash would hang slack make the left side smaller than r2; those are inside the circle.
Core idea. (x−h)2+(y−k)2=r2 collects every point exactly r from (h,k).