Legendre transform in mechanics (source code)

= Legendre transform in mechanics
{c}

For a regular Lagrangian, $p=\partial L/\partial\dot q$ and $H=p\dot q-L$. Regularity means the velocity Hessian is invertible.