I am having some issues completing the derivation of the geodesic equation using the Lagrangian and also trying by differentiating the metric with respect to the path length parameter.
When attempting to do it using calculus of variations, I am struggling to understand where the Lagrangian comes from and how to use it.
When attempting by differentiating the metric with respect to the path length paramter, I am confused on how to replace \begin{equation} \frac{\partial g_{\mu\nu}}{\partial x^\sigma} \end{equation} with \begin{equation} \left[2\frac{\partial g_{\mu\nu}}{\partial x^\sigma} - \frac{\partial g_{\sigma\mu}}{\partial x^\nu} - \frac{\partial g_{\sigma\nu}}{\partial x^\mu}\right] \frac{dx^{\mu}}{ds} \frac{dx^{\nu}}{ds} \frac{dx^{\sigma}}{ds}. \end{equation}
I was trying to follow the derivation on this website but got confused at this point.
I would like to understand both ways purely so that I can continue my education on how particles move on curved spaces.