spectroscopy
/ spek-TROS-koh-pee /
Hold a glass prism up to sunlight and the white beam fans out into a rainbow, splitting one light into its many colors. Spectroscopy is the science built on that splitting: by sorting light into its component colors — its spectrum — and seeing which colors a material absorbs or gives off, we read a kind of barcode that reveals what it is made of and how its insides are arranged.
The key fact is that atoms, molecules, and the electrons in solids can only hold certain specific amounts of energy, and they swap energy with light in matching jumps. So a material absorbs precisely the colors whose energy fits one of its allowed jumps, and emits those same colors when it relaxes back down. Each substance therefore leaves a distinctive pattern of dark or bright lines in the spectrum. By choosing light from radio waves up to X-rays, spectroscopy can probe everything from gentle molecular vibrations to the deep core electrons of atoms.
This matters because it is one of the most far-reaching tools in all of science: it tells chemists what a sample contains, tells physicists the energy levels inside a solid, and even tells astronomers what distant stars are made of, all without touching the thing studied. The honest caveat is that a spectrum is an indirect fingerprint: reading it correctly relies on knowing or modeling what those lines mean, and overlapping or shifted lines can be misinterpreted.
The element helium was discovered not on Earth but in the Sun: in 1868 astronomers found an unexplained line in sunlight's spectrum, the fingerprint of a gas no one had yet seen in any laboratory.
Helium found in the Sun's spectrum: a single line revealed an element unknown on Earth.
Spectroscopy reads light's colors to learn about a material; diffraction reads the angles at which waves scatter to learn about its geometry. Both use light, but one decodes energy levels while the other decodes spatial arrangement.