Power records the strength of fluctuations at a scale while discarding how the waves line up. It can test growth and still assign identical numbers to different spatial patterns.
To look for the longest wave along a box axis, map each particle’s comoving position to one turn around a unit circle. Average the resulting arrows. Uniform coverage cancels their directions; a preference for some parts of the wave leaves an arrow with both length and direction. Its length measures amplitude and its direction records phase.
For a three-dimensional integer wavevector n, the complex exponential below stores both components. All masses are equal here, so all particles carry equal weight. We use nonzero modes; the mean density belongs to the background.
δn=Np1p=1∑Npexp(−2πin⋅yp),n=0
The real part averages cosine and the imaginary part averages minus sine. Moving across a periodic face changes the phase by a whole turn and leaves this amplitude unchanged.
Square the arrow’s length and multiply by the comoving box volume. That defines power for a single discrete mode in this course. It has volume units: using Mpc for the box length gives Mpc3. We do not multiply by the changing physical volume as the universe expands.
A usual cosmological power spectrum also averages modes with nearby wavenumber lengths and different directions, or describes an ensemble expectation. The Lab tracks a few specified modes. A single low-mode readout is not a precision measurement of an entire isotropic spectrum.
Pn=L3∣δn∣2,kn=L2π∣n∣
Before comparing a paper, check its volume normalisation, length units and mode averaging.
Superpose two small waves in one periodic coordinate: one goes around the box once and the other twice. Reverse the sign of the second wave. This shifts its phase by half a turn without changing either wave’s amplitude, while changing how their peaks meet.
The figure is our own continuous-density example, not PM output. Both densities stay positive. Both modes have power 20Mpc3 in each example, yet the spatial patterns differ. Those powers alone cannot uniquely reconstruct the image.
With L=20Mpc, both positive integer modes have amplitude magnitude 0.05 and hence power 203(0.05)2=20Mpc3.Our analytic teaching example: change only the second wave’s sign. The density curves differ, while both n=1 and n=2 have 20Mpc3 power for L=20Mpc. Equal-power markers overlap at the same integer modes. This is not a PM record or a digitised paper figure. Open the full figure
In EdS, a sufficiently small, purely growing density perturbation is proportional to the scale factor. Power is its square, so its growth ratio is the squared scale-factor ratio. Strong nonlinear evolution transfers power among waves and invalidates this simple rule.
Calculate a small plane wave first. Take initial parameter A=0.01 and evolve from ai=0.05 to af=1. To first order, δ≃aAcos(2πy). The longest-mode powers are approximately 0.0005 and 0.2Mpc3, with ratio 400.
A finite mesh leaves a systematic difference. In the retained calibration with 16 nodes per axis and 256 steps, the actual power growth is about 0.2814% below 400. More time steps alone do not remove this spatial-operator bias. Corresponding 8-node and 32-node tests are about 4.115% and 0.02538% low. Particles and mesh are refined together, starting from the same continuous small wave.
P(ai)P(af)≃(aiaf)2
This is the small-perturbation, pure growing-mode EdS reference. The 256-step calibration differs from the Lab’s 1024-step native record; the next chapter uses an actual exported epoch.
Place four equal masses at the four quarter-interval positions of a periodic line. Their longest-mode arrows cancel exactly. The distribution is discrete, yet its power in this mode can vanish. Discreteness does not imply Poisson sampling.
Independent random points leave an average finite-sample contribution called shot noise. The TNG clustering paper discusses its subtraction and warns that cold, ordered particles can be sub-Poissonian. Our small wave begins on a regular half-cell lattice. We do not automatically subtract volume divided by particle count; that would turn a genuinely zero mode negative.
Force calculation and power measurement also differ. The force uses mesh windows, while the readout sums directly over particle positions. Taking another FFT of the displayed density would introduce its own window and aliasing, producing a different estimator.
In the linear regime, how does doubling initial amplitude change power at a fixed epoch?
Read the explanation
It doubles the complex amplitude and quadruples power. Nonlinear evolution need not preserve this scaling for every late-time mode.
Translate every particle by L/4. What changes in the power and in the spatial pattern?
Read the explanation
The translation rotates each mode’s complex phase without changing its magnitude, so power stays fixed. The pattern moves in the box; its phases change consistently with that common translation.
Can you subtract L3/Np from a zero-power mode of the half-cell lattice?
Read the explanation
The independent random-sampling assumption is absent. A negative result would expose a mismatched estimator assumption, not a negative density variance.
Select A sheet folds and reduce the amplitude to A=0.02. Predict the early longest-mode power ratio.
Pause at a saved epoch and export the current JSON, retaining its actual scale factor. Three-significant-figure readouts cannot resolve a small fractional difference reliably.
Continue with the independent replay in the next chapter. Compare PM power and EdS at the same initial condition and epoch.
Fixed v2: Methods 2.1–2.2 and original Figures 5–7 read. Figure 6 compares resolution and Figure 7 full-physics/DMO power; the response axes use natural logarithms. Ordered-particle shot-noise limits are discussed in Section 2.2. We inspect published methods and figures, without reproducing TNG runs or downloading snapshots.
Original accepted kernel/linear, nonlinear and five-preset F64 calculations support the teaching figures and calibration. This small public ZIP contains only an exact current-state small-wave fixture, an independent NumPy/SciPy trajectory replay and expected output. The fixture was generated through the frozen model and canonical serializer in Node, not downloaded in a browser. Large raw preset archives remain separately retained; no Engine or source paper is included.