Find the condition that the line $lx+my+n=0$ is a tangent to the circle $x^2+y^2=r^2$.
My Attempt: \begin{align}lx+my+n&=0\\ y&=\dfrac {-n-lx}{m}\end{align}
Now, \begin{align}x^2+y^2&=r^2\\ x^2+(\dfrac {-n-lx}{m})^2&=r^2\\ x^2+\dfrac {n^2+2nlx+l^2x^2}{m^2} &=r^2\\ x^2(m^2+l^2) + 2nlx +n^2-m^2r^2&=0\end{align}
How do I continue further?
The line is tangent to the circle, if its distance to the center $(0,0) $ equals the radius $r :$
$$\frac{|l.0+m.0+n|}{\sqrt {l^2+m^2}}=r $$
or $$n^2=r^2 (l^2+m^2) $$