This part of the story of radiation was first explained by James Clerk Maxwell via wave theory but the predicted and actual intensity vs. frequency curves did not go together right. At higher frequencies classical physics predicted that more and more energy would be radiated from the body until the energy became infinite. This broke the first law of thermodynamics which is a fundamental part of all physics. This was called the ultraviolet catastrophe. 