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 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 and lam for . 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: is the cumulative volume in phase space (the volume of all states with energy below ), the entropy, Boltzmann's constant and the mass of one atom. The letter 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, , with the work done on the gas. For the two number boxes you need Boltzmann's constant, J/K, and the number of atoms in one mole, .
Problem 1#
Correct Boltzmann counting
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 is called extensive if the following test works. Multiply every extensive variable in the expression for by a scale factor and leave every intensive variable as it is. Then must become . (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
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
Use and the result to write the entropy as a function of , and . Entropy should be extensive on physical grounds: two equal samples of gas side by side have twice the entropy of one. Show that this fails the test.
As a check of your work (our addition), give the amount by which it fails, , in terms of lam, N and k. Then put in numbers: one mole of atoms in a volume is compared with two moles in 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 first. What is left inside the bracket once is put in? Does it still contain ?
Hint
The logarithm of a product is a sum of logarithms, and the logarithm of an -th power is times the logarithm. You get one term with and one with the logarithm of the bracket.
Hint
Now decide for each of , and whether it is extensive or intensive, scale the extensive ones, and compare each term with times the old term. Use .
Solution
The idea. Write as a sum of terms and scale each one. A term passes the test if it is times something intensive. A bare is not intensive.
Put in the energy
With the bracket loses its : . So
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
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
and are extensive, is intensive. So let and and keep :
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 times what it was. The first is not, because differs from . So does not become , and the failure sits in the volume term. This is where MIT's solution stops.
How large is the failure (our addition)
Writing in the first term shows what is left over:
In words
S( lambda N, lambda V, T) minus lambda S(N, V, T) equals lambda N k log lambda
For one mole, J/K J/K. With the excess is J/K.
Check the result
For nothing is scaled and the difference is , as it must be. The difference does not contain , or : it depends only on how many atoms there are and on the scale factor. And has the units of , 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 is divided by a movable partition into and , where lies between 0 and 1. The atoms of gas 1 are in and the atoms of gas 2 are in . (MIT's sketch shows the box before, with the two gases side by side at temperature , and after, with both gases spread over all of , still at 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 and , where .
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 of each gas can be found from the expression of part (a). Show that
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
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 in terms of alpha, N and k, and the value of in joules per kelvin for one mole of atoms in all () with .
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: must be zero. To see why, explain why the internal energy does not change, , and why no work is done, . (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 . With the same gas on both sides, sliding the partition out and in again is a reversible process, so . The calculation above gave a 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 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, of them, go from the volume to the volume at the same temperature. Which term of 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:
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 , which gives
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 in the entropy of each gas is unchanged, and only the volume term counts:
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
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 lies strictly between 0 and 1: and are positive, and and are larger than 1, so their logarithms are positive. For two different gases this is the right answer.
For one mole in all and (our numbers), the bracket is and J/K. The graph (ours) shows the bracket for every .
The same gas on both sides
Nothing in the calculation used that the gases differ, so it gives the same positive for one gas. Thermodynamics says otherwise.
- . The energy of an ideal gas depends on its temperature and the number of atoms, not on its volume, . The temperature is the same before and after, and so is the number of atoms.
- . 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, , then gives .
- 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 , so .
The count of states gives , thermodynamics gives . That is Gibbs' paradox.
Check the result
The bracket is unchanged when and are swapped, as it should be: it cannot matter which gas is called 1. It vanishes for and , when there is only one gas and nothing to mix. For it is : each atom has twice the room it had, and . For two moles in all that is J/K, exactly the excess found in part (a). The two faults are one fault: the old entropy of two moles in 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 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 atoms it does not matter which atom has the momentum at the place , only that some atom does. Our count took every relabelling of the atoms as a new state, so it counted each meaningful state times, where is the number of identical particles. The cure is to divide the phase-space volumes found so far (, and with it and the density of states) by . This is called correct Boltzmann counting.
Show by direct calculation that it removes the faults found in parts (a) and (b). Take so large that terms of order can be dropped next to terms of order .
As a check of your work (our addition): the new entropy has the form . Give the term in the bracket, in terms of N, V and k. Follow MIT here and drop the term that Stirling's approximation leaves behind.
Hint
Dividing by subtracts from the entropy. Stirling's approximation, quoted in the lesson on the microcanonical ensemble, turns into something you can combine with .
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 atoms in .
Solution
The idea. The factorial puts under the volume inside the logarithm. The entropy then depends on the volume per atom, , which is intensive, and both faults disappear together.
The new entropy
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, :
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 because it is small next to . (Keeping it would change nothing below: is itself 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 and and keep . The ratio does not change, so
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, atoms in and atoms in . Without it there is one sample, atoms in . MIT sets the old and the new counting side by side:
| Volume term of the entropy | With the partition | Without the partition |
|---|---|---|
| Old counting | , which is | |
| New counting | , which is |
In the old counting the two columns differ by the entropy of mixing of part (b), because is not zero. In the new counting they are equal: , as thermodynamics demands. (Two slips in MIT's table, p. 3: a brace marks 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 . Neither changes MIT's conclusion.)
This is the same fact as in the previous step, seen again. The two samples have the same , 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 and by the factorial of , both before and after the partition is removed. The volume term of gas 1 goes from to : its atoms now have the volume . The is the same before and after and cancels:
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
The same holds for gas 2, so 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 when there is one.
Check with exact factorials (our addition)
Stirling's approximation hides how good the cancellation is. For the same gas with the temperature terms cancel, and with exact factorials the phase-space volumes give
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
For the exact value is and the approximation gives , while the old counting gives . For one mole the remainder is in units of , which is J/K, next to the J/K () of the old counting. So is not exactly zero but of order , far below the terms of order that were dropped. The remainder has a meaning: the ratio 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 comes back in the lesson on examples of the canonical ensemble, where the partition function of identical atoms is again divided by 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 and 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.