Skip to main content
Chemistry LibreTexts

7.5: Thermodynamic quantities in terms of g(r)

  • Page ID
    5241
  • \( \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}}\)

    In the canonical ensemble, the average energy is given by

    \[E = - {\partial \over \partial \beta} \ln Q (N, V, \beta ) \nonumber \]

    \[ \ln Q (N, V, \beta ) = \ln Z_N - 3N \ln \lambda (\beta ) - \ln N ! \nonumber \]

    Therefore,

    \[ E = {3N \over \lambda}{\partial \lambda \over \partial \beta } - {1 \over Z_N}{\partial Z_N \over \partial \beta } \nonumber \]

    Since

    \[ \lambda = \left [ {\beta h^2 \over 2 \pi m } \right ] ^{1/2} \nonumber \]

    \[ {\partial \lambda \over \partial \beta } = {1 \over 2 \beta } \lambda \nonumber \]

    Thus,

    \[ E = {3 \over 2} NkT + {1 \over Z_N} \int dr_1 \cdots dr_N U(r_1, \cdots , r_N ) e^{\beta U(r_1, \cdots , r_N)} \nonumber \]

    \[ = {3 \over 2} NkT + \langle U \rangle \nonumber \]

    In order to compute the average energy, therefore, one needs to be able to compute the average of the potential \(\langle U \rangle \). In general, this is a nontrivial task, however, let us work out the average for the case of a pairwise-additive potential of the form

    \[ U (r_1, \cdots , r_N ) = {1 \over 2} \sum _{i, j, i \ne j } u(|r_i - r_j|) \equiv U_{pair} (r_1, \cdots , r_N) \nonumber \]

    i.e., U is a sum of terms that depend only the distance between two particles at a time. This form turns out to be an excellent approximation in many cases. U therefore contains N(N-1) total terms, and \(\langle U \rangle \) becomes

    \[ \langle U \rangle = {1 \over 2Z_N} \sum _{i,j, i \ne j} \int dr_1 \cdots dr_N u (|r_i - r_j|)e^{-\beta U_{pair} (r_1, \cdots, r_N)} \nonumber \]

    \[ = {N (N - 1) \over 2Z_N} \int dr_1 \cdots dr_N u (|r_1 - r_2|)e^{-\beta U_{pair} (r_1, \cdots, r_N)} \nonumber \]

    The second line follows from the fact that all terms in the first line are the exact same integral, just with the labels changed. Thus,

    \[ \langle U \rangle = {1 \over 2} \int dr_1 dr_2 u (|r_1 - r_2|) \left [ {N (N - 1) \over Z_N} \int dr_3 \cdots dr_N e^{-\beta U_{pair} (r_1, \cdots, r_N)}\right ] \nonumber \]

    \[ = {1 \over 2 } \int dr_1dr_2 u(|r_1 - r_2|)\rho^{(2)} (r_1, r_2 ) \nonumber \]

    \[ = {N^2 \over 2V^2} \int \int dr_1dr_2 u(|r_1 - r_2|)p^{(2)} (r_1, r_2 ) \nonumber \]

    Once again, we change variables to \(r = r_1 - r_2 \) and \(R = {(r_1 + r_2) \over 2}\). Thus, we find that

    \[ \langle U \rangle = {N^2 \over 2V^2} \int drdRu (r)\tilde {g}^{(2)} (r, R) \nonumber \]

    \[ = {N^2 \over 2V^2} \int dru (r) \int dR\tilde {g}^{(2)} (r, R) \nonumber \]

    \[ = {N^2 \over 2V^2} \int dru (r) \tilde {g} (r) \nonumber \]

    \[ = {N^2 \over 2V^2} \int _0^{\infty} dr4 \pi r^2 u (r) g(r) \nonumber \]

    Therefore, the average energy becomes

    \[ E = {3 \over 2} NkT + {N \over 2} 4\pi \rho \int _0^{\infty} drr^2 u(r) g(r) \nonumber \]

    Thus, we have an expression for E in terms of a simple integral over the pair potential form and the radial distribution function. It also makes explicit the deviation from "ideal gas'' behavior, where E=3NkT/2.

    By a similar procedure, we can develop an equation for the pressure P in terms of g(r). Recall that the pressure is given by

    \[ P = {1 \over \beta } {\partial \ln Q \over \partial V} \nonumber \]

    \[ = {1 \over \beta Z_N}{\partial Z_N \over \partial \beta } \nonumber \]

    The volume dependence can be made explicit by changing variables of integration in \(Z_N \) to

    \[ s_i = V^{-1/3} r_i \nonumber \]

    Using these variables, \(Z_N\) becomes

    \[ Z_N = V^N \int ds_1 \cdots ds_N e^{-\beta U(V^{1/R}_1, \cdots, V^{1/R}_N)} \nonumber \]

    Carrying out the volume derivative gives

    \[ \begin{align*} \dfrac{\partial Z_N}{\partial V} &= {N \over V} Z_N - \beta V^N \int ds_1 \cdots ds_N {1 \over 3V} \sum _{i=1}^N r_i \cdot {\partial U \over \partial r_i} e^{-\beta U (V^{1/R}_1, \cdots, V^{1/R}_N)} \\[4pt] &= {N \over V} Z_N + \beta \int dr_1 \cdots dr_N {1 \over 3V} \sum _{i=1} r_i \cdot F_i e^{-\beta U (r_1, \cdots, r_N)} \\[4pt] &= ds_1 \cdots ds_N {1 \over 3V} \sum _{i=1}^N r_i \cdot ds_1 \cdots ds_N {1 \over 3V} \sum _{i=1}^N r_i \cdot ds_1 \cdots ds_N {1 \over 3V} \sum _{i=1}^N r_i \cdo \end{align*}\]

    Thus,

    \[{1 \over Z_N}{\partial Z_N \over \partial V} = {N\over V} + {\beta \over 3V} \left < \sum _{i=1}^N r_i \cdot F_i \right > \nonumber \]

    Let us consider, once again, a pair potential. We showed in an earlier lecture that

    \[ \sum _{i=1}^N r_i \cdot F_i = \sum _{i=1} \sum _{j=1, j\ne i}^N r_i \cdot F_{ij} \nonumber \]

    where \(F_{ij}\) is the force on particle i due to particle j. By interchaning the i and j summations in the above expression, we obtain

    \[\sum _{i=1}^N r_i \cdot F_i = {1 \over 2} \left [ \sum _{i,j,i\ne j} r_i \cdot F_{ij} + \sum _{i,j,i\ne j} r_j \cdot F_{ij} \right ] \nonumber \]

    However, by Newton's third law, the force on particle i due to particle j is equal and opposite to the force on particle j due to particle i:

    \[ F_{ij} = - F_{ji} \nonumber \]

    Thus,

    \[ \sum_{i=1}^N r_i \cdot F_i = {1 \over 2} \left [ \sum _{i,j,i\ne j} r_i \cdot F_{ij} - \sum _{i,j,i\ne j} r_j \cdot F_{ij} \right ] = {1 \over 2} \sum _{i,j,i\ne j} (r_i - r_j ) \cdot F_{ij} \equiv {1 \over 2} \sum _{i,j,i\ne j} r_{ij} \cdot F_{ij} \nonumber \]

    The ensemble average of this quantity is

    \[ {\beta \over 3V} \left < \sum _{i=1}^N r_i \cdot F_i \right > = {\beta \over 6V} \left < \sum _{i, j, i \ne j} r_{ij} \cdot F_{ij} \right > = {\beta \over 6VZ_N } \int dr_1 \cdots dr_N \sum _{i, j , i \ne j} r_{ij} \cdot F_{ij} e^{-\beta U_{pair} (r_1, \cdots, r_N)} \nonumber \]

    As before, all integrals are exactly the same, so that

    \[ {\beta \over 3V} \left < \sum _{i=1}^N r_i \cdot F_i \right > = {\beta N (N - 1) \over 6V Z_N} \int d_1 \cdot r_N r_{12} \cdot F_{12} e^{-\beta U_{pair} (r_1, \cdots, r_N)} \nonumber \]

    \[ = {\beta \over 6V} \int dr_1 dr_2 r_{12} \cdot F_{12} \left [ {N (N - 1) \over Z_N } \int dr_3 \cdots dr_N e^{-\beta U_{pair} (r_1, \cdots, r_N)} \right ] \nonumber \]

    \[ = {\beta \over 6V} \int dr_1 dr_2 r_{12} \cdot F_{12} \rho^{(2)} (r_1, r_2) \nonumber \]

    \[ = {\beta N^2 \over 6V^3 } \int dr_1 dr_2 r_{12} \cdot F_{12}g^{(2)} (r_1, r_2) \nonumber \]

    Then, for a pair potential, we have

    \[ F_{12} = - {\partial U_{pair} \over \partial r_{12} } = - u' (| r_1 - r_2|) {(r_1 - r_2) \over |r_1 - r_2| } = -u' (r_{12}) {r_{12} \over r_{12} } \nonumber \]

    where u'(r) = du/dr, and \(r_{12} = |r_{12}| \). Substituting this into the ensemble average gives

    \[ {\beta \over 3V} \left < \sum _{i=1}^N r_i \cdot F_i \right > = - {\beta N^2 \over 6V^3} \int dr_1 dr_2 u' (r_{12} ) r_{12} g^{(2)} (r_1, r_2) \nonumber \]

    As in the case of the average energy, we change variables at this point to \(r = r_1 - r_2 \) and \(R = {(r_1 + r_2 ) \over 2} \). This gives

    \[ {\beta \over 3V } \left < \sum _{i=1}^N r_i \cdot F_i \right > = - {\beta N^2 \over 6V^3} \int dr dR u^t (r) r \tilde {g} ^{(2)} (r, R) \nonumber \]

    \[ = - {\beta N^2 \over 6V^2 } \int dr u^t (r) r \tilde {g} (r) \nonumber \]

    \[ = - {\beta N^2 \over 6V^2 } \int _0^{\infty} dr 4 \pi r^3 u^t (r) g (r) \nonumber \]

    Therefore, the pressure becomes

    \[ {P \over kT } = \rho - {\rho ^2 \over 6kT } \int _0^{\infty} dr 4 \pi r^3 u^t (r) g(r) \nonumber \]

    which again gives a simple expression for the pressure in terms only of the derivative of the pair potential form and the radial distribution function. It also shows explicitly how the equation of state differs from the that of the ideal gas \({P \over kT } = \rho \).

    From the definition of g(r) it can be seen that it depends on the density \(\rho \) and temperature T: \(g (r) = g (r; \rho , T ) \). Note, however, that the equation of state, derived above, has the general form

    \[ {P \over kT } = \rho + B \rho ^2 \nonumber \]

    which looks like the first few terms in an expansion about ideal gas behavior. This suggests that it may be possible to develop a general expansion in all powers of the density \(\rho \) about ideal gas behavior. Consider representing \(g (r; \rho, T ) \) as such a power series:

    \[ g (r; \rho , T) = \sum _{j=0}^{\infty} \rho ^j g_j (r; T) \nonumber \]

    Substituting this into the equation of state derived above, we obtain

    \[ {P \over kT } = \rho + \sum _{j=0}^{\infty} B_{j+2} (T) \rho ^{j+2} \nonumber \]

    This is known as the virial equation of state, and the coefficients \(B_{j+2} (T) \) are given by

    \[ B_{j+2}(T) = - {1 \over 6kT} \int _0^{\infty} dr 4\pi r^3 u^t (r) g_j (r; T) \nonumber \]

    are known as the virial coefficients. The coefficient \(B_2 (T) \) is of particular interest, as it gives the leading order deviation from ideal gas behavior. It is known as the second virial coefficient. In the low density limit, \(g (r; \rho , T) \approx g_0 (r; T) \) and \(B_2 (T) \) is directly related to the radial distribution function.


    This page titled 7.5: Thermodynamic quantities in terms of g(r) is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Mark Tuckerman.