All electromagnetic waves travel at the same speed \(c = 3.0\times 10^{8}\ \text{m s}^{-1}\) in a vacuum, and they satisfy \(c = f\lambda\). Since \(c\) is fixed, wavelength and frequency are inversely related: the shortest wavelength belongs to the highest frequency, and therefore to the most energetic radiation, because \(E = hf\).
Ordering the members of the spectrum given here from long wavelength to short: infrared, then visible light, then ultraviolet, then X-rays. Of these, X-rays have the shortest wavelength, of the order of \(10^{-10}\ \text{m}\), compared with about \(10^{-8}\ \text{m}\) for ultraviolet, \(4\times 10^{-7}\) to \(7\times 10^{-7}\ \text{m}\) for visible light and around \(10^{-5}\ \text{m}\) for infrared. The table below sets out the comparison.
| Radiation | Typical wavelength |
|---|
| Infrared | \(10^{-5}\ \text{m}\) |
| Visible light | \(5\times 10^{-7}\ \text{m}\) |
| Ultraviolet | \(10^{-8}\ \text{m}\) |
| X-rays | \(10^{-10}\ \text{m}\) |
Ultraviolet is the tempting alternative because it is the one most students associate with harmful, penetrating radiation from the Sun, but it sits between visible light and X-rays. The very short wavelength of X-rays is precisely why they penetrate soft tissue and are diffracted by the regular spacing of atoms in crystals, an effect that only works when the wavelength is comparable with atomic spacing. A reliable method in the examination is to recite the spectrum in a fixed order, from radio waves through microwaves, infrared, visible light, ultraviolet and X-rays to gamma rays, remembering that wavelength decreases and frequency increases along that sequence, then read off whichever end the question asks for.