I have a difficulty in the following derivation of the geodesic equation for a curve. Let $\gamma:R\rightarrow M$ be a curve on the manifold $M$. We have a connection and we are trying to find the geodesic curves for that connection. We define the tangent vector of $\gamma$ in the coordinate system $ \{x^i\} $by : $X_{\gamma} = (x^i \circ \gamma)'\frac{\partial}{\partial x^i} $
\begin{align} \nabla_{X_\gamma} X_\gamma &= 0 \\ &=\nabla_{(x^i \circ \gamma)'\frac{\partial}{\partial x^i}} (x^j \circ \gamma)'\frac{\partial}{\partial x^j} \\ &= \dot{\gamma}^i\frac{\partial \dot{\gamma}^j}{\partial x^i}\frac{\partial}{\partial x^j} + \dot{\gamma}^i\dot{\gamma}^j\Gamma_{ji}^q\frac{\partial}{\partial x^q}\\ &=_? \ddot{\gamma}^i \frac{\partial}{\partial x^j} + \dot{\gamma}^i\dot{\gamma}^j\Gamma_{ji}^q\frac{\partial}{\partial x^q} \end{align}
I simply do not understand the derivation implied in the double derivative. When I expand the expression it looks like :
\begin{align} (x^i \circ \gamma)'\frac{\partial (x^j \circ \gamma)'}{\partial x^i} &= \frac{d(x^i \circ \gamma)}{dt}\frac{\partial \frac{d(x^i \circ \gamma)}{dt}}{\partial x^i} \\ &= \frac{d(x^i \circ \gamma)}{dt} \partial_i(\frac{d(x^i \circ \gamma)}{dt} \circ x^{-1}) \end{align}
And I just can't seem to fall back to the result.
I am following this course : https://youtu.be/2eVWUdcI2ho?t=34m27s And the professor says " One can do this cleaner, otherwise I have an other 2 blackboards " which implies the derivation is not as straightforward as I imagined.