The Friedmann equations and relativistic cosmology
How a single number, the scale factor a(t), describes the size of the entire universe, why Einstein's field equations reduce for a homogeneous, isotropic cosmos to two ordinary differential equations governing a(t), and how these Friedmann equations let us compute the age, geometry, and ultimate fate of the universe from measured densities of matter, radiation, and dark energy.
IntuitionA loaf of raisin bread with no edge and no center
Imagine raisins baked into a loaf of bread, and picture the loaf rising in the oven: every raisin moves away from every other raisin, and the farther apart two raisins start, the faster they separate — yet no raisin is special, none sits at a 'center' of the expansion. This is exactly how galaxies recede from one another as the universe expands: space itself stretches uniformly everywhere, carrying galaxies apart, rather than galaxies flying outward from some central explosion into pre-existing empty space. The single number tracking how much the 'loaf' has risen since some reference time is the scale factora(t), and the whole of relativistic cosmology reduces to finding the differential equation that governs it.
An interactive curved 3D surface with a scale slider, standing in for the uniformly-stretching spatial geometry of an expanding universe.
A curved surface standing in for the spatial geometry a Friedmann–Lemaître–Robertson–Walker universe can have: dragging the scale slider mimics uniformly stretching the whole surface, the way a(t) stretches every comoving distance in the real universe, without any point on the surface being a preferred center.
Write the physical distance between two galaxies at rest with respect to the expanding background ('comoving' galaxies) as d(t)=a(t)d0, where a(t) is the dimensionless scale factor (normalized so a(t0)=1 today) and d0 is their fixed comoving distance. Differentiating, d˙=a˙d0=aa˙d, which is exactly Hubble's law v=H(t)d with the Hubble parameterH(t)=a(t)a˙(t). Light emitted at time tem and observed today at t0 is stretched by the same factor the universe has expanded, giving the redshift1+z=a(tem)a(t0).
H(t)=a(t)a˙(t)
The best current measurement gives H0≈70km/s/Mpc (megaparsecs), meaning galaxies 1 megaparsec away recede at roughly 70 km/s — but the valueH0 today is only the boundary condition; the whole point of the Friedmann equations below is to say how H(t), and hence a(t), evolves.
For a homogeneous, isotropic universe with mass-energy density ρ(t), cosmological constant Λ, and spatial curvature index k∈{−1,0,+1}, the scale factor obeys H2=(aa˙)2=38πGρ−a2kc2+3Λc2.
Why is it true?
The full derivation plugs the Friedmann–Lemaître–Robertson–Walker metric into Einstein's field equations, but a remarkable Newtonian argument (Milne & McCrea, 1934) reproduces exactly the same equation (setting Λ=0): treat a test galaxy on the surface of an expanding sphere of comoving matter as an ordinary projectile in the gravitational field of everything enclosed inside it, and apply energy conservation. Gravity outside a uniform sphere behaves as if all its mass sat at the center (a Newtonian shell theorem), so only the enclosed mass matters — matching the way general relativity only lets locally enclosed mass-energy curve spacetime at a point in a homogeneous universe.
Proof
Fix a comoving test galaxy at comoving radius r0 from an arbitrary origin, so its physical distance is R(t)=a(t)r0 and its physical velocity is R˙=a˙r0. By the Newtonian shell theorem, the gravitational pull it feels comes only from the mass M enclosed within radius R, and since no comoving matter crosses the comoving sphere of radius r0 as the universe expands, M=34π(ar0)3ρ is constant in time (for pressureless matter). Treat the test galaxy, of mass m, as a projectile: its total mechanical energy 21a˙2r02−ar0GMm=E is conserved.
Substitute M: 21a˙2r02−ar0Gm⋅34π(ar0)3ρ=E, which simplifies to 21a˙2r02−34πGmρa2r02=E. Divide through by 21ma2r02: (aa˙)2−38πGρ=ma2r022E.
The right-hand side must be independent of the arbitrary radius r0 chosen (the equation has to hold for every comoving observer, and a(t) itself does not depend on r0), so mr022E is a constant of the test galaxy's orbit that can only depend on the fixed comoving coordinate structure — define this constant by mr022E≡−kc2, giving H2=38πGρ−a2kc2. A separate thermodynamic argument (treating the cosmological constant as a fluid with constant energy density ρΛ=Λc2/(8πG) and substituting it into this same formula) restores the Λc2/3 term, giving exactly H2=(aa˙)2=38πGρ−a2kc2+3Λc2 — and remarkably, the full general-relativistic calculation from Einstein's field equations produces this identical equation, with k now properly identified as the actual sign of spatial curvature rather than just an integration constant.
Under the same hypotheses, if in addition the density and pressure obey the fluid (continuity) equation ρ˙+3aa˙(ρ+c2p)=0, then aa¨=−34πG(ρ+c23p)+3Λc2.
Why is it true?
Unlike Newtonian gravity, in general relativity pressure itself gravitates alongside energy density — a subtle effect invisible in the first Friedmann equation, which only involves ρ. The acceleration equation reveals this: ordinary matter and radiation, having positive pressure, always decelerate the expansion via the +3p/c2 term, while something with sufically negative pressure, p<−ρc2/3, flips the sign and drives a¨>0 — cosmic acceleration, exactly what dark energy (modeled here by Λ) does.
Proof
Start from the first Friedmann equation in the form a˙2=38πGρa2−kc2+3Λc2a2 and differentiate both sides with respect to t: 2a˙a¨=38πG(ρ˙a2+2ρaa˙)+32Λc2aa˙.
Divide every term by 2aa˙ (valid whenever a˙=0): aa¨=34πG(a˙ρ˙a+2ρ)+3Λc2.
Now eliminate ρ˙ using the fluid equation ρ˙+3aa˙(ρ+c2p)=0, rearranged as a˙ρ˙a=−3(ρ+c2p). Substituting: aa¨=34πG(−3ρ−c23p+2ρ)+3Λc2=34πG(−ρ−c23p)+3Λc2.
This is exactly aa¨=−34πG(ρ+c23p)+3Λc2, as claimed. Notice the fluid equation itself is nothing more than the first law of thermodynamics d(ρc2a3)=−pd(a3) applied to an expanding comoving volume: energy inside a comoving patch changes only because the pressure does work as the patch's volume grows.
AdvancedHow different contents dilute, and the critical density
Writing an equation of state p=wρc2 relating pressure to density lets the fluid equation be solved directly: pressureless matter (w=0, e.g. galaxies, dark matter) dilutes as ρm∝a−3 — pure volume dilution — while radiation (w=31, e.g. photons) dilutes faster, ρr∝a−4, because each photon is also redshifted, losing energy as space stretches. A cosmological constant (w=−1) does not dilute at all, ρΛ∝a0, so it inevitably dominates at late times no matter how small it starts. The density at which the universe is exactly spatially flat (k=0) is the critical densityρc(t)=8πG3H(t)2, and Ω≡ρcρ tells you at a glance whether space is closed (Ω>1), flat (Ω=1), or open (Ω<1).
ρc(t)=8πG3H(t)2
UndergraduateReal-World Applications and Worked Examples
The Friedmann equations are not abstract bookkeeping: astronomers use them daily to convert a handful of measured densities and H0 into the age of the universe, to predict how galaxy counts should scale with redshift, to model Big Bang nucleosynthesis in the radiation-dominated era, and to test whether dark energy is truly a constant Λ or a dynamical field by comparing predicted versus observed expansion histories from supernovae and the cosmic microwave background.
Example: The age of a flat, matter-only universe
Assume a spatially flat (k=0), matter-only universe (Λ=0, p=0) with ρm∝a−3. Show that a(t)∝t2/3, and use H0≈70km/s/Mpc (i.e. H0≈2.27×10−18s−1) to estimate the age this simplified model predicts.
Solution
With k=0 and Λ=0, the first Friedmann equation reduces to (aa˙)2=38πGρ. Since ρ∝a−3, write ρ=ρ0a−3 (with ρ0 the density today, a0=1), so a˙2=38πGρ0a−1, i.e. a˙=38πGρ0a−1/2.
This is separable: a1/2da=38πGρ0dt. Integrating from a=0 at t=0 (the Big Bang) to a(t) at time t gives 32a3/2=38πGρ0t, i.e. a(t)=(const)⋅t2/3, confirming a(t)∝t2/3.
To relate this to H0: from a∝t2/3, a˙∝32t−1/3, so H(t)=a˙/a=32t−1. Evaluating today (t=t0) gives H0=3t02, i.e. t0=3H02≈9.3×109yr.
Numerically, t0=3×2.27×10−18s−12≈2.94×1017s≈9.3 billion years. This flat matter-only estimate is noticeably younger than the real ΛCDM age of t0≈13.8×109yr — the missing piece is dark energy, which accelerated the expansion in the second half of cosmic history and so requires slightly more elapsed time to reach today's H0 than a purely decelerating matter universe would.
Example: Reading off the fate of the universe from Ω
Suppose a hypothetical matter-only, Λ=0 universe today has total density parameter Ω0=ρ0/ρc=1.5 (i.e. above critical). Using the first Friedmann equation, determine the sign of k and explain qualitatively what eventually happens to a(t).
Solution
Rewrite the first Friedmann equation (with Λ=0) at t0 (a0=1) by dividing through by H02: 1=ρcρ0−a02H02kc2=Ω0−H02kc2, so H02kc2=Ω0−1.
Since Ω0=1.5>1, the right side is positive, and since c2/H02>0, this forces k>0, i.e. k=+1: the universe is a positively-curved, spatially closed 3-sphere.
Qualitatively (from the theorem 2 acceleration equation with p=0, Λ=0): a¨=−34πGρa<0 always, so the expansion is perpetually decelerating, exactly as gravity pulling all the matter back together would suggest. For k=+1 with no dark energy to counteract it, H2=38πGρ−c2/a2 must eventually hit H=0 at some maximum amax (since ρ∝a−3→0 while c2/a2→0 more slowly, the curvature term wins at large a), after which the universe recollapses toward a 'Big Crunch' — the closed, matter-dominated analogue of a ball thrown up that must eventually fall back down.
In a spatially flat (k=0), Λ=0 universe with only pressureless matter, the first Friedmann equation gives H2∝a−3. What is a(t) proportional to?
Radiation density dilutes as ρr∝a−4 rather than matter's a−3. What is the extra factor of a−1 physically due to?
Measured densities today give Ω0=1.0 (spatially flat). What does the first Friedmann equation say about k?
Which content, if present today with sufficient density, would be the only one able to make a¨>0 (accelerating expansion)?