Given a circle and a point, exactly one of three cases applies: the point lies inside the circle, on its circumference, or outside it.
The same comparison appears in simplified coverage models, such as deciding whether a location lies inside an idealized circular signal or radar range. The circle equation and point coordinates then classify the location exactly.
To classify the point, we use its power with respect to the circle. This algebraic quantity can be positive, zero, or negative. An ordinary distance is always zero or positive. For a circle with center (a,b) and radius r:
KA=(x0−a)2+(y0−b)2−r2
For point A(x0,y0) and the general circle x2+y2+Dx+Ey+F=0, the power of A is:
KA=x02+y02+Dx0+Ey0+F
Substituting the coordinates once gives a value whose sign determines the point's location.
First identify the circle equation and the point coordinates. Substitute the coordinates into the power-of-a-point formula to obtain KA.
The sign of KA determines the point's position. If KA<0, the point is inside the circle. If KA=0, the point is on the circle. If KA>0, the point is outside the circle.
For point A(1,−2) and circle x2+y2=25, first compute the squared distance to the center.
Then subtract r2:
dA2=12+(−2)2=1+4=5
KA=dA2−r2=5−25=−20
Because KA=−20<0, point A(1,−2) lies inside the circle.
For x2+y2=r2, comparing dA2 with r2 is equivalent to checking the sign of KA=dA2−r2.
For a circle in general form x2+y2+Dx+Ey+F=0, calculate KA=x02+y02+Dx0+Ey0+F. The sign of KA determines whether the point is inside, on, or outside the circle.
For example, for point A(1,−2) and circle x2+y2−8x−2y−8=0:
KA=12+(−2)2−8(1)−2(−2)−8
KA=1+4−8+4−8=−7
Since KA=−7<0, then point A(1,−2) is located inside the circle.