If your function is , then every point will be .

The distance from is given by

.

To find the minimum distance, we have to differentiate.

Let so that .

.

So .

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

.