So I wanted a quick confirmation if my thinking is correct. The particular problem I'm working on is a $2$D Bezier Curve, with at most $4$ control points and at a minimum of $2$ control points. The more general question (also I'm going to use the distance squared because it is cleaner to look at);
If given an arbitrary coordinate, $(x,y)$, and $2$ arbitrary functions, $F_x(t)$ and $F_y(t)$, with the distance squared being
$D(t)=(x-F_x(t))^2+(y-F_y(t))^2$
The first order derivative of that equation with respect to $t$ being
$D'(t)=2*(x-F_x(t))(-F_x'(t))+2*(y-Fy(t))(-Fy'(t))$
The second order derivative being; $D''(t)=2*(x-F_x(t))(-F''_x(t))+2*F'_x(t)^2+2*(y-F_y(t))(-F_y''(t))+2*F'_y(t)^2$
I should be able to use Newton's method of
$t_{n+1}=t_n-D'(t_n)/D''(t_n)$
to approximate the t with the minimum distance to $F_x(t)$ and $F_y(t)$, correct?
(Clamping on t as well from the range of $t\in\{0,1\}$)