I have a function $$f(x) = e^x$$
And a line $$y = \frac{x}{a}-1$$
The $y$-coordinate of a point on $f(x)$ that is closest to the line mentioned above, is $\frac{1}{e}$.
I thought about two options:
- Finding the tangent to the point given in the graph and then find a function of distance between both lines with $d = \frac{|C_1-C_2|}{\sqrt{A^2+B^2}}$. However, I can't know if the tangent and the line are parallel.
- Finding the distance between $(x_1,e^{x_1})$ and $(x_2, \frac{x_2}{a}-1)$.
In both cases I would find the derivative of this distance function, plug in $x = -1$ where the derivative equals $0$, and find $a$. However, I don't seem to find something good from both ways.
I know the point they're talking about is $(-1, \frac{1}{e})$, but I think I need to find first the purpose function (distance) and then plug in $x=-1$ as I said before.
I know that the line that connects between the point and the line is perpendicular to the line (that's how you find the shortest distance).
Is there something I'm missing? Any help please?