Beta Phase: Square45 is currently in beta testing. Expect some features or content to be incomplete or missing.
45

Legendre Transformations

A method for converting between Hamiltonian and Lagrangian formulations of a system, essential for solving various problems in classical mechanics.
📜

The statement of the theorem

Given the Lagrangian L(q,q˙,t)L(q, \dot{q}, t) and the generalized momentum pi=Lq˙ip_i = \frac{\partial L}{\partial \dot{q}_i}, the Hamiltonian H(q,p,t)H(q, p, t) is obtained from the Legendre transformation: H(q,p,t)=i=1npiq˙iL(q,q˙,t)H(q, p, t) = \sum_{i=1}^n p_i \dot{q}_i - L(q, \dot{q}, t) where q˙i\dot{q}_i is implicitly defined by the relation pi=Lq˙ip_i = \frac{\partial L}{\partial \dot{q}_i}. Furthermore, the transformation of the time derivative is dHdt=Lt+t(piq˙iL)\frac{\text{d}H}{\text{d}t} = \frac{\partial L}{\partial t} + \frac{\partial}{\partial t} \left( \sum p_i \dot{q}_i - L \right).
Source: Wikipedia