In general, the distance between two points is
<-- this is a point on the curve
Then we have the distance between a point on the curve and the point :
Our goal is to find the minimum value of this, so we find the derivative and set it equal to 0 and solve for x.
Can you take it from here?