The equation is derived as an infinite sum over all possible frequencies in a semi-sphere region. The energy, E = h ν ν , of each photon is multiplied by the number of states available at that frequency, and the probability that each of those states will be occupied.