Theorem
The condition for a straight line y = mx + c to be a tangent to the ellipse is c2 = a2m2 + b2.

Proof:

Given, y = mx + c ----- (i) and
----- (ii)
Substituting (i) in (ii), we get
(a2m2 + b2) x2 + 2a2 mcx + a2 (c2 – b2) = 0 ...... (iii)
The line will touch the ellipse iff the two points are coincident.
⇔ discriminant of (iii) is zero.
⇔ 4a4 c2m2 – 4(a2m2 + b2) a2 (c2 – b2) = 0
⇔ c2 = a2m2 + b2
⇔ c = ±