Master Hamiltonian Mechanics with interactive visualizations. Learn canonical coordinates, Hamilton's equations, phase space, and solve real-world physics problems through hands-on simulations.
A reformulation of classical mechanics that uses canonical coordinates and Hamilton's equations to describe system dynamics
Hamiltonian mechanics is a reformulation of classical mechanics that describes the evolution of a system in terms of canonical coordinates and momenta. Developed by William Rowan Hamilton, it provides a powerful mathematical framework that reveals deep connections between symmetries and conservation laws.
Unlike Lagrangian mechanics which uses generalized coordinates and velocities, Hamiltonian mechanics employs canonical coordinates and conjugate momenta, leading to a more symmetric and geometrically intuitive description of system dynamics in phase space.
Understanding the foundational concepts that make Hamiltonian mechanics powerful
Pairs of generalized coordinates and their conjugate momenta that provide a complete description of a system's state.
A set of first-order differential equations that describe the time evolution of canonical coordinates.
A mathematical space where each point represents a possible state of a system, with coordinates and momenta as axes.
The mathematical foundation of Hamiltonian mechanics
Where H is the Hamiltonian, pᵢ are conjugate momenta, q̇ᵢ are generalized velocities, L is the Lagrangian
A system of 2n first-order differential equations for n degrees of freedom
Mathematical operation encoding the algebraic structure of classical mechanics
Hamiltonian mechanics provides a geometric interpretation of dynamics in phase space and naturally incorporates conservation laws through Poisson brackets.
Where Hamiltonian mechanics shines in solving complex problems
Hamiltonian mechanics provides the classical foundation for quantum mechanics, where observables become operators and Poisson brackets become commutators.
The Hamiltonian formulation is essential for statistical mechanics, enabling the derivation of ensemble averages and partition functions.
Phase space techniques and canonical transformations are crucial for designing fuel-efficient spacecraft trajectories.
Hamilton-Jacobi theory and optimal control formulations benefit from Hamiltonian approaches to dynamical systems.
Experience Hamiltonian mechanics through hands-on visualizations
Time: 0.00 s
Position: 0.50 m
Momentum: 0.00 kg⋅m/s
Hamiltonian: 2.50 J
Kinetic Energy: 0.00 J
Potential Energy: 2.50 J
Time: 0.00 s
Distance: 5.00 m
Angle: 0.00 rad
Hamiltonian: -0.10 J
Kinetic Energy: 0.10 J
Potential Energy: -0.20 J
Time: 0.00 s
ω₁: 1.00 rad/s
ω₂: 0.50 rad/s
ω₃: 0.10 rad/s
Hamiltonian: 0.70 J
Kinetic Energy: 0.70 J
Time: 0.00 s
θ: 0.50 rad
φ: 0.00 rad
Hamiltonian: 4.91 J
Kinetic Energy: 0.13 J
Potential Energy: 4.78 J
Step-by-step solutions to classic Hamiltonian mechanics problems
Find the Hamiltonian and equations of motion for a one-dimensional harmonic oscillator with mass m and spring constant k.
The Lagrangian for a harmonic oscillator is:
L = T - V = ½mv² - ½kx² = ½mx̄² - ½kx²
The conjugate momentum is defined as p = ∂L/∂ẋ:
p = ∂L/∂ẋ = ∂/∂ẋ(½mx̄² - ½kx²) = mx̄
Solving for ẋ:
ẋ = p/m
Using the Legendre transformation H = px̄ - L:
H = px̄ - L = p(p/m) - (½m(p/m)² - ½kx²) = p²/2m + ½kx²
Applying Hamilton's equations:
dx/dt = ∂H/∂p = p/m
dp/dt = -∂H/∂x = -kx
Differentiating the first equation and substituting the second:
d²x/dt² = (1/m)dp/dt = (1/m)(-kx) = -(k/m)x
This is the familiar equation for simple harmonic motion with angular frequency ω = √(k/m).
Derive the Hamiltonian for the Kepler problem (motion under gravitational force) and show how it leads to the conservation of energy and angular momentum.
For a particle of mass m moving under gravitational force:
L = T - V = ½m(ṙ² + r²θ̄²) - (-k/r) = ½m(ṙ² + r²θ̄²) + k/r
Calculate the conjugate momenta for r and θ:
pᵣ = ∂L/∂ṙ = mṙ
pθ = ∂L/∂θ̄ = mr²θ̄
ṙ = pᵣ/m
θ̄ = pθ/mr²
Using H = Σ pᵢq̄ᵢ - L:
H = pᵣṙ + pθθ̄ - L = pᵣ(pᵣ/m) + pθ(pθ/mr²) - [½m((pᵣ/m)² + r²(pθ/mr²)²) + k/r]
H = pᵣ²/2m + pθ²/2mr² - k/r
Since H does not explicitly depend on time, energy is conserved:
dH/dt = 0 ⇒ Energy conservation
Since H does not explicitly depend on θ, angular momentum is conserved:
dpθ/dt = -∂H/∂θ = 0 ⇒ pθ = constant
Show that the fundamental Poisson brackets for canonical coordinates are {qᵢ, pⱼ} = δᵢⱼ, {qᵢ, qⱼ} = 0, and {pᵢ, pⱼ} = 0.
For any two functions A and B of canonical coordinates:
{A, B} = Σ (∂A/∂qᵢ ∂B/∂pᵢ - ∂A/∂pᵢ ∂B/∂qᵢ)
{qᵢ, pⱼ} = Σₖ (∂qᵢ/∂qₖ ∂pⱼ/∂pₖ - ∂qᵢ/∂pₖ ∂pⱼ/∂qₖ)
= Σₖ (δᵢₖ δⱼₖ - 0 ⋅ 0) = δᵢⱼ
{qᵢ, qⱼ} = Σₖ (∂qᵢ/∂qₖ ∂qⱼ/∂pₖ - ∂qᵢ/∂pₖ ∂qⱼ/∂qₖ)
= Σₖ (δᵢₖ ⋅ 0 - 0 ⋅ δⱼₖ) = 0
{pᵢ, pⱼ} = Σₖ (∂pᵢ/∂qₖ ∂pⱼ/∂pₖ - ∂pᵢ/∂pₖ ∂pⱼ/∂qₖ)
= Σₖ (0 ⋅ δⱼₖ - δᵢₖ ⋅ 0) = 0
These fundamental Poisson brackets encode the canonical structure of Hamiltonian mechanics:
Continue your journey in advanced classical mechanics