Deriving the Mode Equation Behind a Computed Spectrum
Sandbox Physics ·
To compute the primordial spectrum, the Lab integrates the inflaton background and then each mode from its initial vacuum state to a late readout. The background and mode equations below describe a canonical scalar field and Einstein gravity. An analytic benchmark and the Wronskian test different parts of the numerical calculation.
Start from the Friedmann equation 3H2=21ϕ˙2+V and the field equation ϕ¨+3Hϕ˙+V,ϕ=0. Replace time derivatives with ϕ˙=Hϕ′.
The Friedmann equation becomes H2(3−21ϕ′2)=V. With ϵ=21ϕ′2, which equals −H˙/H2, this is the first formula below. Using H′/H=−ϵ in the field equation gives the second.
These two lines are the whole background. Inflation ends where ϵ=1. Nothing here assumes slow roll; the field may lurch over a step and the equations still hold.
H2=3−ϵV,ϕ′′=−(3−ϵ)ϕ′−H2V,ϕ,ϵ=21ϕ′2
Exact single-field background equations in e-fold time.
When the motion is on the slow-roll attractor, ϕ′′ is small and ϵ≈ϵV=21(V,ϕ/V)2. The dashed reference uses the leading slow-roll power formula. The numeric background also uses a slow-roll starting velocity, with evolution governed by the background equations above.
Worked example on the R2 plateau V=V0(1−e−2/3ϕ)2. Where the pivot exits for N∗=55, the integrator finds ϕ∗=5.3213. There e−2/3ϕ∗=0.012974, so V,ϕ/V=0.021464 and ϵV=2.30×10−4. The integrated background gives ϵ=2.28×10−4, about one per cent lower.
Expanding the action to second order in comoving gauge leaves the curvature perturbation R as the scalar degree of freedom. With v=zR and z=aϕ′, the conformal-time equation is ∂τ2vk+[k2−(∂τ2z)/z]vk=0. The prime still denotes an e-fold derivative.
Rewritten in e-folds, it becomes the first equation below. The friction term is dln(z2aH)/dN; this is the flux form of the previous chapter, expanded. Each tensor polarisation has the same structure with z replaced by a, so its friction is only 3−ϵ.
A sharp step changes ϕ′′/ϕ′ rapidly. That changes the evolution of scalar modes that are still oscillating. They retain changes in phase and amplitude after the background settles, giving a range of alternating peaks and dips in the final spectrum.
Deep inside the Hubble scale, a Bunch–Davies mode approaches vk=e−ikτ/2k. The code starts near k/aH=100, using the de Sitter mode function below with the initial-time approximation τ≃−1/(aH) for the inflationary background.
Starting too late would add an error from the approximate initial state; starting earlier only costs time. The benchmark script checks this choice: against the exact power-law answer, the error stays below 2×10−6 whether the start is k/aH=50, 100 or 200.
vk(τ)=2ke−ikτ(1−kτi),Rk=zvk
The de Sitter mode function used for the initial data; τ is conformal time.
Canonical quantisation requires v∂τv∗−v∗∂τv=i for all time. Since v=zR and ∂τ=aHd/dN, this becomes the condition below. Exact solutions keep it; numerical errors break it.
In the Lab’s fixed-step integrator the drift falls with the step size as expected. For a power-law test, step factors 0.3, 0.15 and 0.075 give Wronskian drifts of 1.1×10−3, 4.3×10−5 and 5.5×10−6, beside power errors of 7.7×10−4, 4.4×10−5 and 6.5×10−6. The two shrink together, so the drift is a usable warning light.
z2aH(RR∗′−R∗R′)=i
The Wronskian checks whether the integrator preserves canonical normalization. The exact-spectrum benchmark independently tests the final power.
We stop each mode at k/aH=10−3, when it has frozen, and form the spectra below. The tensor factor 8 combines two polarisations with the 2/Mpl normalisation of each.
The leading slow-roll estimate H2/(8π2ϵ) at k=aH is the dashed curve. On the plateau it sits 2.5% below the numerical result at the pivot; for 21m2ϕ2 the gap is 0.8%. The leading formula drops terms of the order of the slow-roll parameters. On the plateau ∣ηV∣ is about 0.017 while ϵ is near 2×10−4, so a gap of a few per cent is the expected size.
∂τv∗=ikeikτ/2k, so v∂τv∗=i/2. Likewise v∗∂τv=−i/2. The difference is i, independent of time.
Derive H2=V/(3−ϵ) and find the fraction of the total energy in field motion when ϵ=1.
Read the explanation
Substitute ϕ˙=Hϕ′ into the Friedmann equation to obtain 3H2=H2ϕ′2/2+V, or H2(3−ϵ)=V. At ϵ=1, kinetic energy is H2 out of a total 3H2, so it accounts for one third. The acceleration is zero there.
Why can the default step affect scalar modes more strongly than tensor modes, and what does the tensor-to-scalar ratio compare?
Read the explanation
The scalar friction contains 2ϕ′′/ϕ′, which changes sharply at the step. Tensor friction contains only 3−ϵ. The ratio compares both spectra, so changes in scalar power alone can move it. The two plateau models have nearly the same ratio at the pivot, while the default step changes it at k=0.002Mpc−1.
Choose Smooth plateau. Compare the solid spectrum with the dashed slow-roll reference at the pivot marker. The slow-roll curve is a few percent lower there.
Choose Steep slope, strong gravitational waves. The gap shrinks, as the 0.8% figure predicts.
Choose Sharp step, exaggerated. Compare the broad sequence of peaks and dips in the solid spectrum with the local change in the dashed reference. The reference uses the background at crossing, while the full calculation follows the evolution before and after it.
Full v2 PDF (2 August 2019) read for Sections 4.2 and 7.1–7.3: equations 47–48, the step template in equations 57–62, Table 11 priors, Table 12 step results and Figure 28. The headline spectral index and amplitude quoted in this course come from its parameter tables.
Full review read. Used: Section 23.3.4 equations 23.55–23.57 and its sentence on the ACT combination, Section 23.6 on reheating and the number of e-folds after the pivot exits, and Section 23.7.3.2 equations 23.101–23.103 for the sign convention of the local non-Gaussian amplitude and its single-field squeezed-limit value.
Full v2 read. Equation 1 defines the tanh step we use; equations 6–19 set out the mode equation in e-fold time and its initial data. Our code is written independently and puts the step on the Starobinsky plateau and on a quadratic potential, not only on the paper’s quadratic case.
Full v5 read. Equation 1.2 gives the squeezed-limit argument. In that paper the tilt symbol means the deviation from scale invariance, which modern papers write as the spectral index minus one.
Full v1 read, with printed pages 4–6 checked as images. Equations 31, 41 and 43 give the exact power-law-inflation spectra that our solver must reproduce.
Our own calculations: the Lab integrator and a separate NumPy/SciPy reference agree to better than three parts in ten thousand on all five presets. The ZIP holds the Python reference, closed-form benchmarks, five inputs and expected outputs. No Engine code and no paper text is included.
Keep reading
What this page links to directly
You are hereDeriving the Mode Equation Behind a Computed Spectrum