I'm currently calculating a bit in local coordinates and tensor calculus notation, which I'm new to.
I am given the vector field $X$ and the associated one form $\phi$ on a riemannian manifold with Levi-Civita connection. I want to show that $\nabla X$ is a symmetric if and only if $d\phi=0$.
My idea was to write the statements in local coordinates and simply transform the equations until i have a sequence of equivalece transformations. I got $$ (\nabla_iX)^j=\partial_i X^j +\Gamma^j_{ik}X^k$$ and from $d\phi=0$ i can extract the following by using that the connection is metric. \begin{align} \partial_i X_l=\partial_jX_i&=\partial_j(g_{ik}X^k)\\ &=(\partial_j g_{ik})X^k+g_{ik}\partial_j X^k \\ &=(\Gamma ^l_{ji}g_{lk}+\Gamma^l_{jk}g_{il})X^k+g_{jk}\partial_j X^k \end{align} I tried to play around with these term, but it seems like I'm missing something crucial.
Using the derivative of the metric only complicates the matters. All we need is its symmetry which leads to the symmetry of the Christoffel symbols in their two lower indices.
\begin{align} d\phi&=\partial_iX_j\,dx^i\wedge dx^j=\Big(\partial_iX_j-\partial_jX_i\Big)\,dx^i\otimes dx^j\,. \end{align} This vanishes identically if and only if all terms $$ \partial_iX_j-\partial_jX_i $$ vanish. These terms are equal to $\nabla_iX_j-\nabla_jX_i$ because $$ \nabla_iX_j=\partial_iX_j-\Gamma^k_{ij}X_k $$ and $\Gamma^k_{ij}$ is symmetric in $i,j$ (Levi-Civita connection).
In words: $d\phi$ vanishes identically if and only if $\partial_iX_j$ is symmetric or equivalently $\nabla_iX_j$ is symmetric.