Fundamentals / Physics / Classical mechanics / Analytical mechanics from constraints to invariants

Action, angle and the slowing clock at a separatrix

A phase portrait contains enough information to extract a period by differentiating an area. Use that fact to build a clock for finite-amplitude pendulum motion, determine precisely where slow-parameter invariance fails, and distinguish a librating trajectory from one that makes complete rotations.

Turn a closed phase-space loop into an action variable

For a one-degree-of-freedom Hamiltonian \(H(q,p;\lambda)\) at fixed parameter \(\lambda\), take a connected periodic orbit of energy \(E\). Define its action by \(J(E,\lambda)=(2\pi)^{-1}\oint p\,dq\), oriented along the actual motion. The units are energy times time. A smooth family of nested librating loops has \(2\pi J\) equal to the enclosed canonical phase area. For circulation on a coordinate cylinder, such as an angle increasing through \(2\pi\), the integral still defines an action even though the loop winds around the cylinder. Its area interpretation and sign need a reference branch.

At fixed \(q,\lambda\), differentiating \(H(q,p(E,q))=E\) gives

\[\partial_Ep=1/H_p=1/\dot q.\]

Differentiating the action integral yields \(\partial_E J=T/(2\pi)\), because \(dq/\dot q=dt\) around the orbit. At ordinary turning points \(\dot q=0\), the derivative integrand has an integrable singularity while the two endpoints of the closed loop agree; one can justify the derivative using a local square-root coordinate. Inverting gives

\[\omega(J)=\partial_JE.\]

If \(\theta\) is the angle conjugate to \(J\), the transformed Hamiltonian is \(E(J)\) and \(\dot\theta=\omega(J)\) is constant. This canonical angle generally differs from the geometric angle reported by a camera.

For a unit-mass harmonic oscillator the energy curve \(p^2+\omega_0^2q^2=2E\) is an ellipse. Its area is \(2\pi E/\omega_0\), giving \(J=E/\omega_0\) and a frequency independent of amplitude. One may take \(q=\sqrt{2J/\omega_0}\sin\theta,\ p=\sqrt{2J\omega_0}\cos\theta\), whose bracket is one. The position turns nonuniformly in coordinate space even though the phase angle advances uniformly. Under a slow change in \(\omega_0\), constant \(J\) predicts \(E\propto\omega_0\) and amplitude proportional to \(1/\sqrt{\omega_0}\). Constant action does not mean constant mechanical energy while work is performed by a changing spring.

Integrate the finite-amplitude pendulum

Let \(I=ml^2\), \(\omega_0^2=g/l\), and measure \(q\) from downward vertical. The Hamiltonian \(H=p^2/(2I)+I\omega_0^2(1-\cos q)\) has separatrix energy \(E_s=2I\omega_0^2\). For a libration of turning angle \(q_m<\pi\), define \(k=\sin(q_m/2)=\sqrt{E/E_s}\). The positive momentum branch is \(p=2I\omega_0\sqrt{k^2-\sin^2(q/2)}\). Set \(\sin(q/2)=k\sin u\). Evaluating four quarter-arcs of the loop gives

\[J_{\rm lib}=\frac{8I\omega_0}{\pi}\big[\mathsf E(k)-(1-k^2)\mathsf K(k)\big],\]
\[T_{\rm lib}=\frac{4}{\omega_0}\mathsf K(k).\]

Here \(\mathsf K(k)=\int_0^{\pi/2}(1-k^2\sin^2u)^{-1/2}du\) and \(\mathsf E(k)=\int_0^{\pi/2}\sqrt{1-k^2\sin^2u}\,du\). To verify the first formula after substitution, note that \(k^2\cos^2u=(1-k^2\sin^2u)-(1-k^2)\). The transformed integral of \(k^2\cos^2u/\sqrt{1-k^2\sin^2u}\) splits exactly into the two quoted complete elliptic integrals. The period follows either by \(dq/\dot q\) or by differentiating the action. That independent check is useful when numerical differentiation of noisy action estimates amplifies sampling errors.

At small \(k\),

\[\mathsf K=(\pi/2)(1+k^2/4+\cdots),\]
\[T\approx(2\pi/\omega_0)(1+q_m^2/16+\cdots).\]

At \(q_m=60^\circ\), \(k=1/2\) and \(\mathsf K\simeq1.68575\), giving \(T/T_{\rm small}=1.0732\). A pendulum of length \(1.00\,{\rm m}\) then has period about \(2.153\,{\rm s}\), where the small-angle answer is \(2.006\,{\rm s}\). Timing ten periods rather than one helps resolve the accumulated difference. Measuring the arc amplitude from a projected image requires a geometric correction if the swing plane is tilted relative to the camera.

Approach the saddle from either side

At the upright position \(q=\pi\), the potential is maximal and the equilibrium is a hyperbolic saddle in phase space. Put \(q=\pi+s\) with small \(s\); the energy near the saddle is \(H\simeq E_s+p^2/(2I)-I\omega_0^2s^2/2\). For an orbit at \(E_s-\Delta E\), the time spent in a fixed small neighbourhood includes an integral proportional to \(\int ds/\sqrt{s^2-2\Delta E/(I\omega_0^2)}\). As \(\Delta E\) decreases, this develops a logarithm. Equivalently \(\mathsf K(k)\sim\ln[4/\sqrt{1-k^2}]\) as \(k\to1^-\). The separatrix encloses finite canonical area but its period is infinite. Hence \(\partial_EJ\) diverges although \(J\) itself remains finite.

On the positive rotation branch \(E>E_s\), set \(k_r=\sqrt{E_s/E}<1\). A period is the time for \(q\) to increase through \(2\pi\), so there is only one positive branch of momentum in its action integral. Direct integration gives

\[J_{\rm rot}=(2/\pi)\sqrt{2IE}\,\mathsf E(k_r),\]
\[T_{\rm rot}=4\sqrt{I/(2E)}\,\mathsf K(k_r).\]

At very high energy, the potential is a small modulation and these formulas approach free-rotor values \(\sqrt{2IE}\) and \(2\pi\sqrt{I/(2E)}\). At the separatrix the positive rotation action approaches \(4I\omega_0/\pi\), half the limiting libration action \(8I\omega_0/\pi\). The two actions count different closed paths on a cylinder. The factor two is a topological change in the cycle, not a discontinuous jump in the mechanical momentum at a point.

Test slow conservation against the actual orbit period

To treat slowly varying parameters, define instantaneous action–angle coordinates for each fixed \(\lambda\). The generating function \(W(q,J,\lambda)\) acquires explicit time dependence when \(\lambda=\lambda(t)\), adding \(\dot\lambda\,\partial_\lambda W\) to the transformed Hamiltonian. Its angle dependence produces an oscillating \(\dot J=-\dot\lambda\,\partial_\theta\partial_\lambda W\). On a regular periodic orbit, the integral of an angle derivative over a cycle vanishes. If \(\lambda\) changes little during that cycle and there is no resonant complication, this cancellation explains why the action changes little on average. The requirement uses the actual orbit period at the chosen energy. Near a separatrix it cannot be justified merely by comparing a drive rate to the small-amplitude period.

Consider a parameter ramp lasting \(20\,{\rm s}\) for the one-metre pendulum. Near the bottom this covers about ten periods. For \(1-E/E_s=10^{-6}\), the asymptotic \(\mathsf K\simeq\ln4000=8.29\) gives a period of approximately \(10.6\,{\rm s}\), so the same ramp spans less than two cycles. Even longer ramps fail the scale separation sufficiently close to the saddle. If a varying parameter changes the separatrix area until it meets the trajectory, continued use of a single analytic action branch is especially unreliable. A trajectory can pass into circulation or return to libration depending on its phase and the ramp history.

Compute an action without measuring momentum continuously

Suppose a camera tracks one-dimensional positions over one full cycle, and velocity estimates are noisy. For a known position-dependent potential and calibrated mass, an independent measurement of the turning energy allows phase-area integration without differentiating the camera trace. On a bound orbit \(p_\pm(q)=\pm\sqrt{2m[E-V(q)]}\), so \(J=\pi^{-1}\int_{q_-}^{q_+}\sqrt{2m[E-V(q)]}\,dq\). One needs a potential calibration, both turning positions and a common energy datum. An additive constant in the potential cancels when \(E\) is shifted by the same amount. An unrecognised dissipative force makes the inward and outward energy profiles different and invalidates the assumed single closed energy curve.

Take a particle in the potential \(V(q)=a|q|\), \(a>0\), which can approximate opposed constant restoring forces away from a narrow central smoothing zone. Its turning displacements are \(\pm E/a\). Integrate on the positive half and use symmetry to find

\[J=4\sqrt{2m}E^{3/2}/(3\pi a).\]

Differentiating gives

\[T=2\pi\,dJ/dE=4\sqrt{2mE}/a.\]

The same period follows by constant acceleration: starting at rest at a positive turning point, the fall to the origin takes \(\sqrt{2mE}/a\), one quarter period. Agreement across a nondifferentiable potential cusp is a useful check that the action calculation handles the turning boundaries rather than requiring sinusoidal motion.

For \(m=0.10\,{\rm kg}\), \(a=2.0\,{\rm N}\), and \(E=0.20\,{\rm J}\), the amplitude is \(0.10\,{\rm m}\), action is \(0.00849\,{\rm J\,s}\), and period is \(0.400\,{\rm s}\). If the restoring strength \(a\) doubles slowly at fixed action, \(E\propto a^{2/3}\) increases by \(2^{2/3}=1.59\), while the turning amplitude shrinks by \(2^{-1/3}=0.794\). A harmonic-oscillator action rule \(J=E/\omega\) using a single measured frequency would be incorrect here: the actual \(E/\omega=ET/(2\pi)\) exceeds the action by a factor \(3/2\). The equality found for a harmonic oscillator follows from its linear energy–action relation and need not generalise.

Separate the angle accumulated during a cycle from the action it encloses

In a slowly modulated oscillator an almost constant action can coexist with a measurable phase error. Consider \(\ddot q+\omega(t)^2q=0\) with smooth positive \(\omega\). An approximate oscillation is \(q=A(t)\cos\Phi(t)\). At leading order \(\dot\Phi=\omega\). Cancelling the first-order sine term gives \(2\dot A\omega+A\dot\omega=0\), so \(A\sqrt\omega\) is approximately constant. The amplitude law reproduces conservation of \(E/\omega\) after averaging. The accumulated phase is \(\int\omega(t)\,dt\), which can change by many radians during a slow parameter cycle even if the initial and final frequency and action agree.

For \(\omega(t)=10[1+0.10\sin(2\pi t/T_r)]\,{\rm s^{-1}}\) and \(T_r=20\,{\rm s}\), integration over one full ramp gives \(200\,{\rm rad}\) of leading phase. The largest value of \(|\dot\omega|/\omega^2\) is only a few \(10^{-3}\). To first order the final amplitude returns to its initial value, but the position at the end is set by a phase that is generally not an integer multiple of \(2\pi\). A calculation that expects to return to its initial point after the parameter cycle confuses action invariance with angle closure. A small constant frequency calibration error, integrated over a long ramp, can dominate the final phase error while producing little amplitude error.

A sudden frequency switch gives an instructive opposite limit with exact phase dependence. At fixed \(q,p\), changing \(\omega_1\) instantly to \(\omega_2\) changes the action to \(J_2=p^2/(2m\omega_2)+m\omega_2 q^2/2\). Write the initial state at action \(J_1\) using the harmonic angle. Then

\[J_2/J_1=(\omega_1/\omega_2)\cos^2\theta+(\omega_2/\omega_1)\sin^2\theta.\]

For a frequency doubling, the ratio ranges from one half at a passage through the centre to two at a turning point. For a uniformly sampled ensemble the average ratio is \(1.25\), although the pre-switch and post-switch Hamiltonians are both perfectly integrable.

An experiment can therefore test slowness by preparing the same initial action at different phases and comparing the distribution of final actions. A broad phase-dependent distribution for a rapid switch narrows as the ramp becomes slow on a regular family of tori. Near a separatrix a slow external ramp can still yield a broad distribution because the orbital clock itself stalls. The size of the instantaneous energy, measured without phase and the final Hamiltonian, does not distinguish these mechanisms.

Resolve a separatrix in time without integrating arbitrarily close to the saddle

At exactly \(E_s\), energy conservation gives \(p=\pm2I\omega_0\cos(q/2)\) on \(-\pi<q<\pi\). Choose the increasing branch passing through \(q=0\) at \(t=0\). Separation of variables in \(\dot q=2\omega_0\cos(q/2)\) gives

\[\tan(\pi/4+q/4)=e^{\omega_0t}.\]

Therefore \(q(t)=4\arctan(e^{\omega_0 t})-\pi\),

\[p(t)=2I\omega_0\,{\rm sech}(\omega_0t).\]

This exact orbit approaches the upright saddle exponentially at both infinite endpoints. The two endpoints represent the same physical angle on the cylinder even though they differ by \(2\pi\) on an unwrapped plot.

The separatrix momentum falls to one tenth of its maximum after \(\omega_0 t=\operatorname{arcosh}10\approx2.993\). At \(\omega_0=3.13\,{\rm s^{-1}}\) that takes only \(0.956\,{\rm s}\). Reaching one hundredth takes \(\operatorname{arcosh}100/\omega_0\approx1.69\,{\rm s}\). The logarithmic increase in time per retained significant digit explains why an apparently captured upright state can simply be a trajectory very close to the saddle. Measuring angular velocity as well as angular displacement makes the exponential approach easier to distinguish from a truly stationary upright solution.

The phase area enclosed by both separatrix branches can also be recovered directly. Integrating their difference gives

\[\int_{-\pi}^{\pi}4I\omega_0\cos(q/2)dq=16I\omega_0.\]

Dividing by \(2\pi\) yields the libration limit \(8I\omega_0/\pi\) obtained using elliptic integrals. By contrast a trajectory winding once on the upper branch integrates only the upper momentum, giving half that value. Testing these two integrals on an unwrapped numerical phase trace can reveal a missing lower turning branch or a routine that silently wraps the angle before accumulating \(p\,dq\).

Find a frequency directly from noisy orbital areas

Suppose a calibrated experiment measures the phase areas \(A(E)=\oint p\,dq\) at several energies. With \(J=A/(2\pi)\), the identity \(dA/dE=T\) says that an area-versus-energy slope directly has units of time. Take three close energies \(0.09,0.10,0.11\,{\rm J}\), with measured areas \(0.180,0.202,0.225\,{\rm J\,s}\). A central difference gives \(T\simeq(0.225-0.180)/0.020=2.25\,{\rm s}\) at the centre. If each area has an independent uncertainty \(0.001\,{\rm J\,s}\), the propagated standard uncertainty of that difference is about \(0.071\,{\rm s}\), before accounting for energy uncertainty and curvature of \(A(E)\).

Decreasing the energy spacing would reduce smooth finite-difference bias but amplify the effect of those same area errors. A local fit over several energies can trade variance against the assumption of a smooth slope. Near a separatrix the actual slope varies rapidly, so a wide polynomial fit may smooth away precisely the period increase being sought. Compare with direct return times at selected energies, or fit the logarithmic form justified by the saddle expansion when the orbit is demonstrably in its asymptotic regime. A measured phase area can be highly accurate while an inferred frequency remains poorly constrained because it is a derivative.

A practical area estimate from ordered camera samples uses the polygon formula \(\tfrac12\sum_i(p_i+p_{i+1})(q_{i+1}-q_i)\), including the return to the initial point with a consistent sign. Very long time sampling can overrepresent the slow turn neighbourhood but need not corrupt a properly oriented geometric line integral. It can make a uniform-clock finite difference of velocity near a turnaround noisy, however. If a dataset includes several cycles with dissipation, do not simply close the final state back to the beginning of the first cycle. Find individual return events, estimate the action per cycle and test whether its change is consistent with measured losses.

Construct the canonical angle on two sides of a turning point

For a bound one-dimensional potential take a reference crossing at the lower turning point and choose the increasing-\(q\) branch. A Hamilton–Jacobi generating integral is

\[W(q,J)=\int_{q_-}^{q}p(q',E(J))\,dq'.\]

Its angle is \(\theta=\partial_JW=(dE/dJ)\int_{q_-}^{q}dq'/\dot q'=\omega t_{\rm flight}\) on that branch. At the upper turning point \(\theta=\pi\) for a time-reversal-invariant kinetic-plus-potential Hamiltonian. On the return branch the same coordinate \(q\) must be assigned the complementary angle \(2\pi-\theta_{\rm outgoing}(q)\), because its momentum has opposite sign. The coordinate alone is insufficient to reconstruct a unique phase.

For a harmonic oscillator beginning at its leftmost position a quarter-amplitude point is crossed at two different times. In coordinates \(q=-A\cos\theta\) take \(q=-A/2\). The increasing branch gives

\[\theta=\pi/3;\]

the returning branch gives \(5\pi/3\). Their velocities have opposite signs. Using the principal arccosine for every time sample forces both branches onto the same interval and makes an apparently discontinuous phase that never completes a cycle. Measuring the sign of velocity or interpolating successive turning events restores the appropriate branch. Near a saddle, tiny velocities make this branch identification particularly sensitive to camera noise.

Once a reliable angle is available, the phase deviation from the uniform prediction \(\theta(t_0)+\omega(t-t_0)\) becomes a useful diagnostic. A static potential with a wrongly calibrated shape can cause a phase error periodic in position even when its return time is fitted correctly. Dissipation usually changes the action as well, while a constant clock error causes a steadily accumulating phase drift. Compare the residual over several cycles at different amplitudes and plot it against reconstructed angle as well as laboratory time. These alternate plots test different physical explanations of the same timing mismatch.

Measure the area of a closed orbit

Inspect how deformation of a potential changes an energy contour. Compute its action before using it to infer an adiabatic frequency.

Separate a true separatrix crossing from a change of angle convention

Imagine slowly reducing the pendulum's gravitational strength while a bob initially librates. The separatrix action \(J_s=8I\omega_0/\pi\) decreases with \(\omega_0\). Away from the crossing the orbit approximately maintains its own action, so its energy as a fraction of the instantaneous barrier rises. When the shrinking separatrix action reaches that of the orbit, no closed librating torus of that action remains. The system can enter one of the two circulation branches. Its action convention changes because the relevant closed curve on the cylinder now winds rather than traversing two momentum branches. An apparent numerical factor-of-two jump caused by this convention is distinct from the actual dynamics through the slow saddle neighbourhood.

For an initial libration action equal to \(0.40\) of the original separatrix action at fixed \(I\), a parameter protocol reducing \(\omega_0\) to half its original value leaves \(J/J_s\) about \(0.80\), assuming adiabatic tracking remains valid. Reducing it to \(0.30\) of the initial value would formally give \(J/J_s=1.33\), impossible for a libration. The naive crossing estimate is \(\omega_0=0.40\omega_{0,\rm initial}\), but the timing and selected rotation direction require integrating the actual trajectory near the saddle; the adiabatic argument loses uniform accuracy there. A local measure of \(p\) and unwrapped \(q\) supplies the physical distinction.

A real parameter protocol must specify how gravity strength changes. A pendulum length ramp changes both \(I=ml^2\) and \(\omega_0=\sqrt{g/l}\), so its separatrix area scales as \(I\omega_0=m\sqrt g\,l^{3/2}\). Reducing length to \(0.64\) of its starting value reduces the separatrix action by \(0.64^{3/2}=0.512\), whereas replacing only \(\omega_0\) in a fixed-\(I\) model would predict the opposite trend. A literal change of length also brings radial kinetic energy and actuator work, as derived for the reelled pendulum. Specify the physical control path in parameter space before applying a numerical action law.

An unwrapped angle increases by \(2\pi\) over a recorded interval but the phase portrait seems to contain a bounded loop. Can both observations be trusted simultaneously?

Work through the solution

A true circulation winds around the cylindrical phase space, whereas a libration has zero net unwrapped displacement after a full return. A plot that wraps angles into a fixed interval and draws a line across its boundary can display an artificial closing segment. Conversely, measurement noise near \(\pm\pi\) can make a naive unwrapping code insert a spurious \(2\pi\) jump. Inspect signed momentum and the time-resolved crossing of the angle boundary, then reconstruct the loop in adjacent copies of the coordinate interval. Explicitly identifying the cycle on which the action was integrated resolves the apparent contradiction.

Infer work during an adiabatic change from a phase average

Differentiate the action integral at fixed energy with respect to the external parameter \(\lambda\). The energy relation gives \(\partial_\lambda p|_{E,q}=-H_\lambda/H_p\), so \(J_\lambda|_E=-(2\pi)^{-1}\oint H_\lambda\,dt\). Combine this with \(J_E=T/(2\pi)\) and differentiate at fixed \(J\). The result is

\[\partial_\lambda E|_J=\langle\partial_\lambda H\rangle_{\rm time}.\]

A slowly changed parameter therefore does net reversible work at the orbit-averaged rate dictated by its conjugate generalised force. The average must weight time, not distance along the plotted phase curve.

For a harmonic spring with stiffness \(k\), \(H_k=q^2/2\) and \(\langle q^2\rangle=A^2/2=E/k\), giving \(\partial_k E|_J=E/(2k)\). Integrating yields \(E\propto\sqrt k\), consistent with \(J=E/\omega\). A \(4\%\) slow stiffness increase raises energy by about \(1.98\%\) exactly under this law. Changing stiffness at a single turning point would instead add \(4\%\) to the energy for that sudden change. The difference quantifies why observing only identical start and end stiffnesses does not identify the work protocol.

Tutorial on interpreting an action experiment

A harmonic oscillator has energy \(0.030\,{\rm J}\) and frequency \(5.0\,{\rm Hz}\). Its stiffness is increased slowly until the frequency doubles. Determine action, final energy and relative amplitude.

Work through the solution

The action is

\[0.030/(2\pi\cdot5.0)=9.55\times10^{-4}\,{\rm J\,s}.\]

Approximately constant action gives a final energy of \(0.060\,{\rm J}\). With fixed mass and \(E=m\omega^2A^2/2\), the final amplitude is \(1/\sqrt2\) times its initial value. A sudden change performed at a particular phase would in general give a different final action.

A simulation estimates pendulum periods by differentiating sampled action values on a coarse uniform energy grid. Why is the last estimated period below the separatrix likely to be inaccurate even if the individual areas are well converged?

Work through the solution

A finite difference averages \(dJ/dE=T/(2\pi)\) over a finite energy interval. The derivative rises logarithmically near the saddle, so the average can underestimate its endpoint value markedly. Refine adaptively in the distance to \(E_s\), use the elliptic quadrature or measure return times directly. The numerical integrator must also locate the long dwell near the unstable equilibrium without stepping across it artificially.

Two trajectories have energy \(E_s+\delta\), one rotating clockwise and one anticlockwise. Can energy and the positive magnitude of rotation action distinguish them?

Work through the solution

Both have the same speed at each angle and the same positive action magnitude and period. The sign of momentum or a signed orientation of the fundamental rotational cycle distinguishes the branches. Near the separatrix a numerical classifier looking only at energy and unsigned area can lose track of this information. Count the unwrapped angular change and inspect the sign of \(p\) to identify circulation direction.

Measure phase area and compare its change under a parameter ramp.

David Tong develops action–angle variables and adiabatic invariance.