If we define square of the distance from a fixed point $p_0 \in R^3$ by the differentiable function $f(p) = \mid p-p_0 \mid^2, p \in S$, I read that the need for taking the square comes from the fact that the distance $\mid p-p_0 \mid$ is not differentiable at $p=p_0$. How does squaring the distance make a difference?
Thanks.
It exactly like the absolute value function from $\mathbb R$ into itself. It is not differentiable at $0$, but its square (which is $x\mapsto x^2$) is.