Hamilton's Characteristic Function

Before Hamilton ever wrote down a Hamiltonian, he had already compressed the whole of geometrical optics into one function. His characteristic function assigned to any two points the optical path length of the ray connecting them; from its partial derivatives, every lens, mirror and caustic in an instrument could be read off without tracing a single ray. When he turned to mechanics in 1834, he brought the object with him — and in the mechanics of conservative systems it survives, essentially unchanged, as W(q,α)W(q,\alpha): Hamilton's characteristic function, the time-free half of Hamilton's principal function. The split is disarmingly simple. When the Hamiltonian carries no explicit time, energy is conserved and the principal function separates as S=W(q,α)−EtS = W(q,\alpha) - Et: a static landscape WW over configuration space, plus a uniform drift. All the geometry of the motion at energy EE — where the system can go, with what momentum, along which paths — lives in WW. Its level surfaces are wavefronts; the momentum p=∇W\mathbf{p} = \nabla W pierces them at right angles; the trajectories are the rays. This is the optical-mechanical analogy in its sharpest classical form, and a century later it is precisely the picture Schrödinger promoted into wave mechanics. But WW is more than a geometric shadow of SS. It is a generating function in its own right, producing a canonical transformation with a different — and for bound systems, more useful — target: instead of freezing everything, it freezes the momenta and lets a single clock-like coordinate run. This article develops WW as an object (the abbreviated action), as a generator (the K=EK = E transformation), and as the bridge to Maupertuis' principle and action-angle theory.

Key takeaways
  • For a conservative system (∂H/∂t=0\partial H/\partial t = 0) the principal function splits as S(q,α,t)=W(q,α)−EtS(q,\alpha,t) = W(q,\alpha) - Et; the time-free piece WW is Hamilton's characteristic function.
  • WW obeys the Time-Independent Hamilton-Jacobi Equation H(q,∂W/∂q)=EH(q,\partial W/\partial q) = E and encodes all the geometry of motion at fixed energy.
  • Used as a type-2 generator, WW produces a canonical transformation with new Hamiltonian K=E=α1K = E = \alpha_1: all new momenta are constants, all new coordinates are frozen except β1=∂W/∂α1\beta_1 = \partial W/\partial\alpha_1, which advances as t+constt + \mathrm{const} — time itself emerges as the coordinate conjugate to energy.
  • Along the orbit W=∫p⋅dqW = \int \mathbf{p}\cdot\mathrm{d}\mathbf{q} — the abbreviated action of Maupertuis; over one cycle of a bound coordinate it accumulates the action variable J=∮p dqJ = \oint p\,\mathrm{d}q.
  • Geometrically, surfaces of constant WW are wavefronts with p=∇W\mathbf{p} = \nabla W normal to them; trajectories are the orthogonal rays, and ∣∇W∣2=2m(E−V)|\nabla W|^2 = 2m(E - V) is the classical eikonal equation.
  • Key idea: for a conservative system, factor out time via S=W−EtS = W - Et; the remaining function W(q,α)W(q,\alpha) obeys H(q,∂W/∂q)=EH(q,\partial W/\partial q) = E and generates a canonical map whose new Hamiltonian is EE itself — so all but one new coordinate are frozen and the motion is solved by quadrature.

Where this lives today

The eikonal equation (3) never left the workbench — it just changed employers. Seismologists solve ∣∇W∣=s(r)|\nabla W| = s(\mathbf{r}) (slowness playing the role of 2m(E−V)\sqrt{2m(E-V)}) across billions of grid cells to compute first-arrival traveltimes through the Earth; the fast-marching and fast-sweeping algorithms that do it are, quite literally, numerical constructions of Hamilton's wavefronts, and the same solvers route autonomous robots around obstacles by treating "time-to-reach" as a characteristic function over the map. In 2026 the fashionable accelerant is the physics-informed neural eikonal solver — networks trained to satisfy ∣∇W∣2=2m(E−V)|\nabla W|^2 = 2m(E-V) pointwise — which has cut seismic traveltime tomography and medical ultrasound aberration correction from cluster-hours to laptop-minutes. The conceptual descendants run deeper still. Every WKB calculation in quantum mechanics opens with ψ∼eiW/ℏ\psi \sim e^{iW/\hbar} — the characteristic function as the phase of a wavefunction — and the semiclassical machinery of chemistry (instanton rates, tunneling splittings) is applied WW-craft. Even Feynman's path integral honors the split (1): for a conservative system, the propagator's phase at stationary points is exactly W−EtW - Et. The static landscape Hamilton drew for light in 1828 turned out to be the phase of matter.

The physical picture

Drop a pebble's worth of thought onto a landscape: over every point qq of configuration space, at a chosen energy EE, there sits a value of WW. The landscape is static — time has been peeled off and set aside. Yet it contains the complete kinematics of every orbit at that energy, stored geometrically: the contours of WW are surfaces the motion always crosses at right angles, and the steepness of WW at any point is the momentum the particle must have there, ∣∇W∣=2m(E−V)|\nabla W| = \sqrt{2m(E-V)}. Where the potential is deep the contours crowd together (fast particle, steep WW); near a turning point they spread apart and the gradient dies (slow particle, flat WW).

Figure
The static landscape of W — wavefronts of constant W with trajectories as their orthogonal rays
surfaces of constant W (wavefronts) contours crowd where V is low — fast particle, steep W trajectory — the ray normal to every front p = ∇W the momentum field is the gradient of one scalar function — every orbit at energy E is an orthogonal ray of the same front family

This is optics wearing mechanics' clothes. In the eikonal limit of wave optics, light rays are the orthogonal trajectories of the wavefronts of constant phase; the phase obeys an equation formally identical to ∣∇W∣2=2m(E−V)|\nabla W|^2 = 2m(E-V), with refractive index playing the role of E−V\sqrt{E - V}. Hamilton discovered the mechanics version because he owned the optics version. And the analogy carries a famous sting, worth meeting early: if you restore time via S=W−EtS = W - Et, the surfaces of constant SS are moving wavefronts sweeping across the static WW-landscape — and they move slowest where the particle moves fastest (their speed is E/∣∇W∣=E/pE/|\nabla W| = E/p). Nothing is wrong: the front speed is a phase velocity, not the particle's velocity. Resolving that tension honestly is what led Schrödinger from this exact picture to wave mechanics. The second face of WW is dynamical rather than geometric. As a generating function, WW performs a softer freeze than the principal function. In Generating Function to a Trivial Hamiltonian, the time-dependent generator SS drives the new Hamiltonian to zero and stops everything. The time-independent WW cannot do that — with ∂W/∂t=0\partial W/\partial t = 0 the transformation law gives K=H=EK = H = E, not zero. But that residue is itself a triumph of economy: a Hamiltonian equal to one of the new momenta is the next best thing to zero. All momenta stay constant, all coordinates but one stay frozen, and the single survivor — the coordinate conjugate to the energy — advances at exactly unit rate. The system's own clock has been promoted to a canonical coordinate.

Figure
Two freezes compared — the principal function stops everything, the characteristic function leaves one clock running
generator S(q, P, t) K = 0 every P frozen every Q frozen motion = a fixed point; all dynamics in the map needs explicit time dependence generator W(q, α) K = E = α₁ every α frozen β₂ … βₙ frozen β₁ = t + const one clock coordinate runs at exactly unit rate time-independent, conservative only same trajectories either way — W trades the total freeze for a time-free generator, the right bargain for bound motion

Third face: WW is a quantity you can accumulate along the orbit. Its rate of growth is ∑ipiq˙i\sum_i p_i\dot q_i, so W=∫p⋅dqW = \int \mathbf{p}\cdot\mathrm{d}\mathbf{q} — the abbreviated action of Maupertuis, the eighteenth-century action that predates Hamilton's. For a bound oscillation, one full cycle adds to WW the enclosed phase-space area ∮p dq\oint p\,\mathrm{d}q — the action variable JJ that Action Integrals over Invariant Tori builds into the coordinates of choice for integrable systems, and that the old quantum theory set equal to nhnh. Every payoff of the Hamilton-Jacobi chapter routes through this one function.

The two functions and the split

Start from the relation that defines WW. When ∂H/∂t=0\partial H/\partial t = 0, insert the ansatz S=W(q,α)−EtS = W(q,\alpha) - Et into the Hamilton-Jacobi Equation H(q,∂S/∂q,t)+∂S/∂t=0H(q,\partial S/\partial q,t) + \partial S/\partial t = 0. Since ∂S/∂qi=∂W/∂qi\partial S/\partial q_i = \partial W/\partial q_i and ∂S/∂t=−E\partial S/\partial t = -E, the time drops out wholesale:

S(q,α,t)=W(q,α)−Et,H ⁣(q,∂W∂q)=E(1)S(q,\alpha,t) = W(q,\alpha) - Et, \qquad H\!\left(q,\frac{\partial W}{\partial q}\right) = E \qquad (1)

where: W(q,α)W(q,\alpha) — Hamilton's characteristic function, carrying nn constants αi\alpha_i of which the energy is one (conventionally α1=E\alpha_1 = E, though any invertible relabeling works). The right-hand member is the Time-Independent Hamilton-Jacobi Equation, a PDE over configuration space alone — its structure, separation and quadratures are that article's business. Here the point is the decomposition: for conservative systems, the principal function is a static landscape minus a uniform energy drift, so all the problem-solving effort concentrates on the time-free WW. The momenta come from the landscape's gradient, exactly as they came from SS (the −Et-Et term carries no qq-dependence):

pi=∂W∂qi(2)p_i = \frac{\partial W}{\partial q_i} \qquad (2)

where: for a single particle in a potential this reads p=∇W\mathbf{p} = \nabla W, and squaring it against H=p2/2m+V=EH = \mathbf{p}^2/2m + V = E gives the classical eikonal equation

∣∇W∣2=2m(E−V(r))(3)|\nabla W|^2 = 2m\big(E - V(\mathbf{r})\big) \qquad (3)

where: the local steepness of WW is fixed pointwise by energy conservation — steep where the particle is fast, flat at turning points where E=VE = V. Equation (3) is a first-order PDE whose solutions are built from the front-and-ray geometry of the hero figure; it is formally identical to the eikonal equation of geometrical optics with effective refractive index n∝E−Vn \propto \sqrt{E-V}, which is the precise content of the optical-mechanical analogy. Along an actual orbit, WW accumulates the abbreviated action. Differentiating W(q(t),α)W(q(t),\alpha) along the motion (the αi\alpha_i are constants) and using (2):

dWdt=∑i∂W∂qi q˙i=∑ipiq˙i⟹W=∫p⋅dq(4)\frac{\mathrm{d}W}{\mathrm{d}t} = \sum_i \frac{\partial W}{\partial q_i}\,\dot q_i = \sum_i p_i \dot q_i \quad\Longrightarrow\quad W = \int \mathbf{p}\cdot\mathrm{d}\mathbf{q} \qquad (4)

where: the integral runs along the trajectory at energy EE. Compare the principal function's dS/dt=L\mathrm{d}S/\mathrm{d}t = L: the two rates differ by exactly dW/dt−dS/dt=∑pq˙−L=H=E\mathrm{d}W/\mathrm{d}t - \mathrm{d}S/\mathrm{d}t = \sum p\dot q - L = H = E, which is the split (1) read as rates. SS accumulates the Lagrangian action; WW accumulates the Maupertuis action; they disagree by the steady metronome EtEt.

Which function answers which question

you wantusenotes
a conservative system solved with least machineryWW: eq. (1) right member, then eq. (6)the default for every textbook problem
a driven / time-dependent HamiltonianSS onlyno conserved EE to split off; see Generating Function to a Trivial Hamiltonian
the orbit's geometry (path, not timetable)βj=∂W/∂αj\beta_j = \partial W/\partial\alpha_j, j≥2j\geq 2time-free relations among the qiq_i — the orbit equation directly
the timetable along the pathβ1=∂W/∂E=t+const\beta_1 = \partial W/\partial E = t + \mathrm{const}time-of-flight from an energy derivative; worked example 2
phase-space area / quantization / frequenciesJ=∮p dqJ = \oint p\,\mathrm{d}q from eq. (4)gateway to Action-Angle Variables
wavefront/eikonal geometryeq. (3)WW = classical phase; WKB writes ψ∼eiW/ℏ\psi \sim e^{iW/\hbar}
Derivation AThe canonical transformation generated by the characteristic function

We are deriving the dynamical content of WW: that used as a time-independent type-2 generator with the constants αi\alpha_i as new momenta, it maps a conservative system to the Hamiltonian K=α1=EK = \alpha_1 = E, so that every new variable is frozen except the single coordinate conjugate to the energy, which advances at unit rate. The strategy is the same three-move sequence used for the principal function — write the type-2 relations, transform the Hamiltonian, run Hamilton's equations in the new chart — with one crucial difference to watch: ∂W/∂t=0\partial W/\partial t = 0, so no cancellation of HH is available and the transformed Hamiltonian survives as the energy itself. The payoff of that survival is that the surviving coordinate integrates to t+constt + \mathrm{const}, handing over the system's timetable by differentiation.

Step 1. Write the type-2 relations with generator F2=W(q,α)F_2 = W(q,\alpha), taking the new momenta to be the constants: Pi=αiP_i = \alpha_i with α1=E\alpha_1 = E. Then

pi=∂W∂qi,βi=∂W∂αip_i = \frac{\partial W}{\partial q_i}, \qquad \beta_i = \frac{\partial W}{\partial \alpha_i}

Why this interface: the αi\alpha_i enter WW as parameters of the complete integral of the time-independent HJ equation; making them the new momenta is what turns the parameter family into a canonical chart.

Step 2. Transform the Hamiltonian. The type-2 law is K=H+∂F2/∂tK = H + \partial F_2/\partial t, and WW carries no explicit time:

K=H ⁣(q,∂W∂q)=E=α1K = H\!\left(q,\frac{\partial W}{\partial q}\right) = E = \alpha_1

Why the last equality is the whole trick: the time-independent HJ equation forces the combination H(q,∂W/∂q)H(q,\partial W/\partial q) to equal the constant EE — not as an on-shell accident but identically in qq. Expressed in the new variables, KK is therefore the pure momentum function K(α)=α1K(\alpha) = \alpha_1: every coordinate is cyclic.

Step 3. Run Hamilton's equations in the new chart:

α˙i=−∂K∂βi=0,β˙i=∂K∂αi=δi1\dot\alpha_i = -\frac{\partial K}{\partial\beta_i} = 0, \qquad \dot\beta_i = \frac{\partial K}{\partial\alpha_i} = \delta_{i1}

Why the Kronecker delta: K=α1K = \alpha_1 depends on nothing but α1\alpha_1, so the only nonvanishing rate in the entire chart is β˙1=1\dot\beta_1 = 1.

Step 4. Integrate and invert:

β1=t+β10=∂W∂E,βj=∂W∂αj=const (j≥2)\beta_1 = t + \beta_1^0 = \frac{\partial W}{\partial E}, \qquad \beta_j = \frac{\partial W}{\partial \alpha_j} = \mathrm{const}\ (j \geq 2)

The n−1n-1 frozen relations βj=∂W/∂αj\beta_j = \partial W/\partial\alpha_j contain no time: they are the orbit equations, fixing the path's geometry. The single running relation ∂W/∂E=t+β10\partial W/\partial E = t + \beta_1^0 is the timetable, locating the system on that path at each instant. Solving the set for qi(t)q_i(t) completes the solution. As a check: setting n=1n = 1 reduces the entire scheme to the elementary quadrature of 1D energy conservation, as it must.

The structural moral of Step 4 deserves its own sentence: the characteristic function separates geometry from schedule. The frozen βj\beta_j answer "what curve does the system trace?" — a question that never mentions time — while β1\beta_1 answers "when is it where?". Central-force theory exploits this daily: the orbit equation ϕ(r)\phi(r) comes from ∂W/∂ℓ\partial W/\partial\ell, the time along the orbit from ∂W/∂E\partial W/\partial E, and the two calculations never interfere. (The systematic exploitation, coordinate system by coordinate system, is Separation of Variables in Hamilton-Jacobi Theory.)

Go deeper · Derivation B · 1 minMaupertuis' principle falls out of the characteristic function
Derivation BMaupertuis' principle falls out of the characteristic function

The goal is the principle of least abbreviated action: among all paths joining two configuration-space points at the same energy EE, the true path makes W=∫p⋅dqW = \int\mathbf{p}\cdot\mathrm{d}\mathbf{q} stationary. The strategy is to relate δW\delta W to the variation of the full action SS, whose stationarity is Hamilton's principle, and track carefully what is held fixed — this is the classic place where the two action principles get conflated, so the bookkeeping of endpoint-time variations is the step to watch. Hamilton's principle fixes the traversal time and lets energy vary between comparison paths; Maupertuis fixes the energy and lets the traversal time vary. The characteristic function is exactly the object built to absorb that exchange.

Step 1. Relate the two actions along any comparison path with conserved H=EH = E: from the split (1) read as accumulations,

W=S+Et12W = S + Et_{12}

where t12t_{12} is the traversal time of the path. Why: dW/dt−dS/dt=H=E\mathrm{d}W/\mathrm{d}t - \mathrm{d}S/\mathrm{d}t = H = E pointwise along the path, integrated over the traversal.

Step 2. Vary within the fixed-energy family: δW=δS+E δt12\delta W = \delta S + E\,\delta t_{12}, since EE is common to all comparison paths. Why δt12≠0\delta t_{12} \neq 0: paths of equal energy but different shape take different times — the variation cannot hold both EE and t12t_{12} fixed, and does not try to.

Step 3. Evaluate δS\delta S for variations with fixed spatial endpoints but movable end time. The general endpoint variation of the action is δS=[ p⋅δq−H δt ]12+(bulk term)\delta S = [\,\mathbf{p}\cdot\delta\mathbf{q} - H\,\delta t\,]_1^2 + (\text{bulk term}); the bulk term vanishes on the true path by Hamilton's principle, and the spatial endpoint displacements are zero, leaving

δS=−E δt12\delta S = -E\,\delta t_{12}

Why the boundary term survives only in time: the comparison paths all start and end at the same configuration points, but arrive at different moments — the movable-end-time term −Hδt-H\delta t is the entire variation.

Step 4. Combine Steps 2 and 3:

δW=−E δt12+E δt12=0\delta W = -E\,\delta t_{12} + E\,\delta t_{12} = 0

Among all paths of energy EE between fixed endpoints, the true trajectory makes the abbreviated action stationary — Maupertuis' principle, in Jacobi's clean formulation. As a check: for a free particle the result reduces to δ∫p ds=p δ(length)=0\delta\int p\,\mathrm{d}s = p\,\delta(\mathrm{length}) = 0 — straight lines, as it must.

Limiting cases

CaseResultMeaning
free particle (1D)W=2mE xW = \sqrt{2mE}\,xconstant-gradient landscape: uniform momentum, evenly spaced fronts; ∂W/∂E=t\partial W/\partial E = t gives x=2E/m tx = \sqrt{2E/m}\,t
harmonic oscillatorW=∫ ⁣2m(E−12mω2x2) dxW = \int\!\sqrt{2m(E - \tfrac12 m\omega^2x^2)}\,\mathrm{d}xfronts crowd at the center, flatten at turning points; one cycle accumulates ∮p dx=2πE/ω\oint p\,\mathrm{d}x = 2\pi E/\omega
turning point (E=VE = V)∇W=0\nabla W = 0the landscape goes flat; WW's two branches (outgoing/incoming momentum) meet — the seed of WKB connection formulas
separable systemW=∑iWi(qi;α)W = \sum_i W_i(q_i;\alpha)the landscape factorizes into one-dimensional profiles, each a quadrature — see Separation of Variables in Hamilton-Jacobi Theory
explicitly time-dependent HHno WW existsnothing conserved to split off; retreat to the full principal function SS

Worked examples

1 · The harmonic oscillator's landscape, clock and area (confidence builder)

A mass m=2 kgm = 2\ \mathrm{kg} on a spring with ω=5 rad/s\omega = 5\ \mathrm{rad/s} carries energy E=100 JE = 100\ \mathrm{J}. Using only the characteristic function: find the amplitude, the trajectory, the momentum at the center, and the abbreviated action accumulated over one full cycle.

Step 1. The landscape. From the eikonal relation (3) in one dimension, p(x)=∂W/∂x=2m(E−12mω2x2)p(x) = \partial W/\partial x = \sqrt{2m(E - \tfrac12 m\omega^2 x^2)}, so W(x,E)=∫0x2m(E−12mω2x′2) dx′W(x,E) = \int_0^x \sqrt{2m(E - \tfrac12 m\omega^2 x'^2)}\,\mathrm{d}x'. The turning points sit where the gradient dies: x±=±2E/mω2=±200/50=±2 mx_\pm = \pm\sqrt{2E/m\omega^2} = \pm\sqrt{200/50} = \boxed{\pm 2\ \mathrm{m}}.

Step 2. The clock. The timetable relation is t+β0=∂W∂E=∫0xm dx′2m(E−12mω2x′2)=1ωarcsin⁡ ⁣(xmω22E)t + \beta^0 = \dfrac{\partial W}{\partial E} = \displaystyle\int_0^x \frac{m\,\mathrm{d}x'}{\sqrt{2m(E - \tfrac12 m\omega^2 x'^2)}} = \frac{1}{\omega}\arcsin\!\left(x\sqrt{\frac{m\omega^2}{2E}}\right).

Step 3. Invert for the trajectory (choose β0=0\beta^0 = 0): x(t)=2Emω2 sin⁡ωt=2sin⁡(5t) mx(t) = \sqrt{\dfrac{2E}{m\omega^2}}\,\sin\omega t = \boxed{2\sin(5t)\ \mathrm{m}} — amplitude and phase delivered by differentiation and inversion, no equation of motion ever integrated.

Step 4. Momentum at the center: p(0)=2mE=2×2×100=20 kg m/sp(0) = \sqrt{2mE} = \sqrt{2\times 2\times 100} = \boxed{20\ \mathrm{kg\,m/s}}, i.e. v=10 m/sv = 10\ \mathrm{m/s} — which checks against vmax⁡=ωA=5×2=10 m/sv_{\max} = \omega A = 5\times 2 = 10\ \mathrm{m/s} ✓.

Step 5. The area. Over one cycle the abbreviated action accumulates the phase-space ellipse's area, semi-axes 2mE=20\sqrt{2mE} = 20 and 2E/mω2=2\sqrt{2E/m\omega^2} = 2: ∮p dx=π×20×2=125.7 J s\oint p\,\mathrm{d}x = \pi\times 20\times 2 = 125.7\ \mathrm{J\,s}. Cross-check with the closed form 2πE/ω=2π×100/5=125.7 J s2\pi E/\omega = 2\pi\times 100/5 = \boxed{125.7\ \mathrm{J\,s}} ✓ — the action variable JJ that Action-Angle Variables will make a coordinate.

2 · Time-of-flight from a derivative, and the eikonal check (exam level)

Same oscillator (m=2 kgm = 2\ \mathrm{kg}, ω=5 rad/s\omega = 5\ \mathrm{rad/s}, E=100 JE = 100\ \mathrm{J}). Without solving for the trajectory, find (a) the time to travel from the center x=0x = 0 to x=1 mx = 1\ \mathrm{m}, and (b) the momentum at x=1 mx = 1\ \mathrm{m}, checking it against the eikonal equation. (c) Show the same time-of-flight trick on a free particle and interpret.

Step 1. (a) The timetable relation of the WW-transformation says: time-of-flight between two configurations is the difference of an energy derivative — t0→1=∂W∂E∣x=1−∂W∂E∣x=0t_{0\to 1} = \dfrac{\partial W}{\partial E}\Big|_{x=1} - \dfrac{\partial W}{\partial E}\Big|_{x=0}.

Step 2. Evaluate with the Step 2 integral of example 1: t0→1=1ωarcsin⁡ ⁣(xmω22E)∣x=1=15arcsin⁡(0.5)=π/65=0.105 st_{0\to 1} = \dfrac{1}{\omega}\arcsin\!\left(x\sqrt{\dfrac{m\omega^2}{2E}}\right)\Big|_{x=1} = \dfrac{1}{5}\arcsin(0.5) = \dfrac{\pi/6}{5} = \boxed{0.105\ \mathrm{s}}. Sanity check from the known motion: 1=2sin⁡5t1 = 2\sin 5t gives 5t=π/65t = \pi/6, t=0.105 st = 0.105\ \mathrm{s} ✓ — but note the derivative route never used x(t)x(t).

Step 3. (b) Momentum from the landscape's steepness at x=1x = 1: p=2m(E−12mω2x2)=4 (100−25)=300=17.3 kg m/sp = \sqrt{2m(E - \tfrac12 m\omega^2 x^2)} = \sqrt{4\,(100 - 25)} = \sqrt{300} = \boxed{17.3\ \mathrm{kg\,m/s}}.

Step 4. Check via the trajectory: v(t)=10cos⁡5tv(t) = 10\cos 5t at 5t=π/65t = \pi/6 gives v=10×(3/2)=8.66 m/sv = 10\times(\sqrt{3}/2) = 8.66\ \mathrm{m/s}, so p=2×8.66=17.3 kg m/sp = 2\times 8.66 = 17.3\ \mathrm{kg\,m/s} ✓. The eikonal equation (3) reads ∣∇W∣2=2m(E−V)|\nabla W|^2 = 2m(E-V): 300=4×(100−25)300 = 4\times(100 - 25) ✓ exactly.

Step 5. (c) Free particle: W=2mE xW = \sqrt{2mE}\,x, so t=∂W/∂E=m/2E  x=x/vt = \partial W/\partial E = \sqrt{m/2E}\;x = x/v. The energy-derivative of the abbreviated action is literally distance over speed — the trick is general: differentiating the static landscape with respect to energy yields the schedule, because EE and tt are a conjugate pair. That conjugacy — energy paired with time exactly as momentum pairs with position — is the classical shadow of a relation that returns, transformed, in quantum mechanics.

Origins · 1 minSir William Rowan Hamilton and how this was discovered
SW
Sir William Rowan Hamilton
1805–1865 · Trinity College Dublin and Dunsink Observatory

Hamilton built the characteristic function twice. The first time was in optics: his Theory of Systems of Rays (begun at age 21) showed that an optical instrument of any complexity is completely summarized by one function — the optical path length between endpoints — from whose derivatives all ray directions follow. He prized above all the method's generality: aberrations, caustics and focal properties tumbled out of partial differentiation. The 1832 sensation of conical refraction — a genuinely new optical phenomenon predicted from the characteristic function before being observed — made him famous at 27. The second construction, in the 1834-35 dynamics papers, transplanted the function to mechanics, where the role of optical path length passed to the action. Hamilton's own formulation was clumsy — his function obeyed two PDEs simultaneously and seemed to require knowing the motion in advance — and it was Jacobi who pruned it to the single equation used today. The deep dividend arrived in 1926, when Schrödinger, reading the optical-mechanical analogy in reverse, asked what wave theory has mechanics as its eikonal limit — and wrote the equation of wave mechanics.

History
1744
— Maupertuis announces the principle of least action for ∫p ds\int p\,\mathrm{d}s; Euler makes it precise for a single particle — the abbreviated action is born a century before WW.
1828
— Hamilton's Theory of Systems of Rays compresses geometrical optics into one characteristic function; supplements through 1832 predict conical refraction, confirmed within months.
1834
— Hamilton's dynamics papers carry the characteristic function into mechanics, tying it to the accumulated action at fixed energy.
1837
— Jacobi trims Hamilton's two-equation scheme to a single PDE and shows one complete integral suffices — the working form of the theory.
1926
— Schrödinger inverts the optical-mechanical analogy: seeking the wave theory whose eikonal is ∣∇W∣2=2m(E−V)|\nabla W|^2 = 2m(E-V), he arrives at the wave equation of quantum mechanics.

Going further

References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §10.3 · Landau & Lifshitz, Mechanics, 3rd ed., §47 · Morin, Introduction to Classical Mechanics, Ch. 15 (Hamilton-Jacobi) · Taylor, Classical Mechanics, Ch. 13 · Arnold, Mathematical Methods of Classical Mechanics, §46-47 Key results to keep in mind: substituting S=W−EtS=W-Et into the HJ equation yields H=EH=E; Hamilton's equations in the new chart give K=α1K=\alpha_1 and β˙1=1\dot\beta_1=1; the SHO action integral evaluates as ∮p dx=2πE/ω\oint p\,\mathrm{d}x=2\pi E/\omega (the phase-space ellipse area), with frequency ν=ω/2π\nu=\omega/2\pi. The worked-example numbers throughout — amplitude 2 m2\ \mathrm{m}, p(0)=20 kg m/sp(0)=20\ \mathrm{kg\,m/s}, cycle action 125.7 J s125.7\ \mathrm{J\,s}, t0→1=0.105 st_{0\to 1}=0.105\ \mathrm{s}, p(1 m)=17.3 kg m/sp(1\ \mathrm{m})=17.3\ \mathrm{kg\,m/s} — all follow directly from the boxed formulas.

Builds on: Hamilton-Jacobi Equation · Hamilton's Principal Function · Time-Independent Hamilton-Jacobi Equation · Generating Function to a Trivial Hamiltonian Leads to: Separation of Variables in Hamilton-Jacobi Theory · Action-Angle Variables · Action Integrals over Invariant Tori · Liouville Integrable Systems

Why would I ever accept K = E when the principal function gives me K = 0? Isn't zero strictly better?

Zero is a stronger freeze but costs a harder object: SS depends on n+1n+1 variables and must be re-derived with its time dependence intact. For a conservative system that time dependence is pure boilerplate — always exactly −Et-Et — so carrying it explicitly buys nothing. Working with WW solves a PDE in one fewer variable, and the "loss" (one coordinate runs) is actually the deliverable: β1=∂W/∂E=t+const\beta_1 = \partial W/\partial E = t + \mathrm{const} is the timetable you wanted anyway. For bound motion the WW-route is also the only sensible gateway to action-angle variables, where the goal is emphatically not to freeze the angles but to make them advance uniformly. Choose SS only when the Hamiltonian's time dependence is genuine.

Is it really legitimate that time becomes a coordinate? t is the evolution parameter, not a dynamical variable.

It is legitimate and exact, though the phrasing deserves care. Nothing in the canonical formalism forbids a new coordinate from happening to increase at unit rate and hence numerically track tt; that is all β1=t+β10\beta_1 = t + \beta_1^0 says. The deeper observation is that energy and time form a conjugate pair in precisely the sense position and momentum do: β1\beta_1 is conjugate to α1=E\alpha_1 = E, and its Hamilton equation β˙1=∂K/∂E=1\dot\beta_1 = \partial K/\partial E = 1 is what "conjugate to energy" means dynamically. This conjugacy is structural, not accidental — it reappears as ∂S/∂t=−E\partial S/\partial t = -E for the principal function, in the extended-phase-space formalism where (t,−E)(t,-E) is adjoined as a genuine canonical pair, and (transformed) in quantum mechanics.

For a bound orbit the particle returns to the same q with the opposite momentum. Doesn't p = ∇W then contradict itself?

Sharp observation — a single-valued WW cannot assign both +p+p and −p-p to one point. The resolution is that WW is multivalued: it has (in 1D) two branches, one for the outgoing motion with W′=+2m(E−V)W' = +\sqrt{2m(E-V)} and one for the return with the minus sign, joined at the turning points where the gradient vanishes. Following the motion continuously means walking up one sheet and back along the other; each full cycle adds the enclosed area ∮p dq=J\oint p\,\mathrm{d}q = J to WW, so the function climbs by one action quantum per period rather than returning to its old value. This branch structure is not a defect — it is exactly what WKB connection formulas negotiate at turning points, and why ∮p dq\oint p\,\mathrm{d}q (not WW itself) is the natural single-valued object for bound motion.

How do the wavefronts move if W is time-independent?

The WW-fronts do not move — they are a static scaffolding over configuration space. What moves are the fronts of constant principal function S=W−EtS = W - Et: the condition S=constS = \mathrm{const} at increasing tt requires WW to increase at rate EE, so the moving front slides across the static WW-contours, occupying the contour W=W0+EtW = W_0 + Et at time tt. Its local speed is E/∣∇W∣=E/pE/|\nabla W| = E/p — the famous inversion: fastest fronts where the particle is slowest. Both pictures are useful: the static WW-landscape carries the geometry (rays orthogonal to fronts), while the sliding SS-front carries the phase evolution that the WKB wavefunction ψ∼ei(W−Et)/ℏ\psi \sim e^{i(W-Et)/\hbar} inherits verbatim.

What exactly is the difference between Maupertuis' principle and Hamilton's principle?

Both are stationarity statements about the true path, but they compare different families of trial paths. Hamilton's principle varies S=∫L dtS = \int L\,\mathrm{d}t over paths with fixed endpoints and fixed traversal time; energy is allowed to differ between trial paths. Maupertuis' principle varies W=∫p⋅dqW = \int\mathbf{p}\cdot\mathrm{d}\mathbf{q} over paths with fixed endpoints and fixed energy; the traversal time is allowed to differ. The derivation in this article shows they exchange exactly one boundary term, E δt12E\,\delta t_{12}. Practically: Hamilton's principle is more general (works for time-dependent systems) and delivers equations of motion; Maupertuis' is geometric — it determines the shape of the orbit without its schedule, and in the Jacobi-metric form it turns trajectories into geodesics of a curved configuration-space metric.

Why is W called the abbreviated action — what got abbreviated?

The integrand. The full (Hamilton) action accumulates L dt=(p⋅q˙−H) dtL\,\mathrm{d}t = (\mathbf{p}\cdot\dot{\mathbf{q}} - H)\,\mathrm{d}t; the abbreviated action keeps only the first piece, p⋅dq\mathbf{p}\cdot\mathrm{d}\mathbf{q}, dropping the −H dt=−E dt-H\,\mathrm{d}t = -E\,\mathrm{d}t term that is pure bookkeeping when energy is conserved. Hence W=S+EtW = S + Et: the "abbreviation" is the removal of the energy drift. Historically the order is reversed — Maupertuis' ∫p ds\int p\,\mathrm{d}s (1744) predates Hamilton's ∫L dt\int L\,\mathrm{d}t (1834) by ninety years — so it is the full action that is the latecomer, generalizing the abbreviated one to time-dependent situations where no fixed EE exists to strip out.

Does the Bohr-Sommerfeld rule quantize W itself?

It quantizes WW's growth per cycle. The old quantum theory demands ∮pi dqi=nih\oint p_i\,\mathrm{d}q_i = n_i h for each separable degree of freedom — and that loop integral is exactly the amount the (multivalued) characteristic function climbs in one period of qiq_i. So the rule says: the classical phase W/ℏW/\hbar must advance by an integer multiple of 2π2\pi per cycle, which is precisely the condition for the WKB wavefunction ψ∼eiW/ℏ\psi \sim e^{iW/\hbar} to be single-valued on the orbit. For the oscillator of worked example 1, J=2πE/ωJ = 2\pi E/\omega gives En=nℏωE_n = n\hbar\omega — off from the true spectrum only by the half-integer zero-point shift that the turning-point branch structure (Maslov correction) supplies. The refined statement and its uses live in Action-Angle Variables.

Can I use W when the motion is unbounded, like scattering?

Yes — W=∫p⋅dqW = \int\mathbf{p}\cdot\mathrm{d}\mathbf{q} and the whole generating-function machinery need only a conserved energy, not bound orbits. For scattering problems WW is single-valued (no cycles, no branch accumulation) and its derivatives give deflection functions and time delays: ∂W/∂ℓ\partial W/\partial\ell yields the scattering angle relation, ∂W/∂E\partial W/\partial E the traversal time including the potential's delay. What specifically requires bound motion is the action variable J=∮p dqJ = \oint p\,\mathrm{d}q — a closed loop needs a closed orbit (or a librating coordinate). So: WW always exists for conservative systems; JJ and everything built on it (angles, frequencies, Bohr-Sommerfeld) belong to the bound chapter of the story.

Before this

Where this leads