In statistical mechanics, a semi-classical derivation of entropy that does not take into account the indistinguishability of particles yields an expression for entropy which is not extensive (is not proportional to the amount of substance in question). This leads to a paradox known as the Gibbs paradox, after Josiah Willard Gibbs, who proposed this thought experiment in 1874‒1875. The paradox allows for the entropy of closed systems to decrease, violating the second law of thermodynamics. A related paradox is the "mixing paradox". If one takes the perspective that the definition of entropy must be changed so as to ignore particle permutation, in the thermodynamic limit, the paradox is averted.
Contents
Illustration of the problem
Gibbs considered the following difficulty that arises if the ideal gas entropy is not extensive. Two containers of an ideal gas sit side-by-side. The gas in container #1 is identical in every respect to the gas in container #2 (i.e. in volume, mass, temperature, pressure, etc). Accordingly, they have the same entropy S. Now a door in the container wall is opened to allow the gas particles to mix between the containers. No macroscopic changes occur, as the system is in equilibrium. But if the formula for entropy is not extensive, the entropy of the combined system will not be 2S. In fact, the particular non-extensive entropy quantity considered by Gibbs predicts additional entropy (more than 2S). Closing the door then reduces the entropy again to S per box, in apparent violation of the second law of thermodynamics.
As understood by Gibbs, and reemphasized more recently, this is a misuse of Gibbs' non-extensive entropy quantity. If the gas particles are distinguishable, closing the doors will not return the system to its original state – many of the particles will have switched containers. There is a freedom in defining what is "ordered", and it would be a mistake to conclude that the entropy has not increased. In particular, Gibbs' non-extensive entropy quantity for an ideal gas is not intended for situations where the number of particles changes.
The paradox is averted by assuming the indistinguishability (at least effective indistinguishability) of the particles in the volume. This results in the extensive Sackur–Tetrode equation for entropy, as derived next.
Calculating the entropy of ideal gas, and making it extensive
In classical mechanics, the state of an ideal gas of energy U, volume V and with , N particles, each particle having mass m, is represented by specifying the momentum vector 𝐩 and the position vector 𝐱 for each particle. This can be thought of as specifying a point in a 6N-dimensional phase space, where each of the axes corresponds to one of the momentum or position coordinates of one of the particles. The set of points in phase space that the gas could occupy is specified by the constraint that the gas will have a particular energy:
U=12m∑i=1N(pi12+pi22+pi32)
and be contained inside of the volume V (let's say V is a cube of side X so that V=X3):
0≤xij≤X
for i=1,…,N and j=1,2,3
The first constraint defines the surface of a 3N-dimensional ball of radius (2mU)1/2, which is a (3N−1)-dimensional hypersphere, and the second is a 3N-dimensional hypercube of volume VN. These combine to form a 6N-dimensional hypercylinder. Just as the area of the wall of a cylinder is the circumference of the base times the height, so the area ϕ of the wall of this hypercylinder is:
ϕ(U,V,N)=VN2π3N2(2mU)3N−12Γ(3N2)(1)
The entropy is proportional to the logarithm of the number of states that the gas could have while satisfying these constraints. In classical physics, the number of states is infinitely large, but according to quantum mechanics it is finite. Before the advent of quantum mechanics, this infinity was regularized by making phase space discrete. Phase space was divided up in blocks of volume h3N. The constant h thus appeared as a result of a mathematical trick and thought to have no physical significance. However, using quantum mechanics one recovers the same formalism in the semi-classical limit, but now with h being the Planck constant. One can qualitatively see this from Heisenberg's uncertainty principle; a volume in N phase space smaller than h3N (h is the Planck constant) cannot be specified.
Mixing paradox
A closely related paradox to the Gibbs paradox is the mixing paradox. The Gibbs paradox is a special case of the "mixing paradox" which contains all the salient features. The difference is that the mixing paradox deals with arbitrary distinctions in the two gases, not just distinctions in particle ordering as Gibbs had considered. In this sense, it is a straightforward generalization to the argument laid out by Gibbs. Again take a box with a partition in it, with gas A on one side, gas B on the other side, and both gases are at the same temperature and pressure. If gas A and B are different gases, there is an entropy that arises once the gases are mixed, the entropy of mixing. If the gases are the same, no additional entropy is calculated. The additional entropy from mixing does not depend on the character of the gases; it only depends on the fact that the gases are different. The two gases may be arbitrarily similar, but the entropy from mixing does not disappear unless they are the same gas – a paradoxical discontinuity.
This "paradox" can be explained by carefully considering the definition of entropy. In particular, as concisely explained by Edwin Thompson Jaynes, definitions of entropy are arbitrary.
As a central example in Jaynes' paper points out, one can develop a theory that treats two gases as similar even if those gases may in reality be distinguished through sufficiently detailed measurement. As long as we do not perform these detailed measurements, the theory will have no internal inconsistencies. (In other words, it does not matter that we call gases A and B by the same name if we have not yet discovered that they are distinct.) If our theory calls gases A and B the same, then entropy does not change when we mix them. If our theory calls gases A and B different, then entropy does increase when they are mixed. This insight suggests that the ideas of "thermodynamic state" and of "entropy" are somewhat subjective.
The differential increase in entropy (dS) as a result of mixing dissimilar gases, multiplied by the temperature (T), equals the minimum amount of work we must do to restore the gases to their original separated state. Suppose that two gases are different, but that we are unable to detect their differences. If these gases are in a box, segregated from one another by a partition, how much work does it take to restore the system's original state after we remove the partition and let the gases mix?
Non-extensive entropy of two ideal gases and how to fix it
In this section, we present in rough outline a purely classical derivation of the non-extensive entropy for an ideal gas considered by Gibbs before "correct counting" (indistinguishability of particles) is accounted for. This is followed by a brief discussion of two standard methods for making the entropy extensive. Finally, we present a third method, due to R. Swendsen, for an extensive (additive) result for the entropy of two systems if they are allowed to exchange particles with each other.
Setup
We will present a simplified version of the calculation. It differs from the full calculation in three ways:
The ideal gas consists of particles confined to one spatial dimension.
We keep only the terms of order nlog(n), dropping all terms of size n or less, where n is the number of particles. For our purposes, this is enough, because this is where the Gibbs paradox shows up and where it must be resolved. The neglected terms play a role when the number of particles is not very large, such as in computer simulation and nanotechnology. Also, they are needed in deriving the Sackur–Tetrode equation.
The subdivision of phase space into units of the Planck constant (h) is omitted. Instead, the entropy is defined using an integral over the "accessible" portion of phase space. This serves to highlight the purely classical nature of the calculation.
We begin with a version of Boltzmann's entropy in which the integrand is all of accessible phase space:
S=kBlnΩ=kBln∮H(𝐩,𝐪)=Edn𝐩dn𝐪
The integral is restricted to a contour of available regions of phase space, subject to conservation of energy. In contrast to the one-dimensional line integrals encountered in elementary physics, the contour of constant energy possesses a vast number of dimensions. The justification for integrating over phase space using the canonical measure involves the assumption of equal probability. The assumption can be made by invoking the ergodic hypothesis as well as the Liouville's theorem of Hamiltonian systems.
(The ergodic hypothesis underlies the ability of a physical system to reach thermal equilibrium, but this may not always hold for computer simulations (see the Fermi–Pasta–Ulam–Tsingou problem) or in certain real-world systems such as non-thermal plasmas.)
Liouville's theorem assumes a fixed number of dimensions that the system 'explores'. In calculations of entropy, the number of dimensions is proportional to the number of particles in the system, which forces phase space to abruptly change dimensionality when particles are added or subtracted. This may explain the difficulties in constructing a clear and simple derivation for the dependence of entropy on the number of particles.
Gibbs paradox in a one-dimensional gas
Gibbs paradox arises when entropy is calculated using an n dimensional phase space, where n is also the number of particles in the gas. These particles are spatially confined to the one-dimensional interval ℓn. The volume of the surface of fixed energy is
ΩE,ℓ=(∫dx1∫dx2⋯∫dxn)(∫dv1∫dv2⋯∫dvn)⏟∑vi2=2E
The subscripts on Ω are used to define the 'state variables' and will be discussed later, when it is argued that the number of particles, n lacks full status as a state variable in this calculation. The integral over configuration space is ℓn. As indicated by the underbrace, the integral over velocity space is restricted to the "surface area" of the (n−1)-dimensional hypersphere of radius 2E, and is therefore equal to the "area" of that hypersurface. Thus
ΩE,ℓ=ℓnnπn/2(n/2)!(2E)n−12
After approximating the factorial and dropping the small terms, we obtain
lnΩE,ℓ≈nlnℓ+nlnEn+const.=nlnℓn+nlnEn⏟extensive+nlnn+const.
In the second expression, the term nlnn was subtracted and added, using the fact that lnℓ−lnn=ln(ℓ/n). This was done to highlight exactly how the "entropy" defined here fails to be an extensive property of matter. The first two terms are extensive: if the volume of the system doubles, but gets filled with the same density of particles with the same energy, then each of these terms doubles. But the third term is neither extensive nor intensive and is therefore wrong.
The arbitrary constant has been added because entropy can usually be viewed as being defined up to an arbitrary additive constant. This is especially necessary when entropy is defined as the logarithm of a phase space volume measured in units of momentum-position. Any change in how these units are defined will add or subtract a constant from the value of the entropy.
Two standard ways to make the classical entropy extensive
As discussed above, an extensive form of entropy is recovered if we divide the volume of phase space, ΩE,ℓ, by n!. An alternative approach is to argue that the dependence on particle number cannot be trusted on the grounds that changing n also changes the dimensionality of phase space. Such changes in dimensionality lie outside the scope of Hamiltonian mechanics and Liouville's theorem. For that reason it is plausible to allow the arbitrary constant to be a function of n. Defining the function to be, f(n)=−32nlnn, we have:
S=lnΩE,ℓ≈nlnℓ+nlnE+const.=nlnℓ+nlnE+f(n)lnΩE,ℓ,n≈nlnℓn+nlnEn+const.,
which has extensive scaling:
S(αE,αℓ,αn)=αS(E,ℓ,n)
Swendsen's particle-exchange approach
Following Swendsen, we allow two systems to exchange particles. This essentially 'makes room' in phase space for particles to enter or leave without requiring a change in the number of dimensions of phase space. The total number of particles is N:
nA particles have coordinates 0<x<ℓA.
The total energy of these particles is EA
nB particles have coordinates 0<x<ℓB.
The total energy of these particles is EB
The system is subject to the constraints, EA+EB=E and nA+nB=N
Taking the integral over phase space, we have:
ΩE,ℓ,N=(∫dx?⋯∫dx?⏟nAterms∫dx?⋯∫dxN)⏟nBterms(∫dv1∫dv2⋯∫dvN)⏟∑v2=2EAor∑v2=2EB=(ℓA)nA(ℓB)nB(N!nA!nB!)⏟combination(nAπnA/2(nA/2)!(2EA)nA−12)⏟nA−sphere(nBπnB/2(nB/2)!(2EB)nB−12)⏟nB−sphere
The question marks (?) serve as a reminder that we may not assume that the first nA particles (i.e. 1 through nA) are in system A while the other particles (nB through N) are in system B. (This is further discussed in the next section.)
Taking the logarithm and keeping only the largest terms, we have:
S=lnΩE,ℓ,N≈nAln(nAℓAEAℓA)+nBln(nBℓBEBℓB)+NlnN+const.
This can be interpreted as the sum of the entropy of system A and system B, both extensive. And there is a term, NlnN, that is not extensive.
Visualizing the particle-exchange approach in three dimensions
The correct (extensive) formulas for systems A and B were obtained because we included all the possible ways that the two systems could exchange particles. The use of combinations (i.e. N particles choose NA) was used to ascertain the number of ways N particles can be divided into system A containing nA particles and system B containing nB particles. This counting is not justified on physical grounds, but on the need to integrate over phase space. As will be illustrated below, phase space contains not a single nA-sphere and a single nB-sphere, but instead
(NnA)=N!nA!nB!
pairs of n-spheres, all situated in the same (N + 1)-dimensional velocity space. The integral over accessible phase space must include all of these n-spheres, as can be seen in the figure, which shows the actual velocity phase space associated with a gas that consists of three particles. Moreover, this gas has been divided into two systems, A and B.
If we ignore the spatial variables, the phase space of a gas with three particles is three dimensional, which permits one to sketch the n-spheres over which the integral over phase space must be taken. If all three particles are together, the split between the two gases is 3|0. Accessible phase space is delimited by an ordinary sphere (2-sphere) with a radius that is either 2E1 or 2E2 (depending which system has the particles).
If the split is 2|1, then phase space consists of circles and points. Each circle occupies two dimensions, and for each circle, two points lie on the third axis, equidistant from the center of the circle. In other words, if system A has 2 particles, accessible phase space consists of 3 pairs of n-spheres, each pair being a 1-sphere and a 0-sphere:
v12+v22=2EA,v32=2EB,v22+v32=2EA,v12=2EB,v32+v12=2EA,v22=2EB
Note that
(32)=3.



