Consider the function $$f(x):=\frac{x-x_0}{\Vert x-x_0 \Vert^2} + \frac{x-x_1}{\Vert x-x_1 \Vert^2}$$
for two fixed $x_0,x_1 \in \mathbb R^2$ and $x \in \mathbb R^2$ as well.
Does anybody know what the Hessian of the function
$$g(x):=\Vert f(x) \Vert^2$$
is? It is such a difficult composition of functions that I find it very hard to compute.
The bounty is for a person who fully derives the Hessian of $f. $ Please let me know if you have any questions.
If you choose ${\bf x}_0$ and ${\bf x}_1$ at $(\pm a,0)$ of the $(x,y)$-plane you have $$f(x,y)={(x+a,y)\over(x+a)^2+y^2}+{(x-a,y)\over(x-a)^2+y^2}\ .$$ In the following Mathematica notebook ${\tt gxx}$, ${\tt gxy}$, ${\tt gyy}$ are the entries of the Hessian matrix $$\left[\matrix{g_{xx}&g_{xy}\cr g_{xy}&g_{yy}\cr}\right]\ .$$ Here is the result: