How, thanks to the obtained spectra, determine the chemical composition, temperature of the outer layers and radial velocity of the star?

Each chemical element has its own set of lines. Lines of hydrogen, helium, ionized metals, molecular compounds appear at a certain temperature. The speed is determined by the shift of the lines of the star’s spectrum from the laboratory standard spectrum.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.