Can we also Legendre transform the Lagrangian using $\frac{\partial L}{\partial q}$ instead of $\frac{\partial L}{\partial \dot q}$?
Why do we use the Lagrangian and Hamiltonian instead of other related functions?