Categories:
Physics,
Thermodynamic ensembles,
Thermodynamics.
Canonical ensemble
The canonical ensemble or NVT ensemble builds on
the microcanonical ensemble,
by allowing the system to exchange energy with a very large heat bath,
such that its temperature T remains constant,
but internal energy U does not.
The conserved state functions are
the temperature T, the volume V, and the particle count N.
We refer to the system of interest as A, and the heat bath as B.
The combination A+B forms a microcanonical ensemble,
i.e. it has a fixed total energy U,
and eventually reaches an equilibrium
with a uniform temperature T in both A and B.
Assuming that this equilibrium has been reached,
we want to know which microstates A prefers in that case.
Specifically, if A has energy UA, and B has UB,
which UA does A prefer?
Let cB(UB) be the number of B-microstates with energy UB.
Then the probability that A is in a specific microstate sA is as follows,
where UA(sA) is the resulting energy:
p(sA)=DcB(U−UA(sA))D≡sA∑cB(U−UA(sA))
In other words, we choose an sA,
and count the number cB of compatible B-microstates.
Since the heat bath is large, let us assume that UB≫UA.
We thus approximate lnp(sA) by
Taylor-expanding lncB(UB) around UB=U:
lnp(sA)=−lnD+ln(cB(U−UA(sA)))≈−lnD+lncB(U)−(dUBd(lncB))UA(sA)
Here, we use the definition of entropy SB≡klncB,
and that its UB-derivative is 1/T:
lnp(sA)≈−lnD+lncB(U)−kUA(sA)(∂UB∂SB)≈−lnD+lncB(U)−kTUA(sA)
We now define the partition function or Zustandssumme Z as follows,
which will act as a normalization factor for the probability:
Z≡sA∑exp(−βUA(sA))=cB(U)D
Where β≡1/(kT).
The probability of finding A in a microstate sA is thus given by:
p(sA)=Z1exp(−βUA(sA))
This is the Boltzmann distribution,
which, as it turns out, maximizes the entropy SA
for a fixed value of the average energy ⟨UA⟩,
i.e. a fixed T and set of microstates sA.
Because A+B is a microcanonical ensemble,
we know that its thermodynamic potential
is the entropy S.
But what about the canonical ensemble, just A?
The solution is a bit backwards.
Note that the partition function Z is not a constant;
it depends on T (via β), V and N (via sA).
Using the same logic as for the microcanonical ensemble,
we define “equilibrium” as the set of microstates sA
that A is most likely to occupy,
which must be the set (as a function of T,V,N) that maximizes Z.
However, T, V and N are fixed,
so how can we maximize Z?
Well, as it turns out,
the Boltzmann distribution has already done it for us!
We will return to this point later.
Still, Z does not have a clear physical interpretation.
To find one, we start by showing that the ensemble averages
of the energy UA, pressure PA and chemical potential μA
can be calculated by differentiating Z.
As preparation, note that:
∂β∂Z=−sA∑UAexp(−βUA)
With this, we can find the ensemble averages
⟨UA⟩, ⟨PA⟩ and ⟨μA⟩ of the system:
⟨UA⟩⟨PA⟩⟨μA⟩=sA∑p(sA)UA=Z1sA∑UAexp(−βUA)=−Z1∂β∂Z=−sA∑p(sA)∂V∂UA=−Z1sA∑exp(−βUA)∂V∂UA=Zβ1∂V∂sA∑exp(−βUA)=Zβ1∂V∂Z=sA∑p(sA)∂N∂UA=Z1sA∑exp(−βUA)∂N∂UA=−Zβ1∂N∂sA∑exp(−βUA)=−Zβ1∂N∂Z
It will turn out more convenient to use derivatives of lnZ instead,
in which case:
⟨UA⟩=−∂β∂lnZ⟨PA⟩=β1∂V∂lnZ⟨μA⟩=−β1∂N∂lnZ
Now, to find a physical interpretation for Z.
Consider the quantity F, in units of energy,
whose minimum corresponds to a maximum of Z:
F≡−kTlnZ
We rearrange the equation to βF=−lnZ and take its differential element:
d(βF)=−d(lnZ)=−∂β∂lnZdβ−∂V∂lnZdV−∂N∂lnZdN=⟨UA⟩dβ−β⟨PA⟩dV+β⟨μA⟩dN=⟨UA⟩dβ+βd⟨UA⟩−βd⟨UA⟩−β⟨PA⟩dV+β⟨μA⟩dN=d(β⟨UA⟩)−β(d⟨UA⟩+⟨PA⟩dV−⟨μA⟩dN)
Rearranging and substituting
the fundamental thermodynamic relation
then gives:
d(βF−β⟨UA⟩)=−β(d⟨UA⟩+⟨PA⟩dV−⟨μA⟩dN)=−βTdSA
We integrate this and ignore the integration constant,
leading us to the desired result:
−βTSA=βF−β⟨UA⟩⟹F=⟨UA⟩−TSA
As was already suggested by our notation,
F turns out to be the Helmholtz free energy:
F≡−kTlnZ=⟨UA⟩−TSA
We can therefore reinterpret
the partition function Z and the Boltzmann distribution p(sA)
in the following “more physical” way:
Z=exp(−βF)p(sA)=exp(β(F−UA(sA)))
Finally, by rearranging the expressions for F,
we find the entropy SA to be:
SA=klnZ+T⟨UA⟩
This is why Z is already maximized:
the Boltzmann distribution maximizes SA for fixed values of T and ⟨UA⟩,
leaving Z as the only “variable”.
References
- H. Gould, J. Tobochnik,
Statistical and thermal physics, 2nd edition,
Princeton.