Line and Circle: Substitute y = Mx + c into x² + y² = r² Explained with Worked Examples

Substituting into gives . The discriminant of this quadratic tells you whether the line crosses, touches or misses the circle.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Line and circle: substitute y = mx + c into x² + y² = r² means

Expanding gives , a quadratic in .

If its discriminant is positive, the line meets the circle at two points. If it is zero, the line is a tangent. If it is negative, the line misses the circle.

This is the standard way to prove a line is a tangent. The substitution gives a quadratic whose discriminant counts the intersections, a double root means a tangent, and the general method is simultaneous equations: linear and quadratic. For a related method, compare Cramers rule.

This page is part of Simultaneous equations in Algebra. Topics that work alongside it: Simultaneous equations: linear and quadratic, Discriminant (number of real roots), Tangent to a circle, Linear inequalities, Cramer’s rule (closed form for simultaneous equations), Cancelling a common factor and Quadratic inequalities.

What is it used for?

Substituting y = mx + c into the circle equation gives a quadratic in x. Its discriminant tells you whether the line crosses, touches or misses the circle.

How to use line and circle: substitute y = mx + c into x² + y² = r²

  1. Substitute the line into the circle equation.
  2. Expand to .
  3. Calculate the discriminant.
  4. Interpret its sign.

Graph

Line y = x + 1 meets the circle x² + y² = 5(1, 2)(−2, −1)-3-2-10123-3-2-10123Line y = x + 1 meets the circle x² + y² = 5xyy = x + 1Graph with x from -3.5 to 3.5 and y from -3.5 to 3.5. Shows the curve y = sqrt(5-x^2); the curve y = -sqrt(5-x^2); the curve y = x + 1; point (1, 2) at (1, 2); point (−2, −1) at (-2, -1).

Substituting gives 2x² + 2x − 4 = 0, so x = 1 or x = −2. Two solutions mean the line cuts the circle twice.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: two intersection points

Show that meets at two points.

Worked example
Answer
Two points of intersection\text{Two points of intersection}
  1. Substitute
  2. Simplify
  3. Discriminant

Example 2: a tangent

Show that is a tangent to .

Worked example
Answer
The line is a tangent\text{The line is a tangent}
  1. Substitute
  2. Discriminant
  3. Conclude
    The discriminant is zero, so the line touches the circle once.

Example 3: a line through the origin

Find where meets .

Worked example
Answer
(2, 4) and (−2, −4)(2,\ 4)\ \text{and}\ (-2,\ -4)
  1. Substitute y = 2x
  2. Solve for x
  3. Find y

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

y = x + 1, r = 5

discriminant 196

Two intersections.

y = 5 (m = 0, c = 5), r = 5

discriminant 0

Tangent.

y = x + 8, r = 5

discriminant −56

Misses the circle.

Quadratic in x

(1 + m²)x² + 2mcx + c² − r² = 0

m = 1: 2x² + 2cx + …

Word problems

Substituting y = mx + c into x² + y² = r² gives (1 + m²)x² + 2mcx + c² − r² = 0. Its discriminant is positive for two intersections, zero for a tangent and negative for none.

Form the quadratic

y = x + 1 and r = 5. Find the coefficient 1 + m².

  1. 1 + 1
  2. Check: ✓2

Discriminant

Find (2mc)² − 4(1 + m²)(c² − r²) for m = 1, c = 1, r = 5.

  1. 4 + 192
  2. Check: positive ✓196

Tangent Higher

Find the discriminant for m = 0, c = 5, r = 5.

  1. 0 − 0
  2. Check: tangent ✓0

Miss Higher

Find the discriminant for m = 1, c = 8, r = 5.

  1. 256 − 312
  2. Check: negative ✓-56

Common mistakes

Forgetting to square the bracket

(mx + c)² = m²x² + c² ✗

m²x² + 2mcx + c² ✓

Expand fully.

Using r instead of r²

c² − r ✗

c² − r² ✓

The circle has r².

Wrong inequality

disc < 0 means two points ✗

disc > 0 means two points ✓

Sign of the discriminant.

Stopping at x

giving only x-values ✗

find y as well ✓

Coordinates.

Exam tips

  1. Substitute y = mx + c.
  2. Expand carefully.
  3. Discriminant > 0, = 0, < 0.
  4. Find y for each x.
  5. Tangent: c² = r²(1 + m²).

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Discriminant for m = 0, c = 3, r = 5 Foundation

64

2. Discriminant for m = 1, c = 0, r = 2 Foundation

32

3. Discriminant for m = 2, c = 1, r = 1 Foundation

16

4. c² for the tangent y = x + c, r = 5 to 2 d.p. Higher

50

5. Coefficient 1 + m² for m = 3 Higher

10

6. Discriminant for m = 0, c = 6, r = 5 Higher

-44

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Discriminant
b² − 4ac.
Tangent
Touches once.
Secant
Crosses twice.
Intersection
Common points.
Radius (r)
Circle size.
Gradient (m)
Slope of the line.

Frequently asked questions

How do I find where a line meets a circle?

Substitute the line into the circle and solve the quadratic.

What does a zero discriminant mean?

The line is a tangent.

What does a negative discriminant mean?

The line misses the circle.

What is the tangent condition?

c² = r²(1 + m²).

Which page covers the circle equation?

equation of a circle.

Which page covers turning points?

turning point of a quadratic.

More in Algebra and the formula sheets.