Drawing lines tangent to ellipse?

Hi all, I'm trying to draw a line that is tangent to a circle and an ellipse. I found these instructions, which do work for circles, but I can't get the technique to work with an ellipse.

Thanks!