Derivation of the partition function

From Academic Kids

The partition function provides a link between the microscopic properties of atoms and molecules (e.g. size, shape and characteristic energy levels) and the bulk thermodynamic properties of matter. In order to understand the partition function, how it can be derived, and why it works, it is important to recognize that these bulk thermodynamic properties reflect the average behavior of the atoms and molecules. For example, the pressure of a gas is really just the average force per unit area exerted by its particles as they collide with the container walls. It doesn't matter which particular particles strike the wall at any given time or even the force with which a given particle strikes the wall. In addition it is not necessary to consider the fluctuations in pressure as different numbers of particles hit the walls, since the magnitude of these fluctuations is likely to be extremely small. Only the average force produced by all the particles over time is important in determining the pressure. Similarly for other properties, it is the average behavior that is important. The partition function provides a way to determine the most likely average behavior of atoms and molecules given information about the microscopic properties of the material.

In order to derive the partition function, consider a system composed of N molecules. Although the system has a constant total energy of E, the energy may be distributed among the molecules in any number of ways. As molecules interact, the energy is continually redistributed. Not only is energy exchanged between molecules, but between the various modes of motion (e.g. rotation, vibration, etc...). Instead of attempting to determine the energy of each individual molecule at every instant in time, we instead focus on the population of each energetic state. In other words, we would like to determine on average how many molecules, ni, are in a particular energetic state, Ei. Over time the population of each state remains almost constant, although the individual molecules in each state may change at every collision.

In order to proceed we assume the ergodic hypothesis. This means that we assume that all states corresponding to a given energy are equally probable. (If there are other conserved quantities like particle number, this assumption becomes all states corresponding to a given energy and particle number/charge, and a similar derivation would lead to chemical potentials, electric potentials and the like) For example, vibrational states of a given energy are just as likely to be populated as rotational or electronic states of the same energy. We also assume that the molecules are independent in the sense that the total energy of the system is equal to the sum of the energies of each individual particle.

At any instant there will be n0 molecules in the state with energy E0, n1 with E1, and so on. The complete specification of populations n0, n1,... for each energy state gives the instantaneous configuration of the system. For convenience we may write a particular configuration as {n0, n1,...}. We'll also take E0 to correspond to the lowest energy level or the ground state.

A large number of configurations are possible. For instance one possible configuration is {N,0,0,...} with all of the molecules in the ground state, E0. Another possible configuration could be {N-1,1,0,...}, where one of the molecules is in the excited state, E1. Of these two configurations, the second is much more likely, since any of the N molecules could be in the excited state resulting in a total of N possible arrangements of molecules. On the other hand there is only one possible way to get the first configuration, since all of the molecules must be in the ground state. If the system were free to fluctuate between these two states, we would expect to find it most frequently in the second state, especially for large values of N. Since the system would most often be found in the second state, we would also expect the characteristics of the system to be dominated by the characteristics of that state.

The number of arrangements, W, corresponding to a given configuration {n0, n1,...} is given by:

<math>W = \frac{N!}{n_0 !n_1 !n_2 !...}\qquad\qquad\qquad(1)<math>

This expression comes from combinatorics (and is applied in probability theory) and corresponds to the number of distinguishable ways N objects can be sorted into bins with ni objects in bin i.

When working with large numbers it is often convenient to work with ln(W) instead of W itself. For this case:

<math>\begin{matrix}\ln W

&=& \ln \frac{N!}{n_0 !n_1 !n_2 !...} \ \qquad\qquad\qquad \\ \\ \ &=& \ \ln N! - \ln(n_0 !n_1 !n_2 !...) \ \qquad\qquad \\ \\ \ &=& \ \ln N! - \sum_{i=0}^m \ln n_i! \ \qquad\qquad(2)\end{matrix}<math>

Applying Stirling's approximation,

<math>\ln n! \approx n\ln n - n<math>

and the fact that

<math>N = \sum n_i<math>

gives

<math>\begin{matrix}\ln W

&=& \ N \ln N - N - \sum (n_i \ln n_i - n_i) \ \qquad\qquad \\ \\ \ &=& \ N \ln N - \sum (n_i \ln n_i) \ \qquad\qquad(3)\end{matrix}<math>

We showed previously that the configuration {N-1,1,0...} dominates {N,0,0,...} because there are more ways to obtain it. We would expect there to be other configurations that dominate both of these. In fact we would expect the configuration with the largest value of W to dominate all other configurations. We can find this dominant configuration by finding the maximum of the function W with respect to ni. We know that when W is a maximum then ln(W) is also a maximum, so for convenience we will instead try to find the maximum of ln(W).

One way to find the maximum of ln(W) is to solve the equation:

<math> \frac{\partial \ln(W)}{\partial n_i} = 0\qquad\qquad\qquad(4)<math>

However, Equation (4) applies to the situation in which any arbitrary configuration {n0, n1,...} is possible. In reality there are a few constraints on the system that must be accounted for. First, since the total number of molecules is fixed at N, not all values of ni can be arbitrary. Instead only configurations in which:

<math>N = \sum n_i\qquad\qquad\qquad(5)<math>

are possible. Also, the total energy of the system is fixed at E. Therefore, since the total energy is the sum of the energies of all the individual molecules:

<math>E = \sum n_i E_i\qquad\qquad\qquad(6)<math>

We can find the maximum of ln(W) subject to the constraints on N and E expressed in equations (5) and (6) using the method of Lagrange multipliers as follows. First, we must rearrange the constraint equations as:

<math>N - \sum n_i = 0 \quad\mbox{and}\quad E - \sum n_i E_i = 0\qquad\qquad\qquad(7)<math>

Next, we create a new function by multiplying the constraints by the arbitrary constants -α' and β, and adding them to the original function, ln(W), to get:

<math>\begin{matrix}f(n_i)

&=& \ln(W) - \alpha'\left(N-\sum n_i\right)

          + \beta\left(E-\sum n_i E_i\right)\qquad\qquad\qquad \\ \\

&=& N \ln N - \sum n_i\ln n_i

           - \alpha'\left(N-\sum n_i\right) 
           + \beta\left(E-\sum n_i E_i\right)\qquad(8) \end{matrix}<math>

Taking the derivative of Equation (8) and setting the result to zero gives:

<math>\frac{\partial f(n_i)}{\partial n_i} = -\left(1 + \ln(n_i)\right) + \alpha' - \beta E_i = 0\qquad\qquad\qquad(9)<math>

We define a new parameter α = α' - 1, giving:

<math>-\ln\left(n_i\right) + \alpha - \beta E_i = 0<math>

Solving this for ni gives the most probable population of state Ei:

<math>n_i = \exp(\alpha - \beta E_i)\qquad\qquad\qquad(10)<math>

Finally, we must evaluate the constants α and β. Substituting Equation (10) back into Equation (5) and solving for exp(α) gives:

<math> N = \sum n_i = \exp(\alpha)\sum\exp(-\beta E_i)<math>
<math> \exp(\alpha)= \frac{N}{\sum\exp(-\beta E_i)}<math>

Changing the subscript to j and substituting this result back into Equation (10) gives the Maxwell-Boltzmann distribution:

<math>n_i = \frac{N \exp(-\beta E_i)}{\sum\exp(-\beta E_j)}\qquad\qquad\qquad(11)<math>

The Boltzmann distribution gives the most probable energy distribution of molecules in a system. It can further be shown that β = 1/kT, where k is Boltzmann's constant and T is the absolute temperature (given in kelvins). The term in the denominator is called the partition function and is defined as follows:

<math>Z = \sum_j \exp\left(\frac{-E_j}{kT}\right)<math>

The partition function provides a measure of the total number of energetic states that are accessible at a particular temperature and can be related to many different thermodynamic properties (see Statistical mechanics).

Canonical ensemble derivation

The previous derivation is too restricted. Because of its assumption of the independence of the molecules, it only really applies to ideal gases. In the following derivation, we assume the system is immersed in a "heat bath" environment with no transfer of matter across the boundary. The environment is assumed to be so much larger than the system that a huge influx of heat (energy) across the boundary in either direction would affect the system a lot but create very little of a change in its environment. Let's call the system S and the environment V, the energy of the system ES and the energy of the environment EV. The conservation of energy tells us E=ES+EV is conserved. Suppose the states of the system have energies Ei for the ith state. The corresponding case for a continuum of states is similar in argument. Because the environment is so huge, even if its energy spectrum is discrete, the spacing between its energy levels is so small that for all intents and purposes, we can treat it as a continuum. So, let W(EV) give the number of environmental states with energies between EV and EV+dE divided by dE. It's a general statistical observation that at least for tiny changes in energy (and because the environment is so huge, even what is considered an extremely, extremely huge energy transfer for the system, is still tiny for the environment) tends to vary exponentially with E. So, since the environment is so huge,

<math>\ln[W(E_V)] = \ln[W(E-E_S)]\approx \ln[W(E)]-E_S\left.{d \ln[W]\over dE'}\right|_{E'=E}<math>

as ES varies over the entire range of energies the system can take without having astronomically tiny probabilities.

So, essentially, assuming ergodicity, the probability of the system being in state i is proportional to

<math>W(E-E_i)<math>

which in turn is proportional to

<math>e^{-E_i\left.{d \ln[W]\over dE'}\right|_{E'=E}}<math>.

Let's call <math>\left.{d \ln[W]\over dE'}\right|_{E'=E}<math> β. Note that this is purely a property of the environment. Then,

<math>P_i\propto e^{-\beta E_i}<math>

Grand canonical ensemble derivation

Let's now assume both energy and matter can be exchanged with the once again very huge environment. Then, using the same arguments,

<math>\ln[W(E_V,N_V)]\approx \ln[W(E,N)]-E_S\left.{\partial \ln W\over \partial E}\right|_{E, N}-\sum_a N_a\left.{\partial \ln[W]\over \partial N_a}\right|_{E,N}<math>

assuming particle number is conserved (otherwise, we would have ergodicity with respect to particle number). Particle numbers are always integral, but it still turns out this approximation is always valid for cases of interest.

As before, call <math>\left.{\partial \ln W\over \partial E}\right|_{E, N}<math> β and <math>N_a\left.{\partial \ln[W]\over \partial N_a}\right|_{E,N}<math> -βμa (the chemical potential) and note these are solely the property of the environment.

<math>P_i\propto e^{-\beta\left(E_i-\sum_a \mu_a N_{ia}\right)}<math>.

Let's get back to the probability distribution of a molecule. As long as it doesn't interact too strongly with the other molecules (i.e. it's in a gas) we can assume the particle is a system and the rest of the gas is the reservoir. This leaves us with the same Boltzmann distribution. However, even for a nonideal gas, the energy is not simply the sum of the energy of the particle with the energy of the rest of the system because there are interaction terms, rendering the Boltzman distribution incorrect for the particle, even though it still continues to hold for the system as a whole.

Actually, the assumption of a very huge reservoir is often overkill as long as the number of molecules in the system is astronomical. It turns out for these systems, the number of states of the system at a given energy varies exponentially with energy and the number of particles. So, the range of values over which Pi has appreciable value is often much smaller than ES and NS by many orders of magnitude. So, oftentimes, a reservoir much smaller than the system can work.

Navigation

Academic Kids Menu

  • Art and Cultures
    • Art (http://www.academickids.com/encyclopedia/index.php/Art)
    • Architecture (http://www.academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (http://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (http://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools