This site is a work in progress. New lessons are added regularly. Contact us

Circles

Learning goals

  • Square the distance condition to get center-radius form
  • Complete the square once, with letters, to convert general form
  • Read the center as (D2,E2)\left(-\tfrac{D}{2}, -\tfrac{E}{2}\right)
  • Let D2+E24FD^2 + E^2 - 4F decide circle, point or nothing
  • Count line intersections with the discriminant
  • Classify two circles by the distance between centers

The distance condition

Fix a point C(h,k)C(h, k) and a positive length rr. The circle with center CC and radius rr is the set of all points P(x,y)P(x, y) whose distance from CC equals rr. Written as a sentence about distance, that is the whole definition:

PC=r.PC = r.

To turn it into algebra you need the distance between two points in coordinates, and the grid hands you a right triangle for free. Travel from C(h,k)C(h, k) straight across to the corner (x,k)(x, k), then straight up to P(x,y)P(x, y). The across step has length xh|x - h|, the up step has length yk|y - k|, and they meet at a right angle, so the Pythagorean theorem gives the square of the direct path:

PC2=(xh)2+(yk)2.PC^2 = (x - h)^2 + (y - k)^2 .

The absolute-value bars vanish under the squares, because squaring destroys a sign. That single line is the distance formula, and it is all the geometry this lesson needs.

The distance condition that defines a circleA circle centered at 1, 2 with radius 5, and a right triangle with legs 3 and 4 whose hypotenuse is the radius drawn to the point 4, 6 on the circle.xyOC(1, 2)P(4, 6)34r = 5
A circle of radius 5 centered at C, at 1 and 2, with the point P, at 4 and 6, on it. Going across 3 units and then up 4 units builds a right triangle whose hypotenuse is the radius, so 3 squared plus 4 squared equals 5 squared. Every point of the circle sits at the end of such a triangle.

A point lies on the circle exactly when (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2#

Let the circle have center (h,k)(h, k) and radius r>0r > 0, and let P(x,y)P(x, y) be any point of the plane. By the definition, PP lies on the circle precisely when its distance to the center equals the radius, that is, when PC=rPC = r.

Both PCPC and rr are nonnegative numbers, and on nonnegative numbers squaring is reversible: if two nonnegative quantities are equal then their squares are equal. Conversely, if the squares of two nonnegative quantities are equal then the quantities themselves are equal, since each is the positive square root of its own square. So the statement PC=rPC = r is equivalent to the statement PC2=r2PC^2 = r^2, with nothing gained and nothing lost.

Now replace PC2PC^2 by the Pythagorean expression computed above:

(xh)2+(yk)2=r2.(x - h)^2 + (y - k)^2 = r^2 .

Every step was an equivalence, so the chain runs in both directions. A point satisfies this equation if and only if it sits exactly rr away from (h,k)(h, k), which is exactly what it means to lie on the circle. The equation therefore captures every point of the curve and no other point of the plane.

This is the center-radius form (also called standard form) of a circle:

(xh)2+(yk)2=r2.(x - h)^2 + (y - k)^2 = r^2 .

Read it carefully in both directions, because the form hides two traps. The form subtracts the center coordinates, so (x+3)(x + 3) means h=3h = -3, not +3+3; rewrite x+3x + 3 as x(3)x - (-3) whenever the sign is in doubt. And the number on the right is r2r^2, not rr, so the radius of (x1)2+(y2)2=20(x - 1)^2 + (y - 2)^2 = 20 is 20=25\sqrt{20} = 2\sqrt{5}, not 2020. Centered at the origin the form collapses to the tidy x2+y2=r2x^2 + y^2 = r^2.

Worked example 1 A circle from the endpoints of a diameter

The points (2,3)(-2, 3) and (4,11)(4, 11) are the ends of a diameter. Find the circle.

The center is the midpoint of the diameter. Halfway along a segment you have covered half of its horizontal run and half of its vertical rise, so each midpoint coordinate is the average of the two endpoint coordinates:

(h,k)=(2+42,  3+112)=(1,7).(h, k) = \left( \frac{-2 + 4}{2}, \; \frac{3 + 11}{2} \right) = (1, 7).

The radius is half the diameter, so first square the distance between the endpoints. The horizontal gap is 4(2)=64 - (-2) = 6 and the vertical gap is 113=811 - 3 = 8:

d=62+82=100=10,r=12(10)=5.d = \sqrt{6^2 + 8^2} = \sqrt{100} = 10, \qquad r = \tfrac{1}{2}(10) = 5.

Substituting h=1h = 1, k=7k = 7, and r=5r = 5 into the center-radius form gives

(x1)2+(y7)2=25.(x - 1)^2 + (y - 7)^2 = 25.

Check it against an endpoint: (21)2+(37)2=9+16=25(-2 - 1)^2 + (3 - 7)^2 = 9 + 16 = 25, so (2,3)(-2, 3) is on the circle, as it must be. The classic error here is to use the whole distance 1010 as the radius, which builds a circle four times too big.

Completing the square once, with letters

Multiply out the center-radius form and the circle goes into hiding. Expanding (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2 gives x22hx+h2+y22ky+k2=r2x^2 - 2hx + h^2 + y^2 - 2ky + k^2 = r^2, and moving everything to one side collects into

x2+y2+Dx+Ey+F=0,D=2h,E=2k,F=h2+k2r2.x^2 + y^2 + Dx + Ey + F = 0, \qquad D = -2h, \quad E = -2k, \quad F = h^2 + k^2 - r^2 .

This is the general form. The center and the radius are still in there, but they are scrambled across three coefficients. Recovering them means completing the square on the xx-terms and on the yy-terms separately, and that is a move you already own from the quadratics chapter. What is new is that you should do it once, with letters, and never again with numbers.

Completing the square converts x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0 into center-radius form#

Group the xx-terms and the yy-terms, and move the constant to the right:

(x2+Dx)+(y2+Ey)=F.(x^2 + Dx) + (y^2 + Ey) = -F .

Complete each square. Half of the xx-coefficient is D2\tfrac{D}{2}, and (x+D2)2=x2+Dx+D24\left(x + \tfrac{D}{2}\right)^2 = x^2 + Dx + \tfrac{D^2}{4}, so the group x2+Dxx^2 + Dx is short of a perfect square by exactly D24\tfrac{D^2}{4}. The same argument on the yy-group leaves it short by E24\tfrac{E^2}{4}. Add both of those constants to both sides, which keeps the equation balanced:

(x2+Dx+D24)+(y2+Ey+E24)=F+D24+E24.\left(x^2 + Dx + \frac{D^2}{4}\right) + \left(y^2 + Ey + \frac{E^2}{4}\right) = -F + \frac{D^2}{4} + \frac{E^2}{4}.

Each group is now a perfect square, and the right side goes over the common denominator 44:

(x+D2)2+(y+E2)2=D2+E24F4.\left(x + \frac{D}{2}\right)^2 + \left(y + \frac{E}{2}\right)^2 = \frac{D^2 + E^2 - 4F}{4}.

Every general form lands here, whatever its coefficients. Comparing against the center-radius form, the center is (D2,E2)\left(-\tfrac{D}{2}, -\tfrac{E}{2}\right), which is why the center coordinates are just half the linear coefficients with their signs flipped. The right side is whatever D2+E24F4\tfrac{D^2 + E^2 - 4F}{4} happens to be, and that number is r2r^2 only when it is positive.

The quantity D2+E24FD^2 + E^2 - 4F does for a circle what b24acb^2 - 4ac does for a quadratic: its sign, and nothing else, decides what you are looking at. When it is positive, the equation is a genuine circle with

center  (D2,E2),r=D2+E24F2.\text{center} \; \left(-\frac{D}{2},\, -\frac{E}{2}\right), \qquad r = \frac{\sqrt{D^2 + E^2 - 4F}}{2}.

Two conditions have to hold before you even reach for this. The coefficients of x2x^2 and y2y^2 must be equal and nonzero, and there must be no xyxy term. If both squared terms carry the same coefficient a1a \neq 1, as in 3x2+3y212x+6y9=03x^2 + 3y^2 - 12x + 6y - 9 = 0, divide the whole equation by aa first and then proceed. If the coefficients differ, the graph is not a circle at all, and the lessons ahead in this chapter take up those curves.

Worked example 2 Convert 2x2+2y212x+4y6=02x^2 + 2y^2 - 12x + 4y - 6 = 0 to center-radius form

The squared terms have a common coefficient of 22, not 11, so divide every term by 22 before doing anything else:

x2+y26x+2y3=0.x^2 + y^2 - 6x + 2y - 3 = 0 .

Group and move the constant across, then complete both squares. Half of 6-6 is 3-3 (square 99), and half of 22 is 11 (square 11), so add 99 and 11 to both sides:

(x26x+9)+(y2+2y+1)=3+9+1.(x^2 - 6x + 9) + (y^2 + 2y + 1) = 3 + 9 + 1 .

Fold the groups back into squares and total the right side:

(x3)2+(y+1)2=13.(x - 3)^2 + (y + 1)^2 = 13 .

The center is (3,1)(3, -1) and the radius is 13\sqrt{13}, which is irrational and stays in radical form. The shortcut agrees: with D=6D = -6, E=2E = 2, F=3F = -3, the test value is 36+4+12=5236 + 4 + 12 = 52, so the right side is 524=13\tfrac{52}{4} = 13. Dividing by 22 at the very start is the step everyone forgets, and skipping it corrupts every number that follows.

Check your understanding

Convert x2+y2+8x2y8=0x^2 + y^2 + 8x - 2y - 8 = 0 to center-radius form. What are its center and radius?

Answer choices

Circle, single point, or nothing at all

Completing the square always lands you at (xh)2+(yk)2=C(x - h)^2 + (y - k)^2 = C for some number CC on the right, and nothing forces CC to be positive. Squares of real numbers are never negative, so a sum of two of them behaves in three sharply different ways.

If C>0C > 0, the equation is an honest circle of radius C\sqrt{C}. If C=0C = 0, then a sum of two squares is zero, which happens only when each square is zero separately. That forces x=hx = h and y=ky = k, so the graph has collapsed to the single point (h,k)(h, k). If C<0C < 0, the equation asks a sum of two squares to be negative, which no real point can do. So when C<0C < 0 the graph is empty: there is no curve, no point, nothing to draw. The equation still has complex solutions, but nothing lands in the real plane you are graphing on.

Watch the three cases appear by turning one dial. Take x2+y24x+6y+F=0x^2 + y^2 - 4x + 6y + F = 0 and vary only FF. The test value is 16+364F=524F16 + 36 - 4F = 52 - 4F, so completing the square gives (x2)2+(y+3)2=13F(x - 2)^2 + (y + 3)^2 = 13 - F every time, and the center stays at (2,3)(2, -3) no matter what FF is. Raise FF and the circle shrinks: at F=9F = 9 the radius is 22, and at F=12F = 12 it is 11. At F=13F = 13 the circle has closed down onto its own center, and past that it is gone.

The three outcomes of completing the squareThree panels showing a circle, a single point, and an empty graph as the constant F increases past the value that makes the right side zero.r = 2(2, -3)no real pointsF = 9a circle, radius 2F = 13one single pointF = 20nothing to draw
One family, three outcomes. For the equation x squared plus y squared minus 4x plus 6y plus F equals 0, the center is always 2, negative 3. At F equals 9 the right side is 4 and the graph is a circle of radius 2. At F equals 13 the right side is 0 and the graph shrinks to the single point 2, negative 3. At F equals 20 the right side is negative 7 and no real point satisfies the equation.

So the claim “every equation of the form x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0 is a circle” is simply false. A student who completes the square, reaches (x2)2+(y+3)2=7(x - 2)^2 + (y + 3)^2 = -7, and announces a radius of 7\sqrt{-7} has learned nothing about the graph. Check the sign of the right side before you claim a radius.

Worked example 3 For which kk is x2+y26x+4y+k=0x^2 + y^2 - 6x + 4y + k = 0 a circle?

Here D=6D = -6, E=4E = 4, and F=kF = k, so the test value is

D2+E24F=36+164k=524k.D^2 + E^2 - 4F = 36 + 16 - 4k = 52 - 4k .

Completing the square confirms it directly: (x3)2+(y+2)2=13k(x - 3)^2 + (y + 2)^2 = 13 - k, and indeed 13k=524k413 - k = \tfrac{52 - 4k}{4}. The center is (3,2)(3, -2) for every kk, and only the right side moves.

The graph is a circle exactly when that right side is positive:

13k>0    k<13.13 - k > 0 \iff k < 13 .

At k=13k = 13 the right side is 00 and the graph is the single point (3,2)(3, -2). For k>13k > 13 the right side is negative and there is no graph at all. The answer to the question asked is k<13k < 13, and the boundary case k=13k = 13 is deliberately excluded, because a single point is not a circle.

Check your understanding

What is the graph of x2+y210x+2y+26=0x^2 + y^2 - 10x + 2y + 26 = 0?

Answer choices

Where a line meets a circle

A line and a circle can miss each other, touch at one point, or cut through at two. Which of the three happens is not a matter of drawing carefully: it is decided by a discriminant you already know how to compute.

Substitute the line y=mx+cy = mx + c into the origin-centered circle x2+y2=r2x^2 + y^2 = r^2 and collect powers of xx:

x2+(mx+c)2=r2    (1+m2)x2+2mcx+(c2r2)=0.x^2 + (mx + c)^2 = r^2 \;\Longrightarrow\; (1 + m^2)x^2 + 2mc\,x + (c^2 - r^2) = 0 .

A line meets a circle in at most two points#

The leading coefficient of that equation is 1+m21 + m^2, and since m20m^2 \geq 0 for every real slope, we have 1+m211 + m^2 \geq 1, which is never zero. So the substitution always produces a genuine quadratic in xx, never a linear equation in disguise, and a quadratic has at most two real roots.

Each root is one intersection point and no more, because the line assigns exactly one yy to each xx through y=mx+cy = mx + c. Distinct roots therefore give distinct points, and there can be at most two of them.

Nothing in that argument used the center, so the same reasoning covers a circle sitting anywhere. Substituting the same line into (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2 and collecting powers of xx gives

(1+m2)x2+[2m(ck)2h]x+[h2+(ck)2r2]=0,(1 + m^2)x^2 + \left[\, 2m(c - k) - 2h \,\right] x + \left[\, h^2 + (c - k)^2 - r^2 \,\right] = 0,

whose leading coefficient is again 1+m21 + m^2, never zero. A vertical line x=ax = a has no slope to substitute, but it behaves the same way. Substituting x=ax = a turns the circle into (yk)2=r2(ah)2(y - k)^2 = r^2 - (a - h)^2, which has two, one, or no real solutions for yy. Either way, no line can cross any circle three times.

Which of the three cases you get is settled by the discriminant of that quadratic, which for this origin-centered circle collapses to something tidy:

Δ=(2mc)24(1+m2)(c2r2)=4[r2(1+m2)c2].\Delta = (2mc)^2 - 4(1 + m^2)(c^2 - r^2) = 4\left[\, r^2(1 + m^2) - c^2 \,\right].

If Δ>0\Delta > 0 there are two roots and the line is a secant, cutting the circle twice. If Δ=0\Delta = 0 there is a repeated root and the line is a tangent, touching at exactly one point: tangency is nothing more exotic than a double root. If Δ<0\Delta < 0 there are no real roots, and the line misses the circle entirely.

What generalizes is the method, not that closed form. The tidy expression above was computed from x2+y2=r2x^2 + y^2 = r^2 and holds only there. For a circle centered anywhere else, do not reach for it: substitute the line, collect the quadratic, and take the discriminant of the quadratic you actually have.

A line meets a circle in two, one, or no pointsThe circle x squared plus y squared equals 25 with the secant line y equals 3, the tangent line y equals 5, and the line y equals 7, which misses the circle.xyy = 7: no pointsy = 5: one pointy = 3: two points
Three parallel lines against the circle x squared plus y squared equals 25. Substituting y equals 3 gives x squared equals 16, so x is 4 or negative 4 and the line is a secant. Substituting y equals 5 gives x squared equals 0, a double root, so the line is tangent at 0, 5. Substituting y equals 7 gives x squared equals negative 24, which has no real solution, so the line misses the circle.

Worked example 4 Where does y=x+1y = x + 1 meet x2+y2=25x^2 + y^2 = 25?

Substitute the line into the circle, replacing yy everywhere it appears:

x2+(x+1)2=25    2x2+2x24=0    x2+x12=0.x^2 + (x + 1)^2 = 25 \;\Longrightarrow\; 2x^2 + 2x - 24 = 0 \;\Longrightarrow\; x^2 + x - 12 = 0 .

This factors as (x+4)(x3)=0(x + 4)(x - 3) = 0, so x=4x = -4 or x=3x = 3. Two real roots means the line is a secant.

Now finish the job. A value of xx is not a point; feed each root back into the line to get its partner:

x=4y=3,x=3y=4.x = -4 \Rightarrow y = -3, \qquad x = 3 \Rightarrow y = 4 .

The intersection points are (4,3)(-4, -3) and (3,4)(3, 4). Both check out on the circle, since 16+9=2516 + 9 = 25 and 9+16=259 + 16 = 25. Stopping at the xx-values is the most common way to lose this problem.

Worked example 5 Which lines y=x+cy = x + c are tangent to x2+y2=25x^2 + y^2 = 25?

Tangency means the substituted quadratic has a repeated root, so build the quadratic and set its discriminant to zero. With slope m=1m = 1:

x2+(x+c)2=25    2x2+2cx+(c225)=0.x^2 + (x + c)^2 = 25 \;\Longrightarrow\; 2x^2 + 2cx + (c^2 - 25) = 0 .

Its discriminant is (2c)24(2)(c225)(2c)^2 - 4(2)(c^2 - 25), which simplifies to 4c2+200-4c^2 + 200. Setting that to zero:

4c2+200=0    c2=50    c=±52.-4c^2 + 200 = 0 \;\Longrightarrow\; c^2 = 50 \;\Longrightarrow\; c = \pm 5\sqrt{2}.

Two lines qualify, y=x+52y = x + 5\sqrt{2} and y=x52y = x - 5\sqrt{2}, one riding above the circle and one below. That pairing is exactly what the picture demands: a circle has two tangent lines of any given slope. The origin-centered formula Δ=4[r2(1+m2)c2]\Delta = 4[r^2(1 + m^2) - c^2] agrees, since r2(1+m2)=25(2)=50r^2(1 + m^2) = 25(2) = 50, and it applies here only because this circle is centered at the origin. Move the center and that shortcut stops being true, so substitute and recompute instead.

Check your understanding

How many points does the line y=x+8y = x + 8 share with the circle x2+y2=25x^2 + y^2 = 25?

Answer choices

Where two circles meet

Two circles are settled the same way, by a single number: the distance dd between their centers, weighed against the radii r1r_1 and r2r_2. Picture sliding one ring toward the other and watching the contact change.

While d>r1+r2d > r_1 + r_2 the rings cannot reach each other, so they share no points. At d=r1+r2d = r_1 + r_2 they reach exactly and touch at one point, tangent from the outside. Closer still, whenever r1r2<d<r1+r2|r_1 - r_2| < d < r_1 + r_2, they overlap and cross at two points. At d=r1r2d = |r_1 - r_2|, with radii that differ, the smaller ring rests inside the larger and touches it once from within. And once d<r1r2d < |r_1 - r_2| the smaller circle is swallowed whole, floating strictly inside the larger with no contact at all.

So two circles can fail to meet for two opposite reasons: they can be too far apart, or one can be buried inside the other. Closer does not always mean more contact, which is the detail most people miss.

When two circles do cross, their intersection points are cheap to find, because both equations carry the same x2+y2x^2 + y^2. Subtract one general form from the other and those squared terms cancel, leaving a linear equation, a line. Any point on both circles satisfies both equations, so it satisfies their difference, which means every shared point lies on that line. Solve the line against either circle and you have them. It also settles the count: a line meets a circle at most twice, so two distinct circles share at most two points.

Three points pin down one circle

The general form looks uglier than the center-radius form, but it earns its keep in one situation the tidy form cannot handle. Look again at

x2+y2+Dx+Ey+F=0.x^2 + y^2 + Dx + Ey + F = 0 .

If you treat DD, EE, and FF as the unknowns and a known point (x0,y0)(x_0, y_0) as the data, this equation is linear in those unknowns. This is because DD, EE, and FF each appear to the first power, multiplied by constants. Each point the circle must pass through gives one linear equation. Three points give three linear equations in three unknowns, which is a system you already know how to solve.

Worked example 6 The circle through (1,1)(1, 1), (2,4)(2, 4), and (5,3)(5, 3)

Substitute each point into x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0 and simplify, keeping DD, EE, and FF as the unknowns:

(1,1):D+E+F=2,(2,4):2D+4E+F=20,(5,3):5D+3E+F=34.\begin{aligned} (1, 1) &: \quad D + E + F = -2, \\ (2, 4) &: \quad 2D + 4E + F = -20, \\ (5, 3) &: \quad 5D + 3E + F = -34 . \end{aligned}

Eliminate FF by subtracting the first equation from the other two, which leaves a 2×22 \times 2 system:

D+3E=18,4D+2E=32.D + 3E = -18, \qquad 4D + 2E = -32 .

The second simplifies to 2D+E=162D + E = -16. Solving the first for D=183ED = -18 - 3E and substituting gives 2(183E)+E=162(-18 - 3E) + E = -16, so 5E=20-5E = 20 and E=4E = -4. Back-substituting, D=18+12=6D = -18 + 12 = -6, and then F=2DE=2+6+4=8F = -2 - D - E = -2 + 6 + 4 = 8. The circle is

x2+y26x4y+8=0.x^2 + y^2 - 6x - 4y + 8 = 0 .

Complete the square to see it: (x3)2+(y2)2=8+9+4=5(x - 3)^2 + (y - 2)^2 = -8 + 9 + 4 = 5, a circle with center (3,2)(3, 2) and radius 5\sqrt{5}. Verify with the data you were given. The squared distance from (3,2)(3, 2) to (1,1)(1, 1) is 4+1=54 + 1 = 5, to (2,4)(2, 4) is 1+4=51 + 4 = 5, and to (5,3)(5, 3) is 4+1=54 + 1 = 5. All three points sit exactly 5\sqrt{5} from the center, so all three are on the circle.

The same linearity explains the geometry: three unknowns need three conditions, so three points determine the circle, no more and no fewer. Two points leave a whole family of circles to choose from, and four points are usually one demand too many for any circle to satisfy. The one case that fails is three points on a straight line, where the elimination collapses and no circle exists.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

Fix one point, fix one distance, and collect everything that far away. This lesson turned that rule into an equation. But is it the only rule that draws a circle?

Apollonius of Perga, a Greek geometer working around 200 BCE, found a second one, and it looks nothing like the first. He is the man who gave the ellipse, the parabola and the hyperbola the names they still carry. So he had reason to hunt for odd ways of describing a familiar curve. His rule uses two fixed points rather than one. Collect every point whose distance to the first is exactly twice its distance to the second.

Nothing in that description sounds round. There is no center named anywhere in it, and no radius either. The condition is a ratio rather than a length, and the two fixed points are not even treated alike. Yet the points that satisfy it form a perfect circle, and neither of the two fixed points sits at its center. Any positive ratio behaves the same way, with one exception. At a ratio of exactly 11 the two distances are equal, and the set straightens out into a line: the perpendicular bisector you would draw between the points.

You can settle all of this yourself, with nothing beyond this lesson. Write both distances with the distance formula, square both sides, and gather the terms. The x2x^2 and the y2y^2 arrive with equal coefficients and no xyxy term between them, which is exactly the fingerprint you learned to read.