Specifically, the question is as follows:
Let $f: \mathbb{R} \rightarrow \mathbb{R}^n$ be a differentiable mapping (a curve) with $f^\prime(t) \ne 0$ for all $t \in \mathbb{R}$. Let $p$ be a fixed point not on the image $f$. If $q = f(t_0)$ is the point of the curve closest to $p$, that is $| p - q| \le |p - f(t)|$ for all $t \in \mathbb{R}$, show that the vector $(p - q)$ is orthogonal to the curve at $q$. Here the orthogonality is with respect to the usual Euclidean inner product.
I've also been given the following hint:
Differentiate the function $\varphi(t) = | p - f(t)|^2$.
I understand that $p$ and $q$ are points in $\mathbb{R}^n$ and that $(p-q)$ is the vector that is between $p$ and $q$. I also understand that to show $(p - q)$ is orthogonal to the curve at $q$, I need to show that $\langle(p-q),f'(q)\rangle=0$, as orthogonality to the curve at a point is given by a $0$ inner product with the tangent to the curve at the point. My confusion lies in understanding what $\varphi(t)$ and it's derivative represent, as well as how to use them.
Correct me if I'm wrong, but it seems like $\varphi(t)$ is a parabaloid (or some step function eqivalent if $f$ is discontinuous) where the vertex is the minimum value, $|p-q|$ (i.e. when $t=t_0$). So what information do I acquire from taking the derivative that I can utilize to solve this problem?
In a more direct sense, I know that I want to show that $\langle(p-q),f'(q)\rangle=0$, so, equivalently, I want to show that $\sum_{i=1}^n(p_i-q_i)q_i=0$. Expanding and differentiating, I have that $\varphi'(t)=2\sum_{i=1}^nf'(t)_i(f(t)_i-p_i)$. But I don't see what to do from here.
I'd like assistance in interpreting this problem (ideally geometrically and algebraically) so that I can develop a solution. This is homework, so I request guidance only.
$\varphi(t)$ is the square if the distance from the point to the curve $f$. You know that $q=f(t_0)$ minimizes the distance to $p$. Then $\varphi'(t_0)=0$. On the other hand $$\varphi'(t)=2\langle \alpha(t)-p,\alpha'(t)\rangle .$$ So hence $$\varphi '(t_0)= 2\langle \alpha(t_0)-p ,\alpha'(t_0)\rangle=2\langle q-p,\alpha'(t_0)\rangle =0, $$
showing the desired result.