I know that a photons wavelength and energy are coupled and that my question therefore could be quite ridiculous.
However, as a Biologist, I simply learned that refraction is determined by a photons wavelength (and angle, difference of medium density..) and I learned that absorption is determined by the photons energy, as the molecule's free electrons, that absorbs the photon, must be excited by an equivalent amount of energy (minus vibrations and interactions with solvent).
Here, I would like to gain a deeper understanding and therefore ask for brief additional explanations of why these two statements might be true or false, or for links to open-source further reading so that I can deepen my knowledge. Please also comment on whether there is any merit in differentiating between wavelength and energy, as this might be the exact same phenomenon, described with different words.
My second question is, whether the depicted trend in the picture (smaller wavelength -> larger refraction) is also true for the non-visible ranges in both directions (radio/x-ray). I know that the prism might not be transparent in those ranges; I am asking for a more philosophical answer.