General Relativity

Einstein's Masterpiece: Gravity is the curvature of spacetime. Mass-energy tells spacetime how to curve, and spacetime tells mass-energy how to move.

Chapter 21: FLRW Cosmology

The Friedmann-Lemaître-Robertson-Walker metric describes a homogeneous, isotropic universe. It's the foundation of modern cosmology, describing the expanding universe from Big Bang to present acceleration.

FLRW Metric

\( ds^2 = -c^2dt^2 + a(t)^2\left[\frac{dr^2}{1-kr^2} + r^2 d\Omega^2\right] \)

a(t) = scale factor, k = curvature (-1, 0, +1)

k = +1

Closed (spherical) universe. Finite volume, re-collapses.

k = 0

Flat universe. Infinite, expands forever (our universe!).

k = -1

Open (hyperbolic) universe. Infinite, expands forever.

Friedmann Equations

\( H^2 = \left(\frac{\dot{a}}{a}\right)^2 = \frac{8\pi G}{3}\rho - \frac{kc^2}{a^2} + \frac{\Lambda c^2}{3} \)

First Friedmann equation (Hubble parameter H)

\( \frac{\ddot{a}}{a} = -\frac{4\pi G}{3}\left(\rho + \frac{3p}{c^2}\right) + \frac{\Lambda c^2}{3} \)

Second Friedmann equation (acceleration)

Density Parameters

The Friedmann equation can be rewritten in terms of dimensionless density parameters:

\( \Omega_m + \Omega_\Lambda + \Omega_k = 1 \)

where \( \Omega_i = \rho_i / \rho_{crit} \)

Critical Density

\( \rho_{crit} = \frac{3H^2}{8\pi G} \approx 10^{-26} \text{ kg/m}^3 \)

Our Universe (Planck 2018)

\( \Omega_m \approx 0.31, \Omega_\Lambda \approx 0.69, \Omega_k \approx 0 \)

Interactive Simulation: Universe Evolution

Run this Python code to visualize how the scale factor evolves in different cosmological models. The simulation compares ΛCDM with other theoretical universes.

FLRW Universe Evolution

Python

Solve Friedmann equations and compare cosmological models

flrw_cosmology.py107 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server

Key Physical Results

Age of the Universe

For ΛCDM: t0 ≈ 13.8 billion years. The exact value depends on H0 and the density parameters.

Hubble Time

1/H0 ≈ 14 Gyr sets the natural timescale. The actual age differs due to the varying expansion rate.

Future Evolution

With Λ > 0, expansion accelerates forever. The scale factor grows exponentially: a(t) ∝ eHt.

Matter-Λ Equality

Dark energy began dominating at z ≈ 0.4, about 5 billion years ago, when Ωm = ΩΛ.