Legendre transformations are used in thermodynamics, and to derive Hamiltonian mechanics from Lagrangian mechanics.
Let