A rainbow is a question
Hold a glass of water up to a window and a tiny rainbow may spread across the wall. White light went in; a stripe of colours came out, sorted from red to violet. That spreading-out is the heart of spectroscopy: take light, fan it into its separate colours, and read the result. The fanned-out band of colours is called a spectrum. The whole field is just this — *send light at something, spread the light that comes back into colours, and see what is missing or added.* What is missing or added tells you about the molecules the light met along the way.
Light comes in many sizes — the full spectrum
The colours your eye sees — red through violet — are only a thin sliver of all the light there is. Beyond red lies infrared (which you feel as warmth), then microwaves, then radio waves; beyond violet lies ultraviolet, then X-rays. All of these are the same kind of thing: travelling waves of electric and magnetic ripple, differing only in wavelength, the distance from one wave-crest to the next. Laid out in order of wavelength, they form the electromagnetic spectrum. Radio waves are long and lazy; X-rays are short and sharp. Visible light sits modestly in the middle.
Here is the key fact for spectroscopy: shorter wavelength means more energy per packet of light. A blue photon carries more energy than a red one; an ultraviolet photon more than blue. So choosing a region of the spectrum is really choosing how strong a poke you give the molecule — a gentle nudge with microwaves, a firmer push with infrared, a real shove with ultraviolet. Different pokes wake up different parts of the molecule, which is exactly why there are so many kinds of spectroscopy.
Why molecules only answer in certain colours
If a molecule could absorb a little bit of any colour, spectra would be smooth and boring. Instead, real spectra are full of sharp, picky features. The reason is one of the deepest ideas in chemistry: a molecule cannot hold just any amount of energy. It is allowed only a fixed ladder of values — its molecular energy levels. The molecule can sit on one rung or another, but never hover in between. This ladder-only behaviour is called quantization.
Now the picky behaviour makes sense. To climb from one rung to a higher one, a molecule must swallow a photon whose energy is *exactly* the gap between those two rungs — not a bit more, not a bit less. Photons of the wrong energy sail straight past, ignored. So when white light passes through a sample, only the few colours that fit the gaps get absorbed; the rest come through untouched. The colours that vanish appear as dark slots in the spectrum, each one a spectral line — a fingerprint of one particular energy gap inside the molecule.
Absorption and emission: two sides of one coin
A molecule can deal with light in two opposite ways, together called absorption and emission. In absorption, the molecule takes in a photon and climbs to a higher rung — the photon disappears. In emission, a molecule already sitting on a higher rung drops down and spits a photon back out — light appears. The crucial point is that both involve the *same* energy gaps. A molecule absorbs and emits the very same colours, because the rungs of its ladder do not change. That is why a glowing neon sign and a sample that swallows certain colours are really telling the same story from opposite directions.
What spectroscopy is good for
Because every molecule has its own ladder of energy levels, every molecule has its own pattern of spectral lines — a unique barcode. Spectroscopy uses these barcodes for two everyday jobs. First, *identity*: match the pattern against known patterns and you learn what a substance is. This is how forensic labs spot a drug, how astronomers learn what stars are made of, and how doctors read the gases in your blood. Second, *amount*: the deeper the dark slot, the more molecules were there to absorb — so the size of a feature tells you how much is present. Identity and amount, read from nothing but light that came back.
The rest of this rung simply zooms into different regions of the electromagnetic spectrum, one at a time. Microwaves spin molecules; infrared shakes their bonds; ultraviolet and visible light kick their electrons; radio waves flip the tiny magnets inside their nuclei. Same idea throughout — light meets ladder — just a different rung-spacing in each band.