Equation of a Circle
In this lesson
- Read the center and the radius from the equation of a circle, and write the equation from given data.
- Complete the square to bring an equation to the form \( (x - a)^2 + (y - b)^2 = r^2 \).
- Decide whether a point lies on, inside, or outside a circle.
- Find where a line meets a circle, and use the fact that a tangent is perpendicular to the radius.
1. The equation of a circle
A circle with center \( (a, b) \) and radius \( r \) consists of all points \( (x, y) \) at distance \( r \) from the center. By the Pythagorean theorem in the right triangle of Figure 1 (this is the distance formula), every such point satisfies
\[ (x - a)^2 + (y - b)^2 = r^2. \]
Reading the equation
In \( (x - a)^2 + (y - b)^2 = r^2 \), the center is \( (a, b) \) and the radius is \( r \).
Watch the signs: \( (x + 3)^2 + (y - 2)^2 = 16 \) means \( (x - (-3))^2 + (y - 2)^2 = 4^2 \). The center is \( (-3, 2) \), not \( (3, -2) \), and the radius is 4, not 16.
Examples: writing the equation
Center and a point. The center is \( (1, -2) \), and the circle passes through \( (4, 2) \). The radius is the distance between these points: \( r = \sqrt{3^2 + 4^2} = 5 \). Equation: \( (x - 1)^2 + (y + 2)^2 = 25 \).
Ends of a diameter. A diameter has endpoints \( (-3, 1) \) and \( (5, 7) \). The center is its midpoint, \( (1, 4) \), and the radius is half its length: \( r = \frac{1}{2}\sqrt{8^2 + 6^2} = 5 \). Equation: \( (x - 1)^2 + (y - 4)^2 = 25 \).
A shift. The circle \( (x + 3)^2 + (y - 2)^2 = 16 \) is moved 3 units right and 2 units down. Only the center moves: from \( (-3, 2) \) to \( (0, 0) \). The new equation is \( x^2 + y^2 = 16 \).
Practice
A circle is given by the equation \( (x + 3)^2 + y^2 = 9 \). Is the segment \( MH \), where \( M(-1, \sqrt{5}) \) and \( H(-5, -\sqrt{5}) \), a diameter of this circle?
The center of the circle is \( (-3, 0) \), and \( r = 3 \).
The midpoint of \( MH \) is \( \left( \frac{-1 - 5}{2}, \frac{\sqrt{5} - \sqrt{5}}{2} \right) = (-3, 0) \), the center. Also \( MH = \sqrt{4^2 + (2\sqrt{5})^2} = \sqrt{36} = 6 = 2r \).
So the ends of \( MH \) lie on the circle and \( MH \) passes through the center: \( MH \) is a diameter.
2. Completing the square
How it works
An equation like \( x^2 + y^2 + 4x - 10y + 20 = 0 \) also describes a circle, but its center and radius are hidden. To find them, complete the square in \( x \) and in \( y \).
Step 1. Group the \( x \)-terms and the \( y \)-terms, and move the number to the right: \( (x^2 + 4x) + (y^2 - 10y) = -20 \).
Step 2. Add the square of half of each coefficient to both sides: \( \left(\frac{4}{2}\right)^2 = 4 \) and \( \left(\frac{-10}{2}\right)^2 = 25 \):
\[ (x^2 + 4x + 4) + (y^2 - 10y + 25) = 9. \]
Step 3. Fold each group into a square: \( (x + 2)^2 + (y - 5)^2 = 9 \). The center is \( (-2, 5) \), and the radius is 3.
Two traps
If \( x^2 \) and \( y^2 \) have a coefficient, divide the whole equation by it first. \( 2x^2 + 2y^2 + 8x - 4y = 10 \) becomes \( x^2 + y^2 + 4x - 2y = 5 \), and then \( (x + 2)^2 + (y - 1)^2 = 10 \): the center is \( (-2, 1) \), and the radius is \( \sqrt{10} \).
If the right side comes out negative, the equation describes no points at all, so it is not a circle.
Example: area from an equation
Find the area of the circle \( x^2 + y^2 - 10y = 0 \).
\( x^2 + (y^2 - 10y + 25) = 25 \), that is, \( x^2 + (y - 5)^2 = 25 \). So \( r = 5 \), the area is \( \pi r^2 = 25\pi \), and the circumference is \( 2\pi r = 10\pi \).
Practice
Find the center and the radius of the circle \( x^2 + y^2 - 6x + 8y = 11 \).
Add \( \left(\frac{-6}{2}\right)^2 = 9 \) and \( \left(\frac{8}{2}\right)^2 = 16 \) to both sides: \( (x - 3)^2 + (y + 4)^2 = 11 + 9 + 16 = 36 \).
3. On, inside, or outside?
Compare with r²
For a point \( (x_0, y_0) \), compute \( (x_0 - a)^2 + (y_0 - b)^2 \), the square of its distance to the center, and compare it with \( r^2 \):
equal: the point is on the circle;
less: the point is inside;
greater: the point is outside.
Example
For the circle \( (x - 1)^2 + (y + 2)^2 = 25 \):
\( (4, 2) \): \( 3^2 + 4^2 = 25 \), so the point is on the circle;
\( (2, 1) \): \( 1^2 + 3^2 = 10 < 25 \), so it is inside;
\( (7, 0) \): \( 6^2 + 2^2 = 40 > 25 \), so it is outside.
Practice
A circle is given by the equation \( (x + 1)^2 + (y - 2)^2 = 40 \).
1) Find the coordinates of its center and its radius.
2) Does this circle intersect the \( x \)-axis at the point \( (5, 0) \)?
1) Here \( a = -1 \), \( b = 2 \), \( r^2 = 40 \): the center is \( (-1, 2) \) and \( r = \sqrt{40} = 2\sqrt{10} \).
2) Substitute \( x = 5 \), \( y = 0 \): \( (5 + 1)^2 + (0 - 2)^2 = 36 + 4 = 40 \). The point \( (5, 0) \) lies on the circle and on the \( x \)-axis, so yes.
4. A circle and a line
Common points
To find the common points of a circle and a line, substitute the equation of the line into the equation of the circle. You get a quadratic equation: two solutions mean two common points, one solution means the line is tangent, and no solutions mean no common points.
Horizontal and vertical lines
The line \( y = k \) is at distance \( |k - b| \) from the center \( (a, b) \). As in the lesson Lines and Circles, it is tangent to the circle when this distance equals \( r \): \( k = b + r \) or \( k = b - r \). For a vertical line \( x = k \), use \( |k - a| \) in the same way.
Tangent at a point
A tangent is perpendicular to the radius drawn to the point of tangency. If the radius has slope \( m \), the tangent has slope \( -\frac{1}{m} \).
Practice
Find the points where the circle \( x^2 + y^2 = 25 \) and the line \( y = x + 1 \) intersect.
Substitute \( y = x + 1 \): \( x^2 + (x + 1)^2 = 25 \), so \( 2x^2 + 2x - 24 = 0 \), that is, \( x^2 + x - 12 = 0 \). Then \( x = 3 \) or \( x = -4 \), and \( y = x + 1 \) gives the points \( (3, 4) \) and \( (-4, -3) \).
For what values of \( k \) does the line \( y = k \) have exactly one common point with the circle \( (x - 2)^2 + (y + 1)^2 = 9 \)?
The center is \( (2, -1) \), and \( r = 3 \). The line \( y = k \) is tangent when \( |k + 1| = 3 \): \( k = -1 + 3 = 2 \) or \( k = -1 - 3 = -4 \).
The point \( (4, 2) \) lies on the circle \( (x - 1)^2 + (y + 2)^2 = 25 \). What is the slope of the line tangent to the circle at this point?
The radius goes from the center \( (1, -2) \) to \( (4, 2) \); its slope is \( \frac{2 - (-2)}{4 - 1} = \frac{4}{3} \). The tangent is perpendicular to the radius, so its slope is \( -\frac{3}{4} \).
On Your Own
In the figure, the circle is tangent to both coordinate axes, and \( OO_1 = 2\sqrt{2} \). Write the equation of this circle.
In the figure, the circle is tangent to the \( y \)-axis at point \( K \) and to ray \( OE \) at point \( P \); \( \angle KOP = 60^\circ \), \( KP = 2\sqrt{3} \). Write the equation of this circle.
In the figure, the circle is tangent to the \( x \)-axis at point \( F \) and to ray \( OM \) at point \( E \); \( \angle FO_1E = 120^\circ \), \( OO_1 = 2\sqrt{3} \). Write the equation of this circle.
In a rectangular coordinate system, triangle \( ABC \) is given by its vertices \( A(1, 3) \), \( B(1, -3) \), \( C(-3, 0) \). Write the equation of the circle circumscribed about this triangle.
In a rectangular coordinate system, triangle \( ABC \) is given by its vertices \( A(-4, -1) \), \( B(0, 2) \), \( C(4, -1) \). Write the equation of the circle inscribed in this triangle.