📘 CodingMarble Learn

Equation of a Circle

A circle is the set of points at a fixed distance r from a centre (h, k). By the distance formula its equation is (x − h)² + (y − k)² = r²; with centre at the origin, x² + y² = r². Opened up, it becomes x² + y² + Dx + Ey + F = 0, with centre (−D/2, −E/2) and r² = D²/4 + E²/4 − F. A line meets a circle in 2, 1 or 0 points when the distance d from centre to line is less than, equal to or more than r. Two circles are compared by the distance between their centres.

🎬 Step-by-step story

  1. A circle is all points the same distance r from one centre. The yellow point goes round. Its distance to the centre stays 5.
  2. Put the centre at (0, 0). A point (x, y) on the circle makes a right triangle: x² + y² = r². Check (3, 4): 9 + 16 = 25 = 5².
  3. Move the centre to (h, k). Now the rule is (x − h)² + (y − k)² = r². Open the brackets and you get the general form.
  4. Add a straight line. Measure d, the shortest distance from the centre to the line. d < r: 2 points. d = r: 1 point. d > r: no point.
  5. Add a second circle. Measure d between the two centres. Compare d with r₁ + r₂ and with r₁ − r₂ to see if they cut, touch or stay apart.
  6. Free play: move the centre, change r, slide and tilt the line, switch on a second circle. Read the equation below.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is there a square on r?

The equation comes from the distance formula, which has a square root. Squaring both sides removes the root, so the right side becomes r².

Why is the centre (2, −3) when the equation shows (x − 2) and (y + 3)?

The bracket measures how far x is from h: x − h. So x − 2 means h = 2, and y + 3 = y − (−3) means k = −3. Move the centre in step 3 and watch the signs.

How do I know if a point is inside or outside?

Put the point into the left side. Less than r² means inside, equal means on, more means outside.

Why does the distance from the centre decide how a line meets a circle?

Every point of the circle is exactly r from the centre. If the closest point of the line is closer than r, the line must enter the circle; if exactly r it only touches; if farther it never reaches.

Is the tangent always perpendicular to the radius?

Yes. At the touching point the green distance line from the centre is the radius, and it meets the line at a right angle.

How can two circles touch in two different ways?

They can touch side by side (d = r₁ + r₂) or one inside the other (d = r₁ − r₂). Slide the gap in step 5 to see both.

What is a circle in coordinates?

A circle is the set of all points that are the same distance from one fixed point. The fixed point is the centre. The fixed distance is the radius r.

Take the centre C(h, k) and any point P(x, y) on the circle. The distance formula says CP = √((x − h)² + (y − k)²). This must equal r. Square both sides:

(x − h)² + (y − k)² = r² (centre–radius form, also called standard form)

If the centre is the origin, h = k = 0 and the equation is x² + y² = r².

A point is on the circle if it makes the equation true. If the left side is smaller than r², the point is inside; if larger, it is outside.

General form: finding the centre and radius

Open the brackets of (x − h)² + (y − k)² = r²:

x² + y² − 2hx − 2ky + (h² + k² − r²) = 0.

So every circle can be written as x² + y² + Dx + Ey + F = 0. Some books write it as x² + y² + 2gx + 2fy + c = 0.

To go back, complete the square in x and in y. Example: x² + y² − 6x + 4y − 3 = 0 → (x − 3)² − 9 + (y + 2)² − 4 − 3 = 0 → (x − 3)² + (y + 2)² = 16. Centre (3, −2), radius 4.

When is it really a circle?

The x² and y² terms must have the same coefficient and there must be no xy term. If r² comes out positive, it is a real circle. If r² = 0 it is just one point. If r² is negative, no point fits.

A line and a circle

Find d, the perpendicular distance from the centre (h, k) to the line ax + by + c = 0: d = |ah + bk + c| / √(a² + b²).

The algebra way

Put y from the line into the circle. You get a quadratic in x. Its discriminant Δ = b² − 4ac tells the same story: Δ > 0 two points, Δ = 0 one point, Δ < 0 none. Solving the quadratic gives the actual meeting points.

Tangent at a point on the circle

For x² + y² = r², the tangent at (x₁, y₁) is x₁x + y₁y = r². In general, it is the line through (x₁, y₁) perpendicular to the radius.

Two circles

Let the radii be r₁ and r₂ and the distance between the centres be d.

To find the meeting points, subtract one equation from the other. The x² and y² cancel and leave a straight line (the common chord). Solve this line with either circle.

Try it

Draw a radius-5 circle about (0, 0) on squared paper with a pin and thread. Find all 12 grid corners on it: (±3, ±4), (±4, ±3), (±5, 0), (0, ±5). In the 3D, choose step 4 and slide the line: watch the yellow meeting points go from 2 to 1 to 0 as d passes r.

Key formulas and definitions

Worked examples

1. Write the equation of the circle with centre (0, 0) and radius 6.

x² + y² = 6² → x² + y² = 36.

2. Write the equation of the circle with centre (2, −3) and radius 4.

(x − 2)² + (y − (−3))² = 4² → (x − 2)² + (y + 3)² = 16.

3. Find the centre and radius of (x + 1)² + (y − 5)² = 49.

Flip the signs: centre (−1, 5). r² = 49, so r = 7.

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

Group: (x² − 8x) + (y² + 2y) = −8. Complete squares: (x − 4)² − 16 + (y + 1)² − 1 = −8 → (x − 4)² + (y + 1)² = 9. Centre (4, −1), radius 3.

5. Find the circle with endpoints of a diameter A(1, 2) and B(7, 10).

Centre = midpoint = ((1 + 7)/2, (2 + 10)/2) = (4, 6). r = distance from (4, 6) to (1, 2) = √(9 + 16) = 5. Equation: (x − 4)² + (y − 6)² = 25.

6. Does the line y = x + 1 meet the circle x² + y² = 5? Find the points.

Substitute: x² + (x + 1)² = 5 → 2x² + 2x − 4 = 0 → x² + x − 2 = 0 → (x + 2)(x − 1) = 0. x = −2 gives y = −1; x = 1 gives y = 2. Two points: (−2, −1) and (1, 2). Check with d: d = |0 − 0 + 1|/√2 ≈ 0.71 < √5 ≈ 2.24.

7. For which value of c is the line 3x + 4y + c = 0 a tangent to x² + y² = 4 (c > 0)?

Tangent means d = r. d = |c| / √(9 + 16) = |c|/5. Set |c|/5 = 2 → c = 10.

8. Circles x² + y² = 9 and (x − 5)² + y² = 4: how are they placed?

Centres (0, 0) and (5, 0), so d = 5. r₁ = 3, r₂ = 2, r₁ + r₂ = 5 = d. They touch outside at one point, (3, 0).

Common mistakes

Practice quiz

1. The centre of (x − 5)² + (y + 2)² = 9 is:
2. The radius of x² + y² = 49 is:
3. A line is 3 units from the centre of a circle of radius 5. How many points do they share?
4. Two circles have radii 4 and 3 and their centres are 7 apart. They:
5. Which equation is a circle?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the equation of a circle?

(x − h)² + (y − k)² = r², where (h, k) is the centre and r the radius. With the centre at the origin it is x² + y² = r².

How do you find the centre and radius from the general equation?

Complete the square in x and in y, or use centre (−D/2, −E/2) and r = √(D²/4 + E²/4 − F) for x² + y² + Dx + Ey + F = 0.

How do you test if a line is a tangent to a circle?

Find the perpendicular distance d from the centre to the line. If d equals the radius, the line is a tangent.

Where this is taught

Ukraine9 класCartesian coordinates on the plane
South Korea고등학교 1학년Equations of figures
South Korea고등학교 1학년Equations of figures
China高二Ch.2 Lines and circles

Learn first

Learn next

Related lessons

All Maths lessons