A pulse can arrive late without losing energy
In a uniform lossless one-dimensional material take electric field along \(y\), magnetic field along \(z\) and propagation along \(x\). Maxwell's curl laws reduce to
Differentiate the first in time and substitute the second to obtain
A real laboratory signal is a combination of spatial frequencies. Different errors in travel time for different components can distort its shape even when the scheme does not attenuate any resolved Fourier mode.
Use periodic boundaries so that reflection from an end cannot be confused with this effect. Scale distance by one wavelength and time by one exact period. The periodic field \(E(x,t)=\sin[2\pi(x-t)]\) has unit amplitude and returns to its initial shape after every integer period. A probe comparing just its envelope would miss a discrepancy in phase.
Derive the discrete dispersion relation
Take points separated by \(h\) and times separated by \(\Delta t\). Centred second differences give
with \(C=c\Delta t/h\). Insert the complex trial field \(e^{i(j\theta-n\Omega)}\). The time pair contributes \(2\cos\Omega-2\), the spatial pair \(2\cos\theta-2\). The physical positive-frequency branch obeys
If \(0<C\le1\) a real \(\Omega\) exists for every grid phase, and each Fourier mode has constant discrete amplitude in exact arithmetic when started on one travelling branch. For \(C>1\) sufficiently rapid spatial oscillations have no real frequency. One time factor then grows. Testing stability on a single very smooth wave can miss this unstable part of the supported spectrum.
For long waves expand \(\sin\) and \(\arcsin\):
The relative phase-speed error is \((C^2-1)\theta^2/24\) at leading order. Here increasing \(C\) towards one improves wave propagation. This special cancellation depends on a uniform one-dimensional grid, constant wave speed and the selected difference operators.
Initialise a clean numerical experiment
A second-order recurrence needs two time levels. Taking \(u_j^0=\sin(j\theta)\) and \(u_j^{-1}=\sin(j\theta+\Omega)\) excites a single right-going numerical mode. Using the exact continuum phase \(C\theta\) at the second level instead introduces a small mixture of right- and left-travelling grid modes. That is a valid test of initialisation, but it mixes errors if the quantity of interest is solely the numerical dispersion relation. State in your notes how the second level was produced.
The browser actually advances the nodal difference equations. It then reports the dispersion prediction as an independent check. The time is chosen as an integer number of numerical steps close to five exact periods and is stated with the result. At twelve points per wavelength and \(C=0.8\) there are fifteen steps per period. Both exact and discrete solutions have the same amplitude to roundoff. At the end of five periods examine how far their zero crossings have separated.
From a phase test to a pulse test
For a narrow packet, envelope motion is set by group velocity \(d\omega/dk\). Differentiate the discrete relation at fixed \(h,\Delta t\). The result is \(v_g/c=\cos(\theta/2)/\sqrt{1-C^2\sin^2(\theta/2)}\) on the positive branch for resolved nonendpoint modes. At \(C=0.8\) a mode close to the grid Nyquist limit has small group speed. A wave carrier and its envelope can show different speed errors. In a real dielectric wavelength dependence may also come from the material itself; a grid-refinement test with unchanged material law separates these contributions.
As an independent benchmark, set \(C=1\). Then \(\Omega=\theta\) for \(0\le\theta\le\pi\), and the right-going recurrence translates the samples exactly by one grid cell at each time step. The lab should align both curves even on a surprisingly coarse grid for this particular smooth periodic mode. This checks the sign and indexing of propagation without implying exact accuracy for arbitrary geometry and material interfaces.
Tutorial
A signal must accumulate less than 1 degree of phase error over ten periods. Estimate a required points-per-wavelength count for \(C=0.5\) using the leading error.
Work through the solution
The total continuum phase advance is \(20\pi\) rad. Requiring \(20\pi(1-C^2)(2\pi/N)^2/24<\pi/180\) gives \(N^2>450\pi^2\), or \(N\gtrsim67\). Evaluate the exact dispersion relation to check the chosen integer.
Why is measuring only the field at its crest a poor detector of small phase lag?
Work through the solution
The derivative of a sinusoid vanishes at its crest. A small phase shift changes that value only quadratically; at a zero crossing the change is linear. A phase fit using the entire ring is more robust than either single sample.
The numerical envelope changes after a wall is introduced. What additional tests would separate dispersion from reflection errors?
Work through the solution
First validate travel time on a uniform periodic domain. Next use a single known interface with an analytical reflection coefficient. Move the observation plane and refine the mesh separately. Compare reflected phase and amplitude with an energy-flux balance so a boundary error cannot masquerade as bulk dispersion.