Skip to content
Mar 10

Canonical Ensemble and Partition Function

MT
Mindli Team

AI-Generated Content

Canonical Ensemble and Partition Function

The canonical ensemble is the cornerstone of statistical mechanics for systems in thermal equilibrium with a large heat bath at a fixed temperature. It provides the powerful, general recipe for connecting the microscopic details of atoms and molecules to the macroscopic thermodynamic properties we measure, such as pressure, heat capacity, and magnetization. Mastering this framework allows you to predict the behavior of virtually any material from first principles.

From Microstates to the Boltzmann Distribution

We consider a system that can exchange energy with a much larger environment (a heat bath) but not particles. The system and bath together form an isolated composite with a constant total energy. While the system's instantaneous energy can fluctuate, the bath's enormous size fixes the system's average energy, which corresponds to a fixed temperature .

The fundamental postulate is that the system explores all microstates (quantum states or precise classical phases) compatible with this thermal contact. The probability of finding the system in a particular microstate with energy is not uniform. We derive it by maximizing the Gibbs entropy , subject to two constraints: the probabilities must sum to one (), and the average energy is fixed (). Using the method of Lagrange multipliers for these constraints leads directly to the Boltzmann distribution:

Here, is the inverse temperature, and is Boltzmann's constant. The normalization factor is the canonical partition function, defined as:

This sum over states is the central mathematical object in canonical ensemble theory. The factor , the Boltzmann factor, exponentially suppresses the likelihood of the system occupying high-energy states. The partition function thus encapsulates how the system's available states are "weighted" by this energy penalty.

The Bridge: Partition Function to Thermodynamics

The partition function is far more than a normalization constant; it is the direct link to thermodynamics. This connection is made through the Helmholtz free energy , a thermodynamic potential natural to systems at constant temperature and volume. The fundamental relation is:

All other thermodynamic quantities can be obtained by taking appropriate derivatives of , just as in standard thermodynamics. For example:

  • Internal Energy: or .
  • Entropy: .
  • Pressure: .

This derivative-based approach is systematic and powerful. Once you compute for a specific physical model, the entire thermodynamic description follows.

Calculating Partition Functions: Key Examples

The utility of the canonical ensemble is demonstrated through concrete calculations for model systems.

1. The Monatomic Ideal Gas For non-interacting, distinguishable particles in a container of volume , the total energy is the sum of single-particle energies. The partition function factorizes: , where is the single-particle partition function. Using the classical phase space integral for a particle of mass : From , one can derive the ideal gas law and the equipartition result for internal energy .

2. The Harmonic Oscillator A single quantum harmonic oscillator has equally spaced energy levels: , where . Its partition function is a geometric series: The resulting internal energy, , correctly predicts quantization effects, reducing to the classical equipartition result () only at high temperatures.

3. The Spin-1/2 Paramagnet Consider a system of non-interacting spins in an external magnetic field . Each spin has two microstates: up (parallel to field, energy ) or down (anti-parallel, energy ). The single-spin partition function is: For distinguishable spins, . The total magnetization, , is derived from , yielding the Brillouin function .

Common Pitfalls

  1. Confusing the Sum Over States: The partition function sum is over microstates, not energy levels. If multiple microstates (with degeneracy ) share the same energy , you must sum over each state individually, which is equivalent to . Forgetting the degeneracy factor is a common error in calculating for systems like the paramagnet or hydrogen atom.
  1. Misapplying the Distinguishability Factor: For a classical ideal gas of identical particles, the particles are indistinguishable. The factorization overcounts microstates by a factor of . The correct classical partition function is . This factor is crucial for obtaining the extensive (correctly scaling) entropy and resolving the Gibbs paradox.
  1. Incorrect Free Energy Derivatives: The formulas and assume the natural variables are held constant during differentiation. A frequent mistake is to differentiate with respect to instead of inconsistently, or to forget that depends on (e.g., in the ideal gas ), which is essential for calculating pressure.

Summary

  • The canonical ensemble describes systems in thermal equilibrium at fixed temperature . The probability of a microstate is given by the Boltzmann distribution , derived from maximizing entropy subject to a fixed average energy.
  • The canonical partition function is the weighted sum over all microstates. Its logarithm is directly proportional to the Helmholtz free energy, , which serves as the bridge to thermodynamics.
  • All macroscopic thermodynamic properties (internal energy , entropy , pressure , magnetization , heat capacity ) can be computed as appropriate derivatives of or .
  • This formalism is powerfully applied to fundamental models like the ideal gas, harmonic oscillator, and paramagnet, providing a microscopic foundation for their observed behavior and revealing the transition from quantum to classical statistics.

Write better notes with AI

Mindli helps you capture, organize, and master any subject with AI-powered summaries and flashcards.