Let $M$ a riemannian manifold. Let $X\in\chi(M)$ and $f$ a function $C^{\infty}$ in $M$. Define the divergence of $X$ as a function $div X:M\to\mathbb{R}$ given by $\operatorname{div}X(p)=\{\mbox{trace of the linear application }\} Y(p)\to\triangledown_{Y}X(p)$, $p\in M$, show that $$\hbox{div}(X)=\sum_{j=1}^{n}\langle\nabla_{E_j}X,E_j\rangle$$
Where $X=\sum_{i}{f_{i}E_{i}}$ and $E_{i}$ is geodesic frame ($\nabla_{E_{i}}{E_{j}}=0$).
Well, if $X=\sum_{i}{E_{i}}$ and $Y=\sum_{j}{f_{j}E_{j}}$, reemplace in the equation $\nabla_{X}{Y}=\sum_{ij}{x_{i}y_{j}\nabla_{X_{i}}X_{j}}+\sum_{ij}{x_{i}X_{i}(y_{j})X_{j}}$, but I don't see the relation, (maybe the relation is more simple) any hint is appreciated. Thanks!