- Home
- Library
- Computational Quantum Field Theory
- Solving Boundary and Evolution Equations
- Time Evolution and Stability
Time Evolution and Stability
A scalar wave packet can keep almost exactly the right energy while arriving with the wrong phase. Conversely, refining the time step cannot repair a boundary condition that reflects part of a massive wave even in the continuum. To understand a field evolution, we must distinguish the time integrator, spatial dispersion and boundary model.
We evolve one real Klein–Gordon packet with velocity Verlet and implicit midpoint, compare both with exact evolution of the same spatial grid, and then test the spatial and boundary errors separately.
Preparation: Hamiltonian evolution of a harmonic oscillator, finite differences and Fourier differentiation. All variables in the numerical example are dimensionless.
A spatial grid is already a dynamical model
With the mostly-minus convention, a free scalar of mass obeys
Set and use periodic points with spacing . Centered differences give
Indices are periodic. The positive quadratic energy is
Here is the sampled momentum density: its Poisson bracket is . Equivalently, the canonical site momentum is , with . With this normalization, generates exactly the displayed equations. The constant momentum rescaling also preserves the stated symplectic character of the time maps.
This is the Hamiltonian of the chosen spatial discretization. For a Fourier mode with wave number ,
The assumption makes positive definite and all mode frequencies nonzero. A massless periodic zero mode instead needs the limit in the formulas below. For the massive modes, the grid frequency differs from the continuum frequency . At fixed resolved ,
Thus even exact integration of the spatial grid accumulates a phase error relative to the continuum. It is useful to retain an exact semidiscrete reference:
Here hats denote spatial Fourier coefficients. This reference isolates time-step error without changing the initial arrays or the spatial operator.
Two second-order time integrators
Velocity Verlet is a kick, drift and kick:
It is explicit, reversible and symplectic for this Hamiltonian. Its structure and relation to splitting are discussed in Hairer, Lubich and Wanner, Sections 1.1–1.5, pp. 400–404 (PDF). Symplectic does not mean that the original energy is conserved exactly.
Implicit midpoint instead uses
Eliminating the new momentum gives an actual linear solve,
Then update using the second midpoint equation. The companion solves the cyclic positive matrix by Fourier diagonalization at each step. This Cayley update is not the exact cosine/sine propagator above.
For a nonlinear field equation, midpoint generally requires a nonlinear solve, whose residual becomes another error source. Our linear model avoids that extra uncertainty so that the two time maps can be tested directly.
Stability and phase from one oscillator
Consider one spatial mode with frequency . In order, Verlet has propagation matrix
Its determinant is one and its eigenvalues are when
At the endpoint the repeated eigenvalue can have a Jordan block, so bounded generic evolution requires the strict inequality. Apply this condition to the largest grid frequency, not just the carrier of the packet:
The harmonic-oscillator example in Hairer, Lubich and Wanner, Example 3.4, pp. 417–418 (PDF) makes the distinction between energy and amplification explicit.
Verlet preserves the modified quadratic form
which is positive in the stable range. The physical oscillator energy generally oscillates. Midpoint preserves the original quadratic energy, but advances each mode through
Therefore
Verlet runs ahead and midpoint lags. Both have second-order phase errors even though their energy behavior differs.
Implicit stability is not itself an accuracy guarantee. For comparison, forward Euler has amplification modulus for an oscillator; backward Euler has modulus and damps it. Midpoint avoids that artificial damping for this linear problem, but its phase still needs refinement.
A packet with fully specified initial data
Use , , and final time . The packet is specified through continuum Fourier-series data before any time stepping:
with , and . The initial field is a periodized Gaussian carrier. The frequency prescription fixes its initial momentum and makes it predominantly right-moving; the Gaussian has a small negative-wave-number tail, so it is not an exactly one-directional compact packet.
The sampled initial arrays are identical for both time integrators and their semidiscrete reference. In particular, the continuum used to prepare is not silently replaced by in one comparison.
Measure the relative state distance by
For the resolved positive mode nearest , also follow the phase of . Exact semidiscrete evolution rotates this quantity as . The driver unwraps numerical and reference phases along the actual step histories before taking their difference.
| Method | Maximum relative energy error | Phase difference at | ||
|---|---|---|---|---|
| Verlet | ||||
| Verlet | ||||
| Verlet | ||||
| Verlet | ||||
| Midpoint | ||||
| Midpoint | ||||
| Midpoint | ||||
| Midpoint |
The phase differences are in radians. All maxima are over the actual retained integration-step grids, not rigorous suprema over continuous time. The state and phase errors decrease by approximately four when the time step is halved. The energy error also depends on the initial state.
Both methods evolve the same , , spatial Hamiltonian and initial packet. Left: state error at against exact semidiscrete evolution. Right: phase histories at , unwrapped on all steps and displayed every time unit. Midpoint's nearly exact energy does not eliminate its phase lag.
A deliberate unstable-mode test uses , and . Then . After twenty Verlet steps the field amplitude has grown from to , agreeing with the exact amplification-matrix prediction to relative . The unstable mode is explicitly present in the initial data; this test does not depend on roundoff accidentally exciting it.
Spatial and periodic-domain errors
Next eliminate time-step error by using exact semidiscrete evolution. Compare with the continuum periodic Fourier solution at the same and :
| Spatial points | Relative state difference | |
|---|---|---|
The difference again decreases at second order, now for a spatial reason. The independently refined continuum Fourier cutoff changes the reference by less than in the sampled field and momentum; initial Fourier-truncation differences are below . At the primary , reducing far enough leaves a spatial error near relative to this continuum solution.
Finally use continuum Fourier evolution to vary the periodic length itself. On the common observation window , the maximum field differences from a length- reference are:
| Periodic length | At | At |
|---|---|---|
Lengths and differ by less than in the sampled field and momentum. Changing the periodic length also changes the initial periodization, which is why its effect is recorded. These are finite-window, finite-time checks of periodic images. They do not establish an outgoing boundary condition or accuracy at all later times.
A massive wave reflects from a simple Sommerfeld boundary
A separate stationary calculation isolates an outgoing-boundary approximation. Put the right boundary at and write an incident and reflected monochromatic wave as
Imposing gives
This local condition is exactly transparent for the massless right-moving wave, but not for a massive one. At , , , the reflection amplitude is and the reflected-to-incident energy-flux ratio is .
The companion also discretizes the boundary derivative:
For fixed , use the interior difference dispersion to set
Applying to the incident and reflected exponentials and solving the complex boundary equation gives reflected energy fractions , , , at . They approach , not zero. Refinement removes the boundary discretization error while preserving the continuum error of the chosen boundary model.
This monochromatic test is separate from the periodic packet evolution. It neither implements a broadband transparent boundary nor certifies one. For a general packet, the correct massive outgoing relation is frequency dependent, and a useful approximation must be checked over its occupied band.
Holding the continuum Hamiltonian fixed above separated the time step from the spatial grid. If the Hamiltonian itself comes from fitted trajectories, a third error enters. Conserved quantities in learned dynamics varies the step for a fixed fitted model before measuring the physical phase drift.
Summary
The spatial Hamiltonian provides an exact reference for isolating time-step error. Verlet has a frequency-dependent stability limit and bounded energy oscillations in its stable range; midpoint preserves the linear quadratic energy but still accumulates phase error. Separate spatial and domain refinements, followed by a distinct boundary-model test, explain which approximation must change to improve a field trajectory.
Exercises
1. Conserved energy with an inaccurate phase
Derive the two numerical mode phases. Show directly that midpoint preserves , and that Verlet preserves the modified quadratic form above. Why do these identities not establish small error at arbitrarily long time?
Solution
For Verlet, and . Writing its stable eigenvalues as gives
Direct multiplication gives with .
For midpoint, put
The eigenvalues of are , so the eigenvalues of are , with phase . Also for , which implies .
Equivalently, subtract the old and new energies and use the midpoint equations:
Here bars mean the arithmetic average across a step. Neither quadratic identity fixes the rotation angle to . The frequency error is and can accumulate an phase difference. A trajectory can stay on the correct energy ellipse while reaching the wrong point on it.
2. Refining an imperfect outgoing condition
Derive the Sommerfeld reflection coefficient for a massive plane wave. Compute its high-frequency behavior and explain the nonzero limiting reflection in the numerical boundary scan.
Solution
At the boundary,
Setting this to zero gives . Since ,
The two waves have equal frequency and equal magnitude of group velocity, so the reflected energy fraction is . It vanishes for and becomes small when , but at it equals .
The backward derivative converges to , and the difference dispersion converges to the continuum dispersion. Their reflection coefficient must therefore approach this nonzero continuum value. More points or smaller time steps cannot change the boundary condition being approximated. One must improve the boundary model, move the boundary outside the relevant propagation region, or explicitly tolerate and quantify the reflected component.
References
- E. Hairer, C. Lubich and G. Wanner, “Geometric Numerical Integration Illustrated by the Störmer–Verlet Method,” Acta Numerica 12 (2003), 399–450, DOI: 10.1017/S0962492902000144. Consulted Sections 1.1–1.5, pp. 400–404, and Example 3.4, pp. 417–418, in the published paper (PDF). The midpoint and massive-boundary formulas used here are derived explicitly above.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.