# 5.3: The Thermodynamic Functions of the N-molecule System

With the results of Section 23.2 in hand, we can find the other thermodynamic functions for the $$N$$-molecule system from the equations for $$Z$$ and $$\hat{P}_i$$ by the arguments we use in Chapters 20 and 21. Let us summarize these arguments. From

$E=\sum^{\infty }_{i=1}{\hat{P}_i}E_i\nonumber$

we have

$dE=\sum^{\infty }_{i=1}{E_id\hat{P}_i}+\sum^{\infty }_{i=1}{\hat{P}_i}{dE}_i\nonumber$

We associate the first term with $${dq}^{rev}$$ and the second term with $$dw=-PdV$$; that is,

$dq^{rev}=TdS=\sum^{\infty }_{i=1} E_id\hat{P}_i = -kT\sum^{\infty}_{i=1} \ln \left(\frac{\hat{P}_i}{\Omega_i}\right) d\hat{P}_i-kT \ln Z \sum^{\infty }_{i=1} d\hat{P}_i\nonumber$

Where we substitute

$E_i=-kT{ \ln \left(\frac{\hat{P}_i}{\Omega_i}\right)\ }-kT{ \ln Z\ }\nonumber$

which we obtain by taking the natural logarithm of the partition function. Since $$\sum^{\infty }_{i=1}{d\hat{P}_i}=0$$, we have for each system,

$dS=-k\sum^{\infty }_{i=1} \ln \left(\frac{\hat{P}_i}{\Omega_i}\right) d\hat{P}_i=-k\sum^{\infty }_{i=1}{\left\{\Omega_id\left(\frac{\hat{P}_i}{\Omega_i}{ \ln \frac{\hat{P}_i}{\Omega_i}\ }\right)-d\hat{P}_i\right\}}=-k\sum^{\infty }_{i=1}{d\left(\hat{P}_i{ \ln \frac{\hat{P}_i}{\Omega_i}\ }\right)}\nonumber$

The system entropy, $$S$$, and the system-energy-level probabilities, $$\hat{P}_i$$, are functions of temperature. Integrating from $$T=0$$ to $$T$$ and choosing the lower limits for the integrations on the right to be $$\hat{P}_1\left(0\right)=1$$ and $$\hat{P}_i\left(0\right)=0$$ for $$i>1$$, we have

$\int^S_{S_0}{dS}=-k\sum^{\infty }_{i=1}{\int^{\hat{P}_i\left(T\right)}_{\hat{P}_i\left(0\right)}{d\left(\hat{P}_i{ \ln \frac{\hat{P}_i}{\Omega_i}\ }\right)}}\nonumber$

Letting $$\hat{P}_i\left(T\right)=\hat{P}_i$$, the result is

\begin{align*} S-S_0 &= -k\hat{P}_1{ \ln \frac{\hat{P}_1}{\Omega_1}\ }+k \ln \frac{1}{\Omega_1} -k\sum^{\infty }_{i=2}{\hat{P}_i{ \ln \frac{\hat{P}_i}{\Omega_i}\ }} \\[4pt] &=-k\sum^{\infty }_{i=1}{\hat{P}_i{ \ln \frac{\hat{P}_i}{\Omega_i}\ }}-k \ln \Omega_1 \end{align*}\nonumber

From the partition function, we have

${ \ln \left(\frac{\hat{P}_i}{\Omega_i}\right)\ }=-\frac{E_i}{kT}+{ \ln Z\ }\nonumber$

so that

\begin{align*} S-S_0 &= -k\sum^{\infty }_{i=1}{\hat{P}_i}\left(-\frac{E_i}{kT}+{ \ln Z\ }\right)-k{ \ln \Omega_1\ } \\[4pt] &= \frac{1}{T}\sum^{\infty }_{i=1}{\hat{P}_i}E_i+k{ \ln Z\ }\sum^{\infty }_{i=1}{\hat{P}_i}-k{ \ln \Omega_1\ } \\[4pt]&= \frac{E}{T}+k{ \ln Z\ }-k{ \ln \Omega_1\ } \end{align*}\nonumber

We take the system entropy at absolute zero, $$S_0$$, to be

$S_0=k{ \ln \Omega_1\ }\nonumber$

If the lowest energy state is non-degenerate, $$\Omega_1=1$$, and $$S_0=0$$, so that

$S\left(T\right)=\frac{E}{T}+k{ \ln Z\ }\nonumber$

As in Section 21.6, we observe that

$E=\sum^{\infty }_{i=1}{\hat{P}_i}E_i=Z^{-1}\sum^{\infty }_{i=1}{\Omega_i}E_i{\mathrm{exp} \left(\frac{-E_i}{kT}\right)\ }\nonumber$ and that

${\left(\frac{\partial { \ln Z\ }}{\partial T}\right)}_V=Z^{-1}\sum^{\infty }_{i=1}{\Omega_i}\left(\frac{E_i}{kT^2}\right){\mathrm{exp} \left(\frac{-E_i}{kT}\right)\ }=\frac{E}{kT^2}\nonumber$

so that

$E=kT^2{\left(\frac{\partial { \ln Z\ }}{\partial T}\right)}_V\nonumber$

From $$A=E-TS$$ and the entropy equation, $$S={E}/{T}+k{ \ln Z\ }$$, the Helmholtz free energy of the system is

$A=-kT{ \ln Z\ }\nonumber$

For the system pressure, we find from

$P=-{\left(\frac{\partial A}{\partial V}\right)}_T\nonumber$ that $P=kT{\left(\frac{\partial { \ln Z\ }}{\partial V}\right)}_T\nonumber$

From $$H=E+PV$$, we find

$H=kT^2{\left(\frac{\partial { \ln Z\ }}{\partial T}\right)}_V+VkT{\left(\frac{\partial { \ln Z\ }}{\partial V}\right)}_T\nonumber$

and from $$G=E+PV-TS$$, we find

$G=VkT{\left(\frac{\partial { \ln Z\ }}{\partial V}\right)}_T-kT{ \ln Z\ }\nonumber$

For the chemical potential per molecule in the $$N$$-molecule system, we obtain

$\mu ={\left(\frac{\partial A}{\partial N}\right)}_{VT}=-kT{\left(\frac{\partial { \ln Z\ }}{\partial N}\right)}_{VT}\nonumber$

Thus, we have found the principle thermodynamic functions for the $$N$$-molecule system expressed in terms of $${ \ln Z\ }$$ and its derivatives. The system partition function, $$Z$$, depends on the energy levels available to the $$N$$-molecule system. The thermodynamic functions we have obtained are valid for any system, including systems in which intermolecular forces make large contributions to the system energy. Of course, the system partition function, $$Z$$, must accurately reflect the effects of these forces.

In Chapter 24 we find that the partition function, $$Z$$, for a system of $$N$$, distinguishable, non-interacting molecules is related in a simple way to the molecular partition function, $$z$$. We find $$Z=z^N$$. When we substitute this result for $$Z$$ into the system partition functions developed above, we recover the same results that we developed in Chapters 20 and 21 for the thermodynamic properties of a system of $$N$$, distinguishable, non-interacting molecules.