ArticleslgStudy

physics

Hamiltonian mechanics

Hamiltonian mechanics is a physics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hamiltonian mechanics rather than just read about it. In short: 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.

Hamiltonian mechanics — main illustration
Hamiltonian mechanics — illustration

Key takeaways

  • Hamiltonian mechanics belongs to physics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hamiltonian mechanics to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hamiltonian mechanics from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Hamiltonian mechanics: Sir William Rowan Hamilton
Sir William Rowan Hamilton
Hamiltonian mechanics: Spherical pendulum: angles and velocities.
Spherical pendulum: angles and velocities.

Worked examples

Example 1 — a first encounter with Hamiltonian mechanics

Start with the simplest possible case. Write down what Hamiltonian mechanics claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In physics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hamiltonian mechanics before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hamiltonian mechanics ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hamiltonian mechanics

In research
Hamiltonian mechanics appears in physics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hamiltonian mechanics in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hamiltonian mechanics is common in secondary-school and first-year university syllabi. It links to neighbouring topics Classical mechanics, Dynamical systems, Hamiltonian mechanics, so understanding it makes those chapters shorter.
In everyday life
Look for Hamiltonian mechanics outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hamiltonian mechanics” →

How to study Hamiltonian mechanics in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hamiltonian mechanics means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hamiltonian mechanics out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hamiltonian mechanics in simple terms?

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.

Why does Hamiltonian mechanics matter?

Because it connects several physics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hamiltonian mechanics?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hamiltonian mechanics.

Tags

  • Classical mechanics
  • Dynamical systems
  • Hamiltonian mechanics
  • Mathematical physics

Keep exploring