Let a molecule be considered as a small system in thermal equilibrium with a heat reservoir at temperature \(T\). According to the canonical ensemble, the probability that the molecule occupies the \(i\)-th energy state having energy \(\varepsilon_i\) is given by the Boltzmann distribution:
where \[ \beta = \frac{1}{k_BT}, \] \(k_B\) is the Boltzmann constant and \(T\) is the absolute temperature.
The average energy of a molecule is given by
Substituting Eq. (1), we obtain
Partition Function
The canonical partition function is defined as
Differentiating Eq. (3) with respect to \(\beta\), we get
Using Eqs. (3) and (4) in Eq. (2),
or, equivalently,
Translational Partition Function of a Monatomic Ideal Gas
The classical translational partition function for one molecule in a volume \(V\) is
Taking the logarithm of the partition function,
Differentiating with respect to \(\beta\),
Substituting this result into Eq. (5),
Since
Average energy of a monatomic ideal gas molecule
\[ \boxed{\bar{\varepsilon}=\frac{3}{2}k_BT} \]
Thus, the average energy of a monatomic ideal gas molecule depends only on the absolute temperature and is independent of the volume of the container.
Total Energy of the Gas
If the gas contains \(N\) molecules, the total internal energy is
Substituting the average energy per molecule,
Using \(N=nN_A\) and \(R=N_Ak_B\), the equation can also be written as
This result is valid for a classical monatomic ideal gas, in which intermolecular potential energy is neglected.
Average Energy of a Polyatomic Ideal Gas
An ideal gas may also be polyatomic, such as \(\mathrm{O_2}\), \(\mathrm{N_2}\), \(\mathrm{CH_4}\), or \(\mathrm{Cl_2}\), in which two or more atoms are present in a molecule.
A polyatomic molecule can possess translational, rotational, vibrational, and electronic energy. The total average energy per molecule may be written as
The translational contribution is the same as that of a monatomic ideal gas:
The remaining contributions arise from molecular rotation, vibration, and electronic excitation. At ordinary temperatures, electronic excitation is usually negligible, and vibrational modes may not be fully excited. Consequently, the total energy depends on the degrees of freedom that are thermally accessible.
According to the classical equipartition theorem, if a molecule has \(f\) active quadratic degrees of freedom, its average energy is
Therefore, the average energy of a polyatomic ideal gas depends on temperature and on the number of active degrees of freedom.