In physics, Hamiltonian mechanics is a reformulation of Lagrangian mechanics that emerged in 1833. Introduced by Sir William Rowan Hamilton, Hamiltonian mechanics replaces (generalized) velocities q˙i used in Lagrangian mechanics with (generalized) momenta. Both theories provide interpretations of classical mechanics and describe the same physical phenomena. Hamiltonian mechanics has a close relationship with geometry (notably, symplectic geometry and Poisson structures) and serves as a link between classical and quantum mechanics.
Overview
Phase space coordinates (p, q) and Hamiltonian H Let (M,ℒ) be a mechanical system with configuration space M and smooth Lagrangian ℒ. Select a standard coordinate system (𝒒,𝒒˙) on the tangent bundle TM. The quantities pi(𝒒,𝒒˙,t) =def ∂ℒ/∂q˙i are called momenta. (Also generalized momenta, conjugate momenta, and canonical momenta). For a time instant t, the Legendre transformation of ℒ is defined as the map (𝒒,𝒒˙)→(𝒑,𝒒) which is assumed to have a smooth inverse (𝒑,𝒒)→(𝒒,𝒒˙). For a system with n degrees of freedom, the Lagrangian mechanics defines the energy function Eℒ(𝒒,𝒒˙,t)=def∑i=1nq˙i∂ℒ∂q˙i−ℒ. The Legendre transform of ℒ turns Eℒ into a function ℋ(𝒑,𝒒,t) known as the Hamiltonian. The Hamiltonian satisfies ℋ(∂ℒ∂𝒒˙,𝒒,t)=Eℒ(𝒒,𝒒˙,t) which implies that ℋ(𝒑,𝒒,t)=∑i=1npiq˙i−ℒ(𝒒,𝒒˙,t), where the velocities 𝒒˙=(q˙1,…,q˙n) are found from the (n-dimensional) equation 𝒑=∂ℒ/∂𝒒˙ which, by assumption, is uniquely solvable for 𝒒˙. The (2n-dimensional) pair (𝒑,𝒒) is called phase space coordinates. (Also canonical coordinates).
From Euler–Lagrange equation to Hamilton's equations In phase space coordinates (𝒑,𝒒), the (n-dimensional) Euler–Lagrange equation ∂ℒ∂𝒒−ddt∂ℒ∂𝒒˙=0 becomes Hamilton's equations in 2n dimensions
From stationary action principle to Hamilton's equations Let 𝒫(a,b,𝒙a,𝒙b) be the set of smooth paths 𝒒:[a,b]→M for which 𝒒(a)=𝒙a and 𝒒(b)=𝒙b. The action functional 𝒮:𝒫(a,b,𝒙a,𝒙b)→ℝ is defined via 𝒮[𝒒]=∫abℒ(t,𝒒(t),𝒒˙(t))dt=∫ab(∑i=1npiq˙i−ℋ(𝒑,𝒒,t))dt, where 𝒒=𝒒(t), and 𝒑=∂ℒ/∂𝒒˙ (see above). A path 𝒒∈𝒫(a,b,𝒙a,𝒙b) is a stationary point of 𝒮 (and hence is an equation of motion) if and only if the path (𝒑(t),𝒒(t)) in phase space coordinates obeys the Hamilton equations.
Basic physical interpretation A simple interpretation of Hamiltonian mechanics comes from its application on a one-dimensional system consisting of one nonrelativistic particle of mass m. The value H(p,q) of the Hamiltonian is the total energy of the system, in this case the sum of kinetic and potential energy, traditionally denoted T and V, respectively. Here p is the momentum mv and q is the space coordinate. Then ℋ=T+V,T=p22m,V=V(q) T is a function of p alone, while V is a function of q alone (i.e., T and V are scleronomic). In this example, the time derivative of q is the velocity, and so the first Hamilton equation means that the particle's velocity equals the derivative of its kinetic energy with respect to its momentum. The time derivative of the momentum p equals the Newtonian force, and so the second Hamilton equation means that the force equals the negative gradient of potential energy.
Example
A spherical pendulum consists of a mass m moving without friction on the surface of a sphere. The only forces acting on the mass are the reaction from the sphere and gravity. Spherical coordinates are used to describe the position of the mass in terms of (r, θ, φ), where r is fixed, r = ℓ. The Lagrangian for this system is L=12mℓ2(θ˙2+sin2θ φ˙2)+mgℓcosθ. Thus the Hamiltonian is H=Pθθ˙+Pφφ˙−L where Pθ=∂L∂θ˙=mℓ2θ˙ and Pφ=∂L∂φ˙=mℓ2sin2θφ˙. In terms of coordinates and momenta, the Hamiltonian reads H=[12mℓ2θ˙2+12mℓ2sin2θφ˙2]⏟T+[−mgℓcosθ]⏟V=Pθ22mℓ2+Pφ22mℓ2sin2θ−mgℓcosθ. Hamilton's equations give the time evolution of coordinates and conjugate momenta in four first-order differential equations, θ˙=Pθmℓ2φ˙=Pφmℓ2sin2θPθ˙=Pφ2mℓ2sin3θcosθ−mgℓsinθPφ˙=0. Momentum Pφ, which corresponds to the vertical component of angular momentum Lz=ℓsinθ×mℓsinθφ˙, is a constant of motion. That is a consequence of the rotational symmetry of the system around the vertical axis. Being absent from the Hamiltonian, azimuth φ is a cyclic coordinate, which implies conservation of its conjugate momentum.
… excerpt ends here. Continue reading the full article.


