I need to find the distance between the ellipse $\epsilon = \{(x,y):\tfrac{x^2}{4}+\tfrac{y^2}{9}=1\}$ and the line $D = \left\{(x,y):5x-3y=17\right\}$ .
I know that I have to find the nearest tangent line which is parallel to $D$, and like that, I can find the distance, which is $\frac{\sqrt{181}-17}{\sqrt{34}}$.
The problem is that I can't prove why the tangent line must be used. Why the closest point must be on it?





Two lines in the plane cross if they are not parallel. Given two points on those lines, we can reduce the distance between them by moving closer to the point where the lines cross.
In your situation, if the tangent line to a point on the ellipse is not parallel, then moving the point along the ellipse changes the distance to the line. So, at the minimum distance, the tangent line must be parallel to the given line.