i'm having trouble solving this problem?

Find the point on the graph of the function that is closest to the given point

function: f(x)=x^2

point: (2, 1/2)

i know that you need to write the distance formula for this, but am unsure where to plug in the secondary equation