An electron in an atom or molecule can absorb energy from a photon and be excited to a higher energy level. This Demonstration considers a photon interacting with an electron in a hydrogen atom. A photon is absorbed only if its energy is equal to an energy-level difference such that .
We show a picture of the orbital occupied by the electron and orbitals with for each energy level.