Use the end of the path as a variable
Let a bead move between a fixed initial event and an adjustable final event. Denote by \(S(q,t)\) the action evaluated on the actual trajectory ending at \((q,t)\). For a small change in the endpoint, the interior variation cancels by the Euler–Lagrange equation. If time stays fixed the boundary term is \(p\,\delta q\). If time changes, part of the endpoint displacement comes from continuing along the existing path by \(\dot q\,\delta t\). The remaining independent displacement is \(\delta q-\dot q\,\delta t\). Thus
It follows that \(p=\partial_q S\) and \(-H=\partial_t S\). Eliminate \(p\) to obtain
The equation involves partial derivatives because it describes an entire family of possible endpoints. By contrast, \(dS/dt=L\) along a single trajectory. A useful dimensional check is that a derivative of action with respect to length is momentum, whereas a derivative with respect to time is energy.
Separate time and build a clock from energy
For a time-independent Hamiltonian try \(S=W(q;E)-Et\). With \(H=p^2/(2m)+U(q)\), this gives
A trajectory on the increasing-position branch has positive momentum, so an integral from a fixed reference position \(q_0\) supplies \(W\). Differentiate at fixed final position with respect to the family parameter \(E\):
The integrand of the second integral is \(1/v\). Hence \(\partial_E W\) is the travel time from the reference point. Setting \(\partial_E S=0\) chooses a departure time of zero with this lower integration limit. A different constant amounts to shifting the clock. At a turning point \(p=0\), the one-way branch must be changed to continue the motion.
Work two arrival-time problems
Let \(q=x\) point downwards, \(U=-mgx\), and release the bead through \(x=0\) with speed \(u\). Its energy is
The integral yields
Squaring the relation after isolating the square root gives \(x=ut+gt^2/2\), the same trajectory as Newton's equation. For \(u=2.0\) m/s, \(g=9.81\) m/s² and \(x=3.0\) m the arrival time is about \(0.604\) s. The endpoint momentum uses the final speed, about \(7.93\) m/s, rather than the average over the fall.
Reverse the experiment by pointing \(x\) upward in the same field. If \(u=4.0\) m/s, the maximum height is \(0.815\) m. A gate \(0.50\) m above launch is crossed twice. From \(x=ut-gt^2/2\) the two times are \(0.154\) s and \(0.661\) s. The need for two branches of \(W\) is experimentally visible in those two timestamps. A calculation that takes the positive square root everywhere loses the return journey.
Compare two launch speeds
The plot shows upward trajectories and their common observation height. Lower the launch speed towards the value that barely reaches the gate. Watch what happens to the separation between the two arrival times.
Tutorial on the double root
A gate records two crossings 0.40 s apart in a uniform field of 9.81 m/s². How high does the trajectory rise above that gate?
Work through the solution
The two crossings are symmetric about the maximum. The fall from the maximum takes 0.20 s, giving \(g(0.20)^2/2=0.1962\) m. Equivalently the speed at the gate is \(g(0.40)/2=1.962\) m/s and its kinetic energy per unit mass gives the same height.
Estimate the arrival-time sensitivity of a gate on the rising branch. At \(u=4.0\,\mathrm{m/s}\) compare \(h=0.50\) m with \(h=0.80\) m.
Work through the solution
Implicit differentiation of \(h=ut-gt^2/2\) at fixed launch speed gives
On ascent this is \(1/\sqrt{u^2-2gh}\). Its value grows from \(0.402\,\mathrm{s/m}\) at 0.50 m to \(1.81\,\mathrm{s/m}\) at 0.80 m. Close to the top a small height error produces much larger timing uncertainty because the trajectory crosses slowly.
Does adding a constant \(C\) to a potential alter the predicted arrival times from Hamilton–Jacobi theory when the initial position and speed are unchanged?
Work through the solution
Both the total energy label and potential shift by \(C\). Hence \(p=\sqrt{2m(E-U)}\) and the abbreviated action as a path integral of \(p\) are unchanged for that orbit. The full action acquires \(-Ct\). Its spatial derivative and the time crossing predictions remain the same. Comparing the same numerical energy before and after the shift would specify different trajectories.
Further reading · Fließbach, Hamiltonformalismus · Tong, Hamilton–Jacobi theory.
Study the full derivation
Symplectic transformations, Poisson brackets and the geometry of measurements · Analytical mechanics from constraints to invariants
Two phase-space plots can enclose the same volume while predicting different responses to an impulse. Derive the stronger condition that makes a change of variables canonical, test it on measured linear maps and use Poisson brackets to propagate observables without solving separately for every coordinate.