Measuring the radial velocity of binary stars

A binary star system is one in which two stars orbit each other. This results in each star alternate moving towards or away from the Earth. This movement cause the lines in the spectrum to shift back and forth. Careful measurements of the movement of the spectral lines allows for the mass of the component stars to be measured. This same technique can detect planets around other stars but the shift in the spectral lines is minute compared to that caused by two stars orbiting each other.