# 3.4: Deriving the Boltzmann Equation II

In Section 20-9, we find that the probability of the population set $$\{N_1,\ N_2,\dots ,N_i,\dots \}$$ in an isolated system is

${\rho }_{MS,N,E} = N!\prod^{\infty }_{i=1}{\frac{g^{N_i}_i}{N_i!}}$

The thermodynamic probability

$W\left(N_i,g_i\right)=N!\prod^{\infty }_{i=1}{\frac{g^{N_i}_i}{N_i!}}$

is the number of microstates of the population set. $$\rho_{MS,N,E}$$ is the constant probability of any one microstate. In consequence, as we see in Section 20.10, the probability of a population set is proportional to its thermodynamic probability, $$W\left(N_i,g_i\right)$$. It follows that the most probable population set is that for which $$W\left(N_i,g_i\right)$$ is a maximum. Our microscopic model asserts that the most probable population set, $$\{N^{\textrm{⦁}}_1,\ N^{\textrm{⦁}}_2,\dots ,N^{\textrm{⦁}}_i,\dots \}$$, characterizes the equilibrium state, because the equilibrium system always occupies the either the most probable population set or another population set whose macroscopic properties are indistinguishable from those of the most probable one.

Evidently, the equilibrium-characterizing population set is the one for which $$W\left(N_i,g_i\right)$$, or $${ \ln W\left(N_i,g_i\right)\ }$$, is a maximum. Let us assume that the $$N_i$$ are very large so that we can treat them as continuous variables, and we can use Stirling’s approximation for $$N_i!$$. Then we can use Lagrange’s method of undetermined multipliers to find the most probable population set by finding the set, $$N_1,\ N_2,\dots ,N_i,\dots$$, for which $$\ln W\left(N_i,g_i\right)$$ is a maximum, subject to the constraints

$N=\sum^{\infty }_{i=1}{N_i}$

and

$E=\sum^{\infty }_{i=1}{N_i}{\epsilon }_i.$

From our definition of the system, both $$N$$ and $$E$$ are constant. The mnemonic function is

\begin{align*} F_{mn} &={ \ln \left(\frac{N!g^{N_1}_1g^{N_2}_2\dots g^{N_i}_i\dots }{N_1!N_2!\dots N_i!\dots }\right)\ }+\alpha \left(N-\sum^{\infty }_{i=1}{N_i}\right)+\beta \left(E-\sum^{\infty }_{i=1}{N_i{\epsilon }_i}\right) \\[4pt] &\approx N{ \ln N-N-\sum^{\infty }_{i=1}{N_i{ \ln N_i\ }}\ }+\sum^{\infty }_{i=1}{N_i}+\sum^{\infty }_{i=1}{N_i}{ \ln g_i\ }+\alpha \left(N-\sum^{\infty }_{i=1}{N_i}\right)+\beta \left(E-\sum^{\infty }_{i=1}{N_i{\epsilon }_i}\right) \end{align*}

Taking the partial derivative with respect to $$N_i$$ gives

$\frac{\partial F_{mn}}{\partial N_i}=-N_i\left(\frac{1}{N_1}\right)-{ \ln N_i\ }+1+{ \ln g_i\ }-\alpha -\beta {\epsilon }_i=-{ \ln N_i\ }+{ \ln g_i\ }-\alpha -\beta {\epsilon }_i$

from which we have, for the population set with the largest possible thermodynamic probability,

$-{ \ln N^{\textrm{⦁}}_i\ }+{ \ln g_i\ }-\alpha -\beta {\epsilon }_i=0$ or $N^{\textrm{⦁}}_i=g_i{\mathrm{exp} \left(-\alpha \right)\ }{\mathrm{exp} \left(-\beta {\epsilon }_i\right)\ }$

We can again make use of the constraint on the total number of molecules to find $${\mathrm{exp} \left(-\alpha \right)\ }$$:

$N=\sum^{\infty }_{i=1}{N^{\textrm{⦁}}_i}={\mathrm{exp} \left(-\alpha \right)\ }\sum^{\infty }_{i=1}{g_i{\mathrm{exp} \left(-\beta {\epsilon }_i\right)\ }}$

so that $${\mathrm{exp} \left(-\alpha \right)\ }=Nz^{-1}$$, where $$z$$ is the partition function, $$z=\sum^{\infty }_{i=1}{g_i{\mathrm{exp} \left(-\beta {\epsilon }_i\right)\ }}$$. Therefore, in the most probable population set, the number of molecules having energy $${\epsilon }_i$$ is

$N^{\textrm{⦁}}_i=Nz^{-1}g_i{\mathrm{exp} \left(-\beta {\epsilon }_i\right)\ }$

The fraction with this energy is

$\dfrac{N^{\textrm{⦁}}_i}{N}=z^{-1}g_i{\mathrm{exp} \left(-\beta {\epsilon }_i\right)\ }$

This fraction is also the probability of finding an arbitrary molecule in one of the quantum states whose energy is $${\epsilon }_i$$. When the isolated system and the corresponding constant-temperature system are functionally equivalent, this probability is $$P_i$$. As in the two previous analyses, we have

\begin{align*} P_i &=g_i\rho \left({\epsilon }_i\right) \\[4pt] &=z^{-1}g_i\ \mathrm{exp}\left(-\beta {\epsilon }_i\right). \end{align*}

This derivation of Boltzmann’s equation from $$W_{max}$$ is the most common introductory treatment. It relies on the assumption that all of the $$N_i$$ are large enough to justify treating them as continuous variables. This assumption proves to be invalid for many important systems. (For ideal gases, we find that $$N_i=0$$ or $$N_i=1$$ for nearly all of the very large number of energy levels that are available to a given molecule.) Nevertheless, the result obtained is clearly correct; not only is it the same as the result of our two previous arguments, but also it leads to satisfactory agreement between microscopic models and the macroscopic properties of a wide variety of systems.