Energy levels and line spectra

An electron in an atom can only have certain energies, like standing on the rungs of a ladder, so when it drops from a higher rung to a lower one it gives off a photon with exactly the energy difference, which is why each element shines only at its own particular colours.

A worked example

In hydrogen, the level n = 3 is at −1.51 eV and n = 2 is at −3.40 eV. An electron dropping from 3 to 2 releases ΔE = −1.51 − (−3.40) = 1.89 eV, which is (1.89)(1.60 × 10⁻¹⁹) = 3.02 × 10⁻¹⁹ J. The photon's wavelength is λ = hc ÷ E = (6.63 × 10⁻³⁴)(3.00 × 10⁸) ÷ (3.02 × 10⁻¹⁹) = 6.58 × 10⁻⁷ m, the red line in hydrogen's spectrum.

The mistake people actually make

The levels are negative because zero means the electron has escaped the atom entirely. The photon's energy is the difference between two levels, which is always positive, so subtract the lower level from the higher one.

Practice: Further Practice: Photons and the Photoelectric Effect