For a continuously distributed set of states as a function of energy, such as the eigenstates in an electronic band structure, the above sum can be written as an integral over the possible energy values, rather than a sum. Switching from summing over individual states to integrating over energy levels, the entropy can be written as: