The grand potential is related to the number of particles at finite temperature in the following way
where the derivative is taken at fixed temperature and volume, and it appears
also known as the Fermi–Dirac distribution.
Similarly, the total internal energy is