Question: what is the mathematical relationship between frequency and energy?
Answer: The energy of a wave is directly proportional to its frequency, but inversely proportional to its wavelength. In other words, the greater the energy, the larger the frequency and the shorter (smaller) the wavelength.