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 describes the relative size of the universe at time , normalised so that today. When a photon was emitted at time , the scale factor was .
Redshift Definition
The cosmological redshift is defined by:
So:
Key Redshifts in Cosmology
| Event | Redshift | Scale factor |
|---|---|---|
| Today | 0 | 1.000 |
| Dark energy domination begins | ~0.3 | ~0.77 |
| Matter-radiation equality | ~3400 | ~0.00029 |
| Recombination (CMB) | ~1089 | ~0.00092 |
| Big Bang | ∞ | 0 |
CMB Temperature
The CMB photons were emitted at recombination () when the universe was opaque and hot. As space expanded by a factor of , the photon wavelengths stretched by the same factor, cooling the radiation:
where K is the CMB temperature today. At recombination, the temperature was K.
Your Task
Implement the following functions. The constant must be defined inside cmb_temperature_at_z.
redshift_from_scale(a)— returnsscale_from_redshift(z)— returnscmb_temperature_at_z(z)— returns in Kelvin, with K