I have a 3rd-degree polynomial $f(x)$ and a 2D point $p=(x,y)$. I want to find a point $p'$ on the polynomial that has the smallest distance between $p$ and $p'$: $$\min_{p'=(x',y'), p'\in{f}}{\sqrt{(x'-x)^2+(y'-y)^2)}}$$
Is there a formula to find such $p'$?