The line lx+my+n=0 will be a tangent to the circle x2+y2=a2 iff
Line y = mx + c is tangent, if c=±a√1+m2
Now lx+my+n=0 or y=−1mx−nm is tangent, if
−nm=±a√1+⟮lm⟯2 or n2=a2(m2+l2).