Putting two kinds of data together
By the 1920s astronomers had two kinds of data for galaxies:
- Speeds from redshifts, measured by Vesto Slipher and others.
- Distances using Cepheid variable stars. In 1912, Henrietta Swan Leavitt discovered that a Cepheid's pulsing period tells its true brightness. Comparing true brightness with how bright it looks gives its distance. In the 1920s Edwin Hubble used Cepheids to show that the Andromeda "nebula" is a separate galaxy far outside the Milky Way.
In 1927, Georges Lemaître, a Belgian physicist and priest, used the equations of general relativity and the available data to propose that the universe is expanding, so galaxies farther away should recede faster. In 1929, Hubble published a graph showing exactly that pattern. In 2018, the International Astronomical Union recommended calling it the Hubble-Lemaître law, to credit both.
Not a centre, but stretching space
If almost every galaxy is moving away from us, are we at the centre? No. The best explanation is that space itself is expanding, carrying galaxies apart. A common teaching tool is the raisin-bread model: as dough rises, every raisin moves away from every other raisin, and raisins that start farther apart separate faster. A raisin cannot tell whether it is in the middle of the loaf. Every galaxy would see the same Hubble-Lemaître pattern.
As light travels through expanding space, its wavelength stretches too. This cosmological redshift is closely related to the Doppler shift, and for nearby galaxies the Doppler formula gives a good approximation of their speed.
Limits of the model: unlike a loaf, the universe has no known outer crust or edge. And objects held together by gravity or other forces, such as the Milky Way, the solar system, Earth and you, do not expand.