Suppose $f\in C^3(M)$ and $\nabla f$ denotes the gradient of $f$ w.r.t Riemannian metric $g$. Then what is the equivalent expression of the following? $$\nabla \langle \nabla f, \nabla f\rangle=?$$
Background problem: By definition $\mathrm{Hess} f(X, Y) = \langle \nabla _X(\nabla f), Y\rangle$; $\triangle f= \mathrm{tr}(\mathrm{Hess} f)$. Now I want to calculate $\triangle|\nabla f|^2$. By above definitions we have: $$\triangle|\nabla f|^2=\mathrm{tr}(\mathrm{Hess} \langle\nabla f,\nabla f\rangle)=\langle \nabla _{X_i}(\nabla \langle \nabla f, \nabla f\rangle), X_i\rangle.$$
But I saw somewhere that $$\triangle|\nabla f|^2=\sum_iX_iX_i\langle\nabla f,\nabla f\rangle.$$
Why these two (my calculation and last one) are equal?