A line and a circle · Mathematics Class 11–12 | StemPy Lab
Course 21.1·Lesson 2 of 3
A line and a circle
Put a point or a line next to a circle and ask where it is. A point is inside, on or outside according to the sign of S1. A line cuts, touches or misses the circle according to its distance d
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
tell whether a point is inside, on or outside a circle;
tell whether a line cuts, touches or misses a circle, and find the length of a chord;
write the tangent and the normal at a point of a circle;
write a tangent with a given slope, and the line that is a tangent for a given condition.
Is the ball in the ring?
A hoop lies flat on the floor and a ball rolls near it. Is the ball inside the hoop, on it, or outside? You only need to compare one distance with one radius. We use this idea again and again in this lesson.
For a circle S:x2+y2+2gx+2fy+c=0 and a point P(x1,y1), write
S1=x12+y12+2gx1+2fy1+c.
Then S1=CP2−r2, because CP2=(x1+g)2+(y1+f)2. So P is outside when S1>0, on the circle when S1=0, and inside when S1<0. The number S1 is called the power of the pointP. It is also the square of the length of the tangent from P, which you meet in the next lesson.
Take the circle x2+y2−4x+6y−12=0. It has centre (2,−3) and radius 5. The point (5,1) gives 25+1−20+6−12=0, so it is on the circle. The point (6,2) gives 36+4−24+12−12=16, so it is outside. The origin gives −12, so it is inside.
A line and a circle
Let the line be ax+by+c′=0 and let the circle have centre C and radius r. Find the distance from C to the line. You know the formula from the chapter on straight lines:
d=a2+b2∣ah+bk+c′∣.
Then
d<r: the line cuts the circle in two points, and the part inside is a chord;
d=r: the line touches the circle at one point, and it is a tangent;
d>r: the line misses the circle.
Three small graphs side by side, each showing the circle x squared plus y squared equals 25. In the left graph a line cuts the circle at two points, and the chord between them is drawn in red with the perpendicular from the centre labelled d, smaller than r. In the middle graph a line touches the circle at one point and d equals r. In the right graph a line passes outside the circle and d is larger than r.
The foot of the perpendicular from the centre to a chord is the midpoint of the chord. The radius to one end of the chord, half the chord and the perpendicular d form a right triangle. So
chord length=2r2−d2.
The intercepts on the axes
Put y=0 into x2+y2+2gx+2fy+c=0. You get x2+2gx+c=0, with roots −g±g2−c. The distance between the two points on the x-axis is the intercept on the axis:
intercept on the x-axis=2g2−c
intercept on the y-axis=2f2−c
For x2+y2−10x−6y+9=0 we have g=−5, f=−3 and c=9. The x-intercept is 225−9=8. The y-intercept is 29−9=0, so the circle touches the y-axis.
The tangent and the normal at a point
A tangent touches the circle at one point. The normal at that point is the line perpendicular to the tangent, and it passes through the centre. The radius to the point of contact is perpendicular to the tangent. You used this in the Class 10 chapter on tangents.
For the circle S=0 and a point P(x1,y1) on it, the tangent at P is
T=0,that isxx1+yy1+g(x+x1)+f(y+y1)+c=0.
The rule is simple: in x2+y2+2gx+2fy+c replace x2 by xx1, y2 by yy1, 2x by x+x1 and 2y by y+y1. For the circle x2+y2=r2 the tangent at (x1,y1) is xx1+yy1=r2.
Example. The tangent to x2+y2=25 at (3,4) is 3x+4y=25. The normal passes through the origin and (3,4), so it is 4x−3y=0.
Example. For x2+y2−4x+6y−12=0 at (5,1) we have g=−2 and f=3. The rule gives 5x+y−2(x+5)+3(y+1)−12=0, which is 3x+4y−19=0. The centre (2,−3) is at distance 5∣6−12−19∣=5 from this line, which equals the radius. The normal from (2,−3) to (5,1) has slope 34, and the tangent has slope −43. Their product is −1.
The circle (x - 2) squared plus (y + 3) squared equals 25 with centre (2, -3). The point P (5, 1) is marked on the circle. A red line through P is the tangent, 3x + 4y = 19. A green line through the centre and P is the normal. A small square at P marks the right angle between them.
A tangent with a given slope
Let a line y=mx+c touch the circle x2+y2=r2. Then d=r:
1+m2∣c∣=r⟹c=±r1+m2.
So the tangents with slope m are y=mx±r1+m2, and the line y=mx+c is a tangent exactly when c2=r2(1+m2). For a circle with centre (h,k), move the origin: y−k=m(x−h)±r1+m2.
Example. For which k does y=x+k touch x2+y2=8? Here m=1, so k2=8×2=16 and k=±4.
The chord with a given midpoint
The chord of S=0 whose midpoint is (x1,y1) has the equation T=S1. To see why, note that the chord is perpendicular to the line from the centre to its midpoint. For x2+y2=25 and midpoint (1,2), we have T=x+2y−25 and S1=1+4−25=−20. So T=S1 gives x+2y−25=−20, which is x+2y=5. Its distance from the centre is 55=5, so the chord has length 225−5=45.
Practise with new numbers
Try it in Python
The program takes a circle and a line, finds their distance, and says whether the line cuts, touches or misses. When it cuts, it finds the two ends of the chord.
Common mistakes
Using T=0 for a point that is not on the circle. For an outside point, T=0 is the chord of contact, not a tangent.
Dropping the absolute value in the distance. A distance is never negative.
Giving half the chord. The chord is 2r2−d2.
Mixing up the tangent and the normal. The normal passes through the centre. The tangent is perpendicular to it.
Remember these
S1>0 outside, S1=0 on the circle, S1<0 inside.
A line at distance d from the centre cuts, touches or misses as d<r, d=r or d>r.
The chord length is 2r2−d2, and the intercept on the x-axis is 2g2−c.
The tangent at (x1,y1) is T=0; the normal passes through the centre.
y=mx+c touches x2+y2=r2 when c2=r2(1+m2).
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Is the point (1,5) inside, on or outside the circle x2+y2=25?
The line 3x+4y=15 cuts the circle x2+y2=25. Find the length of the chord.
Find the tangent to x2+y2=20 at (2,4).
For which values of k is y=3x+k a tangent to x2+y2=10?
The circle x2+y2−6x−8y=0 passes through the origin. Find the normal to it at the origin.
References
NCERT, Mathematics for Class XI, Chapter 10 (Conic Sections), the section on the circle.
OpenStax, Precalculus 2e, Chapter 12 (Analytic Geometry) and Chapter 2, the section on the distance and midpoint formulas.
Enroll free in The Circle: Equations, Lines and Tangents
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.