# Statistical mechanics

Statistical Mechanics is the application of statistics, which includes mathematical tools for dealing with large populations, to the field of Mechanics, which is concerned with the motion of particles or objects when subjected to a force. It provides a framework for relating the microscopic properties of individual atoms and molecules to the macroscopic or bulk properties of materials that can be observed in every day life, therefore explaining thermodynamics as a natural result of statistics and mechanics (classical and quantum). In particular, it can be used to calculate the thermodynamic properties of bulk materials from the spectroscopic data of individual molecules.

At the heart of Statistical Mechanics is the partition function (see Derivation of the partition function):

Q = ∑ exp(-Ei/kT) (1)

Where k is Boltzmann's constant, T is the temperature and Ei reflects each possible energetic state of the system. The partition function provides a measure of the total number of energetic states available to the system at a given temperature. Similarly,

exp(-Ei/kt) (2)

provides a measure of the number of energetic states of a particular energy that are likely to be occupied at a given temperautre.

Dividing Equation 2 by Equation 1 gives the probability of finding the system in a particular energetic state, i:

pi = exp(-Ei/kT)/Q (3)

This probability can be used to find the average value, which corresponds to the macroscopic value, of any property, J, that depends on the energetic state of the system by using the formula:

<J> = ∑piJi = ∑Jiexp(-Ei/kT)/Q (4)

Where <J> is the average value of property J.

Equation 4 can be applied to the internal energy, U, and pressure, P:

U = ∑Eiexp(-Ei/kT)/Q (5)

P = ∑Piexp(-Ei/kT)/Q (6)

Subsequently, Equations 5 and 6 can be combined with known thermodynamic relationships between U and P to arrive at an expression for P in terms of only temperature, volume and the partition function. Similar relationships in terms of the partition function can be derived for other thermodynamic properties as shown in the following table.

 Table 1 Helmholtz free energy: A = -kT ln Q Internal Energy: U = kT2(dlnQ/dT)N,V Pressure: P = kT(dlnQ/dV)N,T Entropy: S = klnQ + U/T Gibbs free energy: G = -kT ln Q + kTV(dlnQ/dV)N,T Enthalpy: H = U + PV Constant Volume Heat Capacity: CV = (dU/dT)N,V Constant Pressure Heat Capacity: CP = (dH/dT)N,P Chemical Potential: μi = -kT(dlnQ/dNi)T,V,N

It is often useful to consider the energy of a given molecule to be distributed among a number of modes. For example, translational energy refers to that portion of energy associated with the motion of the center of mass of the molecule. Configurational energy refers to that portion of energy associated with the various attractive and repulsive forces between molecules in a system. The other modes are all considered to be internal to each molecule. They include rotational, vibrational, electronic and nuclear modes. If we assume that each mode is independent the total energy can be expressed as the sum of each of the components:

E = Et + Ec + En + Ee + Er + Ev (2)

Where the subscripts t, c, n, e, r, and v correspond to translational, configurational, nuclear, electronic, rotational and vibrational modes, respectively. The relationship in Equation 2 can be substituted into Equation 1 to give:

Q = ∑ exp(-(Eti+Eti+Eci+Eni+Eei+Eri+Evi) /kT)

```= ∑ exp(-Eti/kT)*exp(-Eci/KT)*exp(-Eni/kT)*exp(-Eei/kT)*exp(-Eri/kT)*exp(-Evi/kT)
```
```= QtQcQnQeQrQv
```

Thus a partition function can be defined for each mode. Simple expressions have been derived relating each of the various modes to various measurable molecular properties, such as the characteristic rotational or vibrational frequencies.

Expressions for the various molecular partition functions are shown in Table 2:

 Table 2 Nuclear Qn = 1 (T<108 K) Electronic Qe = W0exp(kT De + W1exp(-θe1/T) + ... vibrational Qv = ∏exp(-θvj/2T)/(1-exp(-θvj/T)) rotational (linear) Qr = T/σθr rotational (non-linear) Qr = √π/σ*(T3/(θAθBθC)1/2 Translational Qt = (2πmkT)3/2/h3 Configurational (ideal gas) Qc = V

The equations in Table 2 can be combined with those in Table 1 to determine the contribution of a particular energy mode to a thermodynamic property. For example the "rotational pressure" could be determined in this manner. The total pressure could be found by summing the pressure contributions from all of the individual modes, ie:

P = Pt + Pc + Pn + Pe + Pr + Pv