The mean molecular energy of a system of non-interacting molecules is defined as the average internal energy per molecule, calculated over all possible quantum states accessible to the molecule at a given temperature.

This average is weighted by the Boltzmann probability of each state and reflects the contributions from translational, rotational, vibrational and electronic motions, depending on the system’s complexity.
Mathematically, the mean molecular energy \(\langle \varepsilon\rangle\) of a molecule in thermal equilibrium is given by:
$$\langle \varepsilon\rangle=\sum_i\varepsilon_ip_i\;\;\;\;\;\;\;\;300$$
where \(\varepsilon_i\) is energy the \(i\)-th state measured relative to the ground state energy of the molecule, and \(p_i\) is the probability of the molecule being in that state.
Substituting eq251 into eq300 gives:
$$\langle \varepsilon\rangle=\frac{1}{q}\sum_i\varepsilon_ie^{-\beta\varepsilon_i}\;\;\;\;\;\;\;\;301$$
where
\(q=\sum_ie^{-\beta\varepsilon_i}\) is the molecular partition function,
\(k\) is the Boltzmann constant,
\(T\) is the absolute temperature,
\(\beta=\frac{1}{kT}\).
Since \(\frac{\partial q}{\partial\beta}=\sum_i\frac{\partial}{\partial\beta}e^{-\beta\varepsilon_i}=-\sum_i\varepsilon_ie^{-\beta\varepsilon_i}\) and \(\frac{\partial lnq}{\partial q}=\frac{1}{q}\), eq301 can be expressed as:
$$\langle \varepsilon\rangle=-\frac{1}{q}\frac{\partial q}{\partial\beta}\;\;\;\;\;\;\;\;302$$
or
$$\langle \varepsilon\rangle=-\frac{\partial lnq}{\partial\beta}\;\;\;\;\;\;\;\;303$$

Question
Why does eq303 (or eq302) involve a partial derivative?
Answer
A partial derivative is used because \(q\) may be dependent on a few variables, such as \(T\) and \(V\) (see eq266).
Substituting eq257 into eq303 yields:
$$\langle \varepsilon\rangle=\langle \varepsilon^T\rangle+\langle \varepsilon^R\rangle +\langle \varepsilon^V\rangle+\langle \varepsilon^E\rangle\;\;\;\;\;\;\;\;304$$
where \(\langle \varepsilon^T\rangle=-\frac{\partial lnq^T}{\partial\beta}\), \(\langle \varepsilon^R\rangle=-\frac{\partial lnq^R}{\partial\beta}\), \(\langle \varepsilon^V\rangle=-\frac{\partial lnq^V}{\partial\beta}\) and \(\langle \varepsilon^E\rangle=-\frac{\partial lnq^E}{\partial\beta}\).
Mean translational energy
The mean translational energy \(\langle \varepsilon^T\rangle\) of a non-interacting molecule is derived by substituting eq266 into \(\langle \varepsilon^T\rangle=-\frac{\partial lnq^T}{\partial\beta}\) to give:
$$\langle \varepsilon^T\rangle=-\frac{\partial ln\biggr[V\biggr(\frac{2\pi m}{h^2\beta}\biggr)^{\frac{3}{2}}\biggr]}{\partial\beta}=-\frac{\partial ln\biggr(\frac{1}{\beta}\biggr)}{\partial \beta}^{\frac{3}{2}}=\frac{3}{2}kT\;\;\;\;\;\;\;\;305$$

Question
Show that each of the three components of \(\langle \varepsilon^T\rangle\) is equal to \(\frac{1}{2}kT\).
Answer
Substituting eq261 into \(\langle \varepsilon^T\rangle=-\frac{\partial lnq^T}{\partial\beta}\) results in:
$$\langle \varepsilon^T\rangle=-\frac{\partial ln q^T_x}{\partial \beta}-\frac{\partial ln q^T_y}{\partial \beta}-\frac{\partial ln q^T_z}{\partial \beta}\;\;\;\;\;\;\;\;306$$
Let’s focus on the first derivative in eq306. Substituting eq265 into it yields:
$$-\frac{\partial ln q^T_x}{\partial \beta}=-\frac{\partial ln\biggr[a\biggr(\frac{2\pi m}{h^2\beta}\biggr)^{\frac{1}{2}}\biggr]}{\partial\beta}=-\frac{\partial ln\sqrt{\frac{1}{\beta}}}{\partial\beta}=\frac{1}{2}kT$$
Similarly, each of the other two components is equal to \(\frac{1}{2}kT\) because \(q^T_y=\sqrt{\frac{2\pi m}{h^2\beta}}b\) and \(q^T_z=\sqrt{\frac{2\pi m}{h^2\beta}}c\).
Thus, each translational degree of freedom contributes \(\frac{1}{2}kT\), consistent with the equipartition theorem.
Mean rotational energy
The mean rotational energy \(\langle \varepsilon^R\rangle\) of a non-interacting heteronuclear linear molecule at low temperatures is derived by substituting eq270 into \(\langle \varepsilon^R\rangle=-\frac{1}{q^R}\frac{\partial q^R}{\partial\beta}\) to give:
$$\langle \varepsilon^R\rangle=-\frac{1}{\sum_J(2J+1)e^{-hcBJ(J+1)\beta}}\frac{\partial\sum_J(2J+1)e^{-hcBJ(J+1)\beta}}{\partial\beta}\;\;\;\;\;\;\;\;307$$
At very low temperatures, almost all molecules occupy the ground state with \(J=0\), so eq307 reduces to \(\langle \varepsilon^R\rangle\approx 0\). As the temperature increases, \(\langle \varepsilon^R\rangle\) is approximately given by expanding the summations in eq307 and differentiating to yield:
$$\langle \varepsilon^R\rangle=-\frac{hcB(6e^{-2hcB\beta}+30e^{-6hcB\beta}+\cdots)}{1+3e^{-2hcB\beta}+5e^{-6hcB\beta}+\cdots}\;\;\;\;\;\;\;\;308$$
At higher temperatures, we substitute eq275, where \(\theta_R=\frac{hcB}{k}\) and \(\beta=\frac{1}{kT}\), into \(\langle \varepsilon^R\rangle=-\frac{1}{q^R}\frac{\partial q^R}{\partial\beta}\) to give:
$$\langle \varepsilon^R\rangle=-\sigma\beta hcB\frac{\partial}{\partial\beta}\frac{1}{\sigma hcB\beta}=kT\;\;\;\;\;\;\;\;309$$
which is consistent with the equipartition theorem.
Since the symmetry number \(\sigma\) cancels out, the mean rotational energy of a non-interacting symmetrical linear molecule at high temperatures is also \(\langle \varepsilon^R\rangle=kT\). Unlike linear rotors, which have two independent rotational degrees of freedom, spherical rotors, symmetric rotors and asymmetric rotors have three. Substituting eq280, eq286 and eq287 separately into \(\langle \varepsilon^R\rangle=-\frac{1}{q^R}\frac{\partial q^R}{\partial\beta}\) and differentiating results in \(\langle \varepsilon^R\rangle=\frac{3}{2}kT\) for each of the three types of rotors, which is again consistent with the equipartition theorem.
Mean vibrational energy
The mean vibrational energy \(\langle \varepsilon^V\rangle\) of a non-interacting diatomic molecule oscillating harmonically at low temperatures is derived by substituting eq291 into \(\langle \varepsilon^V\rangle=-\frac{1}{q^V}\frac{\partial q^V}{\partial\beta}\), where \(\theta_V=\frac{hc\tilde\nu}{k}\), to give:
$$\langle \varepsilon^V\rangle=-\frac{1-e^{-hc\tilde\nu\beta}}{e^{-\frac{1}{2}hc\tilde\nu\beta}}\frac{\partial}{\partial\beta}\frac{e^{-\frac{1}{2}hc\tilde\nu\beta}}{1-e^{-hc\tilde\nu\beta}}\;\;\;\;\;\;\;\;310$$
If we compute the derivative in eq310 and multiply the result by \(\frac{e^{hc\tilde\nu\beta}}{e^{hc\tilde\nu\beta}}\), we get:
$$\langle \varepsilon^V\rangle=-\frac{1}{2}hc\tilde\nu\frac{e^{hc\tilde\nu\beta}+1}{e^{hc\tilde\nu\beta}-1}\;\;\;\;\;\;\;\;311$$
At high temperatures, \(hc\tilde\nu\beta\ll 1\), which allows us to expand \(e^{hc\tilde\nu\beta}\) as a Taylor series (\(e^x=1+x+\cdots\)) to give:
$$\langle \varepsilon^V\rangle=\frac{1}{2}hc\tilde\nu\frac{(1+hc\tilde\nu\beta+\cdots)+1}{(1+hc\tilde\nu\beta+\cdots)-1}=kT+\frac{1}{2}hc\tilde\nu\;\;\;\;\;\;\;\;312$$
As mentioned in an earlier article, eq291 evaluates absolute energy levels, including the zero-point energy. If we derive \(\langle \varepsilon^V\rangle\) using eq293 instead of eq291, we obtain:
$$\langle \varepsilon^V\rangle=kT\;\;\;\;\;\;\;\;313$$
Although the equipartition theorem states that the mean vibrational energy of a classical oscillator at high temperatures is equal to \(kT\), both eq312 and eq313 are consistent with this result. This is because the theorem accounts only for the thermal contribution to vibrational energy; the zero-point energy term \(\frac{1}{2}hc\tilde\nu\) is a quantum mechanical artifact that is independent of temperature.
For polyatomic molecules, each normal mode of vibration behaves approximately like a separate harmonic oscillator, with the total vibrational partition function given by eq294:
$$q^V_{total}=\prod^f_{i=1}q^V_i$$
where \(f=3N-6\) for non-linear molecules, \(f=3N-5\) for linear molecules, and \(N\) is the number of atoms.
So,
$$lnq^V_{total}=ln\prod^f_{i=1}q^V_i=\sum_{i=1}^flnq^V_i$$
Since \(\langle \varepsilon^V_i\rangle=-\frac{1}{q^V_i}\frac{\partial q^V_i}{\partial\beta}=-\frac{\partial lnq^V_i}{\partial\beta}\),
$$\langle\varepsilon^V_{total}\rangle=-\frac{\partial lnq^V_{total}}{\partial\beta}=-\frac{\partial \sum_{i=1}^f lnq^V_i}{\partial\beta}=\sum_{i=1}^f\langle\varepsilon^V_i\rangle\;\;\;\;\;\;\;\;314$$
In other words, the total mean vibrational energy of a non-interacting polyatomic molecule oscillating harmonically is the sum of the mean energy of each normal mode. This implies that
$$\langle\varepsilon^V_{total}\rangle=(3N-6)kT\;\;\;\;\;non-linear\;molecule$$
$$\langle\varepsilon^V_{total}\rangle=(3N-5)kT\;\;\;\;\;linear\;molecule$$
which are consistent with the equipartition theorem at high temperatures.
Mean electronic energy
The mean electronic energy \(\langle \varepsilon^E\rangle\) of a non-interacting molecule is derived by substituting eq296, where \(\beta=\frac{1}{kT}\), into \(\langle \varepsilon^E\rangle=-\frac{1}{q^E}\frac{\partial q^E_i}{\partial\beta}\) to give:
$$\langle \varepsilon^E\rangle=\frac{g_1\varepsilon_1e^{-\varepsilon_1\beta}+g_2\varepsilon_2e^{-\varepsilon_2\beta}+\cdots}{g_0+g_1e^{-\varepsilon_1\beta}+g_2e^{-\varepsilon_2\beta}+\cdots}\;\;\;\;\;\;\;\;315$$
At low temperatures, \(\beta\rightarrow\infty\). Therefore, all the numerator terms in eq315 approach zero, giving:
$$\langle \varepsilon^E\rangle\approx 0\;\;\;\;\;\;\;\;316$$
This can be explained qualitatively: the energy gap between the ground electronic state and the first excited electronic state of a typical molecule is very large, which results in the molecule occupying only the electronic ground state, which has zero energy.
At higher temperatures, the mean electronic energy increases as excited electronic states become thermally accessible. However, this regime is often not reached before the molecule dissociates