2.1.11 · D3Analytical Mechanics

Worked examples — Hamiltonian — definition H = Σpᵢq̇ᵢ − L

3,039 words14 min readBack to topic
Recall Two refreshers you'll need (so this page stands alone)

Euler's theorem, in one line. If is built purely from terms like (each term has exactly two velocity factors), then differentiating and summing gives back : . Picture: each of the two velocity factors "gets counted once", so you recover twice. This is exactly why and hence — but only when every term in has exactly two velocity factors. Jacobi integral, in one line. When has no explicit but is not a pure velocity-quadratic (e.g. a moving constraint adds a velocity-free piece), the conserved quantity still exists but is not the energy. That conserved-but-not-energy object has a name: the Jacobi integral. You meet it in cell C4.


The scenario matrix

Every row below is a distinct "class" of behaviour. The last two columns are the two independent questions above. C8 is the exam twist — its true answers are conserved: NO, : YES (worked out in full below; try to predict it before you get there).

Cell Scenario class Example that hits it conserved? ?
C1 Textbook 1D, const (a) free-fall particle
C2 2 coordinates, one cyclic (b) 2D central motion, polar
C3 Explicit time in (c) driven oscillator ✓ (value drifts)
C4 Moving constraint, but conserved (d) bead on rotating wire
C5 Velocity-dependent potential (magnetic) (e) charge in magnetic field ✓ (subtle)
C6 Degenerate / zero input (f) free particle, , limit ✓ (trivial)
C7 Sign / direction cases (g) particle thrown up vs down
C8 Exam twist: time-scaled potential (h) growing stiffness

Every cell is worked below and labelled. Prerequisites we lean on: Lagrangian Mechanics, Legendre Transform, Hamilton's Canonical Equations, Conservation Laws & Noether's Theorem, and Phase Space for the pictures.


C1 — The textbook case: 1D free-fall


C2 — Two coordinates, one cyclic: 2D central motion

The extra term is the centrifugal barrier. Read the figure below like this: the blue curve is the raw attractive potential (a well that pulls inward), the pink curve is the centrifugal term (a wall that shoots up near , since dividing by blows up), and the yellow curve is their sum . Notice the yellow curve dips to a minimum at a finite radius — that dip is a stable circular orbit, the radius where inward pull and outward barrier balance. The barrier is the whole reason a central-force particle with nonzero never falls into the centre.

Figure — Hamiltonian — definition H = Σpᵢq̇ᵢ − L

C3 — Explicit time in : driven oscillator


C4 — Moving constraint: but still conserved


C5 — Velocity-dependent potential: charge in a magnetic field


C6 — Degenerate / zero input: the free particle


C7 — Sign / direction cases: thrown up vs down

Read the figure below like this: the horizontal axis is momentum , the vertical axis is height , and the yellow curve is the set of all with the same . The blue dot (right) is "thrown up, " and the pink dot (left) is "thrown down, " — both sit at the same height , mirror images across the vertical axis. That left–right mirror symmetry is the fact that only sees : swapping the direction of travel leaves the energy untouched.

Figure — Hamiltonian — definition H = Σpᵢq̇ᵢ − L

C8 — Exam twist: does explicit time break conservation and energy?


Recap: which question does each cell answer?

Recall The two independent switches

Conserved? ::: Yes iff (no naked in ). Equal to energy? ::: Yes iff is a pure quadratic in velocities AND is velocity-free. Cell where conserved but NOT energy ::: C4, bead on rotating wire (the Jacobi integral). Cell where energy but NOT conserved ::: C3 and C8, explicit time in . Cell where BOTH hold ::: C1, C2, C6, C7 (and C5 after using canonical momentum).

Putting it all together: the eight cells are just the four combinations of the two switches, each illustrated by a concrete system. C1/C2/C6/C7 sit in the happy corner (conserved and energy). C3 and C8 show "energy but drifting" — turn on explicit time and the value of ceases to be constant, even though at each frozen instant still equals . C4 shows the opposite mismatch — "conserved but not energy" — where a moving constraint gives you the Jacobi integral instead of . C5 is the trap disguised as the happy corner: it looks like it should fail (velocity in the potential) but the linearity rescues it, provided you use the canonical momentum rather than . Master these four corners and no exam scenario can surprise you.