Skip to main content
Chemistry LibreTexts

4.2: The Relation of State Functions to the Partition Function

  • Page ID
    285767
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Entropy and the Partition Function

    We recall that we already computed internal energy \(u\) and heat capacity \(c_V\) at constant volume from the system partition function \(z\) (Section [section:u_and_cv_from_z]). For a canonical system (\(V = \mathrm{const.}\)), which is by definition at thermal equilibrium (reversible), we can identify \(q_\mathrm{rev}\) in Equation \ref{eq:entropy_phen} with14

    \[\mathrm{d}q_\mathrm{rev} = c_V \mathrm{d} T \ .\]

    Definite integration with substitution of \(c_V\) by Equation \ref{eq:cv0} gives ,

    \[\begin{align} s - s_0 & = \int_0^T \frac{c_V}{T'} \mathrm{d} T' = \int_0^T \frac{1}{T'} \frac{\partial}{\partial T'} \left( k_\mathrm{B} T'^2 \frac{\partial \ln z}{\partial T'} \right)_V \mathrm{d} T' \\[4pt] & = \int_0^T \frac{1}{T'} \left[k_\mathrm{B} T'^2 \left( \frac{\partial^2 \ln z}{\partial T'^2} \right)_V + 2 k_\mathrm{B} T' \left(\frac{\partial \ln z}{\partial T'} \right)_V \right] \mathrm{d} T' \\[4pt] & = k_\mathrm{B} \int_0^T T' \left( \frac{\partial^2 \ln z}{\partial T'^2} \right)_V \mathrm{d} T' + 2 k_\mathrm{B} \int_0^T \left( \frac{\partial \ln z}{\partial T'} \right)_V \mathrm{d} T' \ .\end{align}\]

    Partial integration provides

    \[\begin{align} s - s_0 & = k_\mathrm{B} T \left( \frac{\partial \ln z}{\partial T} \right)_V - k_\mathrm{B} \int_0^T \left( \frac{\partial \ln z}{\partial T'} \right)_V \mathrm{d} T' + 2 k_\mathrm{B} \int_0^T \left( \frac{\partial \ln z}{\partial T'} \right)_V \mathrm{d} T' \\[4pt] & = k_\mathrm{B} T \left( \frac{\partial \ln z}{\partial T} \right)_V + k_\mathrm{B} \ln z \Big|_0^T \label{eq:s_from_z_0} \\[4pt] & = \frac{u}{T} + k_\mathrm{B} \ln z - k_\mathrm{B} \left(\ln z\right)_{T=0} \ , \label{eq:s_from_z_1} \end{align}\]

    where we have used Equation \ref{eq:u_from_z} to substitute the first term on the right hand side of Equation \ref{eq:s_from_z_0}. If we assume that \(\lim\limits_{T \rightarrow 0}{u/T} = 0\), the entropy at an absolute temperature of zero can be identified as \(s_0 = k_\mathrm{B} \left(\ln z\right)_{T=0}\). If there are no degenerate ground states, \(s_0 = 0\) in agreement with Nernst’s theorem (Third Law of Thermodynamics), as will be discussed in Section [subsection:z_accessible]. Thus, by associating \(u=0\) with \(T=0\) we obtain

    \[s = \frac{u}{T} + k_\mathrm{B} \ln z = k_\mathrm{B} \left[ \left( \frac{\partial \ln z}{\partial \ln T} \right)_V + \ln z \right] \ . \label{eq:s_from_z}\]

    We see that under the assumptions that we have made the entropy can be computed from the partition function. In fact, there should be a unique mapping between the two quantities, as both the partition function and the entropy are state functions and thus must be uniquely defined by the state of the system.

    We now proceed with computing constant \(k\) in the mathematical definition of Boltzmann entropy, Equation \ref{eq:Boltzmann_entropy}. By inserting Equation \ref{eq:ln_Omega} into Equation \ref{eq:Boltzmann_entropy} we have

    \[s = k \left( N \ln N - \sum_{i=0}^{r-1} N_i \ln N_i \right) \ .\]

    We have neglected the term \(r\) on the right-hand side of Equation \ref{eq:ln_Omega}), as is permissible if the number \(N\) of particles is much larger than the number \(r\) of energy levels. Furthermore, according to Equation \ref{eq:Boltzmann_distribution}) and the definition of the partition function, we have \(N_i = N e^{-\epsilon_i/k_\mathrm{B} T}/Z\). Hence,

    \[\begin{align} s & = k \left[ N \ln N - N \sum_{i=0}^{r-1} \frac{e^{-\epsilon_i/k_\mathrm{B} T}}{Z} \ln N \left( \frac{e^{-\epsilon_i/k_\mathrm{B} T}}{Z} \right) \right] \\[4pt] & = k \left[ N \ln N - N \sum_{i=0}^{r-1} \frac{e^{-\epsilon_i/k_\mathrm{B} T}}{Z} \ln N + N \sum_{i=0}^{r-1} \frac{e^{-\epsilon_i/k_\mathrm{B} T}}{Z} \ln Z + N \sum_{i=0}^{r-1} \frac{e^{-\epsilon_i/k_\mathrm{B} T}}{Z} \cdot \frac{\epsilon_i}{k_\mathrm{B} T}\right] \label{eq:s_fix_k_0} \\[4pt] & = k \left[ N \ln N - N \ln N + N \ln Z + \frac{N}{k_\mathrm{B}T} \frac{\sum_{i=0}^{r-1} \epsilon_i e^{-\epsilon_i/k_\mathrm{B} T}}{Z} \right] \ , \label{eq:s_fix_k}\end{align}\]

    where we have used the definition of the partition function of going from Equation \ref{eq:s_fix_k_0} to \ref{[eq:s_fix_k]}. Using Equation \ref{eq:u_from_z_sum} for substitution in the last term on the right-hand side of Equation \ref{eq:s_fix_k}), we find

    \[s = k \left[N \ln Z + \frac{u}{k_\mathrm{B} T} \right] \ . \label{eq:s_N_particles_z}\]

    Comparison of Equation \ref{eq:s_N_particles_z} with Equation \ref{eq:s_from_z} gives two remarkable results. First, the multiplicative constant \(k\) in Boltzmann’s entropy definition can be identified as \(k = k_\mathrm{B} = R/N_\mathrm{Av}\). Second, for the system of \(N\) identical, distinguishable classical particles, we must have

    \[z_\mathrm{dist} = Z^N \ . \label{eq:molar_z_from_molecular_z}\]

    In other words, the partition function of a system of \(N\) identical, distinguishable, non-interacting particles is the \(N^\mathrm{th}\) power of the molecular partition function.

    It turns out that Equation \ref{eq:molar_z_from_molecular_z} leads to a contradiction if we apply it to an ideal gas. Assume that we partition the system into two subsystems with particle numbers \(N_\mathrm{sub} = N/2\). The internal-energy dependent term in Equation \ref{eq:s_N_particles_z} obviously will not change during this partitioning. For the partition-function dependent term we have \(N \ln Z\) for the total system and \(2(N/2) \ln Z'\) for the sum of the two subsystems. The molecular partition function in the subsystems differs, because volume available to an individual particle is only half as large as in the total system. For the inverse process of unifying the two subsystems we would thus obtain a mixing entropy, although the gases in the subsystems are the same. This appearance of a mixing entropy for two identical ideal gases is called the Gibbs paradox. The Gibbs paradox can be healed by treating the particles as indistinguishable. This reduces the statistical weight \(\Omega\) by \(N!\) for the total system and by \((N/2)!\) for each subsystem, which just offsets the volume effect. Hence, for an ideal gas we have

    \[z_\mathrm{indist} = \frac{1}{N!} Z^N \ . \label{eq:z_indist}\]

    It may appear artificial to treat classical particles as indistinguishable, because the trajectory of each particle could, in principle, be followed if they adhere to classical mechanics equations of motion, which we had assumed. Note, however, that we discuss a macrostate and that we have explicitly assumed that we cannot have information on the microstates, i.e., on the trajectories. In the macrostate picture, particles in an ideal gas are, indeed, indistinguishable. For an ideal crystal, on the other hand, each particle could be individually addressed, for instance, by high resolution microscopy. In this case, we need to use Equation \ref{eq:molar_z_from_molecular_z}.

    Helmholtz Free Energy

    Helmholtz free energy (German: Freie Energie) \(f\) is defined as

    \[f = u - T s \ . \label{eq:f_u_T_s}\]

    This equation has a simple interpretation. From phenomenological thermodynamics we know that the equilibrium state of a closed systems corresponds to a minimum in free energy. Among all macrostates with the same energy \(u\) at a given temperature \(T\), the equilibrium state is the one with maximum entropy \(s\). Furthermore, using Equation \ref{eq:s_from_z} we have

    \[\begin{align} f & = u - T\left( u/T + k_\mathrm{B} \ln z \right) \\[4pt] & = -k_\mathrm{B} T \ln z \ . \label{eq:f_from_z}\end{align}\]

    We note that this value of \(f\), which can be computed from only the canonical partition function and temperature, corresponds to the global minimum over all macrostates. This is not surprising. After all, the partition function was found in a maximization of the probability of the macrostate.

    Gibbs Free Energy, Enthalpy, and Pressure

    All ensembles that we have defined correspond to equilibrium states at constant volume. To make predictions for processes at constant pressure or to compute enthalpies \(h = u + p V\) and Gibbs free energies \(g = f + p V\) we need to compute pressure from the partition function. The simplest way is to note that \(p = -\left(\partial f/\partial V \right)_{T,n}\). With Equation \ref{eq:f_from_z} it then follows that

    \[p = k_\mathrm{B} T \left( \frac{\partial \ln z}{\partial V} \right)_T \ , \label{eq:p_from_z}\]

    where we have skipped the lower index \(n\) indicating constant molar amount. This is permissible for the canonical ensemble, where the number of particles is constant by definition. From Equation \ref{eq:p_from_z} it follows that

    \[p V = k_\mathrm{B} T \left( \frac{\partial \ln z}{\partial \ln V} \right)_T\]

    and

    \[h = u + p V = k_\mathrm{B} T \left[ \left( \frac{\partial \ln z}{\partial \ln T} \right)_V + \left( \frac{\partial \ln z}{\partial \ln V} \right)_T \right] \ .\]

    Connoisseurs will notice the beautiful symmetry of this equation.

    With Equation \ref{eq:p_from_z} we can also compute Gibbs free energy (German: freie Enthalpie),

    \[g = f + p V = -k_\mathrm{B} T \left[ \ln z - \left( \frac{\partial \ln z}{\partial \ln V} \right)_T \right] \ .\]


    This page titled 4.2: The Relation of State Functions to the Partition Function is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Gunnar Jeschke via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.