Part B · the action · spine

14

Hamilton: phase space, and flows that preserve volume

Trade n second-order equations for 2n first-order ones, and the new space turns out to carry a bracket, a class of allowed coordinate changes and a preserved volume — none of which configuration space ever showed you.

needs 13, 02~2½ h slides + 5 h problemsproblems: ./mr problems 14

14 · overview

Twice the variables, half the order

the move

Replace the velocity $\dot q$ by the momentum $p = \partial L/\partial\dot q$, and $L$ by its Legendre transform, the Hamiltonian $H(q,p,t)$. The Euler–Lagrange equations become $2n$ first-order equations on phase space: $$\dot q = \frac{\partial H}{\partial p},\qquad \dot p = -\frac{\partial H}{\partial q}.$$

what it buys

1 Orbits are level sets of $H$, and never cross. 2 A bracket $\{f,H\}$ gives every time derivative; brackets of conserved quantities are conserved. 3 Coordinate changes mixing $q$ and $p$ are allowed if their Jacobian preserves one matrix. 4 The flow has zero divergence, so it preserves volume.

the running example

Kepler, with Halley's comet as unit 08 left it. Its orbit becomes a closed curve in the $(r,p_r)$ plane, fenced off by the separatrix $E = 0$; $\vec L$ and the Runge–Lenz vector close under the bracket on $\mathfrak{so}(4)$, the algebra of rotations of $\mathbb R^4$; and the curve's phase area $A(E)$ has derivative the $75.31$-year period, because:

1. The orbits $E$ and $E + \mathrm dE$ bound a thin ring, of area $\mathrm dA$. 2. Across it $H$ rises by $\mathrm dE$: its width is $\mathrm dE/\lVert\nabla H\rVert$. 3. Along it the motion has speed $\lVert\nabla H\rVert$. 4. So time $\mathrm dt$ sweeps area $\mathrm dE\,\mathrm dt$, and $\mathrm dA = T\,\mathrm dE$.

A dotted underline is a glossary term (click, or G); a solid one, like the running example, shows on hover; N opens the notes.

section 1

The Legendre transform, as convex duality

Trading a variable for the slope of a function, done so that it cannot go wrong silently.

14 · Legendre

Why a transform, and why the naive one is not enough

We want $p = \partial L/\partial\dot q$ as a new variable in place of $\dot q$. The textbook recipe:

the recipe

Solve $p = \partial L/\partial\dot q$ for $\dot q = v(q,p)$, then put $$H(q,p) := p\cdot v - L(q, v).$$

Unit 11 met this already: Beltrami's first integral $y'F_{y'} - F$ is exactly this expression, and unit 13's energy function $h = \sum\dot q_i\,\partial L/\partial\dot q_i - L$ is too.

where the recipe breaks

"Solve for $\dot q$" needs $\dot q\mapsto\partial L/\partial\dot q$ to be a bijection. For $L = \tfrac12 m\dot x^2$ it is. For $L = c\,\dot x$ it is constant; for $L = \lvert\dot x\rvert$ it is not injective; for $L = -\sqrt{1-\dot x^2}$ its image is all of $\mathbb R$ while its domain is bounded.

the fix

Define the transform by a supremum, which always makes sense, and let convexity decide when the recipe is right. The recipe then becomes a theorem, and its failures become visible instead of silent.

14 · Legendre

The definition, by supremum

the Legendre transform

For $f:\mathbb R^n\to\mathbb R$, its transform $f^*:\mathbb R^n\to(-\infty,\infty]$ is $$f^*(p) := \sup_{x\in\mathbb R^n}\big(p\cdot x - f(x)\big).$$ For $f$ defined only on a convex set $C$, take the supremum over $C$.

two facts, no hypotheses

(a) $f^*$ is convex, whatever $f$ is. (b) The Fenchel–Young inequality: $$f(x) + f^*(p) \;\ge\; p\cdot x\quad\text{for all } x, p.$$

proof

(a) Each $p\mapsto p\cdot x - f(x)$ is affine, and a pointwise supremum of affine functions is convex. (b) $f^*(p)$ is at least the value of the bracket at the particular $x$. ∎

−f*(p) gap = f*(p) y = px f = x²/2 slope p x = p x

$f(x) = x^2/2$, $p = 1.5$. The vertical gap between the line $px$ and the graph is largest where the slope of $f$ is $p$; the tangent there (dashed) meets the axis at $-f^*(p)$.

the first one

$f(v) = \tfrac12 mv^2$: $pv - \tfrac12 mv^2$ is largest at $v = p/m$, so $f^*(p) = p^2/2m$. Dimensions: $[pv] = \mathrm{kg\,m^2\,s^{-2}}$, an energy ✓.

14 · Legendre

Young's inequality is a Legendre transform

compute it

Let $a > 1$ and $f(x) = \lvert x\rvert^a/a$ on $\mathbb R$. For $p \ge 0$ the supremum of $px - x^a/a$ is over $x \ge 0$ (negative $x$ only lowers it), and the derivative $p - x^{a-1}$ vanishes at $x = p^{1/(a-1)}$. With $b$ defined by $\tfrac1a + \tfrac1b = 1$, so that $\tfrac{1}{a-1} = b - 1$: $$f^*(p) = p\cdot p^{b-1} - \frac{p^{(b-1)a}}{a} = p^b\Big(1 - \frac1a\Big) = \frac{p^b}{b},$$ using $(b-1)a = b$. By symmetry $f^*(p) = \lvert p\rvert^b/b$ for all $p$.

Young's inequality

For $x, p \ge 0$ and $\tfrac1a + \tfrac1b = 1$, $$px \;\le\; \frac{x^a}{a} + \frac{p^b}{b},$$ with equality exactly when $p = x^{a-1}$.

proof

Fenchel–Young with this $f$ and $f^*$. Equality holds exactly when $x$ attains the supremum defining $f^*(p)$, which for this strictly concave bracket is the single point $x = p^{1/(a-1)}$. ∎

14 · Legendre

Young's inequality, as two areas

x³/3 ⅔ p3/2 p = x² overshoot x p (x, p)

$a = 3$, $b = \tfrac32$, $x = p = 1.5$. The shaded areas $x^3/3 = 1.125$ and $\tfrac23p^{3/2} = 1.225$ together cover the dashed rectangle $px = 2.25$, and overshoot it by $0.100$. Slide the corner $(x,p)$ onto the curve and the overshoot vanishes: equality.

the same inequality, read off the picture

Under the curve $p = x^{a-1}$ from $0$ to $x$ lies area $\int_0^x t^{a-1}\,\mathrm dt = x^a/a$. To its left, from $0$ to $p$, lies area $\int_0^p s^{1/(a-1)}\,\mathrm ds = p^b/b$, since $\tfrac{1}{a-1} + 1 = b$. Every point of the rectangle $[0,x]\times[0,p]$ is under the curve or to its left. ∎

special case

$a = b = 2$: $px \le \tfrac12(x^2 + p^2)$, the AM–GM inequality, with equality at $p = x$ ✓. And $a = 2$ with $f = \tfrac12 mv^2$ is the kinetic energy of The definition, by supremum.

14 · Legendre

Involutivity: transforming twice gives $f$ back

theorem (involutivity)

If $f:\mathbb R^n\to\mathbb R$ is convex and differentiable, then $f^{**} = f$. Moreover, for each $x$ the supremum defining $f^*(p)$ at $p = \nabla f(x)$ is attained at that $x$.

lemma (supporting line)

$f$ convex and differentiable $\Rightarrow$ $f(y) \ge f(x) + \nabla f(x)\cdot(y-x)$ for all $x,y$.

proof in the notes (N)

proof of the theorem

$f^{**}\le f$. By Fenchel–Young, $p\cdot x - f^*(p)\le f(x)$ for every $p$; take the supremum over $p$.

$f^{**}\ge f$. Fix $x$ and put $p = \nabla f(x)$. The lemma says $p\cdot y - f(y) \le p\cdot x - f(x)$ for every $y$, so the supremum is attained at $y = x$: $$f^*(p) = p\cdot x - f(x).$$ Hence $f^{**}(x) \ge p\cdot x - f^*(p) = f(x)$. ∎

The general case — $f$ convex and lower semicontinuous with values in $(-\infty,\infty]$, no differentiability — is the Fenchel–Moreau theorem, cited: Rockafellar, Convex Analysis, Theorem 12.2. Only the differentiable case is used in this course.

14 · Legendre

What the transform cannot see

f(0) = 1 f**(0) = 0 slope 4 slope −4 f −1 1 x

$f(x) = (x^2-1)^2$. Each slope $p$ has its supporting line; the two of slope $\pm4$ are drawn. Between the minima no supporting line touches the graph, so $f^{**}$ — dashed — replaces the hump by the segment $y = 0$. At $x = 0$ the gap is $f(0) - f^{**}(0) = 1$.

without convexity

$f^{**}$ is the convex envelope of $f$ — the largest convex function below it — and the transform forgets everything non-convex (problem P3).

why, in one line

$f^*(p)$ is fixed by the supporting line of slope $p$ alone. The hump touches none of them, so $f$ and its envelope have the same $f^*$ — and hence the same $f^{**}$.

14 · Legendre

The smooth, strictly convex case: gradients are inverse

theorem (smooth duality)

Let $f\in C^2(\mathbb R^n)$ with Hessian $\nabla^2 f$ positive definite everywhere, and let $U = \nabla f(\mathbb R^n)$. Then $\nabla f:\mathbb R^n\to U$ is a bijection onto an open set, and on $U$:

(i) the supremum defining $f^*(p)$ is attained at the unique $x(p)$ with $\nabla f(x) = p$;
(ii) $f^*\in C^2(U)$, with $\nabla f^* = (\nabla f)^{-1}$ and $\nabla^2 f^*(p) = \big(\nabla^2 f(x(p))\big)^{-1}$;
(iii) if $f = f(x; y)$ depends on a parameter $y$, then $\dfrac{\partial f^*}{\partial y} = -\dfrac{\partial f}{\partial y}$, evaluated at $x = x(p)$.

proof of (ii) and (iii), given (i)

$f^*(p) = p\cdot x(p) - f(x(p);y)$, and $x(p)$ is $C^1$ by the inverse function theorem (unit 04). Differentiate: $$\nabla_p f^* = x + (D_px)^{\!\top}\big(p - \nabla_x f\big) = x,$$ since the bracket vanishes at $x(p)$. The $y$-derivative is $(D_yx)^{\!\top}(p - \nabla_xf) - \partial_yf = -\partial_y f$. Differentiating $\nabla f^* = x(p)$ once more gives $D_px$, the inverse of $\nabla^2 f$. ∎

check

$f = \tfrac12 mv^2$: $\nabla f^*(p) = p/m = v$ ✓, and $(f^*)'' = 1/m = (f'')^{-1}$ ✓. The dimensions of (ii): $[\nabla^2 f] = [f]/[x]^2$ and $[\nabla^2 f^*] = [f]/[p]^2 = [x]^2/[f]$ ✓.

14 · Legendre

The degenerate case, flagged now

linear: $f(v) = c\,v$

$pv - cv$ is unbounded unless $p = c$: $$f^*(p) = \begin{cases}0 & p = c\\ +\infty & \text{else.}\end{cases}$$ The momentum is not a variable at all but pinned: a constraint.

homogeneous: $f(v) = \lvert v\rvert$

$pv - |v|$ is $\le 0$ for all $v$ iff $|p|\le 1$: $$f^*(p) = \begin{cases}0 & |p|\le1\\ +\infty & |p| > 1.\end{cases}$$ On the allowed set the Hamiltonian is identically zero.

nearly: $f(v) = -\sqrt{1-v^2}$

On $|v| < 1$. Here $f'' = (1-v^2)^{-3/2} > 0$ and $f'(v) = v/\sqrt{1-v^2}$ maps $(-1,1)$ onto $\mathbb R$. Solving $p = f'(v)$: $v = p/\sqrt{1+p^2}$, so $$f^*(p) = \frac{p^2+1}{\sqrt{1+p^2}} = \sqrt{1+p^2}.$$

the degenerate Lagrangian

$L$ is degenerate where $\det\big(\partial^2L/\partial\dot q_i\partial\dot q_j\big) = 0$ — unit 11's Legendre condition failing. Then $\dot q\mapsto p$ is not invertible, some momenta are functions of $q$ alone, and $H$ is defined only on a constraint set. Unit 27: the relativistic free particle is the third column when time is the parameter and the second when any parameter is allowed.

14 · Legendre

The degenerate case, drawn

f = |v| slopes |p| ≤ 1 pass under the corner: f*(p) = 0 slope 1.6: no line of it stays below: f* = +∞ v p = 0 0.75 2.06 3.99 f = −√(1 − v²) tangent slopes fill ℝ while v stays in (−1, 1) 1 −1 v

Left: at the corner of $|v|$ every line of slope $|p|\le1$ through the origin stays below, so nothing needs lowering and $f^*(p) = 0$; a steeper line crosses the graph however far it is lowered, so $f^* = +\infty$. Right: the tangent slopes of $-\sqrt{1-v^2}$ run through all of $\mathbb R$, so every $p$ has its $v = p/\sqrt{1+p^2}$.

14 · Legendre

Worked: the Hamiltonians of units 08 and 12

two Lagrangians, transformed

General quadratic. $L = \tfrac12\dot q^{\!\top}M(q)\dot q - V(q)$ with $M(q)$ symmetric positive definite. The Hessian in $\dot q$ is $M$: non-degenerate. $p = \partial L/\partial\dot q = M\dot q$, so $\dot q = M^{-1}p$ and $$H = p^{\!\top}M^{-1}p - \tfrac12 p^{\!\top}M^{-1}p + V = \tfrac12 p^{\!\top}M(q)^{-1}p + V(q).$$

Kepler, unit 08. $L = \tfrac12\mu(\dot r^2 + r^2\dot\theta^2) + k/r$: $M = \operatorname{diag}(\mu, \mu r^2)$, $p_r = \mu\dot r$, $p_\theta = \mu r^2\dot\theta$, and $$H = \frac{p_r^2}{2\mu} + \frac{p_\theta^2}{2\mu r^2} - \frac kr .$$

The hoop, unit 12. $L = \tfrac12mR^2\dot\theta^2 + \tfrac12mR^2\Omega^2\sin^2\theta + mgR\cos\theta$. Here the middle term has no $\dot\theta$, so it counts as part of $-V$: $M = mR^2$, $p = mR^2\dot\theta$, and $$H = \frac{p^2}{2mR^2} - \tfrac12 mR^2\Omega^2\sin^2\theta - mgR\cos\theta .$$

Read it. $T + V = \frac{p^2}{2mR^2} + \tfrac12 mR^2\Omega^2\sin^2\theta - mgR\cos\theta$: the $\Omega^2$ term has the opposite sign. $H$ is unit 13's energy function $h$, conserved because $L$ has no $t$; $T + V$ is not, because the motor turning the hoop does work.

Checks. Every term of both $H$s is an energy: $[p_\theta^2/\mu r^2] = (\mathrm{kg\,m^2\,s^{-1}})^2/(\mathrm{kg\,m^2})$ ✓. $\Omega = 0$: the hoop's $H$ is $T + V$, a pendulum ✓.

section 2

Hamilton's equations, and the picture they draw

One first-order system on $\mathbb R^{2n}$, whose orbits are level sets and never cross.

14 · Hamilton

Hamilton's equations

theorem (Hamilton's equations)

Let $L(q,\dot q,t)$ be $C^2$ with $\partial^2L/\partial\dot q^2$ positive definite and $\dot q\mapsto\partial L/\partial\dot q$ a bijection for each $(q,t)$, and let $H$ be its transform in $\dot q$. Then a $C^2$ curve $q(t)$ solves the Euler–Lagrange equations iff $(q(t), p(t))$ with $p = \partial L/\partial\dot q$ solves $$\dot q = \frac{\partial H}{\partial p},\qquad \dot p = -\frac{\partial H}{\partial q}.$$ Along solutions, $\dfrac{\mathrm dH}{\mathrm dt} = \dfrac{\partial H}{\partial t} = -\dfrac{\partial L}{\partial t}$.

proof

Smooth duality (ii) gives $\partial H/\partial p = \dot q$ — the first equation holds by construction. Part (iii) gives $\partial H/\partial q = -\partial L/\partial q$. So $$\dot p = \frac{\mathrm d}{\mathrm dt}\frac{\partial L}{\partial\dot q}\overset{\text{E–L}}{=}\frac{\partial L}{\partial q} = -\frac{\partial H}{\partial q},$$ and each step reverses. Finally $\frac{\mathrm dH}{\mathrm dt} = H_q\dot q + H_p\dot p + H_t = H_qH_p - H_pH_q + H_t$. ∎

checks

Dimensions: $[H/p] = \mathrm{J}/(\mathrm{kg\,m\,s^{-1}}) = \mathrm{m\,s^{-1}}$ ✓ and $[H/q] = \mathrm N$ ✓. Special case: $H = p^2/2m + V(x)$ gives $\dot x = p/m$, $\dot p = -V'(x)$ — Newton ✓.

14 · Hamilton

One first-order system on $\mathbb R^{2n}$

the standard symplectic matrix

Write $z = (q,p)\in\mathbb R^{2n}$ and $$J = \begin{pmatrix}0 & I_n\\ -I_n & 0\end{pmatrix},\qquad J^{\!\top} = -J = J^{-1},\quad J^2 = -I.$$ Hamilton's equations are $\dot z = J\,\nabla H(z)$. The vector field $X_H := J\nabla H$ is the Hamiltonian vector field of $H$.

$H$ is conserved, in one line

For $H$ with no explicit $t$: $\dfrac{\mathrm dH}{\mathrm dt} = \nabla H^{\!\top}J\nabla H = 0$, because $u^{\!\top}Ju = 0$ for every $u$ when $J$ is antisymmetric.

∇H XH = J∇H q p

The pendulum, $H = p^2/2 - \cos q$. At each marked point $\nabla H$ points straight across the level curve; $J$ turns it a quarter-turn clockwise into $X_H$, which points along it. Following $X_H$ can therefore never change $H$.

14 · Hamilton

Orbits never cross

trajectories never cross

If $H\in C^2$ and has no explicit $t$, two distinct orbits of $X_H$ never meet, and no orbit crosses itself except by closing up into a periodic one.

proof

$\nabla H$ is $C^1$, hence locally Lipschitz, so Picard–Lindelöf (unit 01) gives one solution through each point. Two orbits sharing a point are both the solution through it: the same orbit. ∎

what this is not

Unit 01 also wrote a first-order system on $\mathbb R^{2n}$, with $y = (x,\dot x)$. Same count, no structure: the matrix $J$ and the one-line conservation of $H$ are special to $(q,p)$.

z two orbits through z need two velocities there ✗ z an orbit back at z closes up: periodic ✓

Schematic. Two orbits crossing at $z$ would leave it in two directions, but $X_H(z)$ is one vector. The only way back to $z$ is along the same orbit, which then closes up.

14 · Hamilton

The phase-space action principle

theorem (phase-space action)

On curves $(q(t),p(t))$, $t\in[t_0,t_1]$, with $q(t_0)$, $q(t_1)$ fixed and $p$ free at both ends, the functional $$S[q,p] = \int_{t_0}^{t_1}\big(p\cdot\dot q - H(q,p,t)\big)\,\mathrm dt$$ is stationary exactly on solutions of Hamilton's equations.

proof

Unit 11's Euler–Lagrange equations for $2n$ dependent variables, with integrand $F = p\cdot\dot q - H$. In $p$: $F_{\dot p} = 0$ and $F_p = \dot q - H_p$, so $0 = \dot q - H_p$. In $q$: $\frac{\mathrm d}{\mathrm dt}F_{\dot q} = \dot p$ and $F_q = -H_q$. The free-end condition for $p$ is $F_{\dot p} = 0$, satisfied identically. ∎

two things it says

1. Put $p = \partial L/\partial\dot q$ back in: $p\cdot\dot q - H = L$, so this is Hamilton's principle of unit 12 with $p$ promoted to an independent variable.

2. The integrand is linear in the velocities $(\dot q,\dot p)$ — degenerate in the sense of the previous section — and still gives good first-order equations. Degeneracy is fatal to the transform, not to the variational principle.

why it is here

Section 4 changes coordinates on phase space. An action whose integrand is $p\cdot\dot q - H$ is what tells you which changes are allowed: those altering $p\cdot\dot q$ by a total derivative.

14 · Hamilton

The pendulum's separatrix, now a level set

0 π −π p θ

$H = p^2/2ml^2 - mgl\cos\theta$, unit 02's pendulum without damping, $p$ in units of $m\sqrt{gl^3}$. Closed curves: libration. Open curves: rotation. Dashed: $H = mgl$, $p = \pm 2m\sqrt{gl^3}\cos(\theta/2)$.

For one degree of freedom every orbit lies in a level set of $H$, and a level-set component containing no equilibrium is exactly one orbit. So the portrait is a contour map and needs no integration.

Linearising at an equilibrium gives $A = JS$ with $S = \nabla^2H$ symmetric, so $\operatorname{tr}A = 0$ and the eigenvalues are $\pm\sqrt{-\det S}$: a centre when $H$ has a minimum or maximum, a saddle when $\det S < 0$.

14 · Hamilton

Kepler in the $(r, p_r)$ half-plane

r₀ r pr thick: Halley, closing at 30.4 r₀ → E > 0

$\tfrac12 v_r^2 + h^2/2r^2 - GM_\odot/r = \varepsilon$ at Halley's $h$, with $r$ in units of $r_0 = h^2/GM_\odot$ and $v_r = p_r/\mu$ in units of $GM_\odot/h$, out to $r = 10r_0$. Solid thick: Halley. Dashed: $E = 0$. Faint: two hyperbolic orbits.

Every closed curve is a bound orbit and every open one is a flyby, and none of them touches another: the whole of unit 08's classification of orbits by energy, read off one contour map.

14 · Hamilton

Worked: Halley's curve, and the separatrix

Halley's level curve, in numbers

Given (unit 08): $h = 4.78403\times10^{15}\ \mathrm{m^2\,s^{-1}}$, $\varepsilon = -2.48740\times10^{7}\ \mathrm{J\,kg^{-1}}$, $GM_\odot = 1.32712440\times10^{20}\ \mathrm{m^3\,s^{-2}}$. Per unit mass, $\varepsilon = \tfrac12 v_r^2 + V(r)$ with $V(r) = h^2/2r^2 - GM_\odot/r$.

Step 1 — the equilibrium. $V'(r) = -h^2/r^3 + GM_\odot/r^2 = 0$ at $r_0 = h^2/GM_\odot = 1.72455\times10^{11}$ m $= 1.15279$ AU, where $V(r_0) = -(GM_\odot)^2/2h^2 = -3.84774\times10^{8}\ \mathrm{J\,kg^{-1}}$. It is a minimum of $H$: a centre, the circular orbit.

Step 2 — where the curve meets $v_r = 0$. $\varepsilon = V(r)$, i.e. $2\varepsilon r^2 + 2GM_\odot r - h^2 = 0$: $r = 0.586025$ and $35.0789$ AU, unit 08's perihelion and aphelion.

Step 3 — its widest point. $v_r^2 = 2(\varepsilon - V)$ is largest where $V$ is least, at $r_0$: $|v_r| = \sqrt{2(\varepsilon - V(r_0))} = 26.829\ \mathrm{km\,s^{-1}}$.

Step 4 — the separatrix. At $\varepsilon = 0$: $v_r^2 = 2GM_\odot/r - h^2/r^2$, zero at $r = h^2/2GM_\odot = r_0/2 = 0.576396$ AU and again only as $r\to\infty$.

checks

Dimensions: $[h^2/GM] = \mathrm{m^4s^{-2}}/\mathrm{m^3s^{-2}} = \mathrm m$ ✓.

Unit 08: $\varepsilon/V(r_0) = 0.0646457 = 1 - e^2$ with $e = 0.96714$ ✓, and $r_0$ is the semi-latus rectum $p = 1.72455\times10^{11}$ m ✓.

Limit: as $\varepsilon\to V(r_0)$ the curve shrinks to the point $(r_0, 0)$ ✓.

a separatrix without a saddle

The pendulum's separatrix runs into a saddle. This one runs into nothing in the finite plane: its "saddle" is at $r = \infty$, $p_r = 0$. What it separates is still the same — bounded from unbounded.

section 3

Poisson brackets: the algebra of observables

One bilinear operation that gives every time derivative, and turns conserved quantities into a Lie algebra.

14 · brackets

The Poisson bracket

the Poisson bracket

For $f, g\in C^\infty(\mathbb R^{2n})$, $$\{f,g\} := \sum_{i=1}^n\Big(\frac{\partial f}{\partial q_i}\frac{\partial g}{\partial p_i} - \frac{\partial f}{\partial p_i}\frac{\partial g}{\partial q_i}\Big) = \nabla f^{\!\top}J\,\nabla g .$$

properties

1 bilinear; 2 antisymmetric, $\{g,f\} = -\{f,g\}$; 3 Leibniz, $\{f, gh\} = \{f,g\}h + g\{f,h\}$; 4 the Jacobi identity, $$\{f,\{g,h\}\} + \{g,\{h,f\}\} + \{h,\{f,g\}\} = 0.$$

proof of 1–3

1: $\nabla$ is linear. 2: $J^{\!\top} = -J$. 3: $\nabla(gh) = h\nabla g + g\nabla h$. ∎  (4: next slide.)

the fundamental Poisson brackets

$$\{q_i, q_j\} = 0,\quad \{p_i, p_j\} = 0,\quad \{q_i, p_j\} = \delta_{ij}.$$ Bilinearity and Leibniz reduce every bracket of polynomials to these.

dimensions

$[\{f,g\}] = [f][g]/[q][p]$, and $[q][p]$ is an action, $\mathrm{J\,s}$. So $[\{f,H\}] = [f]/\mathrm s$ — a rate, which is what it will turn out to be.

14 · brackets

The Jacobi identity, and what it makes of observables

proof of the Jacobi identity

Let $D_f := \{f,\cdot\,\}$. It is a first-order differential operator: $D_f = \sum_i\big(\partial_{q_i}f\,\partial_{p_i} - \partial_{p_i}f\,\partial_{q_i}\big)$. Rewrite the first two terms of the sum: $$\begin{aligned}\{f,\{g,h\}\} + \{g,\{h,f\}\} &= D_fD_gh - D_gD_fh\\ &= [D_f, D_g]\,h.\end{aligned}$$ The commutator of two first-order operators is first order — the second derivatives of $h$ cancel by Clairaut. The third term, $-D_{\{f,g\}}h$, is first order in $h$ too. So the Jacobi sum contains no second derivative of $h$, and by its cyclic symmetry none of $f$ or $g$. But every term of it contains exactly one second derivative. So it is $0$. ∎

a Lie algebra

A real vector space with a bilinear, antisymmetric bracket satisfying Jacobi. So $\big(C^\infty(\mathbb R^{2n}),\{\,,\}\big)$ is one — infinite-dimensional.

A three-dimensional example: $\mathfrak{so}(3)$, unit 03's antisymmetric $3\times3$ matrices, under the commutator $[X,Y] = XY - YX$. Unit 03's hat map is then an isomorphism of Lie algebras, $\widehat{\vec a\times\vec b} = [\hat a,\hat b]$ — one line, in the notes.

Jacobi, reread

It says $[D_f, D_g] = D_{\{f,g\}}$: the map $f\mapsto D_f$ turns brackets of functions into commutators of operators. That is the sense in which functions on phase space generate motions.

14 · brackets

Time evolution is a bracket with $H$

theorem

Along any solution of Hamilton's equations, for $f(q,p,t)$, $$\frac{\mathrm df}{\mathrm dt} = \{f, H\} + \frac{\partial f}{\partial t}.$$

proof

Chain rule, then Hamilton: $\dot f = \sum(f_{q_i}\dot q_i + f_{p_i}\dot p_i) + f_t = \sum(f_{q_i}H_{p_i} - f_{p_i}H_{q_i}) + f_t$. ∎

special cases

$f = q_i$: $\dot q_i = \{q_i,H\} = H_{p_i}$ ✓. $f = p_i$: $\dot p_i = -H_{q_i}$ ✓. $f = H$: $\dot H = H_t$ ✓.

corollaries

1. A time-independent $f$ is conserved iff $\{f,H\} = 0$.

2. Poisson's theorem: if $f$ and $g$ are conserved, so is $\{f,g\}$.

proof of 2

Jacobi, rearranged: $\{\{f,g\},H\} = \{f,\{g,H\}\} + \{g,\{H,f\}\} = \{f,0\} + \{g,0\} = 0$. ∎

what Poisson's theorem does not promise

$\{f,g\}$ may be zero, a constant, or a function of $f$, $g$ and $H$. It is a new conserved quantity only sometimes; for Kepler it is never new, and that is the point — the set closes.

14 · brackets

Noether's converse, now cheap

the flow a function generates

Any $f$ is a Hamiltonian: its flow solves $z' = J\nabla f(z)$ in a parameter $s$, and along it $\mathrm dg/\mathrm ds = \{g, f\}$ for every $g$.

theorem (Hamiltonian Noether, both ways)

For time-independent $f$ and $H$: $f$ is conserved by the flow of $H$ $\iff$ $H$ is invariant under the flow of $f$.

proof

The first is $\{f,H\} = 0$, the second $\{H,f\} = 0$. Antisymmetry. ∎

two generators

Translation. $f = \vec a\cdot\vec p$: $\{\vec r, f\} = \vec a$, $\{\vec p, f\} = \vec 0$. Its flow is $\vec r\mapsto\vec r + s\vec a$.

Rotation. $f = \vec a\cdot\vec L$ with $\vec L = \vec r\times\vec p$: since $\vec a\cdot\vec L = \vec p\cdot(\vec a\times\vec r) = \vec r\cdot(\vec p\times\vec a)$, $$\{\vec r, \vec a\cdot\vec L\} = \vec a\times\vec r,\qquad \{\vec p, \vec a\cdot\vec L\} = -\,\vec p\times\vec a = \vec a\times\vec p .$$ Both rotate about $\vec a$ at unit rate (unit 03's $\dot{\vec x} = \vec\omega\times\vec x$).

why unit 13's converse failed and this one does not

Unit 13 allowed only symmetries moving points of configuration space. The flow of $f$ may mix $q$ and $p$. Allow that, and every conserved quantity has its symmetry.

14 · brackets

Every vector rotates the same way under $\vec L$

the Levi-Civita symbol

$\varepsilon_{ijk} := \vec e_i\cdot(\vec e_j\times\vec e_k) = \det[\vec e_i\,\vec e_j\,\vec e_k]$: the sign of the permutation $(i,j,k)$ of $(1,2,3)$, and $0$ if two indices agree. Then $\vec e_i\times\vec e_j = \sum_k\varepsilon_{ijk}\vec e_k$.

lemma

Let $\vec V(\vec r,\vec p)$ be built from $\vec r$ and $\vec p$ by sums, cross products and multiplication by functions of $\vec r\cdot\vec r$, $\vec r\cdot\vec p$, $\vec p\cdot\vec p$. Then $\{\vec V, \vec a\cdot\vec L\} = \vec a\times\vec V$, and so $$\{\vec a\cdot\vec L,\ \vec b\cdot\vec V\} = (\vec a\times\vec b)\cdot\vec V .$$

proof in the notes (N)

the first two brackets of Kepler

Both $\vec L = \vec r\times\vec p$ and $\vec A = \vec p\times\vec L - \mu k\,\vec r/\lvert\vec r\rvert$ qualify. Put $\vec a = \vec e_i$, $\vec b = \vec e_j$: $$\{L_i, L_j\} = \sum_k\varepsilon_{ijk}L_k,\qquad \{L_i, A_j\} = \sum_k\varepsilon_{ijk}A_k .$$

So the three $L_i$ close on unit 03's $\mathfrak{so}(3)$: $\{L_1,L_2\} = L_3$ and cyclically. And $\vec A$ transforms as a vector — which is all the second bracket says.

checks

Dimensions: $[L]^2/[\text{action}] = [L]$ ✓. Special case: from the definition, with $L_3 = xp_y - yp_x$, $\{x, L_3\} = \partial L_3/\partial p_x = -y$; the lemma gives $(\vec e_3\times\vec r)_1 = -y$ ✓.

14 · brackets

Worked: the bracket of Runge–Lenz with itself

$\{A_i, A_j\} = -2\mu H\sum_k\varepsilon_{ijk}L_k$

Step 1 — a better form. BAC–CAB: $\vec p\times(\vec r\times\vec p) = p^2\vec r - (\vec r\cdot\vec p)\vec p$, so $$\vec A = \alpha\,\vec r - \beta\,\vec p,\qquad \alpha = p^2 - \frac{\mu k}{r},\quad \beta = \vec r\cdot\vec p .$$

Step 2 — the brackets needed, each from the definition: $\{r_i,\alpha\} = 2p_i$, $\ \{p_i,\beta\} = -p_i$, $\ \{r_i,\beta\} = r_i$, $\ \{\alpha, p_j\} = \mu k\,r_j/r^3$, and $$\{\alpha,\beta\} = \frac{\mu k}{r} - 2p^2 .$$

Step 3 — expand $\{\alpha r_i - \beta p_i,\ \alpha r_j - \beta p_j\}$ by Leibniz. Only the part antisymmetric in $i,j$ survives; write $\Lambda_{ij} = r_ip_j - r_jp_i = \sum_k\varepsilon_{ijk}L_k$.

$\{\alpha r_i,\alpha r_j\} = \alpha(\{r_i,\alpha\}r_j - \{r_j,\alpha\}r_i) = -2\alpha\Lambda_{ij}$.
$\{\beta p_i,\beta p_j\} = \beta(\{p_i,\beta\}p_j - \{p_j,\beta\}p_i) = 0$.
The cross terms: $\{\alpha r_i,\beta p_j\} = \alpha\beta\delta_{ij} + \alpha r_ip_j + \beta\mu k\,r_ir_j/r^3 + \{\alpha,\beta\}r_ip_j$, whose antisymmetric part is $(\alpha + \{\alpha,\beta\})\Lambda_{ij} = -p^2\Lambda_{ij}$, entering with a minus sign.

Step 4 — add. $$\{A_i,A_j\} = (-2\alpha + p^2)\Lambda_{ij} = \Big(\frac{2\mu k}{r} - p^2\Big)\Lambda_{ij} = -2\mu H\,\Lambda_{ij}.$$

Checks. $[\{A,A\}] = (\mathrm{M^2L^3T^{-2}})^2/\mathrm{ML^2T^{-1}} = \mathrm{M^3L^4T^{-3}} = [\mu HL]$ ✓. Special case $k = 0$: then $\alpha = p^2$ and the same steps give $-p^2\Lambda_{ij}$, which is $-2\mu H\Lambda_{ij}$ for $H = p^2/2\mu$ ✓.

14 · brackets

The algebra closes: $\mathfrak{so}(4)$, $\mathfrak e(3)$, $\mathfrak{so}(3,1)$

rescale by the energy

Put $\vec M = \vec A/\sqrt{\mp2\mu H}$ on $H \lessgtr 0$; the factor passes through the bracket, as $\{\vec A, H\} = \vec 0$: $$\{L_i,L_j\} = \varepsilon_{ijk}L_k,\qquad \{L_i,M_j\} = \varepsilon_{ijk}M_k,$$ $$\{M_i,M_j\} = \pm\,\varepsilon_{ijk}L_k,$$ with $+$ for bound orbits and $-$ for unbound (sum over $k$). At $H = 0$: $\{A_i,A_j\} = 0$.

the matrix algebras

In $4\times4$ matrices, with $E_{ab}$ the matrix whose only nonzero entry is a $1$ in row $a$, column $b$, let $\ell_i = \hat e_i$ (unit 03's hat, in the top-left block), $m_i = E_{i4} - E_{4i}$, $k_i = E_{i4} + E_{4i}$. Then $[\ell_i,\ell_j] = \varepsilon_{ijk}\ell_k$, $[\ell_i,m_j] = \varepsilon_{ijk}m_k$, $[m_i,m_j] = \varepsilon_{ijk}\ell_k$: $\mathfrak{so}(4)$, antisymmetric matrices. And $[\ell_i,k_j] = \varepsilon_{ijk}k_k$, $[k_i,k_j] = -\varepsilon_{ijk}\ell_k$: $\mathfrak{so}(3,1)$, the $X$ with $X^{\!\top}\eta + \eta X = 0$, $\eta = \operatorname{diag}(1,1,1,-1)$.

what hidden symmetry meant

Bound Kepler orbits have the symmetry algebra of rotations of $\mathbb R^4$ — a space the comet never moves in. Unbound ones have the Lorentz algebra of unit 26. At the separatrix, $E = 0$, the algebra is $\mathfrak e(3)$, rotations and translations of $\mathbb R^3$: the one between.

Unit 13's "SO(4) generator" is this: the flow of $\vec a\cdot\vec A$, preserving $H$, carrying an ellipse to others of the same energy and different eccentricity.

two different algebras

$\mathfrak{so}(4)\not\cong\mathfrak{so}(3,1)$: in $\mathfrak{so}(3,1)$, $\operatorname{ad}k_1 = [k_1,\cdot\,]$ has real eigenvalues $\pm1$; in $\mathfrak{so}(4)$ every $\operatorname{ad}X$ has imaginary ones. Proof in the notes.

section 4

Canonical transformations

Which changes of phase-space coordinates keep Hamilton's equations — and a way to make them from one function.

14 · canonical

The symplectic form, and the maps that keep it

the symplectic group

A matrix $M\in\mathbb R^{2n\times2n}$ is symplectic if $M^{\!\top}JM = J$. They form a group $\mathrm{Sp}(2n,\mathbb R)$: if $M, N$ are, $(MN)^{\!\top}J(MN) = N^{\!\top}JN = J$, and $M^{-1}$ exists since $(\det M)^2 = 1$.

the symplectic form

The antisymmetric, nondegenerate bilinear form on $\mathbb R^{2n}$ $$\omega(u,v) := \sum_i\big(u_{p_i}v_{q_i} - u_{q_i}v_{p_i}\big) = -\,u^{\!\top}Jv .$$ $M$ is symplectic iff $\omega(Mu,Mv) = \omega(u,v)$ for all $u,v$. Unit 34 writes $\omega = \sum_i\mathrm dp_i\wedge\mathrm dq_i$.

a canonical transformation

A $C^1$ diffeomorphism $\Phi:(q,p)\mapsto(Q,P)$ between open subsets of $\mathbb R^{2n}$ whose Jacobian $D\Phi(z)$ is symplectic at every $z$.

$n = 1$: area

For $2\times2$ matrices $M^{\!\top}JM = (\det M)J$. So in the plane symplectic means $\det M = 1$, and $\omega(u,v) = -\det[u\ v]$ is minus the signed area of the parallelogram on $u, v$. Canonical = area- and orientation-preserving.

14 · canonical

Volume is not enough: one area per plane

q₁ p₁ 0 1 1 q₂ p₂ 0 1 1 (q₁, p₁) plane (q₂, p₂) plane S: area 1 V: area 2 S: area 1 V: area ½

The unit square of each $(q_i,p_i)$ plane, shaded, and its images under $S = \operatorname{diag}(2,1,\tfrac12,1)$ (solid) and $V = \operatorname{diag}(2,\tfrac12,1,1)$ (dashed), coordinates ordered $(q_1,q_2,p_1,p_2)$. Both have determinant $1$. Only $S$ keeps the area in each plane.

in $2n\ge4$ it is more

Preserving $\omega$ preserves the area of the projection onto each $(q_i,p_i)$ plane, summed. Much stronger than preserving volume: in $(q_1,q_2,p_1,p_2)$, $\operatorname{diag}(2,1,\tfrac12,1)$ is symplectic; $\operatorname{diag}(2,\tfrac12,1,1)$ has determinant $1$ and is not.

the test, for diagonal maps

$\operatorname{diag}(d_1,d_2,d_3,d_4)$ is symplectic iff $d_1d_3 = 1$ and $d_2d_4 = 1$: stretch a position only by shrinking its own momentum. $V$ stretches $q_1$ and pays by shrinking $q_2$ — the wrong partner.

14 · canonical

Three tests that are one test

theorem

For a $C^1$ diffeomorphism $\Phi$ with Jacobian $M = D\Phi$, these are equivalent:

(i) $M^{\!\top}JM = J$ everywhere (canonical);
(ii) $\Phi$ preserves brackets: $\{f\circ\Phi, g\circ\Phi\} = \{f,g\}\circ\Phi$ for all $f, g$ — equivalently, the new coordinates have the fundamental brackets $\{Q_i,Q_j\} = \{P_i,P_j\} = 0$, $\{Q_i,P_j\} = \delta_{ij}$;
(iii) for every $K$, $\Phi$ carries solutions of Hamilton's equations for $H = K\circ\Phi$ to solutions for $K$.

proof

Lemma: $M^{\!\top}JM = J\iff MJM^{\!\top} = J$ (invert both sides and use $J^{-1} = -J$).

(ii). By the chain rule $\nabla(f\circ\Phi) = M^{\!\top}\nabla f$, so $\{f\circ\Phi,g\circ\Phi\} = \nabla f^{\!\top}\,MJM^{\!\top}\,\nabla g$. This is $\nabla f^{\!\top}J\nabla g$ for all $f, g$ iff $MJM^{\!\top} = J$. The fundamental brackets are the entries of $MJM^{\!\top}$.

(iii). If $\dot z = J\nabla H$ and $w = \Phi(z)$, then $\dot w = M\dot z = MJM^{\!\top}\nabla K(w)$. This is $J\nabla K$ for every $K$ iff $MJM^{\!\top} = J$. ∎

"for every $K$" matters

$Q = \lambda q$, $P = \lambda p$ is not canonical for $\lambda^2\ne1$, yet maps the oscillator's equations to Hamilton's with $K = \lambda^2H$. One Hamiltonian cannot certify a map (problem P6).

14 · canonical

Generating functions: a canonical map from one function

theorem

A $C^2$ diffeomorphism $\Phi$ on a simply connected domain is canonical iff there is a function $F$ with $$\sum_i p_i\,\mathrm dq_i - \sum_i P_i\,\mathrm dQ_i = \mathrm dF,$$ i.e. $p\cdot\dot q - P\cdot\dot Q = \frac{\mathrm d}{\mathrm dt}F$ along every curve.

proof

The left side is a covector field $a(z) = (p, 0) - M^{\!\top}(P,0)$ on $\mathbb R^{2n}$. By the Poincaré lemma (unit 04) it is a gradient iff $Da - Da^{\!\top} = 0$. Compute: for $(p,0)$ this antisymmetric part is $J$; for $M^{\!\top}(P,0)$ it is $M^{\!\top}JM$ (second derivatives of $Q$ cancel by Clairaut). So $Da - Da^{\!\top} = J - M^{\!\top}JM$. ∎

the four generating functions

Write $F$ in whichever $2n$ of $(q,p,Q,P)$ are independent:

typevariablesequations
$F_1$$q, Q$$p = \partial_qF_1$, $\ P = -\partial_QF_1$
$F_2 = F_1 + P\cdot Q$$q, P$$p = \partial_qF_2$, $\ Q = \partial_PF_2$
$F_3 = F_1 - p\cdot q$$p, Q$$q = -\partial_pF_3$, $\ P = -\partial_QF_3$
$F_4 = F_1 + P\cdot Q - p\cdot q$$p, P$$q = -\partial_pF_4$, $\ Q = \partial_PF_4$
three to know

$F_2 = q\cdot P$: the identity. $F_1 = q\cdot Q$: $Q = p$, $P = -q$ — position and momentum are interchangeable. $F_2 = f(q)\cdot P$: the point transformation $Q = f(q)$, $p = Df(q)^{\!\top}P$.

14 · canonical

Worked: Cartesian to polar is canonical

Kepler's coordinates, justified

Step 1 — the generating function. A point transformation, type 2: $F_2(x,y,P_r,P_\theta) = P_r\sqrt{x^2+y^2} + P_\theta\,\theta(x,y)$, with $\theta$ the polar angle (locally smooth off the origin).

Step 2 — read off. $r = \partial F_2/\partial P_r = \sqrt{x^2+y^2}$, $\theta = \partial F_2/\partial P_\theta$ ✓, and with $\partial_x\theta = -y/r^2$, $\partial_y\theta = x/r^2$: $$p_x = P_r\frac xr - P_\theta\frac{y}{r^2},\qquad p_y = P_r\frac yr + P_\theta\frac{x}{r^2}.$$

Step 3 — invert. Dot with $(x,y)/r$ and with $(-y,x)$: $$P_r = \frac{xp_x + yp_y}{r} = \hat r\cdot\vec p,\qquad P_\theta = xp_y - yp_x = L_z .$$

Step 4 — second route, the brackets. $\{r, P_r\} = \tfrac xr\cdot\tfrac xr + \tfrac yr\cdot\tfrac yr = 1$, $\{\theta, P_\theta\} = (-\tfrac{y}{r^2})(-y) + \tfrac{x}{r^2}x = 1$, $\{r,P_\theta\} = \tfrac xr(-y) + \tfrac yr x = 0$, $\{\theta, P_r\} = 0$.

Step 5 — the Hamiltonian. $p_x^2 + p_y^2 = P_r^2 + P_\theta^2/r^2$ (orthogonal parts along $\hat r$ and $\hat\theta$), so $H = P_r^2/2\mu + P_\theta^2/2\mu r^2 - k/r$ — the Legendre transform's answer from section 1 ✓.

checks

Dimensions: $[F_2] = [P_r][r] = \mathrm{J\,s}$, an action, as every generating function must be ✓.

The last bracket, $\{P_r, P_\theta\} = 0$, needs a line more: notes.

θ r Pr r̂ (Pθ/r) θ̂ p (x, y) 0 x y

Step 5 in a picture: $\vec p$ splits into $P_r$ along $\hat r$ and $P_\theta/r$ along $\hat\theta$, at right angles, so $p_x^2 + p_y^2 = P_r^2 + P_\theta^2/r^2$ is Pythagoras.

14 · canonical

The motion itself is a canonical transformation

theorem

Let $H\in C^2$ and let $\varphi_t$ be its flow: $\varphi_t(z)$ is the state at time $t$ of the solution starting at $z$. Then for each $t$, $\varphi_t$ is a canonical transformation.

proof

Let $Y(t) = D\varphi_t(z)$. It solves $\dot Y = JS(t)Y$, $Y(0) = I$, with $S = \nabla^2H(\varphi_t z)$ symmetric (cited, below). Then $$\tfrac{\mathrm d}{\mathrm dt}(Y^{\!\top}JY) = Y^{\!\top}\big(S^{\!\top}J^{\!\top}J + JJS\big)Y = Y^{\!\top}(S - S)Y = 0,$$ using $J^{\!\top}J = I$, $J^2 = -I$. So $Y^{\!\top}JY = J$ for all $t$. ∎

cited: the variational equation

For a $C^1$ vector field $X$, the flow is $C^1$ in the initial point, and $Y = D\varphi_t(z)$ solves $\dot Y = DX(\varphi_t z)\,Y$. Hirsch, Smale and Devaney, Differential Equations, Dynamical Systems, and an Introduction to Chaos, §17.6. Unit 17 makes it central.

what it is for

Unit 15: if motion is a canonical transformation, look for the one that makes it trivial — new coordinates in which $K = 0$. Its generating function is the Hamilton–Jacobi $S$.

Section 5: symplectic maps have determinant $1$, so the flow preserves volume.

section 5

Liouville: clouds that deform without shrinking

The flow preserves volume — in three lines — and statistical mechanics, and good integrators, rest on it.

14 · Liouville

Divergence, and how determinants evolve

the divergence

For a $C^1$ vector field $X$ on an open subset of $\mathbb R^N$, $$\operatorname{div}X := \operatorname{tr}DX = \sum_{a=1}^N\frac{\partial X_a}{\partial z_a}.$$ Unit 05 gives it a meaning as flux per unit volume; here only this definition is used.

Liouville's formula

If $\dot Y = A(t)Y$ for $N\times N$ matrices, then $$\frac{\mathrm d}{\mathrm dt}\det Y = \operatorname{tr}A(t)\,\det Y .$$

proof

$Y(t+\epsilon) = (I + \epsilon A + o(\epsilon))Y(t)$, and expanding the determinant by permutations, $\det(I + \epsilon A + o(\epsilon)) = 1 + \epsilon\operatorname{tr}A + o(\epsilon)$: the identity permutation gives $\prod(1 + \epsilon A_{aa}) + o(\epsilon)$; every other one has at least two off-diagonal factors, each $O(\epsilon)$. Multiply by $\det Y(t)$ and let $\epsilon\to0$. ∎

special case

$N = 2$, $A = \begin{pmatrix}0&1\\-\omega_0^2&-\gamma\end{pmatrix}$: $\det Y = W$, the Wronskian, and the formula is unit 06's Abel identity $W(t) = W(0)e^{-\gamma t}$ ✓.

for a flow

With the variational equation: $\det D\varphi_t(z) = \exp\displaystyle\int_0^t\operatorname{div}X(\varphi_s z)\,\mathrm ds$.

14 · Liouville

Liouville's theorem, in three lines

Liouville's theorem

Let $H\in C^2$ and $D$ a bounded region of phase space. Then the flow of $H$ preserves volume: $$\operatorname{vol}\varphi_t(D) = \operatorname{vol}D\quad\text{for all } t.$$

proof

1. $\operatorname{div}X_H = \sum_i\Big(\dfrac{\partial}{\partial q_i}\dfrac{\partial H}{\partial p_i} - \dfrac{\partial}{\partial p_i}\dfrac{\partial H}{\partial q_i}\Big) = 0$ by Clairaut.
2. By Liouville's formula, $\det D\varphi_t\equiv e^0 = 1$.
3. By change of variables, $\operatorname{vol}\varphi_t(D) = \int_D\lvert\det D\varphi_t\rvert = \operatorname{vol}D$. ∎

Step 3's change-of-variables formula is proved in unit 05, outside this unit's needs: cited here.

a second proof of step 2

$\operatorname{div}X_H = \operatorname{tr}(JS)$ and $\operatorname{tr}(JS) = \operatorname{tr}\big((JS)^{\!\top}\big) = \operatorname{tr}(-SJ) = -\operatorname{tr}(JS)$. Or: $\varphi_t$ is canonical, and in the plane symplectic already means $\det = 1$.

in which coordinates

In $(q,p)$. In $(q,\dot q)$ it fails whenever the kinetic matrix $M(q)$ varies: $\mathrm dp = M\,\mathrm d\dot q + \dots$ has Jacobian $\det M(q)$, which changes along the orbit.

limits

Damping $\dot p = -V' - \gamma p$: $\operatorname{div} = -\gamma$, volume $\times e^{-\gamma t}$ (units 02, 06). $\gamma = 0$ recovers the theorem ✓.

14 · Liouville

What a cloud of initial conditions does

t = 0 t = 3 q p

Free particle, $q\mapsto q + pt/m$, with $m = 1$. The rectangle $[0,1]\times[1,2]$ becomes a parallelogram of the same area $1$: the top edge, moving faster, has been sheared ahead.

three flows, one area

Free: $\begin{pmatrix}1&t/m\\0&1\end{pmatrix}$, $\det = 1$ — pure shear; the cloud grows ever longer and thinner.

Oscillator: $\begin{pmatrix}\cos\omega t&\frac{\sin\omega t}{m\omega}\\-m\omega\sin\omega t&\cos\omega t\end{pmatrix}$, $\det = 1$ — it turns, and every period it comes back.

Nonlinear (pendulum, Kepler): each orbit has its own period, so the cloud is sheared along the orbits and wound into a filament of constant area.

14 · Liouville

A cloud in the pendulum, wound into a filament

t = 0 t = 15 t = 45 q p −π π

$H = p^2/2 - \cos q$. A disc of radius $0.25$ about $(0, 1.5)$, and the same set of states at $t = 15$ and $t = 45$, computed by integrating its boundary. Its area stays $0.1963 = \pi(0.25)^2$ while it is drawn out along the orbits, the outer ones lagging.

Each orbit inside the separatrix has its own period, longer the closer it is to the separatrix. So the cloud's outer edge falls behind its inner edge, turn after turn, and the disc is wound into a spiral of ever thinner arms.

no attractors

A Hamiltonian flow has no asymptotically stable equilibrium and no attracting limit cycle: a ball in the basin would have to shrink.

14 · Liouville

Why statistical mechanics is possible

the Liouville equation

Let a probability density $\rho_0$ on phase space be carried by the flow: the probability of $\varphi_t(D)$ at time $t$ equals that of $D$ at time $0$. Then $\rho(\varphi_tz, t) = \rho_0(z)$, and $$\frac{\partial\rho}{\partial t} + \{\rho, H\} = 0.$$

proof

Equal probabilities in equal volumes (Liouville) force equal densities, $\rho(\varphi_tz,t) = \rho_0(z)$. Differentiate in $t$ with the time-evolution theorem: $\partial_t\rho + \{\rho,H\} = 0$ at $\varphi_tz$, which is any point. ∎

stationary clouds

$\rho$ is time-independent iff $\{\rho, H\} = 0$ — iff $\rho$ is conserved. So any $\rho = g(H)$ is an equilibrium distribution: uniform on a shell of energy (Gibbs's microcanonical), or $\propto e^{-H/k_BT}$ (canonical).

why this needed Liouville

"Equally likely" means "uniform in some measure", and it must be a measure the dynamics does not change. Liouville says phase-space volume is one. In $(q,\dot q)$ it is not, so there "uniform" would not stay uniform.

14 · Liouville

Why a method for orbits should be symplectic

Oscillator with $m = \omega = 1$, time step $h$: $\dot q = p$, $\dot p = -q$.

Euler's method

$q' = q + hp$, $p' = p - hq$: the step is $\begin{pmatrix}1&h\\-h&1\end{pmatrix}$, with determinant $1 + h^2$. Every step multiplies area — and $q^2 + p^2$, i.e. the energy — by $1 + h^2$.

At $h = 0.01$: $628.3$ steps per period, energy up by a factor $1.06484$ per period: $6.5\%$, orbit after orbit.

symplectic Euler

Update $p$ first and use it: $p' = p - hq$, $q' = q + hp'$. The step is $\begin{pmatrix}1-h^2&h\\-h&1\end{pmatrix}$, with $M^{\!\top}JM = J$ and $\det = 1$: a canonical map.

It conserves exactly the nearby quadratic $q^2 - hqp + p^2$, so the energy error stays of size $h$ for ever — no drift.

the moral

Same cost, same order of accuracy per step. One respects Liouville and one does not, and over many periods that is the only difference that matters.

14 · Liouville

Euler and symplectic Euler, drawn

start Euler, one period symplectic Euler, five periods q p

$h = 0.2$, exaggerated so the shapes show. Euler's points spiral out to radius $1.87$ in one period, $32$ steps; symplectic Euler's points over five periods all lie on one ellipse, $q^2 - hqp + p^2 = 1$, tilted off the dashed circle.

1 1.5 2 0 5 10 Euler: 1.874 after ten periods symplectic Euler: within 0.5 % t, in periods E / E₀

$h = 0.01$, the previous slide's step. Euler's energy climbs by $1.06484$ per period, to $1.874$ after ten; symplectic Euler's wobbles inside $[0.995, 1.005]$ and never drifts.

14 · Liouville

Worked: Halley's phase area, and its period

the phase area of Halley's curve

Step 1 — a theorem. For $H = p^2/2m + V(x)$ with closed orbits, the area enclosed by the orbit of energy $E$, $A(E) = \oint p\,\mathrm dx$, satisfies $\mathrm dA/\mathrm dE = T(E)$, the period. (Proof in the notes.)

Step 2 — the area. With $p_r^2 = 2\mu E + 2\mu k/r - L^2/r^2 = 2\mu|E|(r - r_-)(r_+ - r)/r^2$ and the substitution $r = a - c\cos\phi$, $a = \tfrac{r_++r_-}{2}$, $c = \tfrac{r_+-r_-}{2}$ (notes): $$A(E) = 2\int_{r_-}^{r_+}\!p_r\,\mathrm dr = 2\pi\Big(k\sqrt{\frac{\mu}{-2E}} - L\Big).$$

Step 3 — differentiate. $$T = \frac{\mathrm dA}{\mathrm dE} = \pi k\sqrt{\frac\mu2}\,(-E)^{-3/2},$$ which is Kepler's third law $T = 2\pi\sqrt{\mu a^3/k}$ with $a = k/2|E|$ ✓.

Step 4 — Halley, per unit mass: $A/\mu = 2\pi\big(GM_\odot/\sqrt{2|\varepsilon|} - h\big) = 8.81646\times10^{16}\ \mathrm{m^2\,s^{-1}}$, and $T = \pi GM_\odot/\big(\sqrt2\,|\varepsilon|^{3/2}\big) = 75.3052$ yr.

checks

Dimensions: $[A] = [p][r] = \mathrm{J\,s}$, an action; $[\mathrm dA/\mathrm dE] = \mathrm s$ ✓.

Limit $E\to E_{\min} = -\mu k^2/2L^2$: $k\sqrt{\mu/2|E_{\min}|} = L$, so $A\to0$: the curve shrinks to the circular orbit ✓.

Limit $E\to0^-$: $A\to\infty$ and $T\to\infty$ — the separatrix encloses no finite area ✓.

Unit 08: $75.31$ yr ✓.

14 · Liouville

Why the area's derivative is the period

width ΔE / |∇H| speed |∇H| r₀ r p r

Kepler at fixed $L$, in the units of Kepler in the $(r,p_r)$ half-plane: the orbits $E = -0.30$ and $-0.24$, and the ring between. The cuts mark twelve equal times along the inner orbit. Near the Sun the ring is thin and crossed fast; far out it is wide and crossed slowly; each piece has area $\approx\Delta E\cdot T/12$.

step 1, in a picture

Across the ring $H$ rises by $\Delta E$, so its width is $\Delta E/\lVert\nabla H\rVert$. Along it the motion runs at speed $\lVert X_H\rVert = \lVert\nabla H\rVert$. So a time $\mathrm dt$ sweeps area $\frac{\Delta E}{\lVert\nabla H\rVert}\cdot\lVert\nabla H\rVert\,\mathrm dt = \Delta E\,\mathrm dt$, the same everywhere, and the ring is $\Delta A \approx T\,\Delta E$.

and the cloud

$T$ depends on $E$, so a cloud of comets spread in energy shears along the orbit, as the pendulum's cloud did: fixed area, ever longer filament. Halley's meteor streams are such a filament.

14 · close

Kepler in phase space, closed

the running example, start to finish

1. Legendre-transforming unit 08's Lagrangian gave $H = p_r^2/2\mu + p_\theta^2/2\mu r^2 - k/r$, and $\theta$ cyclic froze $p_\theta = L$.

2. At Halley's $L$ the $(r,p_r)$ portrait is a contour map: a centre at $r_0 = 1.15279$ AU, Halley's curve from $0.586025$ to $35.0789$ AU and $26.829\ \mathrm{km\,s^{-1}}$ wide, the separatrix $E = 0$ from $0.576396$ AU to infinity.

3. $\{L_i,L_j\} = \varepsilon_{ijk}L_k$, $\{L_i,A_j\} = \varepsilon_{ijk}A_k$, $\{A_i,A_j\} = -2\mu H\varepsilon_{ijk}L_k$: $\mathfrak{so}(4)$, $\mathfrak e(3)$, $\mathfrak{so}(3,1)$ as $E$ crosses zero.

4. Polar coordinates came from $F_2 = P_r r + P_\theta\theta$, and gave the same $H$.

5. Halley's curve encloses $8.81646\times10^{16}\ \mathrm{m^2\,s^{-1}}$ per unit mass, and $\mathrm dA/\mathrm dE$ is its $75.3052$-year period.

What this unit hands on

15 — the motion is a canonical transformation; find the one that trivialises it, and its $F_2$ is the Hamilton–Jacobi $S$.

17 — brackets in involution, action variables like $A/2\pi$, and area-preserving maps.

26, 27 — the Legendre transform of a Lagrangian with bounded velocities, and its degenerate twin.

34 — $\omega = \sum\mathrm dp_i\wedge\mathrm dq_i$ as a differential form, and the generating-function theorem as $\mathrm d^2 = 0$.

14 · checkpoint

Done when

checkpoint

You can, on paper and without the deck,

  • prove a given transformation canonical by two independent routes — two of $M^{\!\top}JM = J$, the fundamental brackets, a generating function;
  • perform a Legendre transform including its degenerate case, saying for a linear or degree-one $f$ exactly what $f^*$ is; and
  • prove Liouville's theorem from Hamilton's equations in three lines.

Falsifiable: two routes that are secretly one, a degenerate case answered "$H$ is undefined", or a Liouville proof assuming a linear flow, each fails. Record it with ./mr done 14.

Problems

./mr problems 14 — 13 problems, about 5 hours, hints and solutions folded under each.

Next

15 Hamilton–Jacobi · 16 tensors · 17 integrability and chaos · 26 Minkowski space.