Partition Function
Sum of states in a canonical ensemble.
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
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).
Sum Over All States:
Add the Boltzmann factors over all energy levels , with degeneracy counting how many states share the same energy.
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)
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
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.
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
- Callen, Herbert B. Thermodynamics and an Introduction to Thermostatistics. 2nd ed., John Wiley & Sons, 1985.
- McQuarrie, Donald A. Statistical Mechanics. University Science Books, 2000.
- Kittel, Charles, and Herbert Kroemer. Thermal Physics. 2nd ed., W. H. Freeman, 1980.
- Wikipedia: Partition function (statistical mechanics)
- NIST CODATA
- Atkins' Physical Chemistry
- Callen, H. B. Thermodynamics and an Introduction to Thermostatistics
- Callen, Herbert B. Thermodynamics and an Introduction to Thermostatistics. John Wiley & Sons, 1985.