Suppose $B=\{ (x,y,z) \in \mathbb R^3 : x^2 + y^2 + z^2 \le 1\}$.
Consider a point $v \notin B$. How do I prove that there exist a unique point $v_0 \in B$ that is closest to $v$. Also, how do I obtain a formula for this point $v_0$?
I've proved earlier that $B$ is a convex set.
I've considered orthogonal projection onto subspace and alike, but $B$ is not a subspace so my idea fails. Intuitively, such a point $v_0$ must exist, but how do I make the idea rigorous ?
The point $v_0$ is the intersection of the surface of the sphere and the ray that comes from the origin and passes through $v$.
Proof: Consider $B'$ the sphere centered at $v$ with radius $r=d(v,v_0)$. Clearly $v_0\in B\cap B'$. Let $w$ be any other point in space $\Bbb R^3$. If $w$ is in the segment $\overline{0v}$, then $w$ is in $\overline{0v_0}$ and hence not in $B'$, or is in $\overline{v_0v}$, and hence not in $B$. If not, triangle inequality gives $d(0,w)+d(w,v)>d(0,v)=r+1$, so $d(0,w)\le1$ and $d(w,v)\le r$ can not hold simultaneously.