I am just starting learning quantum physics, and I am starting from old quantum theories and from black body radiation, but I am getting in trouble to understand Planck law derivation. I am too confused about that derivation. In my textbook it is written that Planck derived the average energy of each oscillating dipole, and my teacher says that those dipoles are actually electrons in different energy states. So he derived the average energy for each electron and multiplied it with the "possible number of standing wave modes" to get the energy distribution.
But I used to think that he wanted to calculate the energy density of radiation inside the black body, so we should calculate the avarage energy for this radiation (electromagnetic waves) or the energy which is emitted by those electrons, not the avarage energy of electrons itself.
Electrons will not radiate their whole energy (which is actually the average energy of each electrons). So we need to figure out what is the radiated energy by each electron, not their own whole energy, as they will release a little bit of energy to minimize their potential energy. Then we should multiply it by the total number of modes, which is the possible number of orientations of electromagnetic waves, or energies released by those electrons. Tell me if I am wrong in this sense.
Please help me out of this trouble , I am totally confused about those modes and average energy. I can't understand properly which average energy are they talking about.