Analytical mechanics
Generalized momentum and the Hamiltonian
Generalized momentum p_i = ∂L/∂q̇_i is conjugate to coordinate q_i; a Legendre transform converts the Lagrangian into the Hamiltonian H.
In Lagrangian mechanics, position and velocity are natural variables. Hamiltonian mechanics replaces velocity with generalized momentum and represents a state by a point in phase space . This is especially useful for studying the structure of motion.
Definition: Generalized momentum and Hamiltonian
Generalized momentum is conjugate to a coordinate. After the Legendre transform, is expressed in . Only for ordinary natural systems in Cartesian coordinates with a velocity-independent potential does equal the mechanical energy ; this should not be assumed for every system or coordinate choice.
The Legendre transform
If can be inverted to express in terms of , substitute those velocities into . Local invertibility requires a nonsingular velocity Hessian . Constrained or singular systems require separate treatment.
For the harmonic oscillator, . Substituting gives the Hamiltonian above. The level sets are ellipses in the phase plane, and periodic motion runs along an ellipse.
Example: Hamiltonian of a free particle
For , find and .
Solution
. Hence , the kinetic energy.
Quick check
The Legendre transform is invertible only when the Hessian is nonsingular. Then velocities can be solved in terms of and the Hamiltonian is defined on phase space; a singular Hessian instead signals canonical constraints that require separate treatment. A charged particle in electromagnetic potentials is instructive: gives , not merely the mechanical momentum .
How is generalized momentum defined?
When does the Hamiltonian usually equal ?
References
- Herbert Goldstein, Charles Poole, John Safko (2002). Classical Mechanics