Discrete actions and generating functions
How much of mechanics survives a time discretization? Differentiating an action assigned to an edge gives a momentum at each end. When one momentum determines the next position locally, the resulting map preserves the symplectic form. A harmonic oscillator also preserves its energy under the midpoint step. A quartic oscillator makes a finite energy error under the same construction, even though its map still preserves phase-space area.
Required background. The Lyness map, its invariant and its domain explains why an equation for a step must specify where it defines a map.
Vary the internal position
Section titled “Vary the internal position”For a time step , sum a differentiable discrete Lagrangian over successive edges. Hold the first and last positions fixed. Varying a single internal gives
The old and new momenta on one edge are and . The internal stationarity equation now says that the arriving and departing definitions of momentum agree. A nonsingular mixed Hessian permits a local solution for from . Along the resulting map . Taking a second differential gives . This proof of symplecticity uses the existence of the map and does not require quadratic forces. Marsden and West, discrete variational principle and midpoint rule, pp. 370–374 and 408, PDF
Solve the midpoint oscillator
Section titled “Solve the midpoint oscillator”Take mass , frequency and potential . Evaluate the velocity on the edge and the potential at its midpoint:
Subtracting and adding the two momentum formulas yields
With and the update in is
Its determinant is one and is invariant. The numerical phase advance is per step. For and the result is , still of energy . The exact continuous answer is , so the phase already differs after one step.
Measure the energy error of a regular step
Section titled “Measure the energy error of a regular step”Write and . For a general potential the midpoint action gives and . Multiplying the first equation by the mean velocity yields the change in kinetic energy. Adding the potential change gives the energy defect for the original Hamiltonian,
Thus the relevant test is whether the midpoint force accounts for the full potential difference across the edge. For a quadratic potential it does. For expansion about leaves . Marsden and West, §2.6.1, Eqs. (2.6.1a–b), pp. 408–409 (PDF)
For a step anyone can check by hand, use and prescribe , . The endpoint momenta are and . The energy increases from to , exactly the predicted defect . Check area preservation on this very edge by differentiating the momentum equation:
The Jacobian in the ordered variables is therefore
Its determinant is one. This one step provides both an exact check of the symplectic calculation and a counterexample to exact conservation of the given energy.
Locate the singular mixed Hessian
Section titled “Locate the singular mixed Hessian”For the same midpoint construction with general the mixed derivative is . It is always nonzero for the harmonic oscillator. For an inverted oscillator it vanishes at . Substitution at this step gives . The initial momentum condition now requires independently of . Most initial data admit no solution, and on that line is undetermined. This example pinpoints the failed implicit-function step even though the two-endpoint action is finite and differentiable.
References
Section titled “References”- Marsden, J. E., and West, M. (2001). Discrete mechanics and variational integrators. Acta Numerica 10, 357–514. DOI.
Connected readings