Chapter 4 Practice Problems
Working through Chapter 4 problems on two-state systems, using the Boltzmann distribution and partition functions to nail expectation values and energy variance.
Some original drawings have corrections. Read the notes on those drawings alongside the worked steps.
I think it’s absolutely essential to work through problems to get a grip on the concepts!
Example 4.3 A two-state system
A two-state system, one that has only two states.
One has energy 0, the other has energy ε (>0)
What is the expectation value of this system’s energy?
Earlier, we said that “the probability that an object at temperature T has energy ε” is
![]()
we said.
That is, here the two states are
(at temperature T) the probability of having energy 0
![]()
(at temperature T) the probability of having energy ε
![]()
We also have to do the normalization.
Let’s just normalize it as we would in quantum mechanics, right? First, write out the normalization condition,

My first reaction was, “Darn, it’s not working…” But wait — this actually already tells us the missing constant!!!
Solve it for $\mathrm{blah}=1/(1+e^{-\varepsilon/(k_BT)})$. Dividing each raw weight by their total does the same job.
So we can also normalize like this. In the next picture, read the terms on the right as the unnormalized weights before division:

Let’s build it out.

By expressing the probabilities as a partition function like this, normalization is done, and we can also compute the average.

Prob 4.2 For the two-state system described in Example 4.3,
derive an expression for the variance of the energy.

EX 4.4 : Isothermal atmosphere (air)
Roughly estimate the molecular number density in an isothermal atmosphere as a function of height.
For one specified molecular state of energy E at temperature T, the Boltzmann weight is
![]()
Let’s assume 1 gas molecule. And let’s say the energy here is only the potential energy mgz.
![]()
![]()
Now let’s say there are many molecules, and compare horizontal layers of equal thickness. The next picture’s n(z) can be read as number density, or as the count in such a fixed-size layer.
Time to cancel the subscription on our “1 molecule” assumption, go go

At z=0 that number density should equal n(0).
So I’ll rewrite the constant like this!!!

Done.
The higher you go, the more it drops off — whoosh~~~ it drops off~ — at the rate of the Boltzmann factor
![]()
, that’s what it’s saying.
(Actually, since the real atmosphere isn’t isothermal, they say it’s a bit different, and it’s covered in detail in Chapter 12!)
Prob 4.3
A system contains $N$ distinguishable, noninteracting two-state constituents. Each constituent has energy 0 or $\Delta$; $N$ counts the constituents, not the number of microstates of the whole system.
Show that the number of arrangements Ω(E) such that the whole system has energy E = rΔ (r is an integer) is given by the following expression
![]()
Each of the N is either 0 or Δ, and total energy being rΔ means that r of them are in the energy-Δ state.
That is, the number of ways of choosing r out of N is the number of microstates for E = rΔ!
![]()
From this system, remove energy $s\Delta$, so the number of excited constituents falls from $r$ to $r-s$. For the large-system approximation below, both $r$ and $N-r$ must be large, and $s$ must be small compared with both of them. The restriction $s\ll r$ alone is not enough near the top of the energy range.

Show this.
![]()
means that out of N, (r-s) are in the energy state Δ.
That is,
![]()
![]()
We need to find an approximate expression for this, so we’ll use Stirling’s approximation.
Taking ln of both sides first,

Now let’s approximate the right-hand side. Before the long original sheet, here’s a way to keep track of the approximation:
$$ \frac{\Omega((r-s)\Delta)}{\Omega(r\Delta)} =\frac{r!}{(r-s)!}\frac{(N-r)!}{(N-r+s)!} =\prod_{j=0}^{s-1}\frac{r-j}{N-r+j+1}. $$Replacing each numerator by $r$ and denominator by $N-r$ gives the leading ratio $[r/(N-r)]^s$. The error in its logarithm is of order $s^2/r+s^2/(N-r)$; making that small is a sufficient condition for a good relative approximation to the ratio. The original sheet’s colourful Stirling substitutions need the cancellation warning at the end of this post; individual “+0” terms aren’t separate valid substitutions.

The temperature T of the system is
![]()
Show this. For the temperature at the original reservoir energy, use $1/(k_BT)=\partial\ln\Omega(E)/\partial E$ at fixed $N$. Stirling’s leading approximation gives
$$ \frac{1}{k_BT}\simeq\frac{1}{\Delta}\ln\frac{N-r}{r},\qquad E=r\Delta. $$The next drawings differentiate an already approximated shifted count $\Omega(E-s\Delta)$. That shifts the point where the derivative is evaluated; dropping the small $s$ terms is a further large-reservoir approximation, not an exact identity. The unshifted count above gets the intended leading result directly.
![]()

Heads-up. The figures here are the original notes, slips and all. A few things to watch for:
- On the long Stirling sheet, the colourful “+0” substitutions don’t each match Stirling’s formula term by term. Only their total works out, because $N=r+(N-r)$.
Questions or corrections?
Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.
Feedback goes to me privately by email; it is not posted as a public comment.