The stellar spectrum is the range of electromagnetic radiation emitted by stars, which astronomers analyze to determine a star's composition, temperature, density, mass, distance, luminosity, and relative motion. By studying the absorption and emission lines in a star's spectrum, scientists can infer the presence of various elements and physical conditions within the star's atmosphere.