You want to know the distance between any point on the graph of and the origin. Call any point on the graph .

Then the distance is

You want to minimise this distance, so differentiate, set it equal to , solve for and check using the second derivative test that it is in fact a minimum.