To learn anything about a star, astronomers must analyze
its light. They accomplish this by pointing a telescope
at the star to gather its light and then using a spectroscope
to spread the light into a spectrum. By comparing and
analyzing patterns in the spectra of many stars, astronomers
have learned to infer stars' compositions and temperatures.