Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 24

Fluctuations in Canonical and Grand Canonical Ensembles

Recommended resources

In our last lesson, we established a powerful computational framework: by taking first derivatives of the logarithm of the partition function ( or ), we can systematically calculate the average values of key thermodynamic observables. This procedure solidified the role of the partition function as a generating function for the macroscopic properties of a system.

Today, we will take this a step further by exploring the physical meaning of second derivatives. Building on your knowledge of moment-generating functions from probability theory, you might correctly anticipate that these second derivatives relate to the variance of the distributions. Our goal is to derive the explicit formulae for the fluctuations in energy for a system in the canonical ensemble and fluctuations in particle number for a system in the grand canonical ensemble. These results are not just mathematical curiosities; they provide a profound physical insight into the stability of macroscopic systems and form the basis for the equivalence of the statistical ensembles in the thermodynamic limit.

1. Energy Fluctuations in the Canonical Ensemble

Let's begin with a system at constant . The energy is not fixed; it fluctuates as the system exchanges energy with the heat bath. We want to quantify the size of these fluctuations. The standard measure is the variance, or mean-square fluctuation, defined as:

We already have an expression for the mean energy, . Now we need a way to find . Recall the definition of the canonical average:

Notice that the sum can be generated by differentiating the partition function twice with respect to :

Therefore, the mean-square energy is simply .

Assembling the variance gives . This expression can be simplified considerably. Recognizing it as the result of the quotient rule, we can see it is the second derivative of :

Thus, we arrive at the elegant and compact result:

Since , we can also write this as:

The following resources provide detailed derivations of this fundamental result.

Mod-01 Lec-24 The canonical ensemble

This lecture from NPTEL provides a very clear, step-by-step derivation of the energy fluctuation formula.

Please watch the segment from the definition of variance. The lecturer first calculates \langle E^2 \rangle by taking the second derivative of Z and then assembles the full expression for the variance, showing how it simplifies to the second derivative of \log Z.

The canonical and grand canonical distributions.

These lecture notes by Anthony Leggett offer a concise, purely mathematical derivation that you will appreciate for its directness.

In the section following equation (25), find the derivation for energy fluctuations. Follow the steps starting from the definition \Delta E^2 to see how it is directly identified as the second derivative of \ln Z.


2. Connection to Heat Capacity

The relation is powerful, but its physical meaning becomes clearer when we connect it to a measurable thermodynamic quantity: the heat capacity at constant volume, .

Using the chain rule with , we have . Therefore:

Substituting this into our fluctuation formula gives the celebrated result:

This is a profound connection. It states that the magnitude of energy fluctuations in a system at thermal equilibrium is directly proportional to its heat capacity. A system with a large heat capacity can absorb a lot of energy for a small change in temperature, and our result shows this is microscopically associated with large equilibrium fluctuations in its energy. Conversely, a system with a small has very small energy fluctuations. This provides a direct statistical mechanical interpretation of a purely thermodynamic quantity.

The following resources walk through this derivation and its implications.

Fluctuations and Response 3. 1. Fluctuations in the energy ...

This document from the University of Edinburgh provides a clear derivation and then discusses the physical consequences of the result.

Please read the first section, "3. 1. Fluctuations in the energy of an assembly". It walks through the same steps we just took to derive the relation between C_V and \langle (\Delta E)^2 \rangle. Pay close attention to the subsequent discussion on the scaling of fluctuations with system size N.

Mod-01 Lec-24 The canonical ensemble

Continuing with the same NPTEL video, the lecturer proceeds to connect the derived variance formula to the specific heat.

Watch the portion from rewriting the variance. The lecturer uses the chain rule to relate the derivative with respect to \beta to the derivative with respect to T, thereby identifying the variance with k_B T^2 C_V.


3. Particle Number Fluctuations in the Grand Canonical Ensemble

The logic for deriving particle number fluctuations in the grand canonical ensemble is perfectly analogous. Here, the number of particles fluctuates as the system exchanges particles with a reservoir. The variance is:

From the previous lesson, we know .
The mean-square particle number can be obtained by differentiating the grand partition function twice with respect to :

This leads to .

Just as before, we can show that the full expression for the variance simplifies to the second derivative of the logarithm of the partition function:

Since , we can also write this in terms of the derivative of the average particle number:

The derivative is related to the isothermal compressibility of the system (), so once again a fluctuation is related to a thermodynamic response function.

The following resources provide clear derivations of this result.

Lecture 24-Grand Canonical Ensemble

This NPTEL lecture on the grand canonical ensemble provides a concise derivation of the particle number fluctuations.

Please watch the segment from the calculation of fluctuations. It starts with the definition of variance, identifies the terms with derivatives of the grand partition function, and simplifies the expression to show that \langle(\Delta N)^2\rangle is proportional to \partial \langle N \rangle / \partial(\beta\mu).

Fluctuations and Response 3. 1. Fluctuations in the energy ...

This reading performs the same derivation in text form.

Please read section "3. 3. Density fluctuations". It derives the expression for \langle (\Delta N)^2 \rangle in terms of the derivative of \ln Z_{gc} (the grand partition function, which we denote \Xi) and connects it to the derivative of \langle N \rangle with respect to \mu.


4. The Thermodynamic Limit and Ensemble Equivalence

These fluctuation formulae are the key to understanding why the different statistical ensembles give identical thermodynamic predictions for macroscopic systems.

Consider the relative fluctuation in energy: the ratio of the root-mean-square (RMS) fluctuation to the mean energy.

Both the internal energy and the heat capacity are extensive properties, meaning they are proportional to the number of particles in the system. Thus, and . Substituting this scaling into the ratio gives:

Similarly, for particle number fluctuations, both and are extensive, so . The relative fluctuation in particle number therefore also scales as:

In the thermodynamic limit (), the relative fluctuations of both energy and particle number vanish. For a macroscopic system where , the relative fluctuation is on the order of , which is experimentally undetectable.

This is the justification for the equivalence of ensembles. Although a system in the canonical ensemble can have any energy, its probability distribution is so sharply peaked around the mean value that for a macroscopic system, the energy is effectively fixed. Thus, it behaves identically to a system in the microcanonical ensemble. Likewise, a macroscopic system in the grand canonical ensemble has a particle number that is so sharply defined that it behaves identically to a system in the canonical ensemble. This is a crucial result, as it allows us to choose whichever ensemble is most mathematically convenient for a given problem.

The "Fluctuations and Response" reading and the NPTEL video on the Grand Canonical Ensemble both provide excellent discussions of this point.


Conclusion

In this lesson, we have extended our statistical mechanics toolkit by moving from first to second derivatives of the partition function. This has uncovered a deep connection between microscopic fluctuations and macroscopic response functions.

Key Takeaways:

  • Second derivatives of the logarithm of the partition function correspond to the variance (mean-square fluctuation) of the conjugate thermodynamic variable.
  • The energy fluctuation in the canonical ensemble is related to the heat capacity: .
  • The particle number fluctuation in the grand canonical ensemble is related to the derivative of the average particle number with respect to the chemical potential: .
  • Relative fluctuations of extensive quantities scale as , vanishing in the thermodynamic limit. This provides the formal justification for the equivalence of statistical ensembles.

These fluctuation-response relations are elementary examples of a broader principle in statistical physics known as the Fluctuation-Dissipation Theorem. In our next lesson, we will apply the canonical ensemble formalism to derive another central result for classical systems: the equipartition theorem, which provides a simple but powerful rule for distributing energy among the degrees of freedom of a system.