How the Doppler Shift Works

Good report. I think it is important to point out that the doppler shift is not used to explain galaxy redshifts in cosmology. If I recall correctly, these are cosmological redshifts caused by light traveling through 3-D space expanding, not the speed of recession. The physics come from Einstein General Relativity and principle of equivalence as I recall.
I personally do not like the light / sound comparison. Because the sound waves has a medium to be transported but light has not! And sound become slower when the train moves away. But light is as fast as it is whether static or moving.

Original thread: https://forums.space.com/threads/how-the-doppler-shift-works.27459/