Sub topic 13
The Equation of a Circle
This chapter assumes you can use the distance formula, expand and factor squared binomials, and solve simple equations. It also assumes you know the area and circumference formulas for a circle. The new idea is that a circle's equation is the distance formula written as an equation.
Where the Equation Comes From
A circle is the set of all points at a fixed distance r (the radius) from a fixed point (h, k) (the center). Take any point (x, y) on the circle. The distance formula says its distance from the center is
sqrt((x - h)^2 + (y - k)^2) = r
Squaring both sides removes the root and gives the standard form:
(x - h)^2 + (y - k)^2 = r^2
The right side is r squared, not r. This is the most common source of wrong answers on the GRE.
If the center is the origin, then h = 0 and k = 0, and the equation reduces to x^2 + y^2 = r^2.
Reading Center and Radius
The signs inside the parentheses are the opposite of the center's coordinates. The expression (x + 3) is (x - (-3)), so it means h = -3.
| Equation | Center | Radius |
|---|---|---|
| x^2 + y^2 = 49 | (0, 0) | 7 |
| (x - 3)^2 + (y + 2)^2 = 16 | (3, -2) | 4 |
| (x + 1)^2 + y^2 = 5 | (-1, 0) | sqrt(5) |
| x^2 + (y - 4)^2 = 9 | (0, 4) | 3 |
A missing term means that coordinate of the center is 0. A number on the right that is not a perfect square, like 5, gives a radius that is a square root. You can usually leave the radius in that form, because many GRE questions only need r^2.
Building an Equation from Information
Most questions give you the center and radius, or give you enough to find them.
Given the center and a point on the circle
The radius is the distance from the center to that point. Suppose the center is (1, 2) and the circle passes through (4, 6). The distance is sqrt(3^2 + 4^2) = 5, so the equation is (x - 1)^2 + (y - 2)^2 = 25. You can skip the square root entirely by computing r^2 = 3^2 + 4^2 = 25 directly.
Given the endpoints of a diameter
The center is the midpoint of the diameter, and the radius is half the diameter's length. Take endpoints (-1, 2) and (7, 6).
- Midpoint: ((-1 + 7)/2, (2 + 6)/2) = (3, 4).
- Distance from the center to an endpoint: (7 - 3)^2 + (6 - 4)^2 = 16 + 4 = 20, so r^2 = 20.
- Equation: (x - 3)^2 + (y - 4)^2 = 20.
The full diameter has length sqrt(80). A common error is to use that as r. The radius is half of it, and r^2 = 80/4 = 20.
Given tangency to an axis
A circle is tangent to an axis if it touches the axis at exactly one point. The radius to that point is perpendicular to the axis, so the radius equals the distance from the center to the axis.
- Tangent to the x-axis: r = |k|.
- Tangent to the y-axis: r = |h|.
A circle with center (2, 5) that is tangent to the x-axis has r = 5, so its equation is (x - 2)^2 + (y - 5)^2 = 25. It is not tangent to the y-axis, because the center is only 2 units from that axis and the radius is 5. It crosses the y-axis instead.
Where a Circle Meets the Axes
Intercepts work as they do for lines. Set one variable to 0 and solve. For (x - 2)^2 + (y - 5)^2 = 25:
- At x = 0: 4 + (y - 5)^2 = 25, so (y - 5)^2 = 21 and y = 5 + sqrt(21) or y = 5 - sqrt(21). There are two y-intercepts.
- At y = 0: (x - 2)^2 + 25 = 25, so x = 2. There is one x-intercept, which confirms tangency.
The number of solutions tells you how the circle meets the axis: two solutions mean it crosses, one means it is tangent, and none means it misses the axis.
Inside, On, or Outside
Compare the squared distance from a point to the center with r^2. You never need a square root for this.
- (x - h)^2 + (y - k)^2 < r^2: the point is inside the circle.
- (x - h)^2 + (y - k)^2 = r^2: the point is on the circle.
- (x - h)^2 + (y - k)^2 > r^2: the point is outside the circle.
def classify(point, center, r):
"""Return 'inside', 'on', or 'outside' for a point relative to a circle."""
x, y = point
h, k = center
d2 = (x - h) ** 2 + (y - k) ** 2 # squared distance, no square root needed
r2 = r ** 2
if d2 < r2:
return "inside"
if d2 == r2:
return "on"
return "outside"
print(classify((4, 6), (1, 2), 5)) # on
print(classify((2, 3), (1, 2), 5)) # inside
print(classify((7, 7), (1, 2), 5)) # outsideThe three results are "on", "inside", and "outside". For (4, 6), the squared distance is 9 + 16 = 25, which equals r^2. For (2, 3), it is 1 + 1 = 2, which is less than 25. For (7, 7), it is 36 + 25 = 61, which is greater than 25.
The Expanded Form and Completing the Square
Sometimes the equation is not in standard form. Expanding (x - h)^2 + (y - k)^2 = r^2 gives
x^2 + y^2 + Dx + Ey + F = 0
where D = -2h, E = -2k, and F = h^2 + k^2 - r^2. To read off the center and radius you must complete the square in both variables.
Take x^2 + y^2 - 6x + 4y - 12 = 0.
- Group the terms: (x^2 - 6x) + (y^2 + 4y) = 12.
- Complete each square. Add (6/2)^2 = 9 to the x group and (4/2)^2 = 4 to the y group. Add both to the right side too: (x^2 - 6x + 9) + (y^2 + 4y + 4) = 12 + 9 + 4.
- Factor: (x - 3)^2 + (y + 2)^2 = 25.
The center is (3, -2) and the radius is 5.
The shortcut from the formulas above is h = -D/2, k = -E/2, and r^2 = h^2 + k^2 - F. The code below applies it.
import math
def circle_from_general(D, E, F):
"""Center and radius of x^2 + y^2 + Dx + Ey + F = 0."""
h, k = -D / 2, -E / 2
r2 = h ** 2 + k ** 2 - F
if r2 <= 0:
raise ValueError("not a real circle (r^2 must be positive)")
return (h, k), math.sqrt(r2)
center, r = circle_from_general(-6, 4, -12)
print(center, r) # (3.0, -2.0) 5.0Using the Circle with Lines
Everything from earlier chapters still applies. These are the combinations that appear most often.
- Tangent line and radius. A tangent line is perpendicular to the radius drawn to the point of tangency. If the center is (0, 0) and the point of tangency is (3, 4), the radius has slope 4/3, so the tangent has slope -3/4.
- Line through the center. A line through the center meets the circle at the two endpoints of a diameter. The center is the midpoint of those two points.
- Intersection with a line. Substitute the line's y into the circle's equation and solve the resulting quadratic. Two solutions mean the line crosses the circle, one means it is tangent, and none means it misses.
- Area and circumference. The area is pi r^2 and the circumference is 2 pi r. If you know r^2 from the equation, the area follows at once. Circle questions on the GRE often ask for these as a numeric entry.
The diagram shows a routine for turning an equation into a center and radius.
Common Errors
- Taking the center's signs straight from the parentheses. The center of (x + 5)^2 + (y - 1)^2 = 9 is (-5, 1).
- Treating the right side as r instead of r^2.
- Using the diameter as the radius.
- Forgetting to add the same completed-square amounts to the right side.
- Assuming that a circle in the plane is the graph of a function. It fails the vertical line test, because most vertical lines meet it twice.
Exercises
Exercise
What are the center and the area of the circle x^2 + y^2 - 8x + 6y = 0?
Show answer
Complete the squares: (x^2 - 8x + 16) + (y^2 + 6y + 9) = 16 + 9, so (x - 4)^2 + (y + 3)^2 = 25. The center is (4, -3) and r = 5, so the area is 25 pi. The circle also passes through the origin, since (0 - 4)^2 + (0 + 3)^2 = 25.
Exercise
A circle has a diameter with endpoints (2, -1) and (8, 7). Write its equation, and decide whether (9, 3) lies inside, on, or outside it.
Show answer
The center is the midpoint, (5, 3). The squared distance to (2, -1) is 9 + 16 = 25, so r^2 = 25 and the equation is (x - 5)^2 + (y - 3)^2 = 25. For (9, 3) the squared distance is 16 + 0 = 16, which is less than 25, so the point is inside.
Exercise
The circle (x - 3)^2 + (y + 4)^2 = 16 is drawn in the plane. Is it tangent to the x-axis, tangent to the y-axis, both, or neither?
Show answer
The center is (3, -4) and r = 4. The distance from the center to the x-axis is |-4| = 4, which equals r, so the circle is tangent to the x-axis. The distance to the y-axis is |3| = 3, which is less than 4, so the circle crosses the y-axis. It is tangent to the x-axis only.