Proof (geodesic, length minimisation and energy minimisation)
We use Cauchy-Schwarz inequality $$ \begin{align*} &\left(\int_{a}^{b} \|\dot γ(t)\| \cdot 1 \d t\right)^2 \leq \left(\int_{a}^{b} \|\dot γ(t)\|^2 \d t\right) \left(\int_{a}^{b} 1^2 \d t\right) \\ \implies &\mathrm{length}(γ)^2 \leq E(γ) \cdot (b-a) \end{align*} $$ with equality iff $\|\dot γ(t)\|$ is constant.
-
If $γ$ has constant speed, then we have equality $\mathrm{length}(γ)^2 = E(γ)\cdot (b-a)$. So for other path $\tilde γ$ in the local neighbourhood where $γ$ minimises length, $$ \begin{align*} E(\tilde γ) \geq \frac{\mathrm{length}(\tilde γ)^2}{b-a} \geq \frac{\mathrm{length}(γ)^2}{b-a} = E(γ). \end{align*} $$ Thus $γ$ locally minimises energy.
-
Reparametrise $γ$ with constant speed as $\tilde γ$. Then $$ \begin{align*} E(\tilde γ) = \frac{\mathrm{length}(\tilde γ)^2}{b-a} = \frac{\mathrm{length}(γ)^2}{b-a} \leq E(γ) \end{align*} $$ with equality iff $γ$ already has constant speed. So if $γ$ globally minimises energy, it must have constant speed. Moreover for any other path $\tilde γ$ WLOG parametrised with constant speed, $$ \begin{align*} \mathrm{length}(\tilde γ)^2 = E(\tilde γ) \cdot (b-a) \leq E(γ) \cdot (b-a) = E(γ) \end{align*} $$ so $γ$ globally minimises length.