BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 5: Gibbs' paradox and correct Boltzmann counting

One problem in three parts on a flaw in the classical count of states for the ideal gas: whether its entropy is extensive, the entropy of mixing two gases (Gibbs' paradox), and what changes when identical atoms are treated as indistinguishable.

You need this first

Full reading path (9 pages)
  1. Probability: one random variable (8.044)
  2. Probability: two or more random variables (8.044)
  3. Probability: functions of a random variable (8.044)
  4. Probability: sums of random variables and the central limit theorem (8.044)
  5. Thermodynamic variables, temperature and work (8.044)
  6. The first law of thermodynamics and paths (8.044)
  7. Statistical mechanics and the microcanonical ensemble (8.044)
  8. Entropy, temperature and the second law (8.044)
  9. Entropy as a thermodynamic variable (8.044)
On this page · 3 sections
  1. How to answer
  2. Problem 1
  3. Where this goes

This set practises three lessons: the microcanonical ensemble, where the phase-space volume of the ideal gas was counted, entropy, temperature and the second law, where the entropy was defined as kk times its logarithm, and entropy as a thermodynamic variable, where the ideal gas law came out of that entropy. MIT's Problem Set 5 has a single problem, in three parts, given here in our own words. MIT publishes its solutions on OpenCourseWare. The hints here are ours. The solutions are rewritten from MIT's: they follow MIT's method in our own words, cite MIT's solutions at the printed page, and were checked again by an independent route.

A few things differ from MIT's material. The due date is left out. MIT's two sketches of the box with its partition are described in words, and the graph of the entropy of mixing is ours, computed from the formula. MIT's parts mostly ask you to show or explain something. So that you can check your work, we added answer boxes, each marked as our addition: the amount by which the old entropy fails the test in part (a) and a number for one mole; the entropy change of the second gas and a number in part (b); and the volume term of the new entropy and a question on different gases in part (c). The checks with exact factorials at the end of part (c), the treatment of two different gases there and the closing section "Where this goes" are ours as well. MIT's solutions have two small slips in the table on their last page, noted in brackets where they matter. Both PDFs have printed page numbers, which are the ones cited below: "p. 1" and "p. 2" for the sheet, "p. 1" to "p. 3" for the solutions.

How to answer#

Work each part on paper first. Then type your result in the answer box and press Check. A number box wants a decimal number and accepts any value within the tolerance written next to it. A formula box takes plain typing, for example N*k*log(2), and accepts every correct way of writing the answer with the letters of that box. It treats those letters as independent, so each part says which letters to use. Write the symbols exactly as the box names them: N, V, k, alpha for α\alpha and lam for λ\lambda. Type log( ) for the natural logarithm.

MIT's sheet gives no points. The points here (30 in all) and their split between parts are ours. Most of this problem is "show that" and "explain why": for those, open the solution, compare it with your own work and mark yourself. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.

The notation is that of the lessons: Φ(E,V,N)\Phi(E, V, N) is the cumulative volume in phase space (the volume of all states with energy below EE), SS the entropy, kk Boltzmann's constant and mm the mass of one atom. The letter ee inside the logarithms is the number 2.718…, left there by Stirling's approximation. The first law is written as in the lesson on the first law, ΔE=ΔQ+ΔW\Delta E = \Delta Q + \Delta W, with ΔW\Delta W the work done on the gas. For the two number boxes you need Boltzmann's constant, k=1.380649×10−23k = 1.380649 \times 10^{-23} J/K, and the number of atoms in one mole, 6.02214×10236.02214 \times 10^{23}.

Problem 1#

Problem

Correct Boltzmann counting

30 points

The way the lessons have counted the accessible volume in phase space of a classical system so far has a flaw. In parts (a) and (b) you find two wrong results that follow from it. In part (c) you repair it.

(a)8 points

A state variable FF is called extensive if the following test works. Multiply every extensive variable in the expression for FF by a scale factor λ\lambda and leave every intensive variable as it is. Then FF must become λF\lambda F. (The lesson on thermodynamic variables says the same thing in words: an extensive variable is proportional to the amount of material.)

For the ideal monatomic gas the microcanonical ensemble gave

Cumulative phase-space volume found so far
Φ(E,V,N)=VN(4πemE3N)3N/2\Phi(E, V, N) = V^N\left(\frac{4\pi emE}{3N}\right)^{3N/2}
In words

capital phi ( capital E, V, N) equals V to the power N ( 4 pi e m capital E over the quantity 3 N, ) to the power 3 N over 2, end of power

Source: MIT 8.044 Problem Set 5 (Spring 2013), Problem 1(a), p. 1

Use S=kln⁡ΦS = k\ln\Phi and the result E=32NkTE = \frac{3}{2}NkT to write the entropy as a function of NN, VV and TT. Entropy should be extensive on physical grounds: two equal samples of gas side by side have twice the entropy of one. Show that this S(N,V,T)S(N, V, T) fails the test.

As a check of your work (our addition), give the amount by which it fails, S(λN,λV,T)−λ S(N,V,T)S(\lambda N, \lambda V, T) - \lambda\,S(N, V, T), in terms of lam, N and k. Then put in numbers: one mole of atoms in a volume VV is compared with two moles in 2V2V at the same temperature. By how many joules per kelvin does the entropy of the larger sample exceed twice that of the smaller one?

Hint

Replace EE first. What is left inside the bracket once E=32NkTE = \frac{3}{2}NkT is put in? Does it still contain NN?

Hint

The logarithm of a product is a sum of logarithms, and the logarithm of an NN-th power is NN times the logarithm. You get one term with ln⁡V\ln V and one with the logarithm of the bracket.

Hint

Now decide for each of NN, VV and TT whether it is extensive or intensive, scale the extensive ones, and compare each term with λ\lambda times the old term. Use ln⁡(λV)=ln⁡λ+ln⁡V\ln(\lambda V) = \ln\lambda + \ln V.

Solution

The idea. Write SS as a sum of terms and scale each one. A term passes the test if it is NN times something intensive. A bare ln⁡V\ln V is not intensive.

Put in the energy

With E=32NkTE = \frac{3}{2}NkT the bracket loses its NN: 4πemE/3N=2πemkT4\pi emE/3N = 2\pi emkT. So

Phase-space volume in terms of the temperature
Φ=VN[2πemkT]3N/2\Phi = V^N\left[2\pi emkT\right]^{3N/2}
In words

capital phi equals V to the power N ( 2 pi e m k T ) to the power 3 N over 2, end of power

Take the logarithm

Entropy found so far, as a function of N, V and T
S(N,V,T)=kln⁡Φ=Nkln⁡V+32Nkln⁡[2πemkT]S(N, V, T) = k\ln\Phi = Nk\ln V + \frac{3}{2}Nk\ln\left[2\pi emkT\right]
In words

S(N, V, T) equals k log capital phi equals N k log V plus three halves N k log ( 2 pi e m k T )

Scale the extensive variables

NN and VV are extensive, TT is intensive. So let N→λNN \to \lambda N and V→λVV \to \lambda V and keep TT:

The scaled entropy
S(λN,λV,T)=λNkln⁡(λV)+λ 32Nkln⁡[2πemkT]S(\lambda N, \lambda V, T) = \lambda Nk\ln(\lambda V) + \lambda\,\frac{3}{2}Nk\ln\left[2\pi emkT\right]
In words

S( lambda N, lambda V, T) equals lambda N k log ( lambda V) plus lambda three halves N k log ( 2 pi e m k T )

The second term is λ\lambda times what it was. The first is not, because λNkln⁡(λV)\lambda Nk\ln(\lambda V) differs from λNkln⁡V\lambda Nk\ln V. So SS does not become λS\lambda S, and the failure sits in the volume term. This is where MIT's solution stops.

How large is the failure (our addition)

Writing ln⁡(λV)=ln⁡λ+ln⁡V\ln(\lambda V) = \ln\lambda + \ln V in the first term shows what is left over:

Amount by which the old entropy fails the test
S(λN,λV,T)−λ S(N,V,T)=λNkln⁡λS(\lambda N, \lambda V, T) - \lambda\,S(N, V, T) = \lambda Nk\ln\lambda
In words

S( lambda N, lambda V, T) minus lambda S(N, V, T) equals lambda N k log lambda

Source: MIT 8.044 Solutions to Problem Set 5 (Spring 2013), Problem 1(a), p. 1 (MIT shows that the first term fails; the difference is our addition)

For one mole, Nk=6.02214×1023×1.380649×10−23Nk = 6.02214 \times 10^{23} \times 1.380649 \times 10^{-23} J/K =8.314= 8.314 J/K. With λ=2\lambda = 2 the excess is 2×8.314×ln⁡2=11.532 \times 8.314 \times \ln 2 = 11.53 J/K.

Check the result

For λ=1\lambda = 1 nothing is scaled and the difference is 1⋅Nkln⁡1=01 \cdot Nk\ln 1 = 0, as it must be. The difference does not contain VV, TT or mm: it depends only on how many atoms there are and on the scale factor. And NkNk has the units of kk, joules per kelvin, as an entropy should. Keep the number 11.53 J/K in mind: the same amount comes back in part (b) as the entropy of mixing of two moles.

(b)12 points

Now a mixing experiment with two ideal gases, called 1 and 2. A box of volume VV is divided by a movable partition into V1=αVV_1 = \alpha V and V2=(1−α)VV_2 = (1 - \alpha)V, where α\alpha lies between 0 and 1. The N1N_1 atoms of gas 1 are in V1V_1 and the N2N_2 atoms of gas 2 are in V2V_2. (MIT's sketch shows the box before, with the two gases side by side at temperature TT, and after, with both gases spread over all of VV, still at TT because the gases are ideal.)

First, show that if the temperature and the pressure are the same on both sides, the ideal gas law demands N1=αNN_1 = \alpha N and N2=(1−α)NN_2 = (1 - \alpha)N, where N=N1+N2N = N_1 + N_2.

Second, pull the partition out. If the gases are different they mix, and this cannot be undone by putting the partition back: the mixing is irreversible. Entropy is a state function, though, so the change ΔSi≡Si(final)−Si(initial)\Delta S_i \equiv S_i(\text{final}) - S_i(\text{initial}) of each gas can be found from the expression of part (a). Show that

Entropy of mixing to be shown
ΔS1=αNkln⁡1α,ΔST≡ΔS1+ΔS2=Nk[αln⁡1α+(1−α)ln⁡11−α]\Delta S_1 = \alpha Nk\ln\frac{1}{\alpha}, \qquad \Delta S_T \equiv \Delta S_1 + \Delta S_2 = Nk\left[\alpha\ln\frac{1}{\alpha} + (1 - \alpha)\ln\frac{1}{1 - \alpha}\right]
In words

capital delta S one equals alpha N k log 1 over alpha, capital delta S sub T is defined as capital delta S one plus capital delta S two equals N k the quantity alpha log 1 over alpha plus the quantity 1 minus alpha, log 1 over the quantity 1 minus alpha

Source: MIT 8.044 Problem Set 5 (Spring 2013), Problem 1(b), p. 1

This entropy of mixing is never negative, as the picture of entropy as disorder leads us to expect. As a check of your work (our addition), give ΔS2\Delta S_2 in terms of alpha, N and k, and the value of ΔST\Delta S_T in joules per kelvin for one mole of atoms in all (N=6.02214×1023N = 6.02214 \times 10^{23}) with α=0.25\alpha = 0.25.

Third, let the two gases be the same. Should the total entropy rise when the partition is slid out? Intuition does not decide this easily, because the partition does limit where each atom can go. Thermodynamics does decide it: ΔST\Delta S_T must be zero. To see why, explain why the internal energy does not change, ΔE=0\Delta E = 0, and why no work is done, ΔW=0\Delta W = 0. (MIT's second sketch shows the partition pulled straight out of the box along its own plane, and pushed back in the same way.) The first law then gives ΔQ=0\Delta Q = 0. With the same gas on both sides, sliding the partition out and in again is a reversible process, so ΔS=ΔQ/T=0\Delta S = \Delta Q/T = 0. The calculation above gave a ΔS\Delta S that is not zero, and it never used the fact that the gases were different. This contradiction is known as Gibbs' paradox.

Hint

For the first task, write P=NkT/VP = NkT/V for each side and set the two pressures equal. The temperatures are equal too, so they cancel.

Hint

For the second task, look at what changes for gas 1 alone: its atoms, N1N_1 of them, go from the volume V1V_1 to the volume VV at the same temperature. Which term of S(N,V,T)S(N, V, T) notices that?

Hint

For the third task, ask what the energy of an ideal gas depends on, and whether any force opposes the partition as it is pulled out.

Solution

The idea. Each ideal gas ignores the other. Removing the partition is, for each gas on its own, an expansion into a larger volume at the same temperature, and only the volume term of its entropy changes.

The numbers of atoms

The pressure is the same on both sides, and so is the temperature:

Equal pressures on the two sides
P=N1kTαV=N2kT(1−α)V⟹N2=1−αα N1P = \frac{N_1kT}{\alpha V} = \frac{N_2kT}{(1 - \alpha)V} \quad\Longrightarrow\quad N_2 = \frac{1 - \alpha}{\alpha}\,N_1
In words

capital P equals N one k T over the quantity alpha V, equals N two k T over the quantity the quantity 1 minus alpha, V, which gives N two equals the quantity 1 minus alpha, all over alpha, times N one

Then N=N1+N2=N1(1+1−αα)=N1/αN = N_1 + N_2 = N_1\left(1 + \frac{1 - \alpha}{\alpha}\right) = N_1/\alpha, which gives

Atoms on each side
N1=αN,N2=(1−α)NN_1 = \alpha N, \qquad N_2 = (1 - \alpha)N
In words

N one equals alpha N, N two equals the quantity 1 minus alpha, N

Equal pressure and temperature mean equal number density on the two sides, so each side holds atoms in proportion to its volume.

The entropy change of each gas

The gases are ideal: their atoms do not interact, the energy of each gas stays the same, and so does the temperature. The term with ln⁡[2πemkT]\ln\left[2\pi emkT\right] in the entropy of each gas is unchanged, and only the volume term counts:

Entropy changes of the two gases
ΔS1=N1kln⁡V−N1kln⁡(αV)=αNkln⁡1α,ΔS2=N2kln⁡V−N2kln⁡[(1−α)V]=(1−α)Nkln⁡11−α\Delta S_1 = N_1k\ln V - N_1k\ln(\alpha V) = \alpha Nk\ln\frac{1}{\alpha}, \qquad \Delta S_2 = N_2k\ln V - N_2k\ln\left[(1 - \alpha)V\right] = (1 - \alpha)Nk\ln\frac{1}{1 - \alpha}
In words

capital delta S one equals N one k log V minus N one k log ( alpha V) equals alpha N k log 1 over alpha, capital delta S two equals N two k log V minus N two k log ( the quantity 1 minus alpha, V ) equals the quantity 1 minus alpha, N k log 1 over the quantity 1 minus alpha

The entropy of mixing

Entropy of mixing
ΔST=ΔS1+ΔS2=Nk[αln⁡1α+(1−α)ln⁡11−α]>0\Delta S_T = \Delta S_1 + \Delta S_2 = Nk\left[\alpha\ln\frac{1}{\alpha} + (1 - \alpha)\ln\frac{1}{1 - \alpha}\right] > 0
In words

capital delta S sub T equals capital delta S one plus capital delta S two equals N k the quantity alpha log 1 over alpha plus the quantity 1 minus alpha, log 1 over the quantity 1 minus alpha, greater than 0

Every factor is positive when α\alpha lies strictly between 0 and 1: α\alpha and 1−α1 - \alpha are positive, and 1/α1/\alpha and 1/(1−α)1/(1 - \alpha) are larger than 1, so their logarithms are positive. For two different gases this is the right answer.

For one mole in all and α=0.25\alpha = 0.25 (our numbers), the bracket is 0.25ln⁡4+0.75ln⁡43=0.56230.25\ln 4 + 0.75\ln\frac{4}{3} = 0.5623 and ΔST=8.314×0.5623=4.676\Delta S_T = 8.314 \times 0.5623 = 4.676 J/K. The graph (ours) shows the bracket for every α\alpha.

The entropy of mixing in units of NkNk as a function of α\alpha, the share of the volume held by gas 1, computed from the formula above. It is zero when one of the gases is absent (α=0\alpha = 0 or 1) and largest, ln⁡2=0.6931\ln 2 = 0.6931, when the two sides are equal. The second point is the example of the text, α=0.25\alpha = 0.25.

The same gas on both sides

Nothing in the calculation used that the gases differ, so it gives the same positive ΔST\Delta S_T for one gas. Thermodynamics says otherwise.

  • ΔE=0\Delta E = 0. The energy of an ideal gas depends on its temperature and the number of atoms, not on its volume, E=32NkTE = \frac{3}{2}NkT. The temperature is the same before and after, and so is the number of atoms.
  • ΔW=0\Delta W = 0. Without friction nothing resists the partition as it slides in and out. The gas pushes equally on its two faces, and the partition moves along its own plane, so the volume of the box does not change.
  • The first law, ΔE=ΔQ+ΔW\Delta E = \Delta Q + \Delta W, then gives ΔQ=0\Delta Q = 0.
  • With the same gas on both sides the partition can be put back, and the gas is in the state it started in: the process is reversible. For a reversible process ΔS=ΔQ/T\Delta S = \Delta Q/T, so ΔS=0\Delta S = 0.

The count of states gives ΔST>0\Delta S_T > 0, thermodynamics gives ΔST=0\Delta S_T = 0. That is Gibbs' paradox.

Check the result

The bracket is unchanged when α\alpha and 1−α1 - \alpha are swapped, as it should be: it cannot matter which gas is called 1. It vanishes for α→0\alpha \to 0 and α→1\alpha \to 1, when there is only one gas and nothing to mix. For α=12\alpha = \frac{1}{2} it is ln⁡2\ln 2: each atom has twice the room it had, and ΔST=Nkln⁡2\Delta S_T = Nk\ln 2. For two moles in all that is 2×8.314×ln⁡2=11.532 \times 8.314 \times \ln 2 = 11.53 J/K, exactly the excess found in part (a). The two faults are one fault: the old entropy of two moles in 2V2V is larger than that of two separate moles by the entropy of mixing them.

(c)10 points

One might blame the trouble on the use of classical instead of quantum mechanics. But at high temperature and low density N/VN/V a classical calculation should be right, and this one is not.

What is missing is an idea that is central in quantum mechanics without being a result of it: identical particles cannot be told apart. One argon atom is the same as any other argon atom of the same isotope. To specify the state of NN atoms it does not matter which atom has the momentum p⃗\vec p at the place q⃗\vec q, only that some atom does. Our count took every relabelling of the atoms as a new state, so it counted each meaningful state N!N! times, where NN is the number of identical particles. The cure is to divide the phase-space volumes found so far (Ω\Omega, and with it Φ\Phi and the density of states) by N!N!. This is called correct Boltzmann counting.

Show by direct calculation that it removes the faults found in parts (a) and (b). Take NN so large that terms of order NN can be dropped next to terms of order Nln⁡NN\ln N.

As a check of your work (our addition): the new entropy has the form S=[ … ]+32Nkln⁡[2πemkT]S = [\ \dots\ ] + \frac{3}{2}Nk\ln\left[2\pi emkT\right]. Give the term in the bracket, in terms of N, V and k. Follow MIT here and drop the term kNkN that Stirling's approximation leaves behind.

Hint

Dividing Φ\Phi by N!N! subtracts kln⁡N!k\ln N! from the entropy. Stirling's approximation, quoted in the lesson on the microcanonical ensemble, turns ln⁡N!\ln N! into something you can combine with Nln⁡VN\ln V.

Hint

For part (a): after the change, is the argument of the logarithm extensive or intensive?

Hint

For part (b) with one gas: before the partition is removed there are two separate samples, each with its own number of atoms and its own volume. Write the volume term of the new entropy for each and add them. Then write it for the single sample of NN atoms in VV.

Solution

The idea. The factorial puts NN under the volume inside the logarithm. The entropy then depends on the volume per atom, V/NV/N, which is intensive, and both faults disappear together.

The new entropy

Phase-space volume with correct Boltzmann counting
Φ=VNN![2πemkT]3N/2\Phi = \frac{V^N}{N!}\left[2\pi emkT\right]^{3N/2}
In words

capital phi equals V to the power N over the quantity N factorial, times ( 2 pi e m k T ) to the power 3 N over 2, end of power

With Stirling's approximation, ln⁡N!≈Nln⁡N−N\ln N! \approx N\ln N - N:

Entropy with correct Boltzmann counting
S(N,V,T)=Nkln⁡V−Nkln⁡N+kN+32Nkln⁡[2πemkT]≈Nkln⁡VN+32Nkln⁡[2πemkT]S(N, V, T) = Nk\ln V - Nk\ln N + kN + \frac{3}{2}Nk\ln\left[2\pi emkT\right] \approx Nk\ln\frac{V}{N} + \frac{3}{2}Nk\ln\left[2\pi emkT\right]
In words

S(N, V, T) equals N k log V minus N k log N plus k N plus three halves N k log ( 2 pi e m k T ) is approximately N k log V over N plus three halves N k log ( 2 pi e m k T )

MIT drops the term kNkN because it is small next to Nkln⁡NNk\ln N. (Keeping it would change nothing below: kNkN is itself NN times a constant, so it is extensive, and it cancels in every difference taken at a fixed number of atoms.)

The entropy is now extensive

Let N→λNN \to \lambda N and V→λVV \to \lambda V and keep TT. The ratio V/NV/N does not change, so

Scaling the new entropy
S(λN,λV,T)=λNkln⁡VN+λ 32Nkln⁡[2πemkT]=λ S(N,V,T)S(\lambda N, \lambda V, T) = \lambda Nk\ln\frac{V}{N} + \lambda\,\frac{3}{2}Nk\ln\left[2\pi emkT\right] = \lambda\,S(N, V, T)
In words

S( lambda N, lambda V, T) equals lambda N k log V over N plus lambda three halves N k log ( 2 pi e m k T ) equals lambda S(N, V, T)

The fault of part (a) is gone.

The same gas no longer mixes with itself

Only the volume term matters, since the temperature does not change. With the partition in place there are two samples of the same gas, αN\alpha N atoms in αV\alpha V and (1−α)N(1 - \alpha)N atoms in (1−α)V(1 - \alpha)V. Without it there is one sample, NN atoms in VV. MIT sets the old and the new counting side by side:

Volume term of the entropyWith the partitionWithout the partition
Old countingαNkln⁡(αV)+(1−α)Nkln⁡[(1−α)V]\alpha Nk\ln(\alpha V) + (1 - \alpha)Nk\ln\left[(1 - \alpha)V\right], which is Nk[αln⁡α+(1−α)ln⁡(1−α)+ln⁡V]Nk\left[\alpha\ln\alpha + (1 - \alpha)\ln(1 - \alpha) + \ln V\right]Nkln⁡VNk\ln V
New countingαNkln⁡αVαN+(1−α)Nkln⁡(1−α)V(1−α)N\alpha Nk\ln\dfrac{\alpha V}{\alpha N} + (1 - \alpha)Nk\ln\dfrac{(1 - \alpha)V}{(1 - \alpha)N}, which is Nkln⁡VNNk\ln\dfrac{V}{N}Nkln⁡VNNk\ln\dfrac{V}{N}

In the old counting the two columns differ by the entropy of mixing of part (b), because αln⁡α+(1−α)ln⁡(1−α)\alpha\ln\alpha + (1 - \alpha)\ln(1 - \alpha) is not zero. In the new counting they are equal: ΔST=0\Delta S_T = 0, as thermodynamics demands. (Two slips in MIT's table, p. 3: a brace marks αln⁡α+(1−α)ln⁡(1−α)\alpha\ln\alpha + (1 - \alpha)\ln(1 - \alpha) with a plus sign, although both logarithms are negative and so is the sum; and the first line of the new counting prints the second term without its factor NkNk. Neither changes MIT's conclusion.)

This is the same fact as in the previous step, seen again. The two samples have the same V/NV/N, and an extensive entropy of two samples with the same intensive variables is the sum of the two.

Two different gases still mix (our addition)

MIT's solution stops at one gas. The cure should not remove the entropy of mixing where it belongs, so check two different gases. Atoms of gas 1 can be told from atoms of gas 2, so the count is divided by the factorial of N1N_1 and by the factorial of N2N_2, both before and after the partition is removed. The volume term of gas 1 goes from N1kln⁡(V1/N1)N_1k\ln(V_1/N_1) to N1kln⁡(V/N1)N_1k\ln(V/N_1): its N1N_1 atoms now have the volume VV. The ln⁡N1\ln N_1 is the same before and after and cancels:

Mixing of two different gases with correct counting
ΔS1=N1kln⁡VN1−N1kln⁡V1N1=αNkln⁡1α\Delta S_1 = N_1k\ln\frac{V}{N_1} - N_1k\ln\frac{V_1}{N_1} = \alpha Nk\ln\frac{1}{\alpha}
In words

capital delta S one equals N one k log V over N one minus N one k log V one over N one equals alpha N k log 1 over alpha

Source: MIT 8.044 Solutions to Problem Set 5 (Spring 2013), Problem 1(b) and (c), p. 2 (MIT's formulas; applying the new counting to two different gases is our addition)

The same holds for gas 2, so ΔST\Delta S_T is that of part (b). The difference between the two cases is the factorial: one for each kind of atom when there are two kinds, the single N!N! when there is one.

Check with exact factorials (our addition)

Stirling's approximation hides how good the cancellation is. For the same gas with α=12\alpha = \frac{1}{2} the temperature terms cancel, and with exact factorials the phase-space volumes give

Same gas, equal halves, exact factorials
ΔSTk=ln⁡VNN!−2ln⁡(V/2)N/2(N/2)!=ln⁡2N[(N/2)!]2N!≈12ln⁡πN2\frac{\Delta S_T}{k} = \ln\frac{V^N}{N!} - 2\ln\frac{(V/2)^{N/2}}{(N/2)!} = \ln\frac{2^N\left[(N/2)!\right]^2}{N!} \approx \frac{1}{2}\ln\frac{\pi N}{2}
In words

capital delta S sub T over k equals log V to the power N over the quantity N factorial, minus 2 log the quantity the quantity V over 2, all to the power N over 2, end of power, all over the quantity the quantity N over 2, factorial, equals log the quantity 2 to the power N ( the quantity N over 2, factorial ) squared, all over the quantity N factorial, is approximately one half log pi N over 2

Source: MIT 8.044 Solutions to Problem Set 5 (Spring 2013), Problem 1(c), p. 2 (our own check, from MIT's phase-space volume)

For N=100N = 100 the exact value is ln⁡12.56=2.531\ln 12.56 = 2.531 and the approximation gives 2.5282.528, while the old counting gives Nln⁡2=69.31N\ln 2 = 69.31. For one mole the remainder is 12ln⁡(πN/2)=27.6\frac{1}{2}\ln(\pi N/2) = 27.6 in units of kk, which is 3.8×10−223.8 \times 10^{-22} J/K, next to the 5.7635.763 J/K (Nkln⁡2Nk\ln 2) of the old counting. So ΔST\Delta S_T is not exactly zero but of order kln⁡Nk\ln N, far below the terms of order NN that were dropped. The remainder has a meaning: the ratio N!/(2N[(N/2)!]2)N!/(2^N[(N/2)!]^2) is the probability that the atoms of the open box are split exactly half and half, and closing the partition fixes that split.

Where this goes#

The division by N!N! comes back in the lesson on examples of the canonical ensemble, where the partition function of NN identical atoms is again divided by N!N! and the entropy of the ideal gas gets its final, extensive form. There the phase-space volume is also divided by a power of Planck's constant, which makes the argument of the logarithm a pure number: in this set ln⁡V\ln V and ln⁡[2πemkT]\ln\left[2\pi emkT\right] still carry units, a second sign that the classical count was not finished. Why identical particles cannot be told apart is the subject of the lesson on quantum states of many identical particles.

Symbols on this page

Show the 36 symbols used here
α\alpha alpha.
The share of the total volume on the side of gas 1, between 0 and 1. Say it: “alpha”.
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
λ\lambda lambda.
The scale factor by which every extensive variable is multiplied in the test for an extensive quantity. Say it: “lambda”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
Ω\Omega capital omega.
The accessible phase-space volume (classically) or number of states (quantum). Say it: “capital omega”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≡\equiv identical to.
Is defined as (or is identically equal to). Say it: “is defined as”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
kk k.
Boltzmann's constant. Unit: eV/K. Say it: “k”.
TT T.
The temperature. Unit: K. Say it: “T”.
Φ\Phi capital phi.
The phase-space volume with energy below E. Say it: “capital phi”.
ee e.
Euler's number. Say it: “e”.
mm m.
The mass of an atom. Unit: kg. Say it: “m”.
FF F.
Any state variable, in the test for an extensive quantity. Say it: “F”.
PP P.
The pressure. Unit: Pa. Say it: “capital P”.
QQ Q.
Heat added; δQ is a small amount of it. Unit: J. Say it: “capital Q”.
qq q.
The position of one atom. Unit: m. Say it: “q”.
NN N.
The number of particles. Say it: “N”.
pp p.
The momentum of one atom. Unit: kg m/s. Say it: “p”.
SS S.
The entropy. Unit: J/K. Say it: “S”.
S1S_{1} S one.
The entropy of gas 1; ΔS₁ is its change when the partition is removed. Unit: J/K. Say it: “S one”.
S2S_{2} S two.
The entropy of gas 2; ΔS₂ is its change when the partition is removed. Unit: J/K. Say it: “S two”.
EE E.
The energy of the system. Unit: J. Say it: “capital E”.
VV V.
The volume. Unit: m³. Say it: “V”.
WW W.
Work done on the system; δW is a small amount of it. Unit: J. Say it: “W”.
V1V_{1} V one.
The volume that holds gas 1 before the partition is removed, αV. Unit: m³. Say it: “V one”.
V2V_{2} V two.
The volume that holds gas 2 before the partition is removed, (1 − α)V. Unit: m³. Say it: “V two”.
N1N_{1} N 1.
The number of atoms of gas 1. Say it: “N one”.
N2N_{2} N 2.
The number of atoms of gas 2. Say it: “N two”.
SiS_{i} S i.
The entropy of gas i (i = 1 or 2). Unit: J/K. Say it: “S sub i”.
STS_{T} S T.
The total entropy of the two gases; ΔS_T is the entropy of mixing. Unit: J/K. Say it: “S sub T”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 41 words used here

Also used

microcanonical ensemble.
The description of an isolated system whose energy and particle number are fixed, in which every allowed microscopic state is equally likely. Explained in Statistical mechanics and the microcanonical ensemble.
phase space.
The space of all possible states of a system, one axis for each coordinate and one for each momentum. Explained in Statistical mechanics and the microcanonical ensemble.
entropy.
A measure of how many microscopic arrangements of a system match its large-scale state; it never decreases in an isolated system. Explained in Entropy and the second law.
second law of thermodynamics.
The law that the entropy of an isolated system never decreases, so heat flows by itself only from hot to cold. Explained in Entropy, temperature and the second law.
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
factorial.
The product of all the whole numbers from 1 up to n, written n!; for example 4! = 24. Explained in The chain rule and higher derivatives.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
natural logarithm.
The logarithm to base e, about 2.718, written ln x: the power to which e must be raised to give x. Explained in Exponentials and logarithms.
energy.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
first law of thermodynamics.
Conservation of energy for heat and work: the change in a system's internal energy equals the heat added plus the work done on it. Explained in The first law of thermodynamics and paths.
extensive.
Of a quantity: proportional to the size of the system, so it doubles when two identical systems are put together, like volume or energy. Explained in Thermodynamic variables, temperature and work.
scale factor.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
intensive.
Of a quantity: the same however large the system is, so it does not change when two identical systems are joined, like temperature. Explained in Thermodynamic variables, temperature and work.
proportional.
Of two quantities: always in the same ratio, so that doubling one doubles the other. Explained in Graphs, straight lines and slope.
joule.
The SI unit of energy and work: the work done by a force of one newton acting over one metre. Explained in Work.
pressure.
The force pushing on a surface divided by the area of the surface, so the push on each square metre. Explained in Density and pressure.
irreversible.
Of a process: impossible to run backwards so that everything returns to how it was, because energy has spread out as heat. Explained in Conservation of energy.
state function.
A quantity fixed by the present state of a system alone, not by how it got there, such as energy, entropy or pressure. Explained in Entropy, temperature and the second law.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
thermodynamics.
The study of heat, work, temperature and energy in large systems, through general laws that do not depend on what the system is made of. Explained in Thermodynamic variables, temperature and work.
internal energy.
The total energy held inside a system, in the motion and interactions of its particles, not counting the motion of the system as a whole. Explained in Temperature and thermal energy.
reversible.
Of a change in a system: slow and gentle enough that it could be run backwards, leaving no trace, with no increase of total entropy. Explained in Statistical ensembles: counting states for spins and the ideal gas.
density.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
identical particles.
Particles of the same kind, such as two electrons, which no measurement can tell apart, even in principle. Explained in Quantum states of many identical particles.
momentum.
Mass times velocity: a vector that measures a body's quantity of motion and keeps its total when no outside force acts. Explained in Momentum and impulse.
density of states.
The number of quantum states, or of possible arrangements, per unit range of energy. Explained in Statistical mechanics and the microcanonical ensemble.
canonical ensemble.
The description of a system kept at a fixed temperature by contact with a large bath, with a fixed number of particles but varying energy. Explained in Refrigerators, the third law and the canonical ensemble.
partition function.
The sum of the Boltzmann factors of all a system's states; once known, it gives every thermodynamic property of the system. Explained in Refrigerators, the third law and the canonical ensemble.
Planck's constant.
The basic constant of quantum physics, about 6.63 × 10⁻³⁴ joule seconds, linking a photon's energy to its frequency. Explained in Thermal radiation and Planck's photons.

Academic

problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
citation.
A note saying exactly where a statement, number or formula comes from, so readers can check it.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
intuition.
A feeling for what should be true, built from experience, before working it out.
paradox.
A statement or situation that seems to contradict itself, though it may turn out not to.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.
of order.
Roughly equal to, within a factor of a few; of order one means neither much bigger nor much smaller than one.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).