According to bohr when an atom makes a transition from one energy level to a lower level it emits a photon with energy equal to the energy difference between initial and final levels. If E1 is the initial energy of the atom before such a transition, E2 is it's final energy after the transition, and the photons energy is hf=hcλ, then conservation of energy gives, E1−E2=hcλ.