You are on page 1of 7

Revision of Boltzmann statistics for a finite number of particles

S. Kakorin

Citation: American Journal of Physics 77, 48 (2009); doi: 10.1119/1.2967703


View online: http://dx.doi.org/10.1119/1.2967703
View Table of Contents: http://aapt.scitation.org/toc/ajp/77/1
Published by the American Association of Physics Teachers
Revision of Boltzmann statistics for a finite number of particles
S. Kakorina兲
Biophysical Chemistry, Department of Chemistry, University of Bielefeld, P.O. Box 100 131,
D-33501 Bielefeld, Germany
共Received 19 January 2008; accepted 11 July 2008兲
The Stirling approximation, ln共N!兲 ⬇ N ln共N兲 − N, is used in the literature to derive the exponential
Boltzmann distribution. We generalize the latter for a finite number of particles by applying the
more exact Stirling formula and the exact function ln共N!兲. A more accurate and analytical
formulation of Boltzmann statistics is found in terms of the Lambert W-function. The
Lambert-Boltzmann distribution is shown to be a very good approximation to the exact result
calculated by numerical inversion of the Digamma-function. For a finite number of particles N the
exact distribution yields results that differ from the usual exponential Boltzmann distribution. As an
example, the exact Digamma-Boltzmann distribution predicts that the constant-volume heat
capacity of an Einstein solid decreases with decreasing N. The exact Digamma-Boltzmann
distribution imposes a constraint on the maximum energy of the highest populated state, consistent
with the finite total energy of the microcanonical ensemble. © 2009 American Association of Physics
Teachers.
关DOI: 10.1119/1.2967703兴

I. INTRODUCTION It is natural to ask if the use of the more exact Stirling


formula, Eq. 共3兲, and the exact Stirling series, Eq. 共2兲, leads
The usual exponential Boltzmann distribution describes to a more accurate formulation of the Boltzmann variational
the populations of 共non-degenerate兲 energy states ␧i, i problem of the calculation of the most probable population
= 0 , 1 , . . . , m, for non-interacting particles in an isolated of energy states of the microcanonical ensemble, and if the
system.1 A crucial step in the derivation is the application of exact distribution is different from the exponential Boltz-
Stirling’s approximation:2,3 mann distribution. The solution of the Boltzmann variational
problem using Eq. 共3兲 leads to a transcendental equation. We
ln共n!兲 ⬇ n ln共n兲 − n 共Stirling ’ s approximation兲. 共1兲 show that this equation can be solved in closed form by
using the Lambert W-function, also known as the Product-
For small values of n Eq. 共1兲 is very crude because it does
Log function or omega function.6 The Lambert W-function
not contain the leading term, 共1 / 2兲ln共n兲, of the Stirling
W共x兲 is defined as the solution of the equation
series:4
W共x兲exp共W共x兲兲 = x. Several symbolic computation packages

冉 冊
ln共n!兲 = n +
1
2
1
ln共n兲 − n + ln共2␲兲 +
2
1

1
12n 360n3
contain routines for the Lambert W-function and recent ar-
ticles discuss problems that can be solved analytically using
this function.6 The solution of the Boltzmann variational
+ ¯ 共Stirling series兲. 共2兲 problem using the exact function ln共n!兲 leads to a compli-
cated transcendental equation, which must be solved numeri-
The Stirling formula gives a much better approximation to cally. In any case, it is worthwhile to obtain a more exact and
ln共n!兲 because it includes all the leading terms in Eq. 共2兲:3 physically tractable solution of the Boltzmann variational

冉 冊
problem.
1
ln共n!兲 ⬇ n + ln共n兲 − n
2
1
+ ln共2␲兲 共Stirling formula兲. 共3兲
2 II. REVISED BOLTZMANN DISTRIBUTION
The reciprocal terms 1 / 共12n兲 − 1 / 共360n3兲 + ¯. in Eq. 共2兲 are A. Formulation of the variational problem
not essential if n ⬎ 2 共see Fig. 1兲. Generally, the occupation
number ni of the highest energy states ␧i is very small if ␧i We consider an isolated system of N indistinguishable
→ ⬁. However, the range of applicability of Eq. 共1兲 is limited non-interacting particles with total constant energy E.2 Each
to very large values of ni, where the condition ln共ni兲 / 2 particle may exist in any of the energy states ␧0 ⬍ ␧1 ⬍ ¯
Ⰶ ni ln共ni兲 − ni is satisfied. If ni is small, say ni = 1 or 2, Eq. ⬍ ␧m, where m is the total number of states. The population
共1兲 yields negative values 共see Fig. 1兲. Therefore, the expo- is characterized by the set of numbers n0 , n1 , . . . , nm of the
nential Boltzmann distribution is limited strictly to ni Ⰷ 1 and particles in the energy states ␧0 , ␧1 , . . . , ␧m, respectively. The
applies only for ␧i not too large. However, the distribution is probability of finding ni distinguishable particles in each of
used in the literature even for ␧i → ⬁ and ni → 0, where Eq. the m states is given by pni i, where pi is the probability of the
共1兲 does not apply. It is interesting that Stirling’s approxima- occupation of energy state ␧i. The total probability of a con-
tion, Eq. 共1兲, fails and the more accurate Stirling formula, figuration 共n0 , ␧0兲 , 共n1 , ␧1兲 , . . . , 共nm , ␧m兲 is given by the prod-
Eq. 共3兲, is required to derive the Gaussian distribution from nm
uct pn00 pn11 ¯ pm . For indistinguishable particles the statistical
the binomial distribution.5 weight of the same configuration is given by1

48 Am. J. Phys. 77 共1兲, January 2009 http://aapt.org/ajp © 2009 American Association of Physics Teachers 48
冉 冊 冉 冊
⳵F
⳵n0 n*
0
=
⳵F
⳵n1 n*
1
= ¯ 冉 冊
⳵F
⳵nm n*
m
= 0. 共10兲

We also have ⳵N / ⳵ni = ⳵E / ⳵ni = 0 so Eq. 共10兲 can be ex-


pressed as

冏 冏 冏 冏
⳵F
⳵ni n*
i
=
⳵P
⳵ni n*
i
− ␣ − ␤␧i = 0 for i = 0,1, . . . ,m.

共11兲
The derivative ⳵ P / ⳵ni in Eq. 共11兲 contains the derivative
d共1 / ni!兲 / dni. In this form, d共1 / ni!兲 / dni cannot be used to
Fig. 1. Comparison of Stirling’s approximation, Eq. 共1兲 共䊐兲, and the Stirling solve Eq. 共11兲 analytically. The usual approach is to replace
formula, Eq. 共3兲 共〫兲, with the exact function ln共n!兲 共⫻兲 up to n = 5. the function P in Eq. 共11兲 by ln共P兲. Because P ⬎ 0 and ln共P兲
is a monotonic function of P, both ln共P兲 and P have extre-
mum for the same ni*. Hence the function

w共n0,n1, . . . ,nm兲 =
N!
n0!n1! ¯ nm!
. 共4兲 ⌽共n0,n1, . . . ,nm兲 = ln共P共n0,n1, . . . ,nm兲兲 + ␣ N − 兺 ni 冉 m

i=0

The total probability of the
共n0 , ␧0兲 , 共n1 , ␧1兲 , . . . , 共nm , ␧m兲 takes the form
configuration

nm
冉 m
+ ␤ E − 兺 n i␧ i
i=0
冊 共12兲

P共n0,n1, . . . ,nm兲 = w共n0,n1, . . . ,nm兲pn00 pn11 ¯ pm , 共5兲


also has an extremum at ni*. Because ⳵ ln共n j!兲 / ⳵ni = 0 for j
where w共n0 , n1 , . . . , nm兲 is given by Eq. 共4兲. We adopt the ⫽ i, the derivative of ln共P兲 can be written as

冉 冊
principle of equal a priori probabilities p0 = p1 = ¯ = pm = p, m
⳵ ln共P兲 ⳵ ⳵
in Eq. 共5兲 reduces to the ln共N!pN兲 − 兺 ln共n j!兲 = −
nm
so that the product pn00 pn11 ¯ pm = ln共ni!兲.
constant p n0+n1+¯+nm N
= p , where ⳵ni ⳵ni j=0 ⳵ni
m
共13兲
N = 兺 ni . 共6兲
i=0 We use Eq. 共13兲 and obtain the condition for an extremum of
⌽ in Eq. 共12兲 in the form
The most probable configuration, corresponding to the maxi-
mum of the probability in Eq. 共5兲, is calculated given the ⳵
− ln兩共ni!兲兩n* − ␣ − ␤␧i = 0. 共14兲
constraint of the fixed total number of particles, Eq. 共6兲, and ⳵ni i
the total energy:
It remains to solve Eq. 共14兲.
m
E = 兺 n i␧ i . 共7兲
i=0 III. APPLICATION OF STIRLING’S
Because of the two constraints, two of the m variables in APPROXIMATIONS
Eq. 共5兲 are dependent. One way to find the extremum is the A. Crude Stirling’s approximation
Lagrange method of undetermined multipliers using two
multipliers, ␣ and ␤, in the form7 If we apply Stirling’s approximation, Eq. 共1兲, or the

冉 冊
m
Stirling formula, Eq. 共3兲, to Eq. 共14兲, we find
F共n0,n1, . . . ,nm兲 = P共n0,n1, . . . ,nm兲 + ␣ N − 兺 ni ␮
− ln共ni*兲 − − ␣ − ␤␧i = 0, 共15兲
i=0 2ni*

冉 m
+ ␤ E − 兺 n i␧ i .
i=0
冊 共8兲 where ␮ = 0 or 1 represents the solution for Eq. 共1兲 or Eq. 共3兲,
respectively. If ␮ = 0, the solution of Eq. 共15兲 yields the ex-
ponential Boltzmann distribution:7
At this stage of the analysis all the ni are free variables, so
that N ⫽ 兺i=0
m
ni and E ⫽ 兺i=0
m
ni␧i. The values ni* of an extre- ni* = exp共− ␣ − ␤␧i兲, 共16兲
mum of F can be calculated from the equation where ␤ = 1 / 共kT兲, k is Boltzmann’s constant, and T is the

dF = 冏 兺 冉 冊冏
m

i=0
⳵F
⳵ni n*
i
= 0, 共9兲
thermodynamic temperature. The ratio Pi = ni* / N is the usual
exponential Boltzmann probability. The partition function is
given by
i=m
where ⳵F / ⳵ni is the partial derivative of F with respect to ni
provided that all other variables n j with j ⫽ i are kept con- Z = 兺 exp共− ␤␧i兲. 共17兲
i=0
stant. Because all ⳵F / ⳵ni ⱕ 0, the only way to satisfy Eq. 共9兲
is to require that The Lagrange multiplier ␣ can be written as

49 Am. J. Phys., Vol. 77, No. 1, January 2009 S. Kakorin 49


␣ = − ln共N/Z兲. 共18兲 ZW = − 2NWW−0 共− exp共− ␤␧Wm − 1兲兲. 共27兲
The constraints in Eqs. 共26兲 and 共27兲 define the functional
dependence of the parameters ␧Wm, NW, and ZW for which the
B. The more accurate Stirling formula Lambert-Boltzmann distribution in Eq. 共19兲 applies.
For ␮ = 1 the solution of Eq. 共15兲 is obtained in terms of
the Lambert W-function W共x兲:6 D. Exact solution of the Boltzmann problem
in terms of the inverse Digamma-function
−1

冉 冊
* =
ni,W , 共19兲 The exact derivative of ln共n!兲 is given by the Digamma-
1
2W − exp共␣W + ␤␧i兲 function ␺0: d ln共n!兲 / dn = ␺0共n + 1兲, where the argument n in
2
␺0 can be any real number. Equation 共15兲 acquires the form
where the subscript W refers to the values calculated with the
− ␺0共ni* + 1兲 − ␣␺ − ␤␧i = 0, 共28兲
function W共x兲. Because the second derivative of ⌽ is nega-
tive, where the subscript ␺ refers to the values calculated with the

冏 冏
⳵⌽
2

⳵n2i n*
1
=− * +
1
* 兲2 ⬍ 0,
ni,W 2共ni,W
共20兲
Digamma-function. The solution of Eq. 共28兲 is obtained in
terms of the inverse Digamma-function, ␺−1 0 :
i,W ni,*␺ = ␺−1
0 共− ␣␺ − ␤␧i兲 − 1. 共29兲
* is a maximum, and the ratio P = n* / N
the solution ni,W i,W i,W W
In contrast to W−0 , ␺−1
0 is not included in the generally avail-
is the Lambert-Boltzmann probability, where N = 兺m n* . W i=0 i,W able software packages and must be calculated numerically.
In analogy to Eq. 共17兲 we calculate the Lambert W-partition The Digamma-partition function Z␺ which is analogous to
function ZW in the form Eq. 共21兲 has the form

冉 冊
m * 共␧ 兲
ni,W 1 N␺
ZW = 兺 *
i
= − 2NWW − exp共␣W兲 . 共21兲 Z␺ = . 共30兲
i=0 ni=0,W共␧0 = 0兲 2 ␺−1
0 共− ␣ ␺兲 − 1
The solution of Eq. 共21兲 for the Lagrange multiplier ␣W The correct range of the argument ␣␺ of ␺−1 0 is found by
yields the form requiring that ni,*␺ be non-negative. For ni,*␺ ⱖ 0 Eq. 共28兲 sug-

␣W = − ln 冉 冊 NW
ZW

ZW
2NW
. 共22兲
gests that −␣␺ − ␤␧i ⱖ ␺0共1兲 = −␥, where ␥ = 0.577. . . is the
Euler-Mascheroni constant. Because ␤␧i ⱖ 0, we find that ␣␺
is related to the maximum value ␧␺m by
In contrast to Eq. 共18兲 the value of ␣W is limited to a certain 0 ⱕ ␧␺m = 共␥ − ␣␺兲/␤ . 共31兲
range as is discussed in Sec. III C.
The constraint in Eq. 共31兲 is similar to Eq. 共25兲 of the
Lambert-Boltzmann distribution, except for the constant ␥,
C. Range of ␣W which replaces ln共2 / e兲 ⬇ −0.307. The exact value of the
For the real and positive numbers ni,W * the range of the maximum energy ␧␺m is larger by the quantity of 共␥
argument x = −exp共␣W + ␤␧i兲 / 2 of W共x兲 in Eq. 共19兲 is limited − ln共2 / e兲兲 / ␤ ⬇ 0.884kT than the approximate value ␧Wm
to 0 ⱖ x ⱖ −1 / e. In the range 0 ⱖ x ⱖ −1 / e, W共x兲 is the given in Eq. 共25兲. For large energies, ␧␺m , ␧Wm Ⰷ kT, the dif-
W−0 -branch of the Lambert W-function, −1 ⱕ W−0 ⱕ 0.6 There- ference ␧␺m − ␧Wm is not important.
fore the function W in Eqs. 共19兲 and 共21兲 has to be replaced If we apply Eq. 共31兲 to Eq. 共30兲, we can express the exact
by W−0 . The range of validity of x imposes a constraint on the Digamma-partition function Z␺ as
parameters ␣W and ␧i: N␺
Z␺ = . 共32兲
0 ⱕ exp共␣W + ␤␧i兲 ⱕ 2/e. 共23兲 ␺ 0 共 ␤ ␧ ␺m −
−1
␥兲 − 1
Equation 共23兲 implies that ␣W is related to the value ␧Wm of As in Eq. 共27兲 the exact partition function Z␺ in Eq. 共32兲 can
the highest energy state by be expressed in closed form in terms of the N␺ and ␧␺m. Note
that the usual partition sum Z in Eq. 共17兲 is independent of N.
␣W = ln共2/e兲 − ␤␧Wm . 共24兲
For a given ␣W Eq. 共23兲 requires that IV. RESULTS AND DISCUSSION
0 ⱕ ␧0 ⬍ ¯ ⬍ ␧i ⬍ ¯ ⱕ ␧Wm = 共ln共2/e兲 − ␣W兲/␤ . A. Exponential Boltzmann versus the Lambert-
共25兲 and the exact Boltzmann distribution

Equation 共25兲 suggests that the Lambert-Boltzmann distribu- As an example, we consider a system with n0* = 600 par-
tion, Eq. 共19兲, applies only up to the maximum energy ␧Wm ticles in the ground state with ␧0 = 0. Equation 共15兲 with ␮
共inclusive of the ␧Wm-value兲. If we substitute Eq. 共22兲 into = 0 yields ␣ = −ln共n0*兲 = −6.397; Eq. 共15兲 with ␮ = 1 and the
Eq. 共25兲, we can calculate ␧Wm explicitly, exact ␺0-Boltzmann equation, Eq. 共28兲, yield ␣W = −ln共n0*兲

␧Wm =
1

冋冉 冊 册
ln
2NW
eZW
+
ZW
2NW
, 共26兲
− 1 / 共2n0*兲 = ␣␺ = −␺0共n0* + 1兲 = −6.398. If we use Eqs. 共25兲 and
共31兲, we find ␤␧Wm = ln共2 / e兲 − ␣W = 6.091 and ␤␧␺m = ␥ − ␣␺
= 6.975, respectively. Within the range of applicability, the
or Lambert-Boltzmann distribution in Eq. 共19兲 and the exact

50 Am. J. Phys., Vol. 77, No. 1, January 2009 S. Kakorin 50


Boltzmann distributions yield approximately the same total
numbers N of particles: Nw = 兺i=0 m=6 *
ni,w = 945 and N␺
= 兺i=0 ni,␺ = 946.
m=7 *
The Lambert
and Digamma statistical sums are also identical: ZW
= −2NWW−0 共−exp共␣W兲 / 2兲 = Z␺ = N␺ / 共␺−1 0 共−␣␺兲 − 1兲 = 1.576. If
⬁ *
we apply Eq. 共15兲 with ␮ = 0, we obtain N = 兺i=0 ni = 949 and
Z = N exp共␣兲 = 1.582. The key parameters of the exponential,
Lambert- and Digamma-Boltzmann statistics are summa-
rized in Table I. It is seen that the Lambert and Digamma-
Boltzmann distributions yield approximately equal results,
which differ from the exponential Boltzmann statistics. Fig-
ure 2共b兲 shows that ni* ⱖ ni,*␺ ⱖ ni,w * for ␤␧ ⬎ 0. The total
i
⬁ *
probability of all three statistics is equal to unity: 兺i=0 ni / N
= 兺i=0 ni,w / Nw = 兺i=0 ni,␺ / N␺ = 1.
m=6 * m=7 *

B. Population of energy states of a quantum oscillator


The effect of the constraints in Eqs. 共25兲 and 共31兲 on the
population of the energy states can be shown, for instance,
by determining the heat capacity of a system of oscillators.
In the harmonic approximation the vibrational energy of a
Fig. 2. 共a兲 The solid curve is the exponential Boltzmann distribution n*, Eq. quantum oscillator is given by ␧i = ⌬␧共i + 1 / 2兲, where i
共16兲; ⫻, the Lambert-Boltzmann distribution nW * , Eq. 共19兲; and 䊐, the exact = 0 , 1 , . . . , m and ⌬␧ = h␯0 is the separation between the ad-
Digamma-Boltzmann distribution n*␺, Eq. 共29兲 as a function of ␤␧, where ␧ jacent states, h is Planck’s constant, and ␯0 is the character-
is the energy of the states and ␤ = 1 / kT. The arrows show the maximum istic frequency. If the usual Boltzmann distribution is used to
energies ␤␧Wm = ln共2 / e兲 − ␣W ⬇ 6.1 and ␤␧␺m = ␥ − ␣␺ ⬇ 7.0 of nW * and n*.
␺ calculate the population of the energy states, the partition
Note that ni* in Eq. 共16兲 disagrees with nW* and n*. The distributions shown

* = n* = 600 for the ground state of the zero energy ␧ = 0 and function is given by

冊 冉
are for n*0 = n0,W 0,␺ 0
T = 300 K. 共b兲 The same as in 共a兲 in the range 5 ⱕ ␤␧ ⱕ 7, where the discrep- ⌬␧共m + 1/2兲

冉 冊
* * * *
ancies between n*, nW, and n␺ are most pronounced; nW and n␺ were calcu- i=m 1 − exp −
␧i kT
Z共m兲 = 兺
冉 冊 冉 冊
lated using Mathematica.
exp − = .
i=0 kT ⌬␧ ⌬␧
exp − exp −
2kT 2kT
Digamma-Boltzmann distribution in Eq. 共29兲 are close to the 共33兲
exponential Boltzmann distribution in Eq. 共16兲 关see Fig.
2共a兲兴. However, Eq. 共16兲 applies up to ␤␧m → ⬁, whereas The maximum energy of the harmonic oscillator is not
Eqs. 共19兲 and 共29兲 apply up to ␤␧Wm ⬇ 6 and ␤␧␺m ⬇ 7, re- bounded from above and therefore the number of levels can
spectively 关see Fig. 2共b兲兴. For example, for a system of equi- be infinite, m → ⬁. However, for an isolated system of N
distant energy states, ␧i = ⌬␧i, where i = 0 , 1 , . . . , m and ⌬␧ oscillators of total energy E there is a constraint on the en-
= kT, T = 300 K, the Lambert and the exact Digamma- ergies: 0 ⬍ ␧0 ⬍ ¯ ⬍ ␧i ⬍ ¯ ⬍ ␧m ⱕ E. In equilibrium and

Table I. Comparison of the key parameters of the three forms of the Boltzmann distribution for a system with
* = n* = 600 particles in the ground state with the zero energy ␧ = 0 and equidistant energy states: ␧
n*0 = n0,W 0,␺ 0 i
= ⌬␧i, where i = 0 , 1 , . . . , m and ⌬␧ = kT , T = 300 K; W−0 is the negative branch of the Lambert W-function, ␺0 is
the Digamma-function, ␥ ⬇ 0.577 is the Euler-Mascheroni constant, ln共2 / e兲 ⬇ −0.307, ␤ = 1 / kT, k is the Boltz-
mann constant, and N is the total number of particles.

Exponential Boltzmann Lambert-Boltzmann Exact Digamma-Boltzmann


distribution, Eq. 共16兲 distribution, Eq. 共19兲 distribution, Eq. 共29兲

␣ = −ln共n*0 兲 = −6.397 ␣W = −ln共n0,W


* 兲 − 1 / 共2n* 兲=−6.398
0,W
␣␺ = −␺0共n*0,␺ + 1兲 = −6.398
Eq. 共15兲 with ␮ = 0 Eq. 共15兲 with ␮ = 1 Eq. 共28兲

␤␧m ⬍ ⬁ ␤␧Wm = ln共2 / e兲 − ␣W = 6.091 ␤␧␺m = ␥ − ␣␺ = 6.975


Eq. 共25兲 Eq. 共31兲

m⬍⬁ mW = ␧Wm / ⌬␧ = 6 m␺ = ␧␺m / ⌬␧ = 7


⬁ *
N = 兺i=0 ni = 949 Nw = 兺i=0
6 * = 945
ni,w N␺ = 兺i=0
7
ni,*␺ = 946

Z = N exp共␣兲 = 1.582
Eq. 共17兲
ZW = − 2NWW−0 −冉 冊 e ␣W
2
= 1.576 Z␺ =
␺−1
0 共−
N␺
␣ ␺兲 − 1
= 1.576
Eq. 共21兲 Eq. 共30兲

51 Am. J. Phys., Vol. 77, No. 1, January 2009 S. Kakorin 51


tion Z共m → ⬁兲 is independent of N. Equations 共25兲 and 共31兲
define the range of validity of the exponential Boltzmann
distribution and assist in the calculation of the correct values
of the partition function.

C. Exact value of the Einstein heat capacity


According to the Einstein model of the three-dimensional
quantum oscillator, the constant-volume heat capacity is ex-
pressed as7

CV = 3kNT2 冉 ⳵2 ln共Z共T兲兲
⳵T2
冊 V,N
. 共34兲

To calculate Eq. 共34兲 with Z = Z␺ we apply Eq. 共33兲 and


␧␺m共T兲 = ⌬␧共m + 1 / 2兲 = kT共␥ − ␣␺兲 to Eq. 共32兲 and obtain a
transcendental equation for ␣␺:


␣␺ = ␺0 N
exp共⌬␧/共2kT兲兲 − exp共− ⌬␧/共2kT兲兲
1 − exp共␣␺ − ␥兲
+ 1 . 共35兲 冊
Then we apply ␣␺共T兲 to Z␺ in Eq. 共30兲 and calculate CV in
Eq. 共34兲 numerically. For silver the Einstein temperature is
␪E = 168 K, and hence ⌬␧ = ␪Ek = 2.32⫻ 10−21 J. Calculations
with Eqs. 共31兲 and 共35兲 show that the maximum energy ␧␺m
increases with increasing T and N 关see Figs. 3共c兲 and 3共d兲兴.
For example, at T = 293 K and N = 100, Eq. 共31兲 yields: ␧m
= 4.7 kT 共0.19⫻ 10−19 J兲 and m = ␧␺m / ⌬␧ − 1 / 2 = 8. For T
= 293 K and N = 6.022⫻ 1023 we obtain ␧␺m = 55kT and m
= 95. Because of the constraints on ␧␺m and m, CV / 共3Nk兲 is
Fig. 3. The partition function Z, the maximum energy ratio ␧m / ⌬␧ of the
highest populated state 共here ⌬␧ = 2.3⫻ 10−21 J兲, and the reduced constant-
smaller than the Dulong-Petit limiting value CV / 共3Nk兲 = 1
volume heat capacity CV / 共3Nk兲, calculated with the exact Digamma- even if T Ⰷ ␪E 关see Figs. 3共e兲 and 3共f兲兴. For example, for N
Boltzmann distribution for the Einstein Ag-solid as a function of the tem- = 50 and T = 293 K, Eq. 共34兲 yields CV / 共3Nk兲 = 0.937, which
perature T 共left column兲 and the total number of particles N 共right column兲. is smaller by 3.7% than the value CV / 共3Nk兲 = 0.973 of the
共a兲 The solid lines are the exact Digamma-partition function Z␺共␧␺m兲, Eq.
共32兲, of the oscillator with energy states ␧i = ⌬␧共i + 1 / 2兲, where i
usual Einstein formula for ␧m → ⬁:7
= 0 , 1 , . . . , m. The points represent the conventional partition sum, Z共m兲, 3N⌬␧2 exp共⌬␧/kT兲
truncated at m = ␧␺m / ⌬␧ − 1 / 2, Eq. 共33兲, at N = 300 共1兲, N = 50 共2兲, and N CV共␧m → ⬁兲 = . 共36兲
= 5 共3兲. 共b兲 The solid line represents Z␺共␧␺m兲, Eq. 共32兲; the points refer to kT2共exp共⌬␧/kT兲 − 1兲2
Z共m兲, Eq. 共33兲, at T = 1200 K 共1兲, T = 300 K 共2兲, and T = 100 K 共3兲. 共c兲 The
solid line is the exact maximum energy ratio ␧␺m / ⌬␧ of the oscillator, Eq. At very large values of N, say N = 6.022⫻ 1023, the exact
共31兲; the points represent the approximate values ␧Wm / ⌬␧, Eq. 共37兲, cor- Digamma-Einstein heat capacity, Eq. 共34兲, approaches Eq.
rected by 共␥ − ln共2 / e兲兲kT at N = 300 共1兲, N = 50 共2兲, and N = 5 共3兲. 共d兲 The 共36兲, for example, at T = 293 K Eqs. 共34兲 and 共36兲 yield the
solid lines are the exact energy ratio ␧␺m / ⌬␧, Eq. 共31兲, and the points are the same value CV / 共3Nk兲 = 0.973.
approximate values ␧Wm / ⌬␧, Eq. 共37兲, corrected by 共␥ − ln共2 / e兲兲kT at T
= 1200 K 共1兲, T = 300 K 共2兲, and T = 100 K 共3兲. 共e兲 The points represent the
exact reduced heat capacity CV / 共3Nk兲 Eq. 共34兲, versus T for N = 300 共1兲,
N = 50 共2兲 共d兲, and N = 5 共3兲. The solid line corresponds to the usual Einstein D. Approximate value of the heat capacity
equation, Eq. 共36兲, for CV / 共3Nk兲 at ␧m → ⬁. 共f兲 The points are the exact
values of CV / 共3Nk兲, Eq. 共34兲, for T = 1200 K 共1兲, T = 300 K 共2兲, and T If we substitute Eq. 共33兲 into Eq. 共26兲 and solve for ␧Wm
= 100 K 共3兲. The lines 共---兲, 共¯兲, and 共—兲 represent the usual Einstein relative to ␧Wm = ⌬␧共m + 1 / 2兲 for the case ZW / 共2NW兲
equation, Eq. 共36兲, at T = 50, 300, and 1200 K, respectively. Note that the
Einstein values CV / 共3Nk兲 are independent of N. The Dulong-Petit limiting Ⰶ ln共2NW / 共eZW兲兲, we obtain the Lambert W maximum en-
law predicts CV / 共3Nk兲 = 1. ergy ␧Wm in the form

for T ⬍ ⬁ the inequality N ⱖ n0 ⬎ ¯ ⬎ ni ⬎ ¯ ⬎ nm holds, so


␧Wm共T兲 ⬇ kT ln exp 冋 冉 冊 冉 冉 冊冊册
⌬␧
2kT

2NW
e
1 − exp
⌬␧
kT
that ␧m Ⰶ E. Nevertheless, Eq. 共33兲 is erroneously applied in ⌬␧
the literature without any limitation on ␧m up to m → ⬁: − . 共37兲
2
Z共␧m → ⬁兲 = exp共−⌬␧ / 2kT兲 / 共1 − exp共−⌬␧ / kT兲兲.7 The con-
straints of Eqs. 共25兲 and 共31兲, which arise naturally from the The sum ␧Wm + 共␥ − ln共2 / e兲兲kT is close to the exact value ␧␺m
solvability conditions of the Boltzmann variational problem, except for NW ⱕ 5 and T ⱖ 1200 K 共the melting temperature
truncate the sum in Eq. 共33兲 at the limiting number m. Be- of Ag is Tm = 1235.1 K兲 关see Figs. 3共c兲 and 3共d兲兴. Recall that
cause m depends on N and T, the exact Digamma-partition the quantity 共␥ − ln共2 / e兲兲kT ⬇ 0.884kT corrects the discrep-
function in Eq. 共30兲 increases nonlinearly with N and T 关see ancy between ␧Wm and ␧␺m. In the limiting case, T → 0,
Figs. 3共a兲 and 3共b兲兴. Recall that the classical partition func- Eq. 共37兲 reduces to the physically reasonable value:

52 Am. J. Phys., Vol. 77, No. 1, January 2009 S. Kakorin 52


Table II. Three forms of the Boltzmann distribution derived using different approximations for ln共n!兲.

Stirling’s formula, Eq. 共3兲

冉 冊
Stirling’s approximation,
Approximations Eq. 共1兲 1 1 Exact function
ln共n!兲 ⬇ n + ln共n兲 − n + ln共2␲兲
for ln共n!兲 ln共n!兲 ⬇ n ln共n兲 − n 2 2 ln共n!兲

Most probable ni* = e−␣−␤␧i −1 ni,*␺=

冉 冊
* =
ni,W
population numbers Eq. 共16兲 1 =␺−1
0 共− ␣ ␺ − ␤ ␧ i兲 − 1
2W−0 − exp共␣W + ␤␧i兲 Eq. 共29兲
2
Eq. 共19兲
i→⬁ −␤␧i
The partition Z = 兺i=0 e ZW = −2NWW−0 共−exp共−␤␧Wm − 1兲兲 N␺
function Eq. 共17兲 Eq. 共27兲 Z␺ =
␺−1
0 共 ␤ ␧ ␺m − ␥ 兲 − 1
Eq. 共32兲

The first Lagrange


multiplier ␣ = − ln 冉冊
N
Z
␣W = − ln 冉 冊
NW
ZW

ZW
2NW
␣␺ = − ␺0 冉N␺
Z␺
+1 冊
Eq. 共18兲 Eq. 共22兲 Eq. 共30兲

The maximum ␧i ⬍ ⬁ ␧i ⱕ ␧Wm = 共ln共2 / e兲 − ␣W兲 / ␤ ␧ i ⱕ ␧ ␺m = 共 ␥ − ␣ ␺兲 / ␤


energy of states Eq. 共25兲 Eq. 共31兲

⌬␧ Digamma- and the Lambert-Boltzmann distributions extend


lim ␧Wm共T兲 = , 共38兲 the range of applicability of the exponential Boltzmann dis-
T→0 2
tribution to finite values of N and ni. The exact Boltzmann
which implies that all particles are in the ground state. The distribution naturally imposes a constraint on the maximum
Lagrange multipliers ␣W and ␣␺ are almost equal, for energy ␧m of the highest populated state, depending on T and
example, ␣W = ln共2 / e兲 − ␤␧Wm = −4.086 and ␣␺ = ␥ − ␤␧␺m N 关see Eqs. 共25兲, 共31兲, and 共37兲兴. The constraints of Eqs. 共25兲
= −4.081 for T = 293 K and NW = 100. Equations 共21兲 and 共32兲 and 共31兲 confine the total number m of thermally available
also yield equal values of the partition sums: ZW = Z␺ energy states and truncate the partition sum in Eq. 共17兲 at i
= 1.715. If we apply Eq. 共37兲 to Eq. 共34兲, we obtain = m. The smaller value of the partition sum results in a
CWV / 共3Nk兲 = 0.944, which is very close to the exact Di- smaller value for the heat capacity compared to the usual
gamma value C␺V / 共3Nk兲 = 0.954. For N = 5 the discrepancy heat capacity in Eq. 共36兲. The discrepancy between the exact
becomes larger, CWV / 共3Nk兲 = 0.760 compared to C␺V / 共3Nk兲 and the usual heat capacity calculated with the exponential
= 0.602, even if the condition ZW / 共2NW兲 Ⰶ ln共2NW / 共eZW兲兲 Boltzmann distribution increases with decreasing N. Mea-
for Eq. 共37兲 is satisfied: 0.134Ⰶ 1.01. In summary, the Lam- surements of the heat capacity of nanosystems could provide
bert W approximation, Eq. 共37兲, yields a reliable analytical experimental evidence for the exact Boltzmann statistics.
estimate of the maximum energy ␧m in terms of the experi-
mentally accessible values T, N, and ⌬␧. a兲
Electronic mail: sergej.kakorin@uni-bielefeld.de
1
Sean A. C. McDowell, “A simple derivation of the Boltzmann distribu-
V. CONCLUSION tion,” J. Chem. Educ. 76, 1393–1394 共1999兲.
2
D. K. Russel, “The Boltzmann distribution,” J. Chem. Educ. 73, 299–300
If we use the Stirling formula, Eq. 共3兲, or the exact func- 共1996兲.
tion ln共n!兲 to solve the Boltzmann variational problem, Eq. 3
A. S. Wallner and K. A. Brandt, “The validity of Stirling’s approxima-
共14兲, we obtain the Boltzmann distribution in terms of either tion,” J. Chem. Educ. 76, 1395–1397 共1999兲.
the Lambert W-function or the Digamma-function 共see Table
4
G. Marsaglia, and J. C. W. Marsaglia, “A new derivation of Stirling’s
II兲. The approximate Lambert-Boltzmann distribution in Eq. approximation to n!,” Am. Math. Monthly 9, 826–829 共1990兲.
5
共19兲 was shown to be a very good estimate of the exact H. Margenau and G. M. Murphy, The Mathematics of Physics and Chem-
istry, 2nd ed. 共Van Nostrand, New York, 1965兲, pp. 438–441.
Boltzmann statistics in Eq. 共29兲 given in terms of the inverse 6
D. A. Barry, J. Y. Parange, L. Li, H. Prommer, C. J. Cunningham, and F.
Digamma-function. Because the Lambert-W function is in- Stagnitti, “Analytical approximations for real values of the Lambert
cluded in most symbolic packages, the Lambert-Boltzmann W-function,” Math. Comput. Simul. 53, 95–103 共2000兲.
distribution, Eq. 共19兲, can be implemented more easily than 7
P. Atkins and J. De Paula, Physical Chemistry, 8th ed. 共Oxford University
the exact Digamma-Boltzmann distribution. Both the Press, Oxford, 2006兲, pp. 560–576.

53 Am. J. Phys., Vol. 77, No. 1, January 2009 S. Kakorin 53

You might also like