Lesson 3 of 15

Redshift and the Scale Factor

Redshift and the Scale Factor

As the universe expands, photons travelling through space are stretched to longer wavelengths — a phenomenon called cosmological redshift. This is distinct from Doppler redshift; it is the fabric of space itself that is expanding.

The Scale Factor

The scale factor a(t)a(t) describes the relative size of the universe at time tt, normalised so that a0=1a_0 = 1 today. When a photon was emitted at time tet_e, the scale factor was ae<1a_e < 1.

Redshift Definition

The cosmological redshift zz is defined by:

1+z=λobsλemit=a0ae=1ae1 + z = \frac{\lambda_{\text{obs}}}{\lambda_{\text{emit}}} = \frac{a_0}{a_e} = \frac{1}{a_e}

So: z=1a1anda=11+zz = \frac{1}{a} - 1 \qquad \text{and} \qquad a = \frac{1}{1+z}

Key Redshifts in Cosmology

EventRedshift zzScale factor aa
Today01.000
Dark energy domination begins~0.3~0.77
Matter-radiation equality~3400~0.00029
Recombination (CMB)~1089~0.00092
Big Bang0

CMB Temperature

The CMB photons were emitted at recombination (z1089z \approx 1089) when the universe was opaque and hot. As space expanded by a factor of 1+z1+z, the photon wavelengths stretched by the same factor, cooling the radiation:

T(z)=T0(1+z)T(z) = T_0 \cdot (1+z)

where T0=2.725T_0 = 2.725 K is the CMB temperature today. At recombination, the temperature was T2970T \approx 2970 K.

Your Task

Implement the following functions. The constant T0T_0 must be defined inside cmb_temperature_at_z.

  • redshift_from_scale(a) — returns z=1/a1z = 1/a - 1
  • scale_from_redshift(z) — returns a=1/(1+z)a = 1/(1+z)
  • cmb_temperature_at_z(z) — returns T(z)=T0(1+z)T(z) = T_0(1+z) in Kelvin, with T0=2.725T_0 = 2.725 K
Python runtime loading...
Loading...
Click "Run" to execute your code.