5.2: Energy and the number of particles
- Page ID
- 34721
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)First of all, note that fluctuations of macroscopic variables depend on particular conditions.2 For example, in a mechanically- and thermally-insulated system with a fixed number of particles, i.e. a member of a microcanonical ensemble, the internal energy does not fluctuate: \(\delta E = 0\). However, if such a system is in thermal contact with the environment, i.e. is a member of a canonical ensemble (Figure \(2.4.1\)), the situation is different. Indeed, for such a system we may apply the general Equation (\(2.1.7\)), with \(W_m\) given by the Gibbs distribution (\(2.4.7\))-(\(2.4.8\)), not only to \(E\) but also to \(E^2\). As we already know from Sec. 2.4, the first average,
\[\langle E \rangle = \sum_m W_m E_m , \quad W_m = \frac{1}{Z} \exp \left\{ - \frac{E_m}{T}\right\}, \quad Z = \sum_m \exp \left\{- \frac{E_m}{T}\right\}, \label{15}\]
yields Equation (\(2.4.10\)), which may be rewritten in the form
\[\langle E \rangle = \frac{1}{Z} \frac{\partial Z}{\partial (- \beta )}, \quad \text{ where } \beta \equiv \frac{1}{T}, \label{16}\]
more convenient for our current purposes. Let us carry out a similar calculation for \(E^2\):
\[\langle E^2 \rangle = \sum_m W_m E^2_m = \frac{1}{Z} \sum_m E^2_m \exp \{-\beta E_m \}. \label{17}\]
It is straightforward to verify, by double differentiation, that the last expression may be rewritten in a form similar to Equation (\ref{16}):
\[\left\langle E^{2}\right\rangle=\frac{1}{Z} \frac{\partial^{2}}{\partial(-\beta)^{2}} \sum_{m} \exp \left\{-\beta E_{m}\right\} \equiv \frac{1}{Z} \frac{\partial^{2} Z}{\partial(-\beta)^{2}} . \label{18}\]
Now it is easy to use Eqs. (\(5.1.4-5.1.5\)) to calculate the variance of energy fluctuations:
\[\left\langle\widetilde{E}^{2}\right\rangle=\left\langle E^{2}\right\rangle-\langle E\rangle^{2}=\frac{1}{Z} \frac{\partial^{2} Z}{\partial(-\beta)^{2}}-\left(\frac{1}{Z} \frac{\partial Z}{\partial(-\beta)}\right)^{2} \equiv \frac{\partial}{\partial(-\beta)}\left(\frac{1}{Z} \frac{\partial Z}{\partial(-\beta)}\right)=\frac{\partial\langle E\rangle}{\partial(-\beta)}. \label{19}\]
Since Eqs. (\ref{15})-(\ref{19}) are valid only if the system's volume \(V\) is fixed (because its change may affect the energy spectrum \(E_m\)), it is customary to rewrite this important result as follows:
Fluctuations of \(E\):
\[\boxed{ \langle \tilde{E}^2 \rangle = \frac{\partial \langle E \rangle}{\partial (-1 / T) } = T^2 \left( \frac{\partial \langle E \rangle}{\partial T } \right)_V \equiv C_V T^2 . } \label{20}\]
This is a remarkably simple, fundamental result. As a sanity check, for a system of \(N\) similar, independent particles, \(\langle E \rangle\) and hence \(C_V\) are proportional to \(N\), so that \(\delta E \propto N^{1/2}\) and \(\delta E/\langle E\rangle \propto N^{–1/2}\), in agreement with Equation (\(5.1.13\)). Let me emphasize that the classically-looking Equation (\ref{20}) is based on the general Gibbs distribution, and hence is valid for any system (either classical or quantum) in thermal equilibrium.
Some corollaries of this result will be discussed in the next section, and now let us carry out a very similar calculation for a system whose number \(N\) of particles in a system is not fixed, because they may go to, and come from its environment at will. If the chemical potential \(\mu\) of the environment and its temperature \(T\) are fixed, i.e. we are dealing with the grand canonical ensemble (Figure \(2.7.1\)), we may use the grand canonical distribution (\(2.7.5\))-(\(2.7.6\)):
\[W_{m,N} = \frac{1}{Z_G} \exp \left\{\frac{\mu N - E_{m,N}}{T}\right\}, \quad Z_G = \sum_{N,m} \exp \left\{\frac{\mu N - E_{m,N}}{T}\right\}. \label{21}\]
Acting exactly as we did above for the internal energy, we get
\[\langle N \rangle = \frac{1}{Z_G} \sum_{m,N} N \exp \left\{\frac{\mu N - E_{m,N}}{T}\right\} = \frac{T}{Z_G} \frac{\partial Z_G}{\partial \mu }, \label{22}\]
\[\langle N^2 \rangle = \frac{1}{Z_G} \sum_{m,N} N^2 \exp \left\{\frac{\mu N - E_{m,N}}{T}\right\} = \frac{T^2}{Z_G} \frac{\partial^2 Z_G}{\partial \mu^2 }, \label{23}\]
so that the particle number's variance is
Fluctuations of \(N\):
\[\boxed{ \left\langle\widetilde{N}^{2}\right\rangle=\left\langle N^{2}\right\rangle-\langle N\rangle^{2}=\frac{T^{2}}{Z_{G}} \frac{\partial Z_{G}}{\partial \mu}-\frac{T^{2}}{Z_{G}^{2}}\left(\frac{\partial Z_{G}}{\partial \mu}\right)^{2}=T \frac{\partial}{\partial \mu}\left(\frac{T}{Z_{G}} \frac{\partial Z_{G}}{\partial \mu}\right)=T \frac{\partial\langle N\rangle}{\partial \mu}, } \label{24}\]
in full analogy with Equation (\ref{19}).
In particular, for an ideal classical gas, we may combine the last result with Equation (\(3.2.2\)). (As was already emphasized in Sec. 3.2, though that result has been obtained for the canonical ensemble, in which the number of particles \(N\) is fixed, at \(N >> 1\) the fluctuations of \(N\) in the grand canonical ensemble should be relatively small, so that the same relation should be valid for the average \(\langle N\rangle\) in that ensemble.) Easily solving Equation (\(3.2.2\)) for \(\langle N\rangle \), we get
\[\langle N \rangle = \text{const} \times \exp \left\{\frac{\mu}{T}\right\}, \label{25}\]
where “const” means a factor constant at the partial differentiation of \(\langle N \rangle\) over \(\mu \), required by Equation (\ref{24}). Performing the differentiation and then using Equation (\ref{25}) again,
\[\frac{\partial \langle N \rangle }{\partial \mu } = \text{const} \times \frac{1}{T} \exp \left\{\frac{\mu}{T}\right\} = \frac{\langle N \rangle }{T}, \label{26}\]
we get from Equation (\ref{24}) a very simple result:
Fluctuations of \(N\): classical gas
\[\boxed{ \langle \tilde{N}^2 \rangle = \langle N \rangle, \quad \text{ i.e. } \delta N = \langle N \rangle^{1/2} . } \label{27}\]
This relation is so important that I will also show how it may be derived differently. As a by-product of this new derivation, we will prove that this result is valid for systems with an arbitrary (say, small) \(N\), and also get more detailed information about the statistics of fluctuations of that number. Let us consider an ideal classical gas of \(N_0\) particles in a volume \(V_0\), and calculate the probability \(W_N\) to have exactly \(N \leq N_0\) of these particles in its part of volume \(V \leq V_0\) – see Figure \(\PageIndex{1}\).
For one particle such probability is \(W = V/V_0 = \langle N\rangle /N_0 \leq 1\), while the probability to have that particle in the remaining part of the volume is \(W' = 1 – W = 1 – \langle N\rangle /N_0\). If all particles were distinguishable, the probability of having \(N \leq N_0\) specific particles in volume \(V\) and \((N – N_0)\) specific particles in volume \((V – V_0)\), would be \(W^NW^{\prime (N_0-N)}\). However, if we do not want to distinguish the particles, we should multiply this probability by the number of possible particle combinations keeping the numbers \(N\) and \(N_0\) constant, i.e. by the binomial coefficient \(N_0!/N!(N_0 – N)!\).3 As the result, the required probability is
Binomial distribution:
\[\boxed{W_N = W^N W^{'(N_0-N)} \frac{N_0!}{N!(N_0 - N)!} = \left(\frac{\langle N \rangle }{N_0} \right)^N \left(1-\frac{\langle N\rangle}{N_0}\right)^{N_0-N} \frac{N_0!}{N!(N_0 - N)!}. } \label{28}\]
This is the so-called binomial probability distribution, valid for any \(\langle N\rangle\) and \(N_0\).4
Still keeping \(\langle N\rangle\) arbitrary, we can simplify the binomial distribution by assuming that the whole volume \(V_0\), and hence \(N_0\), are very large:
\[ N_0 >> N , \label{29}\]
where \(N\) means all values of interest, including \(\langle N\rangle \). Indeed, in this limit we can neglect \(N\) in comparison with \(N_0\) in the second exponent of Equation (\ref{28}), and also approximate the fraction \(N_0!/(N_0 – N)!\), i.e. the product of \(N\) terms, \((N_0 – N + 1) (N_0 – N + 2)...(N_0 – 1)N_0\), by just \(N_0^N\). As a result, we get
\[W_N \approx \left( \frac{\langle N \rangle}{N_0 } \right)^N \left( 1 - \frac{\langle N \rangle}{N_0 } \right)^{N_0} \frac{N_0^N}{N!} \equiv \frac{\langle N \rangle^N}{N! } \left(1 - \frac{\langle N \rangle}{N_0 } \right)^{N_0} = \frac{\langle N \rangle^N}{N! } \left[ (1-W)^{\frac{1}{W}} \right]^{\langle N \rangle } , \label{30}\]
where, as before, \(W = \langle N\rangle /N_0\). In the limit (\ref{29}), \(W \rightarrow 0\), so that the factor inside the square brackets tends to \(1/e\), the reciprocal of the natural logarithm base.5 Thus, we get an expression independent of \(N_0\):
Poisson distribution:
\[\boxed{ W_N = \frac{\langle N \rangle^N}{N!} e^{-\langle N \rangle }. } \label{31}\]
This is the much-celebrated Poisson distribution6 which describes a very broad family of random phenomena. Figure \(\PageIndex{2}\) shows this distribution for several values of \(\langle N\rangle\) – which, in contrast to \(N\), are not necessarily integer.
Gaussian distribution:
\[\boxed{W_N = \frac{1}{(2\pi )^{1/2} \delta N} \exp \left\{ - \frac{(N - \langle N \rangle )^2}{2(\delta N )^2 } \right\} . } \label{32}\]
(Note that the Gaussian distribution is also valid if both \(N\) and \(N_0\) are large, regardless of the relation between them – see Figure \(\PageIndex{3}\).)

A major property of the Poisson (and hence of the Gaussian) distribution is that it has the same variance as given by Equation (\ref{27}):
\[\langle \tilde{N}^2 \rangle \equiv \left\langle ( N - \langle N \rangle )^2 \right\rangle = \langle N \rangle . \label{33}\]
(This is not true for the general binomial distribution.) For our current purposes, this means that for the ideal classical gas, Equation (\ref{27}) is valid for any number of particles.