The attached files explain  Vibration spectra and vibrational  energy levels of a diatomic molecule

Image result for vibrational energy levels of a diatomic molecule