s is called Planck's constant. Since the energy goes up as the frequency increases, the energy is directly proportional to the frequency. Because frequency and wavelength are related by a constant (c) the energy can also be written in terms of wavelength: E = h. ... That is, energy in inversely proportional to wavelength.