We look at how many times a line meets the circle , which has its centre at the origin and radius .
Both give the same answer, and the second needs no algebra at all.
| Distance | Solutions | The line and the circle |
|---|---|---|
| two | cut at two points | |
| one repeated | are tangent | |
| none | do not meet |
| Line | Equation in | Result | |
|---|---|---|---|
| cuts at | |||
| tangent at | |||
| no intersection |
For the two intersection points have merged into one, which is what tangency means. For no real number squares to a negative value, so there is no real solution.
If you slide a horizontal line upward, these three cases appear in turn: while the line passes through the inside of the circle there are two crossings, as it moves up the two crossings come closer, at the edge of the circle they merge into a single point, and higher still the line leaves the circle. You can also see it as the distance from the centre growing until, past the radius, the crossings disappear.
The number of real solutions found by substitution matches the three cases exactly. The large dots on the graph mark the points of intersection and tangency.