The equation of a circle

A circle is the set of all points that are the same distance from one fixed point1. That fixed point is the centre, and the shared distance is the radius. Here we take a circle with centre at the origin and radius 55.

Building the equation

Pick any point (x,y)(x, y) on the circle. Measured from the centre it is xx across and yy up, which makes a right triangle, so by the Pythagorean theorem the two legs squared add up to the radius squared.

x2+y2=52=25x^2 + y^2 = 5^2 = 25

Testing points

Pointx2+y2x^2 + y^2Position
(3,4)(3, 4)2525on the circle
(5,0)(5, 0)2525on the circle
(4,3)(-4, 3)2525on the circle
(1,1)(1, 1)22inside

You can test whether a point is on the circle just by checking whether it satisfies the equation.

The general equation

The idea is the same for any radius. If the centre moves to (a,b)(a, b), the horizontal gap becomes xax - a and the vertical gap yby - b.

(xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2
CentreEquation
(0,0)(0, 0)x2+y2=r2x^2 + y^2 = r^2
(a,b)(a, b)(xa)2+(yb)2=r2(x-a)^2 + (y-b)^2 = r^2

Why the graph is drawn in two pieces

Solving x2+y2=25x^2 + y^2 = 25 for yy gives y=25x2y = \sqrt{25 - x^2} for the top half and y=25x2y = -\sqrt{25 - x^2} for the bottom half, and putting them together makes the whole circle. The two halves join at the ends (±5,0)(\pm 5, 0), where y=0y = 0.

Because one value of xx has two matching values of yy, a circle is not a function of the form y=f(x)y = f(x), which is why it is drawn as two separate curves.

The large dots on the graph are the centre and the point (3,4)(3, 4) on the circle. No matter which direction you go from the centre, the distance out to the circle is always the radius, and that is exactly what the equation says.

  1. Circle, Wikipedia