I've been given this exercise in my self studying differential geometry. Assume $f_1,\dotso,f_4$ be a local basis of vector fields on a manifold $M$, and let $\nu_1,\dotso,\nu_4$ be the dual basis.
Assume that $[f_i,f_j]=p_{ij}\,^kf_k$ and that $$\nabla_{f_i}f_j=c^k\,_{ij}f_k.$$ Then express the $ijkw-$component of the Riemann Tensor in terms of the structure constants and the commutator coefficients, with the convention that $$R^w\,_{ijk}=\langle R(f_i,f_j)f_k,\nu^w\rangle.$$
My work: $$ R(f_i,f_j)f_k=[\nabla_{f_i},\nabla_{f_j}]f_k-\nabla_{[f_i,f_j]}f_k$$ Then $$\nabla_{f_i}\nabla_{f_j}f_k=\nabla_{f_i}(c^q\,_{jk}f_q)=f_i(c^q\,_{jk})f_q+c^q\,_{jk}c^l\,_{iq}f_l. $$ $$-\nabla_{f_j}\nabla_{f_i}f_k=-\nabla_{f_j}(c^q\,_{ik}f_q)=-f_j(c^q\,_{ik})f_q-c^q\,_{ik}c^l\,_{jq}f_l. $$ $$\nabla_{[f_i,f_j]}f_k=p_{ij}\,^qc^l\,_{qk}f_l.$$
Then pairing with $\nu^w$ I got $$R^w\,_{ijk}=f_i(c^w\,_{jk})+c^q\,_{jk}c^w\,_{iq}-f_j(c^w\,_{ik})-c^q\,_{ik}c^w\,_{jq}-p_{ij}\,^qc^w\,_{qk}.$$
Am I right or am I missing something? thanks for your kindness but I'm a newbie and I would like an hand.
P.S. Einstein summation is intended throughout the post
-Guido-