Fiveable

๐ŸฅตThermodynamics Unit 15 Review

QR code for Thermodynamics practice questions

15.2 Partition functions and thermodynamic properties

15.2 Partition functions and thermodynamic properties

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025
๐ŸฅตThermodynamics
Unit & Topic Study Guides

Partition Functions and Thermodynamic Properties

The partition function is the central quantity in statistical mechanics. Once you know it for a system, you can derive virtually every equilibrium thermodynamic property from it. This section covers how partition functions are defined, how to calculate them for simple systems, and how to extract quantities like internal energy, entropy, and free energy from them.

Partition function in statistical mechanics

The partition function, denoted ZZ, is defined as a sum over all possible states of a system, each weighted by its Boltzmann factor:

Z=โˆ‘ieโˆ’Ei/kTZ = \sum_i e^{-E_i / kT}

  • EiE_i is the energy of microstate ii
  • kk is the Boltzmann constant
  • TT is the absolute temperature

Each term in the sum represents the relative statistical weight of a particular state. States with lower energy contribute more to ZZ at a given temperature, while high-energy states are exponentially suppressed. At very high temperatures, many states contribute significantly; at low temperatures, only the lowest-energy states matter.

The reason ZZ is so powerful is that it encodes all the statistical information about the system. Every equilibrium thermodynamic quantity can be written as a derivative or simple function of ZZ (or lnโกZ\ln Z). It's the bridge between the microscopic picture (a list of energy levels) and the macroscopic properties you measure in the lab.

Partition function and thermodynamic properties

Once you have ZZ, you extract thermodynamic quantities through these key relationships. It's common to use the shorthand ฮฒ=1kT\beta = \frac{1}{kT}.

  • Internal energy UU:

U=โˆ’โˆ‚lnโกZโˆ‚ฮฒU = -\frac{\partial \ln Z}{\partial \beta}

This gives the average energy of the system. The derivative picks out the mean of the energy distribution encoded in ZZ.

  • Helmholtz free energy FF:

F=โˆ’kTlnโกZF = -kT \ln Z

This is the most direct connection. FF tells you the maximum useful work extractable from the system at constant temperature and volume. Many textbooks start here and derive the other quantities from FF.

  • Entropy SS:

S=klnโกZ+kTโˆ‚lnโกZโˆ‚TS = k \ln Z + kT \frac{\partial \ln Z}{\partial T}

You can also get this from S=โˆ’(โˆ‚Fโˆ‚T)VS = -\left(\frac{\partial F}{\partial T}\right)_V, which is equivalent. Entropy quantifies the spread of probability across microstates.

These three formulas are worth memorizing. Every problem in this unit ultimately comes back to them.

Partition function in statistical mechanics, Entropy and the Second Law of Thermodynamics: Disorder and the Unavailability of Energy | Physics

Partition function calculations for simple systems

Two-level system (e.g., spin-1/2 in a magnetic field)

This is the simplest nontrivial system: just two energy levels separated by a gap ฮ”E\Delta E.

  • Energy levels: E0=โˆ’12ฮ”EE_0 = -\frac{1}{2}\Delta E and E1=+12ฮ”EE_1 = +\frac{1}{2}\Delta E
  • The partition function is just the sum of two Boltzmann factors:

Z=e12ฮฒฮ”E+eโˆ’12ฮฒฮ”E=2coshโก(12ฮฒฮ”E)Z = e^{\frac{1}{2}\beta \Delta E} + e^{-\frac{1}{2}\beta \Delta E} = 2\cosh\left(\frac{1}{2}\beta \Delta E\right)

At low temperature (kTโ‰ชฮ”EkT \ll \Delta E), the system sits almost entirely in the ground state and Zโ†’e12ฮฒฮ”EZ \to e^{\frac{1}{2}\beta \Delta E}. At high temperature (kTโ‰ซฮ”EkT \gg \Delta E), both states are equally populated and Zโ†’2Z \to 2.

Quantum harmonic oscillator

  • Energy levels: En=(n+12)โ„ฯ‰E_n = \left(n + \frac{1}{2}\right)\hbar\omega, where n=0,1,2,โ€ฆn = 0, 1, 2, \ldots
  • The partition function is an infinite geometric series:

Z=โˆ‘n=0โˆžeโˆ’ฮฒ(n+12)โ„ฯ‰=eโˆ’12ฮฒโ„ฯ‰โˆ‘n=0โˆž(eโˆ’ฮฒโ„ฯ‰)n=eโˆ’12ฮฒโ„ฯ‰1โˆ’eโˆ’ฮฒโ„ฯ‰Z = \sum_{n=0}^{\infty} e^{-\beta(n + \frac{1}{2})\hbar\omega} = e^{-\frac{1}{2}\beta\hbar\omega} \sum_{n=0}^{\infty} \left(e^{-\beta\hbar\omega}\right)^n = \frac{e^{-\frac{1}{2}\beta\hbar\omega}}{1 - e^{-\beta\hbar\omega}}

The key step is recognizing the geometric series โˆ‘n=0โˆžxn=11โˆ’x\sum_{n=0}^{\infty} x^n = \frac{1}{1-x} for x=eโˆ’ฮฒโ„ฯ‰<1x = e^{-\beta\hbar\omega} < 1. This closed-form result makes all subsequent derivatives straightforward.

Thermodynamic properties from partition functions

Here's how the general formulas play out for the two-level system. This is a good model problem to practice on.

Starting from Z=2coshโก(12ฮฒฮ”E)Z = 2\cosh\left(\frac{1}{2}\beta \Delta E\right):

  1. Internal energy: Take U=โˆ’โˆ‚lnโกZโˆ‚ฮฒU = -\frac{\partial \ln Z}{\partial \beta}

U=โˆ’ฮ”E2tanhโก(12ฮฒฮ”E)U = -\frac{\Delta E}{2}\tanh\left(\frac{1}{2}\beta \Delta E\right)

At low TT, Uโ†’โˆ’ฮ”E2U \to -\frac{\Delta E}{2} (the system is in the ground state). At high TT, tanhโกโ†’0\tanh \to 0 and Uโ†’0U \to 0 (equal population of both levels, so the average energy sits at the midpoint).

  1. Helmholtz free energy: Apply F=โˆ’kTlnโกZF = -kT \ln Z directly.

F=โˆ’kTlnโก(2coshโก(12ฮฒฮ”E))F = -kT \ln\left(2\cosh\left(\frac{1}{2}\beta \Delta E\right)\right)

  1. Entropy: Use S=Uโˆ’FTS = \frac{U - F}{T} or the derivative formula.

S=klnโก(2coshโก(12ฮฒฮ”E))โˆ’kฮฒฮ”E2tanhโก(12ฮฒฮ”E)S = k\ln\left(2\cosh\left(\frac{1}{2}\beta \Delta E\right)\right) - \frac{k\beta \Delta E}{2}\tanh\left(\frac{1}{2}\beta \Delta E\right)

At low TT, Sโ†’0S \to 0 (only one state occupied, consistent with the third law). At high TT, Sโ†’klnโก2S \to k\ln 2 (both states equally likely, maximum disorder for a two-state system).

The same procedure works for any system. Once you have ZZ in closed form, take the appropriate derivatives. For the harmonic oscillator, the algebra is a bit longer but the steps are identical: compute lnโกZ\ln Z, differentiate with respect to ฮฒ\beta or TT, and simplify. The physical interpretation at the limiting temperatures is always a good check on your answer.