Pretty Much Physics
How do you derive Hamilton's equations of motion from the Lagrangian? Hamilton's equations are two first-order differential equations, obtained by applying a Legendre transformation to the Lagrangian, that describe how a system's position and momentum evolve over time. The Legendre transformation exchanges a variable, such as velocity, for its conjugate momentum, defined as the derivative of the Lagrangian with respect to that variable. This Hamiltonian formulation, used in classical mechanics, replaces the single second-order Euler-Lagrange equation with an equivalent pair of first-order equations relating position, momentum, and time.