PhysicsStatistical MechanicsUniversity
AQAAPOntarioNSWCBSEGCE O-LevelMoECAPS

Partition Function

Sum of states in a canonical ensemble.

Understand the formulaSee the free derivationOpen the full walkthrough

This public page keeps the free explanation visible and leaves premium worked solving, advanced walkthroughs, and saved study tools inside the app.

Core idea

Overview

The partition function is the central quantity in statistical mechanics, representing the sum over all possible microstates of a system weighted by their Boltzmann factors. It serves as the bridge between microscopic quantum states and macroscopic thermodynamic properties like internal energy and entropy.

When to use: Apply this formula when analyzing a system in thermal equilibrium with a heat bath at a constant temperature, known as the canonical ensemble. It is used to calculate the probability of finding a system in a specific state and to derive thermodynamic potentials.

Why it matters: This function is the 'generating function' of thermodynamics; knowing Z allows you to calculate every other thermodynamic variable for the system. It is fundamental in predicting the behavior of gases, the magnetism of materials, and the structural transitions of biological molecules.

Symbols

Variables

= Note

Note
Variable

Walkthrough

Derivation

Understanding the Partition Function

The partition function Z collects the statistical weight of all states and allows thermodynamic quantities to be derived.

  • The system is in the canonical ensemble (fixed N, V, T).
1

Sum Over All States:

Add the Boltzmann factors over all energy levels , with degeneracy counting how many states share the same energy.

2

Link to Thermodynamics:

The Helmholtz free energy can be obtained directly from the partition function, connecting microscopic states to macroscopic behaviour.

Result

Source: Statistical Mechanics — Pathria

Visual intuition

Graph

Graph unavailable for this formula.

The graph appears as a straight line with a slope of one because the output variable y is defined as the partition function Z itself. For a physics student, this linear relationship indicates that larger values of Z represent a system with a greater number of accessible microstates, while smaller values correspond to a more restricted set of states. The most important feature of this curve is that the direct proportionality means any change in the sum of states results in an identical change in the output.

Graph type: constant

Why it behaves this way

Intuition

Imagine a ladder of energy levels. At low temperatures, only the lowest rungs are significantly populated. As temperature rises, the population 'spreads' upwards, making higher rungs (energy states)

Partition function; sum over all accessible microstates
A measure of the total number of thermally accessible microstates a system can occupy. A larger Z means more ways for the system to distribute its energy among its states.
Energy of the i-th microstate
The specific energy value associated with a particular microscopic configuration of the system. States with higher are less likely to be occupied at a given temperature.
Boltzmann constant
A fundamental constant that converts temperature into energy units, establishing the energy scale for thermal fluctuations. It sets the 'strength' of thermal disorder.
Absolute temperature of the system
A measure of the average kinetic energy of the particles in the system. Higher T means more thermal energy is available, making higher energy states more accessible and contributing more to Z.
Boltzmann factor for state i
The probability weighting factor for a microstate with energy . It shows that states with lower energy are exponentially more probable than states with higher energy at a given temperature.

Signs and relationships

  • -E_i / k_B T: The negative sign in the exponent ensures that states with higher energy (larger ) have a smaller Boltzmann factor, meaning they are exponentially less probable to be occupied.
  • 1/T (in exponent): The inverse dependence on temperature means that as temperature increases, the exponent becomes less negative (closer to zero). This increases the Boltzmann factors for higher energy states, making them more accessible

Free study cues

Insight

Canonical usage

The partition function Z is a dimensionless quantity, representing a sum of relative probabilities or weighting factors for microstates in a canonical ensemble.

Common confusion

A common mistake is to overlook the requirement that the exponent ( / T) must be dimensionless. Incorrect units for , , or T will lead to an exponent with dimensions, which is physically nonsensical for an

Dimension note

The partition function Z is inherently dimensionless. This is because the exponent ( / T) must be dimensionless for the exponential function to be mathematically and physically meaningful.

Unit systems

J - Energy of the i-th microstate. Must be in consistent units with the product k_B T.
J K^-1 - Boltzmann constant. Its value is 1.380649 ×10^-23 J K^-1 in SI units.
K - Absolute temperature in Kelvin.
dimensionless - The partition function is a dimensionless quantity.

Ballpark figures

  • Quantity:

One free problem

Practice Problem

A physical system at 300 K has two non-degenerate energy levels: a ground state at 0 J and an excited state at 4.14 ×10⁻²¹ J. Using the Boltzmann constant kB = 1.38 × 10⁻²³ J/K, calculate the partition function Z.

Note1.367879

Solve for: out

Hint: Calculate the ratio of the excited state energy to the thermal energy kB ×T, then sum the Boltzmann factors for both states.

The full worked solution stays in the interactive walkthrough.

Where it shows up

Real-World Context

In magnetism in materials, Partition Function is used to calculate Concept-only from the measured values. The result matters because it helps predict motion, energy transfer, waves, fields, or circuit behaviour and check whether the answer is plausible.

Study smarter

Tips

  • Multiply the Boltzmann factor by the degeneracy if multiple states share the same energy.
  • Ensure energy and T are in the same units (e.g., Joules or eV).
  • For a ground state set at zero energy, the first term in the sum is always 1.
  • The partition function is always a dimensionless quantity.

Avoid these traps

Common Mistakes

  • Summing over particles instead of states.
  • Forgetting degeneracy factor.

Common questions

Frequently Asked Questions

The partition function Z collects the statistical weight of all states and allows thermodynamic quantities to be derived.

Apply this formula when analyzing a system in thermal equilibrium with a heat bath at a constant temperature, known as the canonical ensemble. It is used to calculate the probability of finding a system in a specific state and to derive thermodynamic potentials.

This function is the 'generating function' of thermodynamics; knowing Z allows you to calculate every other thermodynamic variable for the system. It is fundamental in predicting the behavior of gases, the magnetism of materials, and the structural transitions of biological molecules.

Summing over particles instead of states. Forgetting degeneracy factor.

In magnetism in materials, Partition Function is used to calculate Concept-only from the measured values. The result matters because it helps predict motion, energy transfer, waves, fields, or circuit behaviour and check whether the answer is plausible.

Multiply the Boltzmann factor by the degeneracy if multiple states share the same energy. Ensure energy and k_B T are in the same units (e.g., Joules or eV). For a ground state set at zero energy, the first term in the sum is always 1. The partition function is always a dimensionless quantity.

References

Sources

  1. Callen, Herbert B. Thermodynamics and an Introduction to Thermostatistics. 2nd ed., John Wiley & Sons, 1985.
  2. McQuarrie, Donald A. Statistical Mechanics. University Science Books, 2000.
  3. Kittel, Charles, and Herbert Kroemer. Thermal Physics. 2nd ed., W. H. Freeman, 1980.
  4. Wikipedia: Partition function (statistical mechanics)
  5. NIST CODATA
  6. Atkins' Physical Chemistry
  7. Callen, H. B. Thermodynamics and an Introduction to Thermostatistics
  8. Callen, Herbert B. Thermodynamics and an Introduction to Thermostatistics. John Wiley & Sons, 1985.