---
title: The ideal gas and the quantum concentration
heading: When particles behave classically, and when they don't
eyebrow: B11 · Lesson 19 · The ideal gas and the quantum concentration
xp: 45
---

::: hook
The ideal gas law, pV = NkT, is usually taught as an empirical rule. Here it comes out of counting the quantum states of a particle in a box, and the same calculation gives something the classical law can't: the gas's absolute entropy, and a criterion for when classical physics fails at all. That criterion compares the gas's density with its **quantum concentration**, roughly one particle per cubic thermal wavelength. Air at room temperature is a million times below it, so it's classical. The electrons in copper are thousands of times above it, so they form a degenerate Fermi gas with no classical description. Electrons in a doped semiconductor sit in between, and which side they're on decides which formulas a device model may use.
:::

::: play
- The curve shows an electron gas's degeneracy parameter $n/2n_Q$ against temperature, for the density you set. Above the dashed line at 1 the gas is degenerate (quantum); well below it, classical.
- At $10^{16}$ cm⁻³, typical of a doped semiconductor, electrons are classical down to a few kelvin.
- At $10^{20}$ cm⁻³ (a heavily doped contact) they're degenerate even at room temperature, and Boltzmann-based formulas fail.
:::
:::

```sim plot
view: graph
x: T = 1..10000 K log
y: r = 0.000001..1000000 log
slider: n = 1e12..1e23 = 1e16 log
plot: n/(2.5094e19*(T/300)^1.5) | label: n ÷ 2n_Q
plot: 1 | dashed | label: degenerate above
readout: degeneracy temperature, K = 300*(n/2.5094e19)^(2/3)
readout: n ÷ 2n_Q at 300 K = n/2.5094e19
```

::: predict
## Helium gas at room temperature and atmospheric pressure has about 2.4 × 10¹⁹ atoms per cm³. How does that compare with its quantum concentration?

- [ ] About the same
- [ ] Ten times above it
- [x] About 300,000 times below it
- [ ] Infinitely below

::: reveal
For helium at 298 K, $n_Q = \left(\frac{mkT}{2\pi\hbar^2}\right)^{3/2} = 7.8 \times 10^{24}$ cm⁻³, so n/n_Q = 3.1 × 10⁻⁶. The atoms are so far apart compared with their thermal wavelength (0.05 nm) that their quantum nature never shows. Only liquid helium, at 4 K and a thousand times denser, becomes a quantum fluid.
:::
:::

::: nameit
## One particle in a box

A particle of mass m in volume V has $Z_1 = n_QV$, with the **quantum concentration** and **thermal wavelength**

$$n_Q = \left(\frac{mkT}{2\pi\hbar^2}\right)^{3/2} = \frac{1}{\lambda_{th}^3}, \qquad \lambda_{th} = \frac{h}{\sqrt{2\pi mkT}}$$

For free electrons at 300 K, $n_Q = 1.25 \times 10^{19}$ cm⁻³ and $\lambda_{th}$ = 4.3 nm; it scales as $(mT)^{3/2}$.

## N particles

For N identical particles in the classical regime ($n \ll n_Q$), $Z = Z_1^N/N!$, and

$$F = -NkT\left[\ln\frac{n_Q}{n} + 1\right], \qquad p = \frac{NkT}{V}, \qquad U = \frac32NkT, \qquad \mu = kT\ln\frac{n}{n_Q}$$

and the **Sackur–Tetrode** entropy

$$S = Nk\left[\ln\frac{n_Q}{n} + \frac52\right]$$

which matches measured entropies of monatomic gases (helium: 126 J/(mol·K)). The N! counts identical particles once; without it the entropy wouldn't scale with the amount of gas.

## Processes

- Heat capacities: $C_V = \frac32Nk$, $C_p = \frac52Nk$, γ = 5/3 for a monatomic gas.
- Isothermal: work done on the gas compressing from $V_1$ to $V_2$ is $NkT\ln\frac{V_1}{V_2}$.
- Adiabatic (isentropic): $n_Q/n$ stays fixed, so $TV^{2/3}$ is constant: $T_2 = T_1(V_1/V_2)^{\gamma - 1}$.

## Degenerate or classical

When n approaches $n_Q$ (for electrons, $2n_Q$ with spin), the occupancy of states near the bottom approaches 1 and the classical formulas fail. For electrons of density n, that happens below $T_{deg} = 300\left(\frac{n}{2.51 \times 10^{19}}\right)^{2/3}$ K (free-electron mass): 68,000 K for copper.
:::

::: example
## Compute helium's molar entropy at 298 K and 1 bar from Sackur–Tetrode.

::: solution
1. **The two concentrations.**
   $$\begin{aligned} n &= \frac{p}{kT} \\ &= 2.43 \times 10^{19}\ \text{cm}^{-3} \end{aligned}$$
   and $n_Q$ = 7.75 × 10²⁴ cm⁻³.
2. **Sackur–Tetrode.**
   $$\begin{aligned} \frac{S}{Nk} &= \ln(3.19 \times 10^5) + 2.5 \\ &= 15.17 \end{aligned}$$
3. **Per mole.**
   $$\begin{aligned} S &= 15.17R \\ &= 126.2\ \text{J/(mol·K)} \end{aligned}$$
   The measured value is 126.2.
4. **Where the constant comes from.** Quantum mechanics, through ħ in $n_Q$, fixes the absolute entropy that classical thermodynamics could only give up to a constant.

**Answer:** 126.2 J/(mol·K), the same as the measured value.
:::
:::

::: example
## A gas at 300 K is compressed adiabatically to a quarter of its volume. What's its temperature?

::: solution
1. **A monatomic gas.**
   $$\begin{aligned} T_2 &= 300 \times 4^{2/3} \\ &= 756\ \text{K} \end{aligned}$$
2. **Diatomic air.** With γ = 1.4,
   $$\begin{aligned} T_2 &= 300 \times 4^{0.4} \\ &= 522\ \text{K} \end{aligned}$$
3. **Where you see it.** That's the heating in a diesel engine's compression stroke, and in a bicycle pump.

**Answer:** 756 K for a monatomic gas, or 522 K for air.
:::
:::

::: example
## One mole of helium and one mole of argon, at the same temperature and pressure, are separated by a partition. The partition is removed. How much does the entropy rise?

::: solution
1. **Each gas doubles its volume.** An ideal gas's entropy depends on volume as $Nk\ln V$, so each gains $R\ln2$.
2. **Total.**
   $$\begin{aligned} \Delta S &= 2R\ln2 \\ &= 11.5\ \text{J/K} \end{aligned}$$
3. **Pure mixing.** No heat flows and the temperature doesn't change; the rise is pure entropy of mixing.
4. **Identical gases.** If both sides held helium, removing the partition would change nothing, because swapping identical atoms doesn't make a new microstate. Sackur–Tetrode gets this right only because it divides by N! for identical particles.

**Answer:** the entropy rises by 11.5 J/K.
:::
:::

::: check
given: m = 1 | 4 | 40; T = 77 | 300
answer: (m*1.66053906660e-27*1.380649e-23*T/(2*pi*1.054571817e-34^2))^1.5/1e6
unit: cm^-3
tolerance: 0.5%

## What's the quantum concentration of particles of mass {m} u at {T} K?

::: right
Right. $\left(\frac{mkT}{2\pi\hbar^2}\right)^{3/2}$ = {answer} cm⁻³.
:::

::: misses
- [(m*1.66053906660e-27*1.380649e-23*T/(2*pi*1.054571817e-34^2))^1.5] Convert m⁻³ to cm⁻³.
- [any] Not yet. Use SI units, then divide by 10⁶.
:::
:::

::: check
given: m = 0.067 | 1 | 0.26; T = 4 | 77 | 300
answer: 6.62607015e-34/sqrt(2*pi*m*9.1093837015e-31*1.380649e-23*T)*1e9
unit: nm
tolerance: 0.5%

## What's the thermal wavelength of an electron with effective mass {m}$m_e$ at {T} K?

::: right
Right. $\frac{h}{\sqrt{2\pi m^*kT}}$ = {answer} nm.
:::

::: misses
- [6.62607015e-34/sqrt(m*9.1093837015e-31*1.380649e-23*T)*1e9] Include the 2π.
- [any] Not yet. $\lambda_{th} = h/\sqrt{2\pi mkT}$.
:::
:::

::: check
given: r = 0.000001 | 0.0001 | 0.01
answer: ln(1/r) + 2.5
tolerance: 0.5%

## A monatomic gas has $n/n_Q$ = {r}. What's its entropy per atom, in units of k?

::: right
Right. $\ln\frac{n_Q}{n} + \frac52$ = {answer}.
:::

::: misses
- [ln(1/r) + 1.5] The Sackur–Tetrode constant is 5/2.
- [any] Not yet. Sackur–Tetrode.
:::
:::

::: check
given: n = 1e18 | 1e20 | 8.47e22
answer: 300*(n/2.5094e19)^(2/3)
unit: K
tolerance: 0.5%

## Below what temperature is an electron gas of density {n} cm⁻³ degenerate (free-electron mass)?

::: right
Right. Where n = 2n_Q: {answer} K.
:::

::: misses
- [300*(n/2.5094e19)^(3/2)] $n_Q \propto T^{3/2}$, so T goes as $n^{2/3}$.
- [any] Not yet. Solve $n = 2.51 \times 10^{19}(T/300)^{3/2}$.
:::
:::

::: check
given: T = 250 | 300; r = 2 | 4 | 10; g = 1.3 | 1.4 | 1.67
answer: T*r^(g - 1)
unit: K
tolerance: 0.5%

## A gas with γ = {g} at {T} K is compressed adiabatically by a factor {r} in volume. What's its final temperature?

::: right
Right. $T_1(V_1/V_2)^{\gamma - 1}$ = {answer} K.
:::

::: misses
- [T*r^g] The exponent is γ − 1 for temperature.
- [any] Not yet. $TV^{\gamma - 1}$ is constant.
:::
:::

::: check
given: N = 1 | 2; T = 300 | 350; r = 2 | 5
answer: N*8.314462618*T*ln(r)
unit: J
tolerance: 0.5%

## How much work does it take to compress {N} mol of ideal gas isothermally at {T} K to 1/{r} of its volume?

::: right
Right. $NRT\ln\frac{V_1}{V_2}$ = {answer} J.
:::

::: misses
- [N*8.314462618*T*(r - 1)] Pressure rises as the volume falls: integrate p dV to get a logarithm.
- [any] Not yet. $W = -\int p\,dV$ with p = NRT/V.
:::
:::

::: check
kind: parts
given: V = 1 | 10; p = 1 | 2; T = 300 | 400

## A {V} L container holds a monatomic ideal gas at {p} bar and {T} K.

::: part
answer: p*1e5*V*1e-3/(1.380649e-23*T)/1e22
tolerance: 0.5%

### How many molecules does it hold, in units of 10²²?

::: misses
- [any] $N = \frac{pV}{kT}$.
:::
:::

::: part
answer: 1.5*p*1e5*V*1e-3
unit: J
tolerance: 0.5%

### What's its internal energy?

::: misses
- [p*1e5*V*1e-3] Each atom has $\frac32kT$, so U = $\frac32pV$.
- [any] $U = \frac32NkT = \frac32pV$.
:::
:::

::: part
answer: p*1e5*V*1e-3/T*ln(2)
unit: J/K
tolerance: 0.5%

### By how much does its entropy rise if it expands isothermally to twice the volume?

::: misses
- [any] $Nk\ln2$.
:::
:::
:::

::: check
kind: derivation
vars: x = 0.01..0.99

## Two ideal gases mix, with a fraction x of the molecules of the first kind.

::: step
answer: -(x*ln(x) + (1 - x)*ln(1 - x))

### What's the entropy of mixing per molecule, in units of k?
:::

::: step
answer: -8.314462618*(x*ln(x) + (1 - x)*ln(1 - x))

### And per mole of mixture, in J/K?
:::

::: right
Right. It peaks at x = ½, at $R\ln2$ per mole.
:::
:::

::: explain
## What does the quantum concentration measure, and why does a gas behave classically when it's far below it?

::: model
The quantum concentration is one particle per cube of side equal to the thermal wavelength, the typical de Broglie wavelength of a particle at temperature T. Below it, the particles are on average much farther apart than their wavelengths, so their wave functions rarely overlap, and it makes no practical difference whether they're bosons or fermions or which particle is which. Equivalently, the number of available states with energy around kT vastly exceeds the number of particles, so each state is almost always empty and the occupancy is the Boltzmann tail. As the density approaches $n_Q$, states near the bottom start to fill and the particles' quantum statistics takes over.
:::
:::

::: practice

::: check
given: m = 2 | 20; T = 50 | 500
answer: (m*1.66053906660e-27*1.380649e-23*T/(2*pi*1.054571817e-34^2))^1.5/1e6
unit: cm^-3
tolerance: 0.5%

## $n_Q$ for {m} u at {T} K?

::: misses
- [any] $\left(\frac{mkT}{2\pi\hbar^2}\right)^{3/2}$.
:::
:::

::: check
given: n = 1e15 | 3e17 | 1e19 | 1e20 | 3e21 | 1e22
answer: 300*(n/2.5094e19)^(2/3)
unit: K
tolerance: 0.5%

## Degeneracy temperature for {n} cm⁻³?

::: misses
- [any] $300(n/2.51 \times 10^{19})^{2/3}$.
:::
:::

::: check
given: T = 280 | 320; r = 3 | 8; g = 1.3 | 1.4 | 1.67
answer: T*r^(g - 1)
unit: K
tolerance: 0.5%

## Adiabatic compression by {r}, γ = {g}, from {T} K?

::: misses
- [any] $T(V_1/V_2)^{\gamma - 1}$.
:::
:::
:::
