In this simulation, you can explore the concept of the Doppler shift for electromagnetic waves. At the top is a simplified version of the emission spectrum from the Sun. You might expect the Sun to emit light of all wavelengths, but we actually see an absorption spectrum, seeing dark bands at wavelengths corresponding to emission lines from a hydrogen gas tube. This is because hydrogen atoms in the Sun actually absorb photons at those wavelengths, exciting their electrons to higher states.
Other stars do similar things. The spectrum at the bottom shows the spectrum from a distant star. Using the slider, you can set the velocity of the star with respect to us, measured as a fraction of the speed of light. Positive means the star is moving away from us, and negative means it is moving toward us. For instance, +0.100 means the star is moving away from us at 1/10th of the speed of light.
Because the universe is expanding, most stars in the universe are moving away from us. This causes the wavelengths of light emitted by the star to increase - this is known as redshift. As you can see in the simulation, for stars moving away from us the hydrogen absorption lines are shifted toward the red end of the spectrum, hence the name redshift. If a star is traveling toward us, the lines are blueshifted, as you can see for negative velocities in the simulation.
Simulation written by Andrew Duffy, and first posted on 2-9-2018.
The counter has been running on this page since 8-13-2018. The number of people accessing the page since then is: