Astronomy and Space Exploration ES

Higher Education / Cosmology

The Friedmann equations

From the FLRW metric to the dynamics of the scale factor a(t), with analytic solutions, the age of the universe, deceleration and cosmological distances.

⏱ 180 min Riemannian geometrynonlinear ODEsimproper integralsnumerical quadraturehyperbolic functions revision

By the end you will be able to:
  • Write the FLRW metric and relate the scale factor to the redshift.
  • Derive the Friedmann equations (Newtonian and relativistic versions) and the fluid equation.
  • Solve analytically the radiation, matter, Λ and Milne universes, and numerically the general case.
  • Compute the age, the deceleration parameter and the comoving, luminosity and angular-diameter distances.

Motivation: a single function for the whole cosmic history

Illustration: Motivation: a single function for the whole cosmic history

All of background cosmology fits into one function of one variable, the scale factor a(t)a(t). From it follow the age of the universe (13.787 ± 0.020 Gyr according to Planck 2018), its fate (eternal expansion or recollapse), the redshift of every galaxy and the distances with which supernovae and the cosmic background are measured. This lesson derives the equation that governs a(t)a(t) from general relativity, solves it in the cases that admit a closed-form solution and integrates it numerically in the general case, with the Planck 2018 parameters as the working example.

1. The FLRW metric

Illustration: The FLRW metric

The cosmological principle postulates that, on scales larger than about 100 Mpc, the universe is homogeneous and isotropic. The only compatible spatial geometries are those of constant curvature, and the most general metric (Friedmann–Lemaître–Robertson–Walker) is

ds2=−c2 dt2+a(t)2[ dr2+Sk(r)2 dΩ2],Sk(r)={R0sin⁡(r/R0)k=+1rk=0R0sinh⁡(r/R0)k=−1ds^2 = -c^2\,dt^2 + a(t)^2\left[\,dr^2 + S_k(r)^2\,d\Omega^2\right], \qquad S_k(r) = \begin{cases} R_0 \sin(r/R_0) & k = +1 \\ r & k = 0 \\ R_0 \sinh(r/R_0) & k = -1 \end{cases}

where tt is the cosmic time (the one measured by an observer at rest with respect to the cosmic fluid), rr the radial comoving distance, dΩ2=dθ2+sin⁡2θ dϕ2d\Omega^2 = d\theta^2 + \sin^2\theta\,d\phi^2, kk the sign of the spatial curvature, R0R_0 the present radius of curvature and a(t)a(t) the scale factor, normalized to a(t0)=1a(t_0) = 1 today (t0t_0).

The proper distance between two comoving galaxies is dp(t)=a(t) rd_p(t) = a(t)\,r, so that d˙p=(a˙/a) dp\dot d_p = (\dot a/a)\,d_p: this is the Hubble law v=Hdpv = H d_p with H(t)≡a˙/aH(t) \equiv \dot a/a and H0=H(t0)H_0 = H(t_0). A photon (ds=0ds = 0) emitted at tet_e and received at t0t_0 satisfies ∫tet0c dt/a=r\int_{t_e}^{t_0} c\,dt/a = r; comparing two successive crests one obtains

1+z=λ0λe=1a(te).1 + z = \frac{\lambda_0}{\lambda_e} = \frac{1}{a(t_e)} .

2. Newtonian motivation

Illustration: Newtonian motivation

Consider a sphere of radius R(t)=a(t) rsR(t) = a(t)\,r_s expanding with the fluid, of uniform density ρ(t)\rho(t) and constant mass M=43πR3ρM = \tfrac43\pi R^3\rho. By Newton’s shell theorem, a test particle on its surface feels only the interior mass. Its mechanical energy per unit mass is conserved:

12R˙2−GMR=U⟹(a˙a)2=8πG3ρ+2Urs2 a2.\frac12\dot R^2 - \frac{GM}{R} = U \quad\Longrightarrow\quad \left(\frac{\dot a}{a}\right)^2 = \frac{8\pi G}{3}\rho + \frac{2U}{r_s^2\,a^2}.

This is exactly the form of the first Friedmann equation, with the energy UU playing the role of the curvature: U<0U < 0 (bound) corresponds to a closed universe that recollapses, U>0U > 0 to an open one. The argument has serious limitations: it presupposes a center, ignores pressure as a source of gravity and does not explain what the “curvature” is. General relativity fixes all three.

3. The Friedmann equations in general relativity

Illustration: The Friedmann equations in general relativity

With the FLRW metric and a perfect fluid of energy density ε=ρc2\varepsilon = \rho c^2 and pressure PP, Tμν=diag(−ε,P,P,P)T^{\mu}{}_{\nu} = \mathrm{diag}(-\varepsilon, P, P, P), the Einstein equations Gμν+Λgμν=(8πG/c4)TμνG_{\mu\nu} + \Lambda g_{\mu\nu} = (8\pi G/c^4) T_{\mu\nu} reduce to two independent equations. The 0000 component gives the first Friedmann equation:

H2=(a˙a)2=8πG3c2 ε−kc2R02a2+Λc23.H^2 = \left(\frac{\dot a}{a}\right)^2 = \frac{8\pi G}{3c^2}\,\varepsilon - \frac{k c^2}{R_0^2 a^2} + \frac{\Lambda c^2}{3}.

The trace of the spatial components, combined with the previous one, gives the acceleration equation:

a¨a=−4πG3c2 (ε+3P)+Λc23.\frac{\ddot a}{a} = -\frac{4\pi G}{3c^2}\,(\varepsilon + 3P) + \frac{\Lambda c^2}{3}.

Pressure gravitates: a fluid with P>−ε/3P > -\varepsilon/3 slows the expansion down; one with P<−ε/3P < -\varepsilon/3 accelerates it.

Fluid equation

The conservation law ∇μTμν=0\nabla_\mu T^{\mu\nu} = 0 (or, equivalently, the first law of thermodynamics dE+P dV=0dE + P\,dV = 0 applied to a comoving volume V∝a3V \propto a^3) gives

ε˙+3a˙a (ε+P)=0.\dot\varepsilon + 3\frac{\dot a}{a}\,(\varepsilon + P) = 0 .

Differentiating the first equation with respect to tt and substituting the fluid equation recovers the acceleration equation: of the three equations only two are independent.

Equations of state

For P=w εP = w\,\varepsilon with constant ww, the fluid equation integrates immediately:

dεε=−3(1+w)daa⟹εw(a)=εw,0 a−3(1+w).\frac{d\varepsilon}{\varepsilon} = -3(1+w)\frac{da}{a} \quad\Longrightarrow\quad \varepsilon_w(a) = \varepsilon_{w,0}\,a^{-3(1+w)} .
Componentwwε∝\varepsilon \propto
Non-relativistic matter (baryons + dark matter)00a−3a^{-3}
Radiation (photons, relativistic neutrinos)1/31/3a−4a^{-4}
Cosmological constant / vacuum energy−1-1constant
Curvature (formal)−1/3-1/3a−2a^{-2}

4. Density parameters

Illustration: Density parameters

The critical density is the one that makes k=0k = 0 with Λ=0\Lambda = 0: εc=3c2H2/(8πG)\varepsilon_c = 3c^2H^2/(8\pi G). We define, today,

Ωr=εr,0εc,0,Ωm=εm,0εc,0,ΩΛ=Λc23H02,Ωk=−kc2R02H02=1−Ωr−Ωm−ΩΛ.\Omega_r = \frac{\varepsilon_{r,0}}{\varepsilon_{c,0}},\quad \Omega_m = \frac{\varepsilon_{m,0}}{\varepsilon_{c,0}},\quad \Omega_\Lambda = \frac{\Lambda c^2}{3H_0^2},\quad \Omega_k = -\frac{k c^2}{R_0^2 H_0^2} = 1 - \Omega_r - \Omega_m - \Omega_\Lambda .

With them the first Friedmann equation takes the form the simulator integrates:

H(a)2=H02 E(a)2,E(a)2=Ωra−4+Ωma−3+Ωka−2+ΩΛ,H(a)^2 = H_0^2\,E(a)^2, \qquad E(a)^2 = \Omega_r a^{-4} + \Omega_m a^{-3} + \Omega_k a^{-2} + \Omega_\Lambda ,

and the acceleration equation becomes

a¨a=−H022∑i(1+3wi) Ωi a−3(1+wi)=−H02(Ωra−4+12Ωma−3−ΩΛ).\frac{\ddot a}{a} = -\frac{H_0^2}{2}\sum_i (1 + 3w_i)\,\Omega_i\,a^{-3(1+w_i)} = -H_0^2\left(\Omega_r a^{-4} + \tfrac12\Omega_m a^{-3} - \Omega_\Lambda\right).

The Planck 2018 values (TT,TE,EE+lowE+lensing) are H0=67.66H_0 = 67.66 km s⁻¹ Mpc⁻¹, Ωm=0.3111\Omega_m = 0.3111, ΩΛ=0.6889\Omega_\Lambda = 0.6889 (Planck Collaboration 2020, table 2); Ωr≈9×10−5\Omega_r \approx 9 \times 10^{-5} includes photons and neutrinos.

5. Analytic solutions

Writing τ=H0t\tau = H_0 t, the first equation is (da/dτ)2=a2E(a)2(da/d\tau)^2 = a^2E(a)^2. With a single dominant component it integrates by separation of variables:

  • Radiation (Ωr=1\Omega_r = 1): a da=dτ⇒a(t)=(2H0t)1/2a\,da = d\tau \Rightarrow a(t) = (2H_0 t)^{1/2}, age t0=1/(2H0)t_0 = 1/(2H_0).
  • Matter, Einstein–de Sitter (Ωm=1\Omega_m = 1): a1/2da=dτ⇒a(t)=(32H0t)2/3a^{1/2}da = d\tau \Rightarrow a(t) = (\tfrac32 H_0 t)^{2/3}, t0=23H0t_0 = \tfrac{2}{3H_0}.
  • Λ, de Sitter (ΩΛ=1\Omega_\Lambda = 1): da/a=dτ⇒a(t)=eH0(t−t0)da/a = d\tau \Rightarrow a(t) = e^{H_0(t-t_0)}; there is no Big Bang.
  • Empty, Milne (Ωk=1\Omega_k = 1): da=dτ⇒a(t)=H0tda = d\tau \Rightarrow a(t) = H_0 t, t0=1/H0t_0 = 1/H_0. It is Minkowski space in hyperbolic coordinates.
  • Matter + positive curvature (Ωm>1\Omega_m > 1, ΩΛ=0\Omega_\Lambda = 0): parametric solution (cycloid) a(η)=Ωm2(Ωm−1)(1−cos⁡η),t(η)=Ωm2H0(Ωm−1)3/2(η−sin⁡η),a(\eta) = \frac{\Omega_m}{2(\Omega_m-1)}(1-\cos\eta), \qquad t(\eta) = \frac{\Omega_m}{2H_0(\Omega_m-1)^{3/2}}(\eta - \sin\eta), with maximum amax⁡=Ωm/(Ωm−1)a_{\max} = \Omega_m/(\Omega_m-1) at η=π\eta = \pi and Big Crunch at η=2π\eta = 2\pi.
  • Matter + Λ, flat: a(t)=(Ωm/ΩΛ)1/3sinh⁡2/3 ⁣(32ΩΛ H0t)a(t) = (\Omega_m/\Omega_\Lambda)^{1/3}\sinh^{2/3}\!\left(\tfrac32\sqrt{\Omega_\Lambda}\,H_0 t\right).

6. Age, fate and deceleration

Illustration: Age, fate and deceleration

Since dt=da/(aH)dt = da/(aH), the age is

t0=∫01daa H(a)=1H0∫01daΩra−2+Ωma−1+Ωk+ΩΛa2.t_0 = \int_0^1 \frac{da}{a\,H(a)} = \frac{1}{H_0}\int_0^1 \frac{da}{\sqrt{\Omega_r a^{-2} + \Omega_m a^{-1} + \Omega_k + \Omega_\Lambda a^2}} .

The integrand may have integrable singularities (∝a1/2\propto a^{1/2} near a=0a = 0, ∝(a∗−a)−1/2\propto(a_\ast - a)^{-1/2} near a turning point a∗a_\ast). The library removes them with the substitution a=Asin⁡2θa = A\sin^2\theta before applying Simpson’s rule. For Planck 2018 the result is t0=13.79t_0 = 13.79 Gyr, in agreement with the published value 13.787±0.02013.787 \pm 0.020 Gyr.

The universe recollapses if P(a)≡a2E2P(a) \equiv a^2E^2 vanishes for some a>1a > 1 (there a˙=0\dot a = 0 and a¨<0\ddot a < 0), and it had no Big Bang (bounce) if it vanishes for some 0<a<10 < a < 1. The boundaries in the (Ωm,ΩΛ)(\Omega_m, \Omega_\Lambda) plane have closed form (Carroll, Press & Turner 1992):

ΩΛrec=4Ωmcos⁡3 ⁣[13arccos⁡1−ΩmΩm+4π3] (Ωm>1),ΩΛreb=4Ωm cosh3 ⁣[13 arcosh 1−ΩmΩm] (Ωm≤12),\Omega_\Lambda^{\rm rec} = 4\Omega_m\cos^3\!\left[\tfrac13\arccos\frac{1-\Omega_m}{\Omega_m} + \tfrac{4\pi}{3}\right]\ (\Omega_m > 1), \qquad \Omega_\Lambda^{\rm reb} = 4\Omega_m\,\mathrm{cosh}^3\!\left[\tfrac13\,\mathrm{arcosh}\,\frac{1-\Omega_m}{\Omega_m}\right]\ (\Omega_m \le \tfrac12),

(with cos⁡\cos and arccos⁡\arccos in the second one for Ωm>12\Omega_m > \tfrac12). The deceleration parameter

q0≡−a¨ aa˙2∣t0=Ωr+12Ωm−ΩΛq_0 \equiv -\left.\frac{\ddot a\,a}{\dot a^2}\right|_{t_0} = \Omega_r + \tfrac12\Omega_m - \Omega_\Lambda

is q0≈−0.53q_0 \approx -0.53 for Planck 2018: the expansion is accelerating today (the line ΩΛ=Ωm/2\Omega_\Lambda = \Omega_m/2 in the plane).

Numerical integration

To draw a(t)a(t) in any model, src/lib/math/friedmann.ts integrates with RK4 the second-order form d2a/dτ2=−Ωra−3−12Ωma−2+ΩΛad^2a/d\tau^2 = -\Omega_r a^{-3} - \tfrac12\Omega_m a^{-2} + \Omega_\Lambda a from a=1a = 1, da/dτ=1da/d\tau = 1. The first-order form a˙=±P(a)\dot a = \pm\sqrt{P(a)} is useless at a turning point (the sign changes and P\sqrt{P} is not Lipschitz), whereas the second-order form is regular there. The step is adapted as h=η/sh = \eta/s, with s=max⁡(∣a˙∣/a,∣a¨/a∣)s = \max(|\dot a|/a, \sqrt{|\ddot a/a|}), and the constraint a˙2=P(a)\dot a^2 = P(a) serves as a check: its relative error is <10−6< 10^{-6} in all the predefined models.

age t₀ = 13.79 Gyr · 1/H₀ = 14.45 Gyr · q₀ = -0.533 (accelerating) · Ω_k = -0.000 (flat) · fate: eternal expansion

7. Distances

Illustration: Distances

With DH=c/H0D_H = c/H_0, the comoving distance to an object at redshift zz is DC=DH∫0zdz′/E(z′)D_C = D_H\int_0^z dz'/E(z'), and the transverse comoving distance

DM={DHΩksinh⁡ ⁣(Ωk DC/DH)Ωk>0DCΩk=0DH∣Ωk∣sin⁡ ⁣(∣Ωk∣ DC/DH)Ωk<0D_M = \begin{cases} \dfrac{D_H}{\sqrt{\Omega_k}}\sinh\!\left(\sqrt{\Omega_k}\,D_C/D_H\right) & \Omega_k > 0\\[4pt] D_C & \Omega_k = 0\\[4pt] \dfrac{D_H}{\sqrt{|\Omega_k|}}\sin\!\left(\sqrt{|\Omega_k|}\,D_C/D_H\right) & \Omega_k < 0 \end{cases}

determines the angular-diameter distance DA=DM/(1+z)D_A = D_M/(1+z) (size ℓ=DA θ\ell = D_A\,\theta) and the luminosity distance DL=(1+z)DMD_L = (1+z)D_M (flux F=L/4πDL2F = L/4\pi D_L^2). Etherington’s reciprocity relation DL=(1+z)2DAD_L = (1+z)^2 D_A holds. The lookback time is tL(z)=H0−1∫0zdz′/[(1+z′)E(z′)]t_L(z) = H_0^{-1}\int_0^z dz'/[(1+z')E(z')].

Error analysis

Illustration: Error analysis
  • Quadrature of the age. The substitution a=Asin⁡2θa = A\sin^2\theta turns the integrable singularities (a−1/2a^{-1/2} at the origin, (a∗−a)−1/2(a_\ast - a)^{-1/2} at a turning point) into bounded integrands, and Simpson’s rule recovers its order h4h^4: with n=4000n = 4000 the error of t0t_0 against the closed formula of flat ΛCDM is below 10−910^{-9} relative (friedmann.test.ts). Without the change of variable, the integrand ∝a−1/2\propto a^{-1/2} degrades Simpson’s rule to order h3/2h^{3/2}.
  • Integration of a(t)a(t). RK4 with step h=η/sh = \eta/s is of order 4 in η\eta (problem 6); the constraint a˙2=P(a)\dot a^2 = P(a) acts as a control invariant, with relative error <10−6< 10^{-6} in all the predefined models.
  • Parameters. t0∝1/H0t_0 \propto 1/H_0 to first order: the 0.6 % uncertainty in H0H_0 (Planck 2018, 67.66±0.4267.66 \pm 0.42) translates into ±0.09\pm 0.09 Gyr, while ∂t0/∂Ωm≈−0.6 tH\partial t_0/\partial\Omega_m \approx -0.6\,t_H in flat models gives ±0.05\pm 0.05 Gyr for δΩm=0.0056\delta\Omega_m = 0.0056; combined (anticorrelated in Planck) they reproduce the published ±0.020\pm 0.020 Gyr only if the correlation is included.

Problems

1. (Proof) From the fluid equation to the acceleration equation. Differentiate the first Friedmann equation (with Λ=0\Lambda = 0) with respect to time and, using the fluid equation, prove the acceleration equation.

Proof

2HH˙=8πG3c2ε˙+2kc2R02a2H2H\dot H = \tfrac{8\pi G}{3c^2}\dot\varepsilon + \tfrac{2kc^2}{R_0^2a^2}H. With ε˙=−3H(ε+P)\dot\varepsilon = -3H(\varepsilon + P) and H˙=a¨/a−H2\dot H = \ddot a/a - H^2, dividing by 2H2H: a¨/a−H2=−4πGc2(ε+P)+kc2R02a2\ddot a/a - H^2 = -\tfrac{4\pi G}{c^2}(\varepsilon + P) + \tfrac{kc^2}{R_0^2a^2}. Substituting H2H^2 from the first equation, the curvature term cancels and what remains is a¨/a=−4πG3c2(ε+3P)\ddot a/a = -\tfrac{4\pi G}{3c^2}(\varepsilon + 3P). With Λ\Lambda, the term Λc2/3\Lambda c^2/3 is constant and carries through unchanged. ■\blacksquare

2. (Proof) Age of flat ΛCDM. Prove that for Ωm+ΩΛ=1\Omega_m + \Omega_\Lambda = 1 (Ωr=0\Omega_r = 0) t0=23H0ΩΛ arsinhΩΛ/Ωmt_0 = \dfrac{2}{3H_0\sqrt{\Omega_\Lambda}}\,\mathrm{arsinh}\sqrt{\Omega_\Lambda/\Omega_m} and evaluate it for H0=70H_0 = 70, Ωm=0.3\Omega_m = 0.3 and for Planck 2018.

Proof

With u=a3/2u = a^{3/2}, du=32a1/2dadu = \tfrac32a^{1/2}da: ∫01a1/2daΩm+ΩΛa3=23∫01duΩm+ΩΛu2=23ΩΛarsinhΩΛ/Ωm\int_0^1\frac{a^{1/2}da}{\sqrt{\Omega_m + \Omega_\Lambda a^3}} = \tfrac23\int_0^1\frac{du}{\sqrt{\Omega_m + \Omega_\Lambda u^2}} = \tfrac{2}{3\sqrt{\Omega_\Lambda}}\mathrm{arsinh}\sqrt{\Omega_\Lambda/\Omega_m}. For H0=70H_0 = 70 (tH=13.97t_H = 13.97 Gyr), Ωm=0.3\Omega_m = 0.3: t0=13.97×23×0.8367×arsinh(1.5275)=13.97×0.7968×1.2099=13.47t_0 = 13.97\times\tfrac{2}{3\times0.8367}\times\mathrm{arsinh}(1.5275) = 13.97\times0.7968\times1.2099 = 13.47 Gyr. For Planck (tH=14.45t_H = 14.45 Gyr, Ωm=0.3111\Omega_m = 0.3111): 13.8013.80 Gyr; radiation lowers it to 13.786. ■\blacksquare

3. Cycloid. Verify that the parametric solution of section 5 satisfies (da/dt)2=H02(Ωm/a+1−Ωm)(da/dt)^2 = H_0^2(\Omega_m/a + 1 - \Omega_m) and deduce the total lifetime ttot=πΩm/[H0(Ωm−1)3/2]t_{\rm tot} = \pi\Omega_m/[H_0(\Omega_m - 1)^{3/2}]. Evaluate it for Ωm=3\Omega_m = 3 and H0=67.66H_0 = 67.66 and compare it with vidaTotal in the simulator.

Show solution

With A=Ωm/[2(Ωm−1)]A = \Omega_m/[2(\Omega_m-1)] and B=Ωm/[2H0(Ωm−1)3/2]B = \Omega_m/[2H_0(\Omega_m-1)^{3/2}]: da/dt=(da/dη)/(dt/dη)=Asin⁡η/[B(1−cos⁡η)]da/dt = (da/d\eta)/(dt/d\eta) = A\sin\eta/[B(1-\cos\eta)], hence (da/dt)2=A2B2sin⁡2η(1−cos⁡η)2=A2B21+cos⁡η1−cos⁡η(da/dt)^2 = \frac{A^2}{B^2}\frac{\sin^2\eta}{(1-\cos\eta)^2} = \frac{A^2}{B^2}\frac{1+\cos\eta}{1-\cos\eta}. On the other hand Ωm/a+1−Ωm=2(Ωm−1)1−cos⁡η−(Ωm−1)=(Ωm−1)1+cos⁡η1−cos⁡η\Omega_m/a + 1 - \Omega_m = \frac{2(\Omega_m-1)}{1-\cos\eta} - (\Omega_m-1) = (\Omega_m - 1)\frac{1+\cos\eta}{1-\cos\eta}, and A2/B2=H02(Ωm−1)A^2/B^2 = H_0^2(\Omega_m - 1): they agree. The Big Crunch is at η=2π\eta = 2\pi: ttot=2πB=πΩm/[H0(Ωm−1)3/2]t_{\rm tot} = 2\pi B = \pi\Omega_m/[H_0(\Omega_m-1)^{3/2}]. For Ωm=3\Omega_m = 3: ttot=3π/23/2 tH=3.332×14.45=48.2t_{\rm tot} = 3\pi/2^{3/2}\,t_H = 3.332\times14.45 = 48.2 Gyr.

4. (Proof) Milne. Prove that in the Milne universe DL=DH z(1+z/2)D_L = D_H\,z(1 + z/2).

Proof

E=1+zE = 1+z, so DC=DHln⁡(1+z)D_C = D_H\ln(1+z); with Ωk=1\Omega_k = 1, DM=DHsinh⁡ln⁡(1+z)=DH(1+z)2−12(1+z)D_M = D_H\sinh\ln(1+z) = D_H\frac{(1+z)^2-1}{2(1+z)} and DL=(1+z)DM=DH z(1+z/2)D_L = (1+z)D_M = D_H\,z(1+z/2). It is the same formula that special relativity gives for an explosion of free particles in Minkowski space. ■\blacksquare

5. (Proof) Bounce. For Ωm=Ωr=0\Omega_m = \Omega_r = 0, prove that there is a bounce if and only if ΩΛ>1\Omega_\Lambda > 1, with amin⁡=(ΩΛ−1)/ΩΛa_{\min} = \sqrt{(\Omega_\Lambda - 1)/\Omega_\Lambda}. Explain why the observation of quasars at z>2z > 2 excludes ΩΛ>9/8\Omega_\Lambda > 9/8 in that family.

Proof

P(a)=Ωk+ΩΛa2=(1−ΩΛ)+ΩΛa2P(a) = \Omega_k + \Omega_\Lambda a^2 = (1 - \Omega_\Lambda) + \Omega_\Lambda a^2. It vanishes at a2=(ΩΛ−1)/ΩΛa^2 = (\Omega_\Lambda - 1)/\Omega_\Lambda, which is positive and less than 1 if and only if ΩΛ>1\Omega_\Lambda > 1; for aa smaller than amin⁡a_{\min}, PP is negative (forbidden region): the universe contracted down to amin⁡a_{\min} and bounced. An object at z=2z = 2 is observed at a=1/3a = 1/3, so we need amin⁡<1/3a_{\min} < 1/3, that is (ΩΛ−1)/ΩΛ<1/9(\Omega_\Lambda - 1)/\Omega_\Lambda < 1/9 ⇒ ΩΛ<9/8\Omega_\Lambda < 9/8. Quasars at z>7z > 7 push the bound to ΩΛ<64/63\Omega_\Lambda < 64/63. ■\blacksquare

6. (Computational) Order of convergence. The step of evolucionar is h=η/sh = \eta/s. Measure the error of the Big Bang instant obtained by RK4 against the integral edadUniverso for η=0.016,0.008,0.004\eta = 0.016, 0.008, 0.004 in the Planck model and check the order-4 convergence. Why does the adapted step not destroy that order near the Big Bang?

Outline and explanation
import { PLANCK18 } from '@/lib/math/cosmology';
import { edadUniverso, evolucionar } from '@/lib/math/friedmann';
const t0 = edadUniverso(PLANCK18);
for (const eta of [0.016, 0.008, 0.004]) {
  const ev = evolucionar(PLANCK18, { eta });
  console.log(eta, Math.abs(-ev.bigBang! - t0) / t0);
}

The relative errors should drop by ≈16\approx 16 when η\eta is halved. Near a→0a \to 0 the solution is a∝t1/2a \propto t^{1/2} and the characteristic time 1/s≈1/H∝t1/s \approx 1/H \propto t; the step h∝th \propto t keeps the local relative error per step constant (∝(h/t)5\propto (h/t)^5), and the number of steps grows only logarithmically, so the global error still scales as η4\eta^4. The analytic tail a∝∣t−ts∣pa \propto |t - t_s|^p removes the last stretch, where any integrator would fail.

7. Fate and acceleration. With fronteraRecolapso and fronteraRebote, draw in the (Ωm,ΩΛ)(\Omega_m, \Omega_\Lambda) plane the regions of recollapse, bounce and eternal expansion, the line q0=0q_0 = 0 and the flat line Ωm+ΩΛ=1\Omega_m + \Omega_\Lambda = 1. Place Planck 2018 and the approximate contours of Perlmutter et al. (1999), 0.8Ωm−0.6ΩΛ≈−0.2±0.10.8\Omega_m - 0.6\Omega_\Lambda \approx -0.2 \pm 0.1. Which combination of data fixes the position along the Perlmutter line?

Show solution

The supernova line is almost perpendicular to the flat line of the CMB (θ∗\theta_\ast fixes Ωm+ΩΛ≈1\Omega_m + \Omega_\Lambda \approx 1); their intersection is (0.3,0.7)(0.3, 0.7). Planck alone (without BAO or supernovae) already breaks the degeneracy through lensing and the heights of the peaks. All the recollapse and bounce regions lie more than 10 σ away.

✦ Self-assessment

  1. 1. In the FLRW metric, the redshift of a photon emitted when the scale factor was a satisfies
  2. 2. According to the acceleration equation, a fluid accelerates the expansion if
  3. 3. In the Einstein–de Sitter universe (matter only, flat), the age is
  4. 4. The Planck 2018 deceleration parameter is q₀ ≈ −0.53. This means that
  5. 5. Why does the library integrate the second-order form d²a/dτ² instead of ȧ = √P(a)?
  6. 6. A universe with Ω_m = 0 and Ω_Λ = 1.2
Answer all the questions to check.

Further reading

  • Ryden, B. (2017). Introduction to Cosmology, 2nd ed., chs. 3–6: metric, dynamics, single- and multi-component models, measures.
  • Weinberg, S. (2008). Cosmology, ch. 1: complete relativistic derivation of the Friedmann equations and of the distances.
  • Carroll, Press & Turner (1992), ARA&A 30, 499: the (Ωm,ΩΛ)(\Omega_m, \Omega_\Lambda) plane and the analytic boundaries the library uses.
  • Hogg (1999), arXiv:astro-ph/9905116: distances; Planck Collaboration (2020), A&A 641, A6: parameters.
  • Hairer, E., Lubich, C. & Wanner, G. (2006). Geometric Numerical Integration, ch. II: order and step control in RK4.
🍎 Teacher guide
Time
2 classes of 90 min
Learning outcome
By the end, the student derives the Friedmann and fluid equations, solves the single-component models, computes the age and the fate of an arbitrary model with control of the numerical error and places the Planck 2018 data in the (Ω_m, Ω_Λ) plane.
Evidence of learning
Submission of problem 6 (order of convergence of RK4 with adapted step) and of problem 7 (plane of models with the Planck and supernova contours).

Materials

  • Simulator universo-friedmann
  • Python 3 with NumPy or the library src/lib/math/friedmann.ts
  • Table 2 of Planck 2018 VI
  • Figure 7 of Perlmutter et al. 1999 (Ω_m–Ω_Λ plane)

Suggested sequence

Class 1. Metric and redshift (§1), Newtonian motivation and its limits (§2), Friedmann equations, fluid equation and equations of state (§§3–4). Analytic solutions (§5) as a group exercise: one model per group.

Class 2. Age, fate and the (Ωm,ΩΛ)(\Omega_m, \Omega_\Lambda) plane (§6) with the simulator; distances (§7) as a bridge to the next lesson. Lab: problems 6 and 7.

Common mistakes

  • Thinking that the Big Bang was an explosion at a point in space: the FLRW metric describes the expansion of space itself, with no center.
  • Mistaking the Newtonian argument for a derivation: it explains neither the curvature nor the fact that pressure gravitates.
  • Believing that the cosmological constant “pushes outward”: it accelerates because its negative pressure makes the source ε + 3P negative.
  • Integrating ȧ = √P(a) and being surprised that it fails at the turning points.
Key terms in this lesson (12)

Glossary terms that appear in the text. Each one links to its full entry.

  • Friedmann equations The equations that say how the size of the universe changes with time according to what it contains: matter, radiation and dark energy. They are general relativity applied to the whole universe.
  • Scale factor In a scale model, the number real sizes are divided by (1 : 1 billion for the Solar System on a sports field). In cosmology, the number that says how much the universe has stretched: it equals 1 today and was 0.5 when all distances were half as large.
  • Big Bang The beginning of the expansion of the universe, 13.8 billion years ago, when everything was unimaginably hot and dense. It was not an explosion "in" space: it was space itself starting to stretch.
  • Luminosity The total energy a star emits every second, like the "power" of a light bulb. It does not depend on the distance you look at it from.
  • General relativity Einstein's theory (1915), according to which gravity is not a force but the curvature of space and time caused by mass. The planets follow the "straightest" possible path in a space curved by the Sun.
  • Redshift The light from distant galaxies arrives "stretched" toward the red because the universe expands while it travels. The farther the galaxy, the larger the redshift.
  • Hubble–Lemaître law The farther away a galaxy is, the faster it moves away from us. It is not that we are at the center: all of space is stretching, like dots painted on a balloon being inflated.
  • Luminosity distance The distance deduced from how faint an object looks when we know its true brightness (a "standard candle", such as a Type Ia supernova). In an expanding universe it gives values larger than the actual distance.
  • Runge–Kutta method An improvement on Euler's method that "samples" the slope at several intermediate points of each step and averages them. The fourth-order version (RK4) is thousands of times more accurate for the same step size.
  • Supernova The explosion of a star, so bright that for weeks it can outshine its entire galaxy. It scatters into space the elements the star made.
  • Galaxy A city of stars: hundreds of billions of them, with gas, dust and dark matter, bound together by gravity. Ours is the Milky Way; the largest neighbor, Andromeda.
  • Cosmic microwave background The oldest light in the universe: it set out when the universe was 380 000 years old and today arrives from every direction, cooled to 2.7 degrees above absolute zero. It is the "baby picture" of the cosmos.

See the whole glossary →

References

  • Ryden, B. (2017). Introduction to Cosmology, 2nd ed., Cambridge University Press, chs. 3–6.
  • Planck Collaboration (2020). Planck 2018 results. VI. Cosmological parameters. A&A 641, A6.
  • Carroll, S. M., Press, W. H. & Turner, E. L. (1992). The cosmological constant. ARA&A 30, 499.
  • Hogg, D. W. (1999). Distance measures in cosmology. arXiv:astro-ph/9905116.
  • Weinberg, S. (2008). Cosmology, Oxford University Press, ch. 1.

Simulators for this lesson: Expansion of the universe