I'm currently studying Thermodynamic properties of a Fermi gas at the absolute zero temperature.
I get how the internal energy, pressure... etc of the gas are derived. For example, in computing the internal energy, one sums up all the energy of states weighted by its average occupation...