Calculator Algebra and functions
Line and circle intersection
In one sentence
Finds where y = mx + c meets x² + y² = r².
Last checked Source: uk-dfe-alevel-maths-subject-content Source: Department for Education, GCE AS and A level subject content for mathematics (topics derived; every example and value computed here), uk-dfe-alevel-maths-subject-content www.gov.uk (opens in a new tab)
Key facts
Line and circle intersection
- Formula ref
- (1 + m²)x² + 2mcx + c² − r² = 0
- Topic
- Algebra and functions
Inputs
- m, c: gradient and intercept of the line
- r: radius of the circle centred at the origin
Worked input
- Input m = 1, c = 1, r = 5.
- 2x² + 2x − 24 = 0, so x² + x − 12 = 0.
- x = 3 or x = −4, giving points (−4, −3) and (3, 4).
- Take the horizontal line y = 3 and the circle x² + y² = 25, a line that cuts straight across the circle. Substituting gives x² − 16 = 0, whose discriminant is 64, so the line meets the circle at x = 4 and x = −4. A horizontal line makes the substitution trivial, because the y value is a constant, and the quadratic in x that results has a discriminant whose sign tells you how many intersection points there are. Check: both points (4, 3) and (−4, 3) satisfy 16 + 9 = 25, and they are mirror images in the y-axis.
- Take y = 3x/4 + 25/4 and the circle x² + y² = 25, where the intercept has been chosen so the line just touches the circle. The quadratic in x has discriminant 0, so there is a single point of contact at (−3, 4). Tangency is the borderline case between two intersections and none, and in the algebra it appears as a zero discriminant, so a question that says a line touches a circle is asking you to impose that condition. Check: the distance from the origin to the line is (25/4)/(5/4) = 5, which equals the radius, and that is exactly the condition for a tangent.
- Take y = x + 10 and the circle x² + y² = 25, a line placed far from the circle. The quadratic 2x² + 20x + 75 = 0 has discriminant −200, so the tool reports no intersection. A negative discriminant means the line misses the circle entirely, and comparing the distance from the centre to the line with the radius gives the same verdict by geometry, which is a good second check. Check: the distance from the origin to the line is 10/√2, about 7.07, which is greater than the radius 5, so the line passes outside the circle.
How to use it
- Enter m, c and r.
- A negative discriminant means no intersection; zero means a tangent.
- Use the x values in the line to get y.
Line and circle intersection in your study of A-level maths, set out with its source.
See also Simultaneous linear equations solver, Remainder theorem calculator, Cubic factoriser and Polynomial long division calculator.
Study brief
- In coordinate geometry, solving equations can be achieved by interpreting algebraic solutions graphically and using the intersection points of graphs. To address the intersection of a line and a circle, one must understand the equation of a circle in the form (x – a)2 + (y – b)2 = r2 or the alternative form x2 + y2 + 2fx + 2gy + c = 0. Completing the square allows for finding the centre and radius of a circle from these equations. For any circle, the radius at a given point on its circumference is perpendicular to the tangent to the circle at that point. This perpendicular property is useful when finding the equation of a tangent at a specified point. Additionally, the perpendicular from the centre to a chord bisects the chord. One can also use the fact that the angle in a semicircle is a right angle. For straight line models, such as distance against time for constant speed, understanding gradients is essential. Two lines are parallel if m′ = m and perpendicular if m′ = −1/m. These geometric relationships assist in determining how lines interact with circular paths.
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.
More from Algebra and functions
-
Completing the square calculator
Writes ax² + bx + c as a(x + p)² + q and gives the turning point.
-
Cubic factoriser
Tests integer roots with the factor theorem and factorises a cubic.
-
Discriminant calculator
Evaluates b² − 4ac and classifies the quadratic as having two real roots, one repeated root or none.
-
Graph transformation tracker
Applies a stretch, translation and reflection to a point of a curve.
-
Inverse of a linear function
Finds f⁻¹(x) for f(x) = ax + b.
-
Modulus equation solver
Solves |ax + b| = c for x.
-
Partial fractions calculator
Splits (px + q)/((x − a)(x − b)) into A/(x − a) + B/(x − b).
-
Polynomial long division calculator
Divides a polynomial by a linear factor and returns quotient and remainder.