What I wanted to bring across is that you do not want to do that: the gradient (the first derivative) is a
vector. It is only in the second step (the divergence of a vector) that the summing pops up. That is why I saidI believe you. And that much isn't even necessary !
Of course that is okay -- but you miss out on a bit of satisfaction of cracking the exercise, learning, and perhaps avoiding future errors ...
- - - - -
For later reference and because I seem to enjoy this kind of exercise (is it that obvious

) and somewhat against the PF rules (well,
Barbossa : First, your return to shore was not part of our negotiations nor our agreement so I must do nothing. And secondly, you must be a pirate for the pirate's code to apply and you're not. And thirdly, the code is more what you'd call "guidelines" than actual rules. Welcome aboard the Black Pearl, Miss Turner .)
Right. Or$$r^2=\sum x_i^2\Rightarrow 2r\,dr = 2\sum x_i\,dx_i
\Rightarrow {\partial r\over \partial x_i} = {x_i\over r}$$Chain rule:
$${\partial u(\vec x)\over \partial x_i}={\partial v(r)\over \partial x_i}
= v' \,{\partial r\over \partial x_i}= v'\,{x_i\over r}
$$as you had. Chain rule again:$$
{\partial^2\, u(\vec x)\over \partial x_i^2}={\partial \over \partial x_i}\left ( v'\,{x_i\over r}\right )=
{\partial v'\over \partial x_i}\, {x_i\over r} + v'\,{\partial x_i\over \partial x_i}\,{1\over r} +
v'\, {x_i}\, {\partial \over \partial x_i}\left({1\over r}\right )
$$Three terms. First one:$$
{\partial v'\over \partial x_i}\, {x_i\over r} = {\partial v'\over \partial r} \, {\partial r \over \partial x_i}\, {x_i\over r}= v'' \, \left ( {x_i^2\over r^2} \right )
$$Second one: $$
v'\,{\partial x_i\over \partial x_i}\,{1\over r} = v'\,{1\over r}
$$ Third:$$
v'\, {x_i}\, {\partial \over \partial x_i}\left({1\over r}\right ) = v'\, {x_i}\, \left ( -1\over r^2 \right ) {\partial r \over \partial x_i} = v'\, {x_i}\, \left ( -1\over r^2 \right ) \, {x_i\over r} = - v'\, {x_i^2 \over r^3}
$$Collect the three again: $$
{\partial^2\, u(\vec x)\over \partial x_i^2}=
v'' \, \left ( {x_i^2\over r^2} \right ) +
v'\,{1\over r} -
v'\, {x_i^2 \over r^3}
$$ and now we do some summing up to write down ##\Delta u## (see post #10) : $$
\begin{align*}
\Delta u(\vec x) = \sum {\partial^2 u\over \partial x_i^2} &=
\sum v'' \, \left ( {x_i^2\over r^2} \right ) +
\sum v'\,{1\over r} -
\sum v'\, {x_i^2 \over r^3} \\ \mathstrut \\ &=
v'' + v'\,{n\over r} - v'\,{1\over r} \\ \mathstrut \\ &= v'' + {n-1\over r}\,v'
\end{align*}
$$as dangled in front of us in the exercise.
Now it's me looking cross-eyed from all the cut&paste ##\TeX##. It was fun, though.
I promise to look at your post #11 when I recover tomorrow, and point out where things derail (if at all

).
Although it seems your only issue was with the cross terms, and I hope I have shown that they don't pop up at all.
##\ ##