You can put this solution on YOUR website! We want to minimize the distance between the points (x, x^2) and (3,1). Using the distance formula, this distance z is equal to
We wish to minimize the value of z. By taking the derivative of z and setting it to zero, we obtain
This occurs when
and the denominator is nonzero.
I had to use a calculator to determine that the only real root is x = 1.289623 (meaning that a critical point is located there, it can be checked that it minimizes the distance). Therefore the closest point on the graph y = x^2 to (3,1) is (1.289623, 1.663127)