The length of the cosmic ruler is the comoving distance a sound wave could cover in the photon-baryon fluid before the baryons were released, at the drag epoch near redshift 1060. Sound in that fluid moves at c/3(1+R), where R measures how much the baryons weigh down the photons. Integrating that speed over the expansion gives rd≈147Mpc for the parameters preferred by Planck. More baryons slow the sound and shorten the ruler. This chapter derives the speed, sets up the integral and checks it against a full Boltzmann code.
It assumes you know that the universe expands with a scale factor a, equal to 1 today and 1/(1+z) at redshift z, and that the concept article has introduced the acoustic shell.
The speed of sound in a photon-baryon fluid
Before recombination, photons scatter so often off free electrons that photons, electrons and nuclei move together. For sound, this is a single fluid. Its pressure comes almost entirely from the photons, p=ργc2/3. Its inertia comes from the photons and the baryons together.
For a fluid the sound speed squared is the change of pressure with energy density, cs2=δp/δρ. A compression that keeps the photon-to-baryon ratio fixed changes the photon energy density by δργ and the baryon density by δρb=43(ρb/ργ)δργ, because photon energy density scales as the fourth power of temperature and baryon density as the third. Then
cs2=3c2δργ+δρbδργ=3(1+R)c2,R≡4ργ3ρb.
With no baryons, R=0 and sound moves at c/3, the speed for pure radiation. Baryons add inertia without adding pressure, so they slow it.
Baryon density falls as a−3 and photon density as a−4, so R grows in proportion to a. In terms of the physical densities ωb=Ωbh2 and ωγ=Ωγh2,
R(a)=4ωγ3ωba.
For a microwave background at 2.7255K, ωγ=2.473×10−5.
Worked example. Take ωb=0.02236 and the drag epoch at zd=1058.3. Then 3ωb/4ωγ=678.1 and ad=1/1059.3, so R=0.640. The sound speed there is c/3×1.640=0.451c, already well below the radiation value 0.577c.
Adding up the distance
A wave moving at cs covers a comoving distance csdt/a in a time dt. Comoving means measured on a grid that expands with the universe, so it is the length the shell still has today in today's units. Since dt=−dz/[(1+z)H] and 1/a=1+z, the total is
rd=∫zd∞H(z)cs(z)dz.
This is equation 1 of the DESI DR2 cosmology paper. Before the drag epoch the universe holds radiation and matter, and dark energy is negligible. With ωr=ωγ(1+0.2271Neff) for photons plus three light neutrino species, and ωm for baryons plus cold dark matter,
H(a)=100kms−1Mpc−1ωra−4+ωma−3.
Change the variable to a, using dz/H=da/(a2H):
rd=100kms−1Mpc−1c∫0ad3(1+R(a))(ωr+ωma)da.
The prefactor is 2997.9Mpc. The integrand is smooth at a=0, so a few points of Gaussian quadrature are enough. Notice that h has dropped out. Given the physical densities ωb, ωm and ωr, the ruler has a fixed length in megaparsecs.
Worked example. Without baryons, R=0 and the integral can be done by hand:
rdR=0=3ωm2×2997.9Mpc(ωr+ωmad−ωr).
With ωm=0.1432, Neff=3.044 so that ωr=4.183×10−5, and ad=1/1059.3, this gives 165.3Mpc. Doing the integral numerically with ωb=0.02236 in R gives 147.05Mpc. The baryons shorten the ruler by about 11 percent.
When does the drag epoch happen?
The upper limit ad is not set by the fluid equations. It depends on recombination: how fast electrons join nuclei, and when the remaining photons can no longer push the far more numerous baryons. That needs atomic physics and is done by codes such as CLASS. The DR2 paper quotes zd≈1060.
For hand work, DESI gives a fit to such codes, equation 2 of the same paper:
with ωbc=ωb+ωc. We ran CLASS v3.4.2 with ωc=0.12084, a 0.06eV neutrino and Neff=3.044. At ωb=0.02236 it gives 146.89Mpc and zd=1059.9, which is 0.11 percent below equation 2.
Table 2.1 Equation 2 against our CLASS run, cold dark matter held at ωc=0.12084.
ωb
Equation 2
CLASS v3.4.2
CLASS zd
0.019
151.02Mpc
150.76Mpc
1051.9
0.02236
147.05Mpc
146.89Mpc
1059.9
0.026
143.36Mpc
143.04Mpc
1067.7
The Lab takes rd from equation 2 and then solves for the drag redshift at which the integral above reaches it. That gives zd=1058.3 at the default baryon density, 1.6 below the CLASS value. The difference is the price of skipping recombination physics. It affects only the animation clock, because the ruler length comes from equation 2.
Why more baryons give a shorter ruler
Raising ωb does two things. It raises R at every time, which slows the sound. It also moves the drag epoch slightly earlier, to larger zd: with more baryons for each photon, the photons lose their grip on them sooner. Both shorten the ruler. Raising the dark matter density makes the universe expand faster at a given a, leaving less time for the wave, so rd falls with ωbc too.
Worked example. Raise ωb from 0.02236 to 0.026 with ωc fixed. Equation 2 gives 143.36Mpc, 2.5 percent shorter. A survey analysed with the old ruler as its template would find the bump at a separation 2.5 percent smaller than the template predicts, and would fit a dilation of 147.05/143.36=1.026 in every direction.
There is a catch for real data. A BAO survey measures distances divided by rd. On its own it fixes the product of the Hubble constant and the ruler. DESI DR2 quotes hrd=101.54±0.73Mpc. To separate the two, analyses add the baryon density from the abundances of light elements made in the first minutes, or from the microwave background.
Lab tasks
Open the More baryons, shorter ruler preset. Read the sound horizon and both fitted stretches, and compare them with the worked example.
Press play and watch the clock. Note the redshift at which the shells stop growing.
Move the baryon density across its full range and read the sound horizon at each end. Compare both values with the CLASS column of the table.
Exercises
Evaluate the sound speed at z=3000 for ωb=0.02236.
Show that R=1 would need a=1.47×10−3, and say whether that happens before or after the drag epoch.
Use equation 2 to find rd for ωb=0.019 with ωc=0.12084. Compare with CLASS.
A paper quotes rd=99.05h−1Mpc for h=0.6736. Convert it to Mpc.
Explain in one sentence why the comoving shell radius does not keep growing after the drag epoch, even though the universe keeps expanding.
AnswersShow the answer
At z=3000, a=1/3001 and R=678.1/3001=0.226. Then cs=c/3×1.226=0.521c.
R=678.1a=1 gives a=1/678.1=1.47×10−3, that is z=677. That is after the drag epoch at z≈1060, so before the drag epoch R is always below 1 and the photons still dominate the inertia.
ωbc=0.13984. Then rd=147.05×(0.019/0.02236)−0.13×(0.13984/0.1432)−0.23=151.02Mpc. CLASS gives 150.76Mpc, 0.17 percent lower.
99.05/0.6736=147.05Mpc.
After the drag epoch the baryons no longer feel the photon pressure, so the wave stops moving relative to the expanding grid. Comoving coordinates already take out the expansion, so the shell keeps a fixed comoving radius, while its physical size grows with a.
For Lab task 3: the slider runs from 0.019 to 0.026, and the Lab follows equation 2, so it shows about 151.0 and 143.4Mpc. Both sit 0.2 percent above CLASS, well inside the 2.5 percent shift the preset demonstrates.