Physic Labs

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 (q,p)(q,p). This is especially useful for studying the structure of motion.

pi=∂L∂q˙i,H(q,p,t)=∑ipiq˙i−L(q,q˙,t)p_i=\frac{\partial L}{\partial\dot q_i}, \qquad H(q,p,t)=\sum_i p_i\dot q_i-L(q,\dot q,t)

Definition: Generalized momentum and Hamiltonian

Generalized momentum is conjugate to a coordinate. After the Legendre transform, HH is expressed in (q,p,t)(q,p,t). Only for ordinary natural systems in Cartesian coordinates with a velocity-independent potential does HH equal the mechanical energy T+VT+V; this should not be assumed for every system or coordinate choice.

Explore the surface H(q,p)=E of a harmonic oscillator. Its phase-space trajectory stays on a constant-energy curve.

The Legendre transform

If pi=∂L/∂q˙ip_i=\partial L/\partial\dot q_i can be inverted to express q˙i\dot q_i in terms of (q,p,t)(q,p,t), substitute those velocities into H=∑ipiq˙i−LH=\sum_i p_i\dot q_i-L. Local invertibility requires a nonsingular velocity Hessian ∂2L/∂q˙i∂q˙j\partial^2L/\partial\dot q_i\partial\dot q_j. Constrained or singular systems require separate treatment.

L=12mq˙2−12mω2q2⟹H=p22m+12mω2q2L=\frac12m\dot q^2-\frac12m\omega^2q^2 \quad\Longrightarrow\quad H=\frac{p^2}{2m}+\frac12m\omega^2q^2

For the harmonic oscillator, p=mq˙p=m\dot q. Substituting q˙=p/m\dot q=p/m gives the Hamiltonian above. The level sets H=EH=E are ellipses in the (q,p)(q,p) phase plane, and periodic motion runs along an ellipse.

Example: Hamiltonian of a free particle

For L=12mx˙2L=\tfrac12m\dot x^2, find pp and HH.

Solution

p=∂L/∂x˙=mx˙p=\partial L/\partial\dot x=m\dot x. Hence H=px˙−L=p2/(2m)H=p\dot x-L=p^2/(2m), the kinetic energy.

Quick check

The Legendre transform is invertible only when the Hessian Wij=∂2L/(∂q˙i∂q˙j)W_{ij}=\partial^2L/(\partial\dot q_i\partial\dot q_j) is nonsingular. Then velocities can be solved in terms of (q,p,t)(q,p,t) 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: L=12mr˙2+eA⋅r˙−eϕL=\tfrac12m\dot{\mathbf r}^{2}+e\mathbf A\cdot\dot{\mathbf r}-e\phi gives p=mr˙+eA\mathbf p=m\dot{\mathbf r}+e\mathbf A, not merely the mechanical momentum mr˙m\dot{\mathbf r}.

How is generalized momentum defined?

When does the Hamiltonian usually equal T+VT+V?

References

  1. Herbert Goldstein, Charles Poole, John Safko (2002). Classical Mechanics