Until now we have only considered systems with a fixed value of energy, for which we have seen that the phase space volume is related to the entropy.
This kind of ensemble is however really restricting also because the computations made within it are quite complicated (in The monoatomic ideal gas we had to resort to the geometry of hyperspheres in order to compute the phase space volume of the ideal gas, which is the simplest system we can think of!). We therefore need to generalize our considerations to systems which have and fixed, but variable energy; in other words we want to see what happens when we remove the constraint of keeping the energy of a system fixed.
This is the essence of the canonical ensemble.
However, in order to determine the properties of this ensemble the only thing we can do is to use the tools that we already know, namely the microcanonical ensemble. What we are going to do therefore, in just a few words, is to consider an isolated system (for which the methods of the microncanonical ensemble apply) and see what happens if we consider a small portion of it.
Let us therefore consider a macroscopic isolated system, which we call the heat bath, at temperature composed of particles, and a small (but still macroscopic) subsystem of the bath containing particles (namely but ); for now and are fixed so the "walls" that enclose the small subsystem are fixed and impermeable and only allow the exchange of energy between the two; we also call the energy of the whole system.
The situation can be represented as follows:
Now, since the total system (the heat bath and the small subsystem) is isolated we can apply to it the tools of the microcanonical ensemble; in particular the probability density in phase space of the whole system will be:
is the term containing the interaction between the heat bath and the subsystem. This term must
exist if we want the two systems to exchange energy, but what we now suppose is that it is neglibigle with respect to the other terms (the energy
and the Hamiltonians).
Since we want to study the properties of the small subsystem we are interested in finding a probability density which does not contain any information about the heat bath; in other words we want to determine the so called marginalized
Now, by definition:
so we can write:
From the fundamental postulate of statistical mechanics, in terms of the entropy
of the heat bath we have:
Since the subsystem is much smaller than the heat bath we have
and so we can expand
is the specific heat of the bath at constant volume, then:
: all the terms beyond the first order can be neglected
. Considering that
, this leads to the following expression of the canonical probability density
is called partition function
of the system. Sometimes
is called Boltzmann weight
- ↑ In fact, while , so indeed .
- ↑ They are all terms that are smaller the bigger the heat bath is.
This fact could also be justified saying that we can consider the limit where the dimensions of the heat bath tend to infinity, therefore and we can neglect all the terms from the second order on.