I'm trying (very early stages) to understand the derivation of the geodesic equation
$$\frac{d^{2}x^{\alpha}}{d\lambda^{2}}+\Gamma_{\gamma\beta}^{\alpha}\frac{dx^{\beta}}{d\lambda}\frac{dx^{\gamma}}{d\lambda}=0$$ via Lagrangians and the Euler-Lagrange equations. I don't understand why some authors use the Lagrangian $$L\left(\dot{x}^{c},x^{c}\right)\equiv\frac{1}{2}g_{ab}\left(x^{c}\right)\dot{x}^{a}\dot{x}^{b}$$ (as in Foster and Nightingale's A Short Course in General Relativity, p60) and others use the Lagrangian $$L\left(\dot{x}^{\alpha},x^{\alpha}\right)\equiv\sqrt{-g_{\mu\nu}\left(x^{\alpha}\right)\dot{x}^{\mu}\dot{x}^{\nu}}$$ (as in Moore's A General Relativity Workbook, p90). I realise I must be confused here, but I can't why as they both seem to end up with the same geodesic equation.