The distance from is given by
To find the minimum distance, we have to differentiate.
Let so that .
To find the minimum, this has to be equal to 0.
Assuming this is a minimum and not a maximum or stationary inflexion point, then the point on the graph which is minimum distance from is