Spectroscopy is the study of the interaction between electromagnetic radiation and matter such as atoms, molecules, or ions. It uses electromagnetic radiation of specific wavelengths or wavelength ranges to qualitatively or quantitatively analyze matter. Spectroscopy deals with absorption, emission, and scattering of electromagnetic radiation when it interacts with matter. The interaction depends on the energy of the radiation, with more energetic radiations like UV and x-rays potentially causing electron ejection, and less energetic ones like infrared inducing molecular vibrations or microwave causing molecular rotation. Spectroscopy is widely used to study the internal structure of organic and inorganic compounds and has advantages like being non-destructive, sensitive, and requiring small sample sizes.