The partition function of an ensemble is the normalization factor of the Probability density function for the states. It includes the statistical properties of a system in thermal equilibrium and most thermodynamic variables, like temperature and entropy, can be derived from it directly or from its derivatives. As such, it is a generating function. It is the sum of the density function over all possible states:
The first case is the classical one, where integration happens over all phase space. The second is the quantum case, which instead uses the density matrix and its trace.
It is usually denoted using , which comes from German "Zustandsumme", or . The most common partition functions are the canonical partition function of the canonical ensemble and the grand canonical partition function of the grand canonical ensemble . Their expressions change depending on whether we are consider the classical or quantum ensemble and whether particles are distinguishable or not.
Properties#
The probability of a state in an ensemble is given by the density function normalized by the partition function
For independent and classical systems, canonical partition functions multiply. That is, the partition function of two systems that do not interact is
This is because the energy of the combined system is just the sum of the energy of each system:
More generally, for independent components equipped with the same partition function , we have
In quantum systems however, this is no longer true due to the wavefunction constraints of fermions and bosons and, more specifically, their indistinguishability. For bosons, every combination of states is permitted, but we don't want to overcount states that only differ by a permutation. To express this mathematically, nested sums now begin at the previous index:
The sums are no longer independent, so we cannot solve them separately like in the classical case. The solution now depends on the shape of . For fermions, particles also cannot simultaneously occupy the same state due to the Pauli exclusion principle, so the greater-or-equals becomes a simple greater:
Because of these constraints, solving quantum partition functions can be much more involved than classical ones. In practice, it shows that quantum systems are effectively never independent from each other, even if there are no formal interactions between components. For an abstract exercise on quantum state counting, see Occupation number > Average occupation.
To compute these sums, it is typically useful to consider the geometric series and some simple generalizations:
Derived quantities#
In general, the ensemble average of a quantity can be derived as
where summation (or integration, if continuous) happens over all states. If there exists an for which
is true, then the ensemble average can be rewritten as
This can be seen, for instance, in the internal energy of a system (where ):
where with the Boltzmann constant and the temperature.
The canonical partition function is related to the Helmholtz free energy by
Using Maxwell relations, this leads to an expression for entropy: