I have been working this problem almost 3 days, I would appreciate any help or idea:
Let (M,h) be a Riemannian manifold. For every $ p \in M $ and $ (e_1 , ... , e_n)$ basis of $T_pM$. There exists an orthonormal frame in an neighborhood of p $(E_1, ... , E_n)$ , with $E_i (p) = e_i$ and $\nabla E_i (p) = 0 $
Hint: Fix an orthonormal frame $(\overline E_i)$ near p with $\overline E_i (p) = e_i$ and define $E_i = \alpha_i^j\overline E_i $ with $(\alpha_i^j(x))_{ij} \in SO(n)$ and $\alpha_i^j(p)= \delta_i^j$.
What I have got:
The construction of an orthonormal frame $(\overline E_i)$ near p with $\overline E_i (p) = e_i$. Follows from Gram-Schmidt process with no problem.
Defining $E_i= \sum_j \alpha_i^j\overline E_i$ the frame is still orthonormal, that follows from a direct calculation and the fact that $(\alpha_i^j(x))_{ij} \in SO(n)$ and $\overline E_i (p) = e_i$ because $\alpha_i^j(p)= \delta_i^j$.
Since $h(E_i,E_j)= \delta_i^j$ then: $h(\nabla_X E_i, E_j) + h(E_i,\nabla_X E_j) = 0 $.
So all I have to see is that:
$h(\nabla_X E_i, E_j) = h(E_i,\nabla_X E_j) $
Writing the above equation with the koszul formula and doing the calculations, Using the antisymmetry of Lie bracket and the fact that the inner product is commutative:
$h(\nabla_X E_i, E_j) - h(E_i,\nabla_X E_j) = -h([E_i,E_j],X) $
So all at have to see is that in p: $[E_i,E_j](p) = 0$
That the Lie bracket its 0 at p for the basis constructed in this way! I have been trying to justify this from lie bracket proprieties with no luck
Choose a coordinate system $\varphi = (x^1, \dots, x^n)$ around $p$ with $p$ corresponding to $(0,\dots,0)$ and define the Christoffel symbols of the frame $\overline{E}_j$ with respect to the frame $\frac{\partial}{\partial x^i}$ by
$$ \nabla_i \overline{E}_j = \nabla_{\frac{\partial}{\partial x^i}} \overline{E}_j = \Gamma_{ij}^k \overline{E}_k $$
(summation convention is in place). We want to define a new frame $E_i = \alpha_i^j \overline{E}_j$ so that the following conditions hold:
Let us write explicitly the conditions on the matrix $\alpha = (\alpha_i^j)_{i,j=1}^n$ must satisfy for each of the following conditions to hold:
Note that the matrix $\Gamma_i := (\Gamma_{ij}^k)_{j,k=1}^n$ is anti-symmetric (since our connection is metric).
If we set
$$ \alpha(\varphi^{-1}(x^1, \dots, x^n)) := e^{-x^i \Gamma_i(p)} $$
then since the exponential of an anti-symmetric matrix is orthogonal, we have $(1)$ and by direct calculation we also have $(2)$ and $(3)$.