← Classical Mechanics
πŸ”

Hamiltonian Mechanics

The Hamiltonian formulation replaces the $n$ second-order Lagrange equations with $2n$ first-order Hamilton's equations. Phase space β€” the space of positions and momenta β€” is the natural arena. This geometric view reveals deep connections to quantum mechanics and statistical physics.

Key Concepts

Hamiltonian
The Legendre transform of LL: H(q,p,t)=βˆ‘ipiqΛ™iβˆ’LH(q,p,t)=\sum_i p_i\dot q_i - L. For conservative systems with natural kinetic energy, HH equals the total energy T+VT+V.
Hamilton's Equations
qΛ™i=βˆ‚H/βˆ‚pi\dot q_i=\partial H/\partial p_i and pΛ™i=βˆ’βˆ‚H/βˆ‚qi\dot p_i=-\partial H/\partial q_i. These 2n2n first-order ODEs replace the nn second-order Euler-Lagrange equations.
Poisson Bracket
For functions f(q,p)f(q,p) and g(q,p)g(q,p): {f,g}=βˆ‘i(βˆ‚fβˆ‚qiβˆ‚gβˆ‚piβˆ’βˆ‚fβˆ‚piβˆ‚gβˆ‚qi)\{f,g\}=\sum_i\left(\frac{\partial f}{\partial q_i}\frac{\partial g}{\partial p_i}-\frac{\partial f}{\partial p_i}\frac{\partial g}{\partial q_i}\right). The fundamental brackets are {qi,pj}=Ξ΄ij\{q_i,p_j\}=\delta_{ij}.
Liouville's Theorem
Phase space volume is conserved under Hamiltonian flow: dρ/dt=0d\rho/dt=0. This means the density of representative points in phase space is incompressible β€” a fundamental result for statistical mechanics.

Key Equations

Hamilton's equations
qΛ™i=βˆ‚Hβˆ‚pi,pΛ™i=βˆ’βˆ‚Hβˆ‚qi\dot{q}_i = \frac{\partial H}{\partial p_i}, \quad \dot{p}_i = -\frac{\partial H}{\partial q_i}
2n first-order equations replacing n second-order Euler-Lagrange equations.
Hamiltonian (natural)
H=p22m+V(q)H = \frac{p^2}{2m} + V(q)
For a particle with standard kinetic energy; equals total mechanical energy.
Poisson bracket
{f,g}=βˆ‚fβˆ‚qβˆ‚gβˆ‚pβˆ’βˆ‚fβˆ‚pβˆ‚gβˆ‚q\{f,g\} = \frac{\partial f}{\partial q}\frac{\partial g}{\partial p} - \frac{\partial f}{\partial p}\frac{\partial g}{\partial q}
One-dimensional form; the fundamental bracket is {q,p}=1.
Worked Example

Harmonic Oscillator in Phase Space

Problem

For a harmonic oscillator H=p2/(2m)+12kx2H=p^2/(2m)+\frac{1}{2}k x^2 with m=1.0m=1.0 kg and k=4.0k=4.0 N/m, find: (a) the angular frequency Ο‰\omega, and (b) the amplitude if the total energy is E=8.0E=8.0 J.

Solution

Hamilton's equations: xΛ™=p/m\dot x = p/m, pΛ™=βˆ’kx\dot p = -kx. Differentiating: xΒ¨=βˆ’kx/m=βˆ’Ο‰2x\ddot x = -kx/m = -\omega^2 x.

Ο‰=k/m=4.0/1.0=2.0Β rad/s\omega = \sqrt{k/m} = \sqrt{4.0/1.0} = 2.0\text{ rad/s}

At maximum displacement (p=0p=0): H=12kA2=EH = \frac{1}{2}kA^2 = E.

A=2E/k=16/4=2.0Β mA = \sqrt{2E/k} = \sqrt{16/4} = 2.0\text{ m}
Answer Ο‰=2.0\omega=2.0 rad/s, A=2.0A=2.0 m.
Practice

Exercises

7 problems
1 of 7

For a harmonic oscillator with m=1.5m=1.5 kg, k=100k=100 N/m, p=3.0p=3.0 kgΒ·m/s, x=0.10x=0.10 m, compute the Hamiltonian HH (total energy, in J).

J
2 of 7

For a harmonic oscillator with k=4.0k=4.0 N/m and total energy E=8.0E=8.0 J, find the amplitude AA (in m).

m
3 of 7

From Hamilton's equations for H=p2/(2m)H=p^2/(2m) (free particle), find pΛ™\dot p (in N). Express your answer as a number.

Unlock Exercise 3

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro β†’
4 of 7

A particle moves in 1D with H=p2/(2m)+V(x)H=p^2/(2m)+V(x). At a point where x=2.0x=2.0 m, V(x)=12Ξ±x2V(x)=\frac{1}{2}\alpha x^2 with Ξ±=6.0\alpha=6.0 N/m. Find pΛ™\dot p (the force, magnitude in N).

Unlock Exercise 4

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro β†’
5 of 7

Compute the Poisson bracket {x2,p}\{x^2, p\} for a 1D system and evaluate it at x=3.0x=3.0 m.

Unlock Exercise 5

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro β†’
6 of 7

A harmonic oscillator has Ο‰=3.0\omega=3.0 rad/s and m=2.0m=2.0 kg. Find the period TT (in s).

Unlock Exercise 6

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro β†’
7 of 7

A pendulum (m=0.50m=0.50 kg, l=1.0l=1.0 m) has ΞΈ=30Β°\theta=30Β° and ΞΈΛ™=2.0\dot\theta=2.0 rad/s. Find the Hamiltonian value (total energy in J) using H=pΞΈ2/(2ml2)+mgl(1βˆ’cos⁑θ)H=p_\theta^2/(2ml^2)+mgl(1-\cos\theta).

Unlock Exercise 7

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro β†’

Key Takeaways

  • Hamilton's equations qΛ™=βˆ‚H/βˆ‚p\dot q=\partial H/\partial p, pΛ™=βˆ’βˆ‚H/βˆ‚q\dot p=-\partial H/\partial q reveal the symplectic structure of mechanics.
  • The Hamiltonian equals total energy for natural systems; phase space trajectories are level curves of HH.
  • Poisson brackets {qi,pj}=Ξ΄ij\{q_i,p_j\}=\delta_{ij} are the classical analog of quantum commutators.
  • Liouville's theorem: phase space density is conserved β€” the foundation of statistical mechanics.