Plotwise graphing calculator

Learn › A-level

The equation of a circle

A circle is every point that is the same distance from a centre. Turn that sentence into algebra and you get the equation of a circle.

What you need first

  • Pythagoras' theorem: in a right-angled triangle, the squares of the two shorter sides add up to the square of the longest side.
  • How to find the gradient of a line through two points: change in y divided by change in x.
  • That perpendicular lines have gradients that multiply to −1.

What you will be able to do

  • Read the centre and radius from a circle equation.
  • Complete the square to tidy up an expanded equation.
  • Find the equation of a tangent to a circle.

Where the equation comes from

Put the centre at the point (a, b) and let the radius be r. Pick any point (x, y) on the circle.

To get from the centre to that point you go x − a across and y − b up. Those two movements are the short sides of a right-angled triangle, and the radius is its longest side. Pythagoras gives

(x − a)² + (y − b)² = r²

That is the equation of a circle. A point is on the circle exactly when its coordinates make this true.

Reading centre and radius

In (x − 2)² + (y + 3)² = 25:

The centre is (2, −3). Notice that the signs in the brackets are the opposite of the signs in the centre.

Blue is a circle given in expanded form. Orange is the circle set by the sliders. Green is a tangent line used in the second worked example. Open in the full calculator

Try it yourself

For each step, make a prediction before you move anything. Then check it.

  1. Drag a. Which way does the orange circle move?

    What you should see

    Left and right. a is the x-coordinate of the centre.

  2. Drag b, then r.

    What you should see

    b moves the circle up and down. r makes it bigger or smaller without moving its centre.

  3. Now adjust all three sliders until the orange circle sits exactly on the blue one. What values do you need?

    What you should see

    a = 2, b = −3 and r = 5. So the blue circle, whatever its equation looks like, has centre (2, −3) and radius 5. The first worked example shows how to get this by algebra.

Completing the square

Circle equations are often given multiplied out, like the blue one: x² + y² − 4x + 6y = 12. To read the centre and radius you have to put the brackets back. The method is called completing the square.

Here is the idea for the x terms, x² − 4x. Halve the −4 to get −2 and write (x − 2)². Multiply that out and you get x² − 4x + 4. That is 4 more than we wanted, so take the 4 away again:

x² − 4x = (x − 2)² − 4

Worked example 1

Find the centre and radius of x² + y² − 4x + 6y = 12.

  1. Group the x terms and the y terms. (x² − 4x) + (y² + 6y) = 12.
  2. Complete the square on x. Half of −4 is −2, and (−2)² = 4. So x² − 4x = (x − 2)² − 4.
  3. Complete the square on y. Half of 6 is 3, and 3² = 9. So y² + 6y = (y + 3)² − 9.
  4. Put them back. (x − 2)² − 4 + (y + 3)² − 9 = 12.
  5. Move the numbers to the right. (x − 2)² + (y + 3)² = 12 + 4 + 9 = 25.

The centre is (2, −3) and the radius is √25 = 5, matching what you found with the sliders.

Worked example 2: a tangent

Find the equation of the tangent to this circle at the point (5, 1). A tangent is a line that touches the circle at one point.

  1. Check the point is on the circle. (5 − 2)² + (1 + 3)² = 9 + 16 = 25. It is.
  2. Find the gradient of the radius. From the centre (2, −3) to (5, 1), y changes by 4 and x changes by 3. The gradient is 4/3.
  3. Use the key fact. A tangent is always at right angles to the radius at the point where it touches. Perpendicular gradients multiply to −1, so the tangent has gradient −3/4.
  4. Write the line. Through (5, 1) with gradient −3/4: y − 1 = −¾(x − 5). Multiplying out and tidying gives 3x + 4y = 19.

The green line in the graph is this tangent. It touches the blue circle at (5, 1) and nowhere else.

Is it a circle at all?

After completing the square, the right-hand side is r², so it must be positive. If you end up with something like (x − 1)² + (y − 2)² = −3, no points fit and there is no circle. If the right-hand side is 0, the only point that fits is the centre itself.

Check yourself

Try each one on paper before you open the answer. Getting one wrong is useful: it shows you which part to reread.

  1. State the centre and radius of (x + 1)² + (y − 4)² = 9.

    Show the answer

    Centre (−1, 4), radius 3. The signs in the centre are opposite to those in the brackets, and 9 is the radius squared.

  2. Is the point (3, 4) on the circle x² + y² = 25?

    Show the answer

    Yes. 3² + 4² = 9 + 16 = 25.

  3. Find the centre and radius of x² + y² + 2x − 8y + 8 = 0.

    Show the answer

    Completing the square: (x + 1)² − 1 + (y − 4)² − 16 + 8 = 0, so (x + 1)² + (y − 4)² = 9. Centre (−1, 4), radius 3.

Common mistakes

What to remember