Until now, we have studied the evolution of a homogeneous Universe, at least on very large scales beyond about . Today, however, we can see that matter is agglomerated in the form of planets, stars, galaxies, clusters of galaxies and superclusters of galaxies. The question that arises in this chapter is: how do these structures form in an expanding Universe? While the formation of the smallest stars involves many physical processes and is highly dependent on local initial conditions, it is possible to develop a simple linear model of the evolution of the largest structures, such as galaxy clusters or superclusters. To do this, we simply use a Newtonian theory of linear perturbations, and calculate the evolution of these perturbations in an expanding Universe.
Figure 1:Scales of size and mass in the Universe.
1Validity regime¶
However, let us state the conditions necessary for the validity of the Newtonian perturbation theory. The first obvious condition is that the perturbation of the metric and the energy-momentum tensor must be small. In the case of non-relativistic matter, this means that the perturbations of the density must remain small in front of the mean density i.e. . The perturbations of the gravity field are also weak compared to the mean gravity field i.e. .
But in order to return to Newtonian gravity in a homogeneous expanding space-time and study only density perturbations, there is another condition. The size of the regions showing a deviation from the average properties of the universe (or the wavelength of the modes considered) must be much smaller than the Hubble radius , because in Newtonian gravity the interaction propagates instantaneously. If this is not the case, by the time the information from a collapsing region has travelled to the other side of the region, the expansion factor has changed significantly: a situation that obviously cannot be dealt with using Newtonian gravity in a homogeneously expanding space-time.
2Preamble about classical acoustics¶
The non-relativistic matter field is described by a perfect fluid model. To look at the evolution of disturbances in a perfect fluid is to be interested in the field of acoustics. Here are a few useful concepts.
In an Eulerian description of fluids, for a fluid at rest and perfect, we define its velocity field , its pressure field and its mass density field as constant:
On top of this, we superimpose low-amplitude perturbations:
In acoustics, it is assumed that compressions are adiabatic and reversible, i.e. if the size of the disturbance is greater than the mean free path of the fluid particles, then heat conduction can be neglected. On the other hand, overpressure generates pressure work which changes the internal energy of a disturbance and therefore its temperature, and this work allows acoustic energy to propagate. We therefore use isentropic compressibility instead of isothermal compressibility :
We deduce the link between pressure and density perturbations via isentropic compressibility:
There is also local conservation of mass:
As the fluid is perfect, its dynamics is governed by the Euler equation (Navier-Stokes without viscosity):
where gravitation is usually neglected. By combining these three equations, we obtain a d’Alembert equation:
where is the sound speed. For a perfect gas and isentropic transformations, we have Laplace’s Law with the ratio of heat capacities at constant pressure and volume , also called the adiabatic index. If the fluid particles have degrees of freedom (translations, rotations, vibrations) to store energy in kinetic (thermal) form, then the adiabatic index is . For a diatomic gas such as air at the usual temperature, there are degrees of freedom (3 translations and 2 rotations) so . From this we derive a formula for the sound velocity as a function of temperature and particle mass[1] :
with the molar mass of the fluid and the effective mass of a particle of air if this is the medium under consideration, calculated by :
3Acoustics in an expanding space¶
The CMB emission shows that the Universe is slightly inhomogeneous, with small overdensities of the order of . These fluctuations are likely to increase over time, leading to a Universe where the density contrast is of the order of [2] (Figure 1,Figure 2). What are the mechanisms behind this growth?
The formation of the large-scale structures of the Universe can be understood by a linear theory of perturbations in the perfect fluid constituted by non-relativistic matter after recombination. To study the evolution of these density perturbations in the matter field, we need to rewrite the previous acoustic equations in the specific context of an expanding medium subject to the law of gravity.

Figure 2:An artistic celebration of the Dark Energy Spectroscopic Instrument (DESI) Year 1 data, showing a slice of the larger 3D map that DESI is constructing during its five-year survey. DESI is mounted on the Nicholas U. Mayall 4-meter Telescope at Kitt Peak National Observatory. Credit: DESI Collaboration/KPNO/NOIRLab/NSF/AURA/P. Horálek/R. Proctor
Coordinate systems¶
The equations of classical physics are valid using physical (non comoving) quantities: proper distance, proper time, etc... However, using physical distances as a coordinate system is impractical in an expanding Universe. A more practical method is to write the equation in comoving space. Note
- the physical position vector (whose norm is the proper distance ),
- the comoving position vector (whose norm is the comoving distance χ),
- the physical velocity,
- the comoving velocity.
We have the following relationships:
Although the Hubble flow (first term of (11)) should not be considered as a real velocity, it appears in the relationship between and . This would be a problem if it could take values of the order of (or larger). But the condition that guarantees that (see section Section 1).
How do you go from the physical coordinate system to the comoving coordinates system? The conversion of spatial partial derivatives is fairly straightforward:
The partial time derivative requires closer examination. Let’s write the differential of any function of time and space :
So by identification :
Conservation of mass¶
In physical space, the continuity equation is written :
Using the comoving density , we can express this equation in comoving space:
By introducing the classic vector calculus formula
where ϕ is a scalar and a vector, the above equation reduces to :
The continuity equation therefore takes exactly the same form in comoving space, using comoving variables. However, this is not the case if we use the particular velocity .
Euler equation¶
In physical space, the Euler equation for a perfect (non-viscous) self-gravitating fluid takes the usual form:
In comobile space, it becomes :
with the comobile potential. Ensuring that :
the Euler equation in comoving coordinates reduces to :
We can see two additional terms compared to the version of the Euler equation written in physical coordinates. The extra term is a drag force created by the expansion on the moving velocities.
The last term seems strange. It seems to cancel out the Newtonian force created at by a non-zero homogeneous density background. It could be argued that this force should be zero, for reasons of symmetry. However, by applying Gauss’s theorem, we can find a non-zero force directed towards the origin of the coordinates (wherever that may be!). The fact is that Poisson’s equation behaves badly (and should not be used) for a source field whose norm is not finite. But of course this implies scales beyond where we don’t expect our theory to hold up. As far as density perturbations are concerned, we will subtract the non-zero mean value and thus get rid of this large-scale inconsistency.
Poisson equation¶
In a universe with no cosmological constant, from general relativity we derive the usual Poisson equation in the limit of weak fields (35) :
where ϕ is the gravitational potential. Given the relationship between the potential and the Newtonian force, the comoving potential is naturally defined as , and Poisson’s equation is also unchanged in comoving space:
4Newtonian perturbation theory¶
Solution of order 0¶
The conservation of mass equation in comoving space (18) has the following 0th order solution for a homogeneous and isotropic Universe:
At order 0, the mass density remains stationary and homogeneous and there is no particular velocity. Integration of the Poisson equation (24) in spherical coordinates [3] gives :
If we use Friedmann’s equations (59) :
for a Universe dominated by matter with and , we obtain the gravitational force:
The gradient of the gravitational field gives a centrifugal force of order 0.
From Euler’s equation (22) and the previous results, we arrive at :
Linear solution of order 1¶
Consider small perturbations around the zeroth-order solution:
The quantity δ is called the density contrast and is widely used in the theory of structure formation. Note that it has the same value in physical space as in comobile space. By injecting these expressions into the continuity, Poisson and Euler equations, the zeroth-order solution cancels out (as expected) and by removing the second-order terms, we obtain the linearised set of equations:
By taking the divergence of the linearised Euler equation (34), the time derivative of the linearised mass conservation equation (33) and reinjecting the Poisson equation (35), we finally obtain :
We introduce the speed of sound in the medium for adiabatic compression:
Then we obtain the equation for the growth of perturbations in comoving space:
Sound speed¶
In a Universe dominated by radiation, the properties of relativistic gas are :
hence the sound speed in relativistic plasma:
In a Universe dominated by non-relativistic matter, the thermodynamic properties of baryons are :
with the effective mass of the baryons in a gas mixture of atomic hydrogen and helium (note the similarity with (10)), and the adiabatic index of the baryons because the hydrogen is in atomic form (and the helium, of course). For a reversible adiabatic transformation, with Laplace’s law we have , the temperature of the baryons evolves as :
Now therefore
The sound speed in the baryon gas is :
Just after the photons and electrons have decoupled, the temperature of the baryons is so the speed of sound in the baryon gas is about . The change is of several orders of magnitude, so the evolution of the perturbations changes drastically at this instant. Then the temperature of the baryons decreases in , at least until heating by interstellar radiation changes the situation (around ), so the sound speed decreases in .

Figure 3:Sound speed in the Universe as a function of the scale factor . The slight decrease between equivalence and decoupling is given by equation (48) (see box). The calculation is inaccurate when we enter the non-linear regime of structure growth, i.e. when (shaded region). In addition, also around this redshift, the baryon gas is heated by stellar radiation, so the temperature of the baryons no longer evolves in .
Mixture of baryons and coupled photons
As long as photons are coupled to free electrons, they are mechanically coupled to the baryon gas by the Coulomb force. During the period when the Universe is dominated by matter but photons are still coupled to electrons (Weinberg (1989) p.509,566) :
Jeans instability¶
The solutions to the perturbation evolution equation (38) will be studied next semester, but we can already study their behaviour from their dispersion relation. Let’s look for plane wave solutions of the form :
and study the solutions in the Fourier domain. The dispersion relation is written :
. By neglecting the damping term (of the order of the age of the Universe) in front of the characteristic time of evolution of the perturbations (), we end up with :
where . This is the same dispersion relation as for electromagnetic waves in a plasma. We define the Jeans wavelength (The Royal Society (1902)) and the Jeans length by :
- If , then so we have an oscillating solution i.e. an acoustic wave which propagates: the perturbations of small size compared to the length of Jeans oscillate thanks to the pressure force.
- If , then we have a non-oscillating solution in exponential: the large structures evolve only under the effect of gravity and increase (and the voids decrease).
As the λ scale evolves with the expansion () as well as the Jeans length, the discussion is not easy to conduct along the history of the Universe. Let’s define the mass in a sphere of radius λ, conserved with expansion, and compare it with the mass of Jeans .
- If , then the structure is too light and the pressure can compensate for the force of gravity: the structure oscillates.
- If , then the structure is too heavy and collapses gravitationally.
Plotting the Jeans mass as a function of the scale factor allows us to predict which structures can collapse gravitationally and which are prevented from growing Figure 4 (Weinberg (1989) p. 565).

Figure 4:Evolution of the mass of Jeans as a function of the scale factor . The calculation is inaccurate when we enter the non-linear regime of structure growth, i.e. when (shaded region). In addition, also around this redshift, the baryon gas is heated by stellar radiation, so the temperature of the baryons no longer evolves in .
Describing the growth of structures before recombination contradicts the non-relativistic hypothesis on which our study is based. However, the sound speed scale remains a relevant scale and moreover non-relativistic matter dominates after equivalence. Knowing this (and that the relativistic study does not give fundamentally different results from what follows), we will take the liberty of discussing the growth of large structures in the primordial and recent Universe (although it is non-linear today).
From the Figure 4, we can see that before decoupling, structures with the mass of a galaxy or a cluster of galaxies are not heavy enough to collapse (or only in the first instants of the Universe). Pressure waves travel through them and they oscillate. However, after decoupling, the speed of sound drops by 5 orders of magnitude. The decoupling of photons freezes the pressure waves and structures the mass of galaxies and even dwarf galaxies can begin to grow.
Acoustic waves in the primordial Universe¶
Before decoupling, acoustic waves travel through the primordial plasma. Let’s define the comoving sound horizon as :
the maximum comoving distance travelled by an acoustic wave since the beginning of the Universe. At the moment of decoupling, it is or . This is therefore the distance that a wave from an overdensity present at the Big Bang was able to travel. This wave propagation results in a positive correlation on the presence of matter on this fundamental spatial scale. This scale is converted into an angular separation on the sky, printed on the CMB temperature anisotropy map and given by :
A scale in distance space gives a sinusoidal power spectrum in reciprocal space. Measuring the position of maxima in the CMB temperature anisotropy power spectrum gives an extremely accurate Planck Collaboration et al., 2020 sound horizon:
which is one of the 6 free parameters of the ΛCDM model.
Figure 5:Time evolution of an initial Gaussian field under the effect of acoustic propagation.
Adiabatic or isocurvature initial conditions?
TODO
Optical depth¶
The optical depth τ is defined as the ratio of the number of photons received on Earth without having undergone any Thomson scattering to the number of photons emitted at a time :
with
The time for which is called the time of last diffusion. This is the time since which a CMB photon has not interacted with an electron. More precisely
This is one of the six parameters of the standard ΛCDM model. After the emission of the cosmic microwave background, we enter the Dark Ages of the Universe, when the Universe is transparent but no stars are yet emitting light. But with the birth of the first stars and galaxies, perhaps 150 million years after the Big Bang, the neutral medium is ionised once again. Although very sparse, CMB photons again interact with electrons by Thomson scattering, which reduces the amplitude of the small-scale anisotropies in the CMB power spectrum, and introduces new anisotropies in the polarisation anisotropies. It is the least well measured parameter of the ΛCDM model at the moment (Figure 6) Tristram, M. et al., 2024, but it informs about the appearance of the first luminous stars (Figure 7).

Figure 6:The optical depth to reionization τ measured as a smearing of the CMB angular power spectrum (from https://

Figure 7:Assuming that the Universe is once again completely ionised, the calculation of its optical depth shows that if today we measure then the reionisation of the Universe should be complete around giving the start of galaxy formation earlier than 1 billion years after the Big Bang.
- Weinberg, S. (1989). The cosmological constant problem. Reviews of Modern Physics, 61(1), 1–23. 10.1103/RevModPhys.61.1
- (1902). Philosophical Transactions of the Royal Society of London. Series A, Containing Papers of a Mathematical or Physical Character, 199(312–320), 1–53. 10.1098/rsta.1902.0012
- Planck Collaboration, Aghanim, N., Akrami, Y., Ashdown, M., Aumont, J., Baccigalupi, C., Ballardini, M., Banday, A. J., Barreiro, R. B., Bartolo, N., Basak, S., Battye, R., Benabed, K., Bernard, J.-P., Bersanelli, M., Bielewicz, P., Bock, J. J., Bond, J. R., Borrill, J., … Zonca, A. (2020). Planck 2018 results - VI. Cosmological parameters. A&A, 641, A6. 10.1051/0004-6361/201833910
- Tristram, M., Banday, A. J., Douspis, M., Garrido, X., Górski, K. M., Henrot-Versillé, S., Hergt, L. T., Ilić, S., Keskitalo, R., Lagache, G., Lawrence, C. R., Partridge, B., & Scott, D. (2024). Cosmological parameters derived from the final Planck data release (PR4). A&A, 682, A37. 10.1051/0004-6361/202348015