Academy
Formulas/maths/Ellipse/Condition for a Line to be Tangent

Condition for a Line to be Tangent

Line y = mx + c is tangent to x²/a² + y²/b² = 1 iff c² = a²m² + b². Unlike a parabola, two values of c (opposite signs) work for each slope m.
Derivation

From the tangent-slope derivation: y=mx+cy = mx + c is tangent to x2/a2+y2/b2=1x^2/a^2 + y^2/b^2 = 1 iff:

c2=a2m2+b2c^2 = a^2m^2 + b^2

Comparison across conics:

ConicTangent condition
Circle x2+y2=a2x^2+y^2=a^2c2=a2(1+m2)c^2 = a^2(1+m^2)
Parabola y2=4axy^2=4axc=a/mc = a/m (one value)
Ellipse x2/a2+y2/b2=1x^2/a^2+y^2/b^2=1c2=a2m2+b2c^2 = a^2m^2+b^2 (two values)
Hyperbola x2/a2y2/b2=1x^2/a^2-y^2/b^2=1c2=a2m2b2c^2 = a^2m^2-b^2 (two values, requires m>b/am > b/a)

The parabola is the only conic with a unique tangent per slope (its one "open end" allows only one tangent direction per slope).

Test: Is y=x+3y = x + 3 tangent to x2/4+y2/3=1x^2/4 + y^2/3 = 1?

Here m=1m = 1, a2=4a^2 = 4, b2=3b^2 = 3, c=3c = 3.

Check: c2=9c^2 = 9, a2m2+b2=4+3=79a^2m^2 + b^2 = 4 + 3 = 7 \neq 9. Not a tangent.

Is y=x+7y = x + \sqrt{7} tangent? c2=7=a2m2+b2=7c^2 = 7 = a^2m^2+b^2 = 7. Yes.