Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

2.5. Particle in a Box

See also: Course-wide Conventions & Notation

Run the code: Notebook for Section 2.5, in which you can change and rerun the Python cells of this section in your browser.

Overview and Learning Objectives

A particle in a box is the simplest quantized model of translation and provides a clean route to the translational partition function. We review the 1D and 3D energy levels, derive qtrans=V/Λ3q_{\mathrm{trans}}=V/\Lambda^3 in the high-temperature/large-volume limit, and use Q=qN/N!Q=q^N/N! to recover ideal-gas thermodynamic relations.

Learning objectives:

Core Ideas and Derivations

Review of the Particle in a Box

Particle in a One-Dimensional Box

Figure 2.5.1 shows the first four energy levels and wavefunctions of a particle in a one-dimensional box.

Source
Loading...

Figure 2.5.1:Energy levels EnE_n (gray lines) and wavefunctions ψn\psi_n (blue curves) of a particle in a one-dimensional box with walls at x=±L/2x=\pm L/2. Each wavefunction is drawn on its energy level, and the energy increases as n2n^2.

For a particle in a one-dimensional box of length LL, the quantized energy levels are

En=h28mL2 n2for  n=1,2,3,…,E_n = \frac{h^2}{8 m L^2} \, n^2 \quad \text{for} \; n = 1, 2, 3, \ldots,

where hh is Planck’s constant, mm is the particle mass, and nn is a positive integer.

Particle in a Three-Dimensional Box

In three dimensions, the energy levels are

Enx,ny,nz=h28m(nx2Lx2+ny2Ly2+nz2Lz2),E_{n_x, n_y, n_z} = \frac{h^2}{8 m} \left( \frac{n_x^2}{L_x^2} + \frac{n_y^2}{L_y^2} + \frac{n_z^2}{L_z^2} \right),

where nxn_x, nyn_y, and nzn_z are positive integers, and LxL_x, LyL_y, and LzL_z are the respective side lengths of a rectangular box.

Particle in a Cube

For a cube of side LL, Lx=Ly=Lz=LL_x = L_y = L_z = L. The energy simplifies to

Enx,ny,nz=h28mL2(nx2+ny2+nz2)=h28mV2/3(nx2+ny2+nz2),E_{n_x, n_y, n_z} = \frac{h^2}{8mL^2} \left( n_x^2 + n_y^2 + n_z^2 \right) = \frac{h^2}{8 m V^{2/3}} \left( n_x^2 + n_y^2 + n_z^2 \right),

where V=L3V = L^3 is the cube volume.

Partition Function for a Particle in a Cube

The single-particle partition function for a three-dimensional cube is

q=∑nx,ny,nzexp⁡[−βEnx,ny,nz]=∑nx=1∞∑ny=1∞∑nz=1∞exp⁡(−βh28mL2(nx2+ny2+nz2)).\begin{aligned} q &= \sum_{n_x, n_y, n_z} \exp \left[-\beta E_{n_x, n_y, n_z}\right] \\ &= \sum_{n_x=1}^{\infty} \sum_{n_y=1}^{\infty} \sum_{n_z=1}^{\infty} \exp \left(-\beta \frac{h^2}{8 m L^2} (n_x^2 + n_y^2 + n_z^2)\right). \end{aligned}

Define α=βh2/(8mV2/3)\alpha = \beta h^2 / (8 m V^{2/3}). Then

q=(∑n=1∞e−αn2)3.q = \left( \sum_{n=1}^{\infty} e^{-\alpha n^2} \right)^3.

Approximation of the Sum

The parameter α\alpha is the ratio of h2/(8mV2/3)h^2/(8 m V^{2/3}), the energy that sets the spacing between the levels, to kBTk_{\mathrm B}T. For helium at 300 K in a volume of 1.00 L, α=2.0×10−19\alpha = 2.0\times10^{-19} (see the worked example below). When α≪1\alpha \ll 1 (large TT or large VV), the sum ∑n=1∞e−αn2\sum_{n=1}^{\infty} e^{-\alpha n^2} is well approximated by an integral:

∑n=1∞e−αn2≈∫0∞e−αx2 dx=(π4α) ⁣ ⁣1/2.\sum_{n = 1}^{\infty} e^{-\alpha n^2} \approx \int_0^{\infty} e^{-\alpha x^2} \, dx = \left(\frac{\pi}{4 \alpha}\right)^{\!\!1/2}.

Substituting α=βh2/(8mV2/3)\alpha = \beta h^2/(8 m V^{2/3}) gives

(π4α) ⁣ ⁣1/2=(π4⋅8mV2/3βh2) ⁣ ⁣1/2=(2πmβh2) ⁣1/2V1/3.\left(\frac{\pi}{4 \alpha}\right)^{\!\!1/2} = \left(\frac{\pi}{4} \cdot \frac{8 m V^{2/3}}{\beta h^2}\right)^{\!\!1/2} = \left(\frac{2 \pi m}{\beta h^2}\right)^{\!1/2} V^{1/3}.

We often define the thermal de Broglie wavelength Λ\Lambda as

Λ=(h22πmkBT) ⁣1/2.\Lambda = \left(\frac{h^2}{2 \pi m k_{\mathrm B} T}\right)^{\!1/2}.

Hence,

∑n=1∞e−αn2≈V1/3Λ.\sum_{n = 1}^{\infty} e^{-\alpha n^2} \approx \frac{V^{1/3}}{\Lambda}.

Cubing this result, as in Eq. (2.5.5), gives the single-particle partition function. Because the error of the approximation is negligible when α≪1\alpha \ll 1, the result is written as an equality:

q=VΛ3.q = \frac{V}{\Lambda^3}.

Partition Function for NN Particles in a Cube

For NN identical, non-interacting, indistinguishable particles, Section 2.4 gives the total partition function QQ as

Q=qNN!=1N!(VΛ3) ⁣N.Q = \frac{q^N}{N!} = \frac{1}{N!}\left(\frac{V}{\Lambda^3}\right)^{\!N}.

The factor of N!N! corrects for particle indistinguishability: permutations of identical particles do not produce new states.

Ensemble Averages for NN Particles in a Cube

Natural Logarithm of the Partition Function

Taking the logarithm of QQ gives

ln⁡Q=Nln⁡(VΛ3)−ln⁡N!.\ln Q = N \ln \left(\frac{V}{\Lambda^3}\right) - \ln N!.

Often, the Stirling approximation (ln⁡N!≈Nln⁡N−N\ln N! \approx N \ln N - N) is used for large NN. The internal energy, heat capacity, and pressure derived below require only derivatives of ln⁡Q\ln Q. The entropy is obtained from ln⁡Q\ln Q in Section 4.3 and evaluated for this gas in Section 5.1.

Internal Energy

Because Λ=(βh2/2πm)1/2\Lambda = (\beta h^2/2\pi m)^{1/2} is proportional to β1/2\beta^{1/2}, ln⁡Q\ln Q depends on β\beta as

ln⁡Q=−32Nln⁡β+(terms that do not depend on β).\ln Q = -\frac{3}{2} N \ln \beta + (\text{terms that do not depend on } \beta).

The internal energy UU then follows from the derivative in Section 2.3:

U=−(∂ln⁡Q∂β)N,V=32Nβ=32NkBT.U = -\left(\frac{\partial \ln Q}{\partial \beta}\right)_{N,V} = \frac{3}{2} \frac{N}{\beta} = \frac{3}{2} N k_{\mathrm B} T.

Heat Capacity at Constant Volume

From U=32NkBTU = \frac{3}{2}N k_{\mathrm B}T, it follows that

CV=(∂U∂T)N,V=32NkB.C_V = \left(\frac{\partial U}{\partial T}\right)_{N,V} = \frac{3}{2} N k_{\mathrm B}.

Pressure

To find the pressure, we use the expression from Section 2.3,

P=kBT(∂ln⁡Q∂V)N,T=NkBTV,P = k_{\mathrm B} T \left(\frac{\partial \ln Q}{\partial V}\right)_{N,T} = \frac{N k_{\mathrm B} T}{V},

recovering the ideal gas law.

Translational Partition Function

Because the particle-in-a-box spectrum describes translational motion, the single-particle partition function

qtrans=VΛ3q_{\mathrm{trans}} = \frac{V}{\Lambda^3}

is called the translational partition function. It underpins the classical description of dilute gases when Λ≪(V/N)1/3\Lambda \ll (V/N)^{1/3}, the mean spacing between particles, so quantum effects are negligible at ordinary densities and temperatures.

Figure 2.5.2 draws the two lengths to scale for helium. In the gas at 300 K300\ \mathrm{K} and 1 bar1\ \mathrm{bar}, the conditions of the worked example below, the mean spacing is about 69 times Λ\Lambda. In liquid helium at its normal boiling point of 4.22 K4.22\ \mathrm{K}, Λ\Lambda is larger than the mean spacing, which is the case that requires the full quantum treatment of identical particles.

Source
Loading...

Figure 2.5.2:Thermal de Broglie wavelength Λ\Lambda and mean spacing (V/N)1/3(V/N)^{1/3} of helium atoms, drawn to scale. The atoms are placed on a square grid at the mean spacing, and each disc has the diameter Λ\Lambda. The two panels have different scales. (a) Gas at 300 K300\ \mathrm{K} and 1 bar1\ \mathrm{bar}, where the mean spacing is 69 times Λ\Lambda. Each disc is a barely visible dot, and a gray ring marks its place. (b) Liquid at its normal boiling point of 4.22 K4.22\ \mathrm{K}, with a density of 125 kg m−3125\ \mathrm{kg\,m^{-3}}, where Λ\Lambda is 1.13 times the mean spacing and the discs overlap.

Computational Studio: Ideal Gas

In Figure 2.5.3, you can change the number of atoms NN, the volume VV, and the temperature TT of a small sample of a noble gas and follow the quantities that its partition function gives.

Figure 2.5.3:A small sample of an ideal monatomic gas. Panel (a) shows NN atoms in a cube of volume VV, seen from one side. Panel (b) lists the thermal de Broglie wavelength Λ\Lambda, the mean distance between atoms, the translational partition function qtransq_{\mathrm{trans}} (Eq. (2.5.17)), ln⁡Q\ln Q (Eq. (2.5.11)), the internal energy (Eq. (2.5.14)), the pressure (Eq. (2.5.16)), and the entropy, which Section 4.3 obtains from ln⁡Q\ln Q. Because NN is small, ln⁡N!\ln N! is evaluated exactly and not with the Stirling approximation.

You can also open the studio in a new tab: Ideal Gas Studio.

Worked Example

Estimating Λ\Lambda and qtransq_{\mathrm{trans}} (helium, 300 K)

For a particle of mass mm, the thermal de Broglie wavelength is

Λ=h2πmkBT.\Lambda=\frac{h}{\sqrt{2\pi m k_{\mathrm B}T}}.

Take helium: m=4.0026 u=6.65×10−27 kgm=4.0026\,u=6.65\times10^{-27}\ \mathrm{kg}, T=300 KT=300\ \mathrm{K}.

  1. Compute Λ\Lambda

    Λ=6.626×10−342π(6.65×10−27)(1.381×10−23)(300)≈5.04×10−11 m.\Lambda=\frac{6.626\times10^{-34}}{\sqrt{2\pi(6.65\times10^{-27})(1.381\times10^{-23})(300)}} \approx 5.04\times10^{-11}\ \mathrm{m}.
  2. Compute the single-particle translational partition function in V=1.00 L=10−3 m3V=1.00\ \mathrm{L}=10^{-3}\ \mathrm{m^3}

    qtrans=VΛ3=10−3(5.04×10−11)3≈7.8×1027.q_{\mathrm{trans}}=\frac{V}{\Lambda^3} =\frac{10^{-3}}{(5.04\times10^{-11})^3} \approx 7.8\times10^{27}.
  3. Compute α\alpha for the same volume, for which V2/3=10−2 m2V^{2/3}=10^{-2}\ \mathrm{m^2}

    α=h28mV2/3kBT=(6.626×10−34)28(6.65×10−27)(10−2)(1.381×10−23)(300)≈2.0×10−19.\alpha=\frac{h^2}{8mV^{2/3}k_{\mathrm B}T} =\frac{(6.626\times10^{-34})^2}{8(6.65\times10^{-27})(10^{-2})(1.381\times10^{-23})(300)} \approx 2.0\times10^{-19}.
  4. Compare the mean spacing between atoms with Λ\Lambda at P=1.00 bar=105 PaP=1.00\ \mathrm{bar}=10^{5}\ \mathrm{Pa}

    The ideal gas law gives the number of atoms in the volume,

    N=PVkBT=(105)(10−3)(1.381×10−23)(300)≈2.41×1022,N=\frac{PV}{k_{\mathrm B}T} =\frac{(10^{5})(10^{-3})}{(1.381\times10^{-23})(300)} \approx 2.41\times10^{22},

    so the mean spacing between atoms is

    (VN)1/3=(10−32.41×1022)1/3≈3.46×10−9 m≈69 Λ,\left(\frac{V}{N}\right)^{1/3} =\left(\frac{10^{-3}}{2.41\times10^{22}}\right)^{1/3} \approx 3.46\times10^{-9}\ \mathrm{m}\approx 69\,\Lambda,

    and the number of thermally accessible translational states per atom is

    qtransN=7.8×10272.41×1022≈3.2×105.\frac{q_{\mathrm{trans}}}{N} =\frac{7.8\times10^{27}}{2.41\times10^{22}} \approx 3.2\times10^{5}.

Result. In a macroscopic volume, α≪1\alpha\ll 1 and qtrans≫1q_{\mathrm{trans}}\gg 1, consistent with the continuum approximation used to derive V/Λ3V/\Lambda^3. At 1 bar, qtransq_{\mathrm{trans}} is also much larger than NN, which is the condition assumed for Q=qN/N!Q=q^N/N! in Section 2.4.

Concept Checks

  1. Why does the sum over quantum numbers become well-approximated by an integral at high TT or large VV?

  2. What does the condition “interparticle spacing ≫Λ\gg \Lambda” mean physically?

  3. Why does translation give U∝TU\propto T but not U∝VU\propto V for an ideal gas?

  4. Where does the 1/N!1/N! factor enter when connecting microscopic states to macroscopic entropy?

Key Takeaways