In general, spectroscopy works by exposing a sample to a specific range of electromagnetic radiation and measuring the intensity of the radiation that is absorbed, emitted, or scattered by the sample. The resulting spectrum represents the interaction of the material with the radiation and can be analyzed to obtain various physical and chemical properties of the material.