40% off

Ends 15 Aug

Lock in £90

Equation of a Circle

Updated July 2026

Coordinate geometry of the circle

Using the equation of a circle in the forms

(xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2

x2+y2+cx+dy+e=0x^2 + y^2 + cx + dy + e = 0

Imagine drawing a circle of radius 1 on the xyxy-plane with its centre at the origin and a radius of 1. What can we say about all the points that sit on this circle? They must all be a distance of 1 from the origin. We can use Pythagoras' theorem to express this idea in algebra [see the diagram] and when we do so we get the equation of a basic circle: x2+y2=12x^2 + y^2 = 1^2. Any (x,y)(x, y) satisfying this equation is on the circle and any (x,y)(x, y) not satisfying this equation is not on the circle. (As an aside, all points inside the circle satisfy x2+y2<12x^2 + y^2 < 1^2, and all points outside the circle satisfy x2+y2>12x^2 + y^2 > 1^2.)

img-22.jpeg

What about taking the same circle and making the radius bigger? If the radius is rr then we see from Pythagoras' Theorem [and the diagram below] that the equation of this circle must be x2+y2=r2x^2 + y^2 = r^2

img-23.jpeg

What if we want the centre of the circle to be somewhere else on the xyxy-plane? We will find the equation of the circle in that case in one of two ways: we either using Pythagoras' or using graph shifting.

Let's find the general equation of a circle of radius with its rr centre at the point (a,b)(a, b):

Pythagoras' tells us that all the (x,y)(x, y) values that are a distance rr from (a,b)(a, b) will sit on the circle. So, we can use some geometry to work out the equation of the circle [see the diagram too] and we get

(xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2

img-24.jpeg

Or we can start with the circle of radius rr centred at the origin which has equation x2+y2=r2x^2 + y^2 = r^2 and shift it horizontally by aa and vertically by bb [so it moves to have a centre at the point (a,b)(a, b) and using standard graph shifting. Doing this, we get the equation:

x2+y2=r2(xa)2+(yb)2=r2x^2 + y^2 = r^2 \quad \rightarrow \quad (x - a)^2 + (y - b)^2 = r^2

You should be able to identify [very quickly] the radius and the centre of any circle equation you are given. For example, the circle with equation (x2)2+(y3)2=25(x - 2)^2 + (y - 3)^2 = 25 has its centre at (2,3)(2, 3) and its radius is 5 [because 52=255^2 = 25, and be very careful not to say its radius is 25 !!]. The circle (x2)2+(y+4)2=18(x - 2)^2 + (y + 4)^2 = 18 has its centre at (2,4)(2, -4) and a radius of 18=32\sqrt{18} = 3\sqrt{2}

There are other ways of writing the equation of a circle and you should learn to recognise them and be able to work out both the radius and centre of a circle given its equation. The most common alternative form of a circle is x2+y2+ax+by+c=0x^2 + y^2 + ax + by + c = 0. We will look at a few examples and use "completing the square" to find the centre and radius:

Example 1

Find the centre and radius of x2+y2+4x+2y12=0x^2 + y^2 + 4x + 2y - 12 = 0

We collect the xx terms together and the yy terms together:

x2+4x+y2+2y12=0x^2 + 4x + y^2 + 2y - 12 = 0

And then complete the square for the xx terms and also for the yy terms:

x2+4x+y2+2y12=(x+2)24+(y+1)2112=0x^2 + 4x + y^2 + 2y - 12 = (x + 2)^2 - 4 + (y + 1)^2 - 1 - 12 = 0

And rearranging gives us our standard equation:

(x+2)2+(y+1)2=17(x + 2)^2 + (y + 1)^2 = 17

So, the centre is at (2,1)(-2, -1) and the radius is 17\sqrt{17}

Example 2

Find the centre and radius of x2+y24x6y+20=0x^2 + y^2 - 4x - 6y + 20 = 0

We go through the same process as above – collect terms and complete the square to give:

(x2)24+(y3)29+20=0(x - 2)^2 - 4 + (y - 3)^2 - 9 + 20 = 0

Which rearranges to give

(x2)2+(y3)2=7(x - 2)^2 + (y - 3)^2 = -7

OH NO !!!!!

A moment's thought shows something has gone wrong. The left-hand side is the sum of squares so must always be 0\geq 0 but the right-hand side is negative. Well, it turns out that there are no real xx and yy values that make this equation true and so it is not the equation of a circle. The lesson to learn here is that not every equation of the form x2+y2+ax+by+c=0x^2 + y^2 + ax + by + c = 0 is the equation of a circle. You should be able to work out what extra condition we need to place on a,ba, b and cc to ensure that the equation x2+y2+ax+by+c=0x^2 + y^2 + ax + by + c = 0 is a circle.

Example 3

Find the centre and radius of 2x2+2y24x8y19=02x^2 + 2y^2 - 4x - 8y - 19 = 0

Well initially this doesn't look exactly like x2+y2+ax+by+c=0x^2 + y^2 + ax + by + c = 0. But we can easily divide by 2 to get x2+y22x4y192=0x^2 + y^2 - 2x - 4y - \frac{19}{2} = 0 and then proceed as before to get:

(x1)21+(y2)24192=(x1)2+(y2)2=292(x - 1)^2 - 1 + (y - 2)^2 - 4 - \frac{19}{2} = (x - 1)^2 + (y - 2)^2 = \frac{29}{2}

Which has centre at (1,2)(1,2) and a radius of 292\sqrt{\frac{29}{2}}

Exercise

Why are the following not equations of circles?

2x2+3y24x8y19=02x^2 + 3y^2 - 4x - 8y - 19 = 0 2x22y24x8y19=02x^2 - 2y^2 - 4x - 8y - 19 = 0 x2+2y+5=y2+4x+7x^2 + 2y + 5 = y^2 + 4x + 7

Given the equation px2+qy2+ax+by+c=0px^2 + qy^2 + ax + by + c = 0 what conditions on p,q,a,bp, q, a, b and cc will make it an equation of a circle? [this is slightly tricker than it appears – be careful and think of what different cases there might be ...]

Finally, we will look at a couple of scenarios involving circles that you should be able to deal with. We will do this by working through a couple of examples.

Example 1: When is a line tangent to a circle?

Find the values of cc for which y=2x+cy = 2x + c is tangent to the circle with equation (x3)2+(y2)2=9(x - 3)^2 + (y - 2)^2 = 9

This can be solved algebraically [or geometrically with some careful work] but it is good to sketch a picture to start with to get an idea of why the question asks for values [not just value] and to get a very rough idea of what these values might be. Here is a sketch:

img-25.jpeg

Now we can start to think about how we should approach this. In simple terms, if a line is tangent to a circle, then it intersects it at only one point. So, if we try to solve the equation of the line and the circle simultaneously, we will need to look for the case that has only one solution. If you think about it for a moment, the number of ways a line can intersect a circle can be twice, or once, or not at all. And when you try to solve the equation of a line simultaneously with the equation of a circle, you will get a quadratic in xx [or in yy]. So, putting all this together suggests we try to solve simultaneously and then use the discriminant condition to work out the values of cc that gives one [repeated] root of the quadratic we obtain [think why we expect the discriminant to be 0 for two different values of cc].

Let's do that for this question: substitute y=2x+cy = 2x + c into (x3)2+(y2)2=9(x - 3)^2 + (y - 2)^2 = 9 to give (x3)2+(2x+c2)2=9(x - 3)^2 + (2x + c - 2)^2 = 9 and multiplying out we get

x26x+9+4x2+4(c2)x+(c2)2=9x^2 - 6x + 9 + 4x^2 + 4(c - 2)x + (c - 2)^2 = 9

Rearranging

5x2+2(c7)x+(c2)2=05x^2 + 2(c - 7)x + (c - 2)^2 = 0

And we want this to have one repeated root, so the discriminant condition requires

4(c7)220(c2)2=04(c - 7)^2 - 20(c - 2)^2 = 0

Which then gives

c7=±5(c2)c - 7 = \pm \sqrt{5}(c - 2)

And from this you can work out the two cc values – you can see we have two lines in the diagram above, one for reach of the cc values we found.

Example 2: What is the closest distance between a line and a circle?

Find the closest distance between the line y=x+11y = x + 11 and the circle (x+2)2+(y3)2=9(x + 2)^2 + (y - 3)^2 = 9

There are lots of ways to approach this question. We are going to use a mix of algebra and geometry. The first thing we are going to do [which is not necessary but just makes things easier to deal with] is to translate the circle so its centre is at the origin and then translate the line the same way [convince yourself that this does not change the answer]. We are going to replace xx by x2x - 2 and yy by y+3y + 3 in both equations to give

y+3=x2+11and(x2+2)2+(y+33)2=9y + 3 = x - 2 + 11 \quad \text{and} \quad (x - 2 + 2)^2 + (y + 3 - 3)^2 = 9

Which simplify to

y=x+6andx2+y2=32y = x + 6 \quad \text{and} \quad x^2 + y^2 = 3^2

We can sketch these and then use some [simple] geometry to find the shortest distance between the line and the circle:

img-26.jpeg

From this diagram we can see that the line between (0,0)(0,0) and Q(3,3)Q(-3,3) will help us find the length that we seek. The length of the line between (0,0)(0,0) and Q(3,3)Q(-3,3) is 323\sqrt{2} [it is 32+32\sqrt{3^2 + 3^2}] and the length of the radius we know is 3. So, the distance from the line to the circle [which is the value we seek] must be 3233\sqrt{2} - 3

Exercise

For example 2, can you find other ways of finding the length required? (For instance: there is a formula for the shortest length of a point from a line. You could find the distance of the centre of the circle from the line and then subtract the radius length from the result. If you choose to take this approach, make sure you can prove and fully understand the equation that gives the shortest length between a point and a line. We do NOT expect you to know this formula in the TMUA/ESAT. You could also alter the problem in other ways using algebra: for instance, you could ask what rr value makes y=x+6y = x + 6 a tangent to the circle x2+y2=r2x^2 + y^2 = r^2 and then the answer to the question would be r3r - 3. Can you see why this would work?)

How would you solve the problem if the equation of the line had a different gradient – e.g., find the shortest length between the line y=2x+15y = 2x + 15 and the circle (x+2)2+(y3)2=9(x + 2)^2 + (y - 3)^2 = 9. Try to solve it using a number of different methods. Which method do you think is best?

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.