Skip to content

Propagator Visualization Notebook

Retarded, advanced, and Feynman kernels can invert the same differential operator while giving different responses to the same source. This notebook makes the boundary data visible for one spatial Fourier mode, verifies the delta-source normalization, and compares direct convolution with independent forced oscillator evolution. The general propagator derivation remains at Klein–Gordon Propagators.

Required background. Klein–Gordon Propagators fixes the inverse and correlator conventions; Retarded and Advanced Green Functions explains the boundary-value distinction. Helpful background. Propagators to Correlators connects the scalar source factors to quantum-field expectation values.

Run the investigation. The program and retained results below support the stated experiment. Follow Running an Experiment for environment and output-directory guidance. The recorded evidence applies to its stated parameters and environment.

Use ℏ=c=1\hbar=c=1, m>0m>0, one fixed spatial momentum magnitude pp, and ω=p2+m2\omega=\sqrt{p^2+m^2}. For L=∂t2+ω2L=\partial_t^2+\omega^2, all three exported kernels obey LgX=δ(t)Lg_X=\delta(t):

gR(t)=θ(t)sin⁡ωtω,gA(t)=−θ(−t)sin⁡ωtω,gF(t)=i2ωe−iω∣t∣.\begin{aligned} g_R(t)&=\theta(t)\frac{\sin\omega t}{\omega},\\ g_A(t)&=-\theta(-t)\frac{\sin\omega t}{\omega},\\ g_F(t)&=\frac{i}{2\omega}e^{-i\omega|t|}. \end{aligned}

Each is continuous at zero and has gX′(0+)−gX′(0−)=1g_X'(0^+)-g_X'(0^-)=1. The conventional scalar Feynman correlator in these conventions is instead DF=−igFD_F=-ig_F, with LDF=−iδLD_F=-i\delta. The plotted gFg_F is therefore a unit-source inverse, not a correlator with its factor of −i-i silently omitted.

The code checks one-sided slopes and the integrated source equation

gX′(a)−gX′(−a)+ω2∫−aagX(t) dt=1,a>0.\begin{aligned} &g_X'(a)-g_X'(-a)\\ &\quad+\omega^2\int_{-a}^{a}g_X(t)\,dt=1, \qquad a>0. \end{aligned}

Away from zero, finite differences test the homogeneous equation. No ordinary pointwise derivative is used to represent the delta source. The source_jump column in the kernel CSV states the declared normalization; the measured jump and integrated residual checks are recorded separately in the JSON.

Compact-source responses and homogeneous data

Section titled “Compact-source responses and homogeneous data”

For source half-width TT, use the smooth compact bump

J(t)={exp⁡ ⁣(1−11−(t/T)2),∣t∣<T,0,∣t∣≥T.J(t)= \begin{cases} \exp\!\left(1-\dfrac{1}{1-(t/T)^2}\right), & |t|<T,\\ 0,& |t|\ge T. \end{cases}

Its peak amplitude is one in the chosen source units. The responses are

ϕX(t)=∫−TTgX(t−t′)J(t′) dt′.\phi_X(t)=\int_{-T}^{T}g_X(t-t')J(t')\,dt'.

Direct Simpson quadrature splits the integration interval at t′=tt'=t whenever that point lies inside the source. This respects the kernel’s derivative change instead of applying a smooth quadrature assumption across it.

An independent fourth-order Runge–Kutta solver integrates Lϕ=JL\phi=J with zero past data for the retarded solution, or zero future data and backward time steps for the advanced solution. For the Feynman comparison, use

ϕF(t)−ϕR(t)=ieiωt2ωJ~(ω),J~(ω)=∫−TTe−iωt′J(t′) dt′.\begin{aligned} \phi_F(t)-\phi_R(t) &=\frac{i e^{i\omega t}}{2\omega} \widetilde J(\omega),\\ \widetilde J(\omega) &=\int_{-T}^{T}e^{-i\omega t'}J(t')\,dt'. \end{aligned}

This difference solves the homogeneous mode equation. Adding it to the retarded ODE solution supplies the Feynman boundary data independently of the direct Feynman convolution.

Real retarded, advanced, and Feynman responses above and the imaginary Feynman response below, with source support shaded between minus two and two.

Default m=1m=1, p=0.75p=0.75, hence ω=1.25\omega=1.25, with source half-width T=2T=2. The shaded interval is the source support. Retarded response vanishes before it, advanced response after it. The Feynman response has different homogeneous boundary data; its pre-source value is not a classical retarded signal. Times are in the inverse energy unit used for m,pm,p; amplitudes use the declared source normalization.

In this even, real source example, the real Feynman curve is one half the sum of the retarded and advanced curves. Its imaginary part is a homogeneous oscillation. The plot contains only one spatial Fourier mode. It is not a spacetime light-cone plot and does not test full microcausality. No particle probability is assigned to the magnitude of these responses.

Four resolution questions appear in the exported results:

StudyWhat changesWhat is being checked
Source quadratureSimpson panel countConvolution accuracy with fixed output times
Independent ODE evolutionRK4 time stepAccuracy of the separately evolved boundary solution
Off-source derivativeCentered-difference spacingThe homogeneous differential equation away from the impulse
Finite Feynman regulatorϵ\epsilonApproach of a different regulated inverse to its limiting prescription

The first three are different numerical tests. The last changes the operator. The 121 plotted output times merely sample the curves and are not any of those convergence parameters.

The fixed source-refinement fixture uses ω=1.3\omega=1.3, whereas the default configured figure uses ω=1.25\omega=1.25. Its final Simpson orders are approximately 4.00373, 4.00158, and 4.00500 for retarded, advanced, and Feynman responses. The independent RK4 order is approximately 4.00370. The centered second derivative has its expected second-order behavior away from the source.

For the default configured curves, the maximum difference between convolution and the independent ODE-based comparison is approximately 3.65×10−93.65\times10^{-9}. This agreement concerns the stated source, window, and resolutions. A custom run must inspect its own response errors; passing the fixed fixtures does not certify every user-selected resolution.

With ϵ>0\epsilon>0 in energy-squared units, define

Ωϵ=ω2−iϵ,Re⁡Ωϵ>0,Im⁡Ωϵ<0,gF,ϵ(t)=i2Ωϵe−iΩϵ∣t∣.\begin{aligned} \Omega_\epsilon&=\sqrt{\omega^2-i\epsilon},\\ \operatorname{Re}\Omega_\epsilon&>0,\qquad \operatorname{Im}\Omega_\epsilon<0,\\ g_{F,\epsilon}(t) &=\frac{i}{2\Omega_\epsilon} e^{-i\Omega_\epsilon|t|}. \end{aligned}

It obeys (L−iϵ)gF,ϵ=δ(L-i\epsilon)g_{F,\epsilon}=\delta. Consequently, off the source,

LgF,ϵ=iϵgF,ϵ.Lg_{F,\epsilon}=i\epsilon g_{F,\epsilon}.

A nonzero residual of the unregularized operator is therefore expected. The regularization CSV exports that residual and the difference from gFg_F; ordinary off-source residual cells at t=0t=0 remain empty. The regulator study compares decreasing ϵ\epsilon on fixed sampled times and checks the decaying square-root branch. It does not establish uniform convergence on the entire infinite time axis.

Download the standalone Python program. The retained run used Python 3.12.14 and NumPy 2.3.5 and passed 125 checks.

Terminal window
python -m pip install numpy==2.3.5
python propagator-visualization.py --output-dir propagator-results

Existing outputs are protected. Defaults include 512 Simpson panels per smooth segment, 960 ODE steps on [−6,6][-6,6], 121 output samples, and ϵ=0.05\epsilon=0.05 for the regulated table. For a finer independent ODE comparison, keep the panel count fixed:

Terminal window
python propagator-visualization.py --ode-steps 1920 --output-dir propagator-finer-ode
DownloadContents
Kernels CSVReal and imaginary mode kernels and declared unit-source normalization
Responses CSVSource, convolution, independent ODE comparison, and boundary-data labels
Refinement CSVSeparately labeled quadrature, ODE, derivative, and regulator studies
Regularization CSVConfigured finite-epsilon kernel and the required unregularized residual
JSON reportChecks, source and numerical parameters, conventions, environment, and hashes

The public JSON uses download paths; numerical results and CSV bytes retain the executed run’s values. Kernel and response rows are interleaved by time: retarded, advanced, Feynman at each time, rather than three contiguous blocks. Select kind before joining points into a curve.

Put the default responses CSV beside the TikZ source and use PGFPlots 1.18:

Terminal window
latex notebook-propagator-responses.tex
dvisvgm --no-fonts notebook-propagator-responses.dvi

The source selects each of the three interleaved sequences explicitly. Update its default 121-time selection if changing the output sample count.

Two responses, one source. Subtract the retarded response from the Feynman response and apply LL. Why does a nonzero pre-source difference not contradict the retarded boundary condition?

Solution

Both source terms cancel, leaving L(ϕF−ϕR)=0L(\phi_F-\phi_R)=0. The displayed difference is proportional to eiωte^{i\omega t} and solves that homogeneous equation. Only ϕR\phi_R was required to vanish before the source. The other solution has different boundary data and is not a causal signal produced from those same zero past data.

A nonzero residual by design. Given (L−iϵ)gϵ=δ(L-i\epsilon)g_\epsilon=\delta, derive the off-source residual of LL. What would be wrong with demanding that this residual vanish at fixed nonzero ϵ\epsilon?

Solution

Away from the impulse, Lgϵ=iϵgϵLg_\epsilon=i\epsilon g_\epsilon. Requiring zero would impose the wrong differential operator. First verify the regulated identity and source jump; then study its ϵ→0\epsilon\to0 limit at the specified times.

More points, same accuracy. Why does doubling the plotted output samples alone not establish more accurate convolution or ODE evolution?

Solution

It requests more values from the same numerical procedure. The integration panel count and ODE step control those errors independently. Refine each while holding the physical source and an appropriate comparison set of times fixed; use the reported errors and observed orders to assess convergence.