1.2 The kinetic-theory picture

Air, at rest, is a gas of mostly nitrogen and oxygen molecules at room temperature, moving randomly at thermal speeds around 500 m/s, colliding constantly with each other and with whatever boundaries enclose them. The macroscopic state we care about — the three numbers from the previous lesson — is the time-averaged consequence of those microscopic motions.

Pressure, kinetically

A molecule has mass and velocity, so it carries momentum mvmv and kinetic energy 12mv2\tfrac12 m v^2 — the work needed to bring it from rest to speed vv (refresher: kinetic energy →) — where mm is the molecular mass and vv its speed. When a molecule strikes a wall and rebounds, it hands the wall some of that momentum as an impulse; the countless impulses arriving each second add up to a steady force, and that force spread over the wall’s area is the pressure. Pressure is therefore bookkeeping on momentum:

p  =  FA,F  =  Δ(momentum)Δt,p  =  momentum delivered to the wallarea×time.p \;=\; \frac{F}{A}, \qquad F \;=\; \frac{\Delta(\text{momentum})}{\Delta t}, \qquad\Longrightarrow\qquad p \;=\; \frac{\text{momentum delivered to the wall}}{\text{area}\times\text{time}}.

The middle step — force is the rate of momentum delivery — is Newton’s second law in its general form, F=Δ(momentum)/ΔtF = \Delta(\text{momentum})/\Delta t. Everything that follows is a count of that momentum.

Counting the momentum

Put a flat patch of wall of area AA in the yyzz plane, with gas on the +x+x side; only the xx-velocity vxv_x carries a molecule toward or away from it. A molecule moving toward the wall at xx-speed vxv_x travels vxΔtv_x\,\Delta t in a time Δt\Delta t, so it can reach the wall within Δt\Delta t only if it starts within that distance. The molecules close enough to hit therefore fill a slab of thickness vxΔtv_x\,\Delta t against the wall, of volume

Vslab  =  AvxΔt.V_\text{slab} \;=\; A\, v_x\, \Delta t.

Take, for a first pass, a single xx-speed vxv_x and treat every molecule in the slab as heading straight at the wall. With number density nn (molecules per unit volume) the slab holds nAvxΔtn\,A\,v_x\,\Delta t of them, and each rebounds elastically from +vx+v_x to vx-v_x, handing the wall momentum of exactly 2mvx2 m v_x. The momentum delivered in time Δt\Delta t is

(2mvx)per molecule  (nAvxΔt)molecules  =  2nmAvx2Δt.\underbrace{(2 m v_x)}_{\text{per molecule}}\;\underbrace{(n\, A\, v_x\, \Delta t)}_{\text{molecules}} \;=\; 2\, n\, m\, A\, v_x^2\, \Delta t.

Divide by the time for the force, then by the area for the pressure, and both AA and Δt\Delta t cancel — exactly as the bookkeeping above said they would:

p  =  1A2nmAvx2ΔtΔt  =  2nmvx2.p \;=\; \frac{1}{A}\,\frac{2\, n\, m\, A\, v_x^2\, \Delta t}{\Delta t} \;=\; 2\, n\, m\, v_x^2.

This first pass overcounts in two correctable ways. First, the molecules neither share one speed nor all head for the wall: averaging vx2v_x^2 over the real velocity distribution while keeping only the half moving toward the wall replaces vx2v_x^2 by exactly 12vx2\tfrac12\langle v_x^2\rangle, where vx2\langle v_x^2\rangle is the mean-square xx-velocity — turning the leading 22 into 11 and leaving p=nmvx2p = n m\langle v_x^2\rangle. Second, no direction is special, so vx2=13v2\langle v_x^2\rangle = \tfrac13\langle v^2\rangle. Together they give the result:

  p  =  nmvx2  =  13nmv2.  \boxed{\;p \;=\; n\, m\, \langle v_x^2\rangle \;=\; \frac{1}{3}\, n\, m\, \langle v^2 \rangle.\;}

Both corrections are exact for a gas in equilibrium.

The factor of ½: only molecules moving toward the wall count Derivation

The single-speed sketch used nAvxΔtn\,A\,v_x\,\Delta t as the molecule count and a bare vx2v_x^2. Both are repaired at once by sorting the molecules by their xx-velocity and integrating.

Let n(vx)dvxn(v_x)\,dv_x be the number per unit volume with xx-velocity between vxv_x and vx+dvxv_x + dv_x. Only molecules with vx>0v_x>0 move toward the wall, and of those, the ones within vxΔtv_x\,\Delta t strike it in time Δt\Delta t — a slab of volume AvxΔtA\,v_x\,\Delta t. The momentum from this group is the per-impact 2mvx2 m v_x times the count:

d(Δmom)  =  (2mvx)(n(vx)AvxΔt)dvx  =  2mAΔt  vx2n(vx)dvx.d(\Delta\,\text{mom}) \;=\; (2 m v_x)\,\big(n(v_x)\,A\,v_x\,\Delta t\big)\,dv_x \;=\; 2 m A\,\Delta t\; v_x^2\, n(v_x)\,dv_x.

Sum over the molecules that actually approach, vx>0v_x>0:

Δmom  =  2mAΔt0vx2n(vx)dvx.\Delta\,\text{mom} \;=\; 2 m A\,\Delta t \int_{0}^{\infty} v_x^2\, n(v_x)\,dv_x.

In equilibrium the velocity distribution is symmetric — as many molecules move in +x+x as in x-x — so vx2n(vx)v_x^2\, n(v_x) is an even function and the integral over vx>0v_x>0 is exactly half the integral over all vxv_x. That full integral is, by definition of the average, nvx2n\,\langle v_x^2\rangle:

0vx2n(vx)dvx  =  12nvx2.\int_{0}^{\infty} v_x^2\, n(v_x)\,dv_x \;=\; \tfrac12\, n\,\langle v_x^2\rangle.

So the 12\tfrac12 that turns the leading 22 into 11 is exact, and it comes from restricting the sum to approaching molecules. Dividing the momentum by Δt\Delta t (force) and by AA (pressure):

p  =  1AΔmomΔt  =  nmvx2.  p \;=\; \frac{1}{A}\,\frac{\Delta\,\text{mom}}{\Delta t} \;=\; n\, m\, \langle v_x^2\rangle. \;✓

One subtlety in the heuristic: “half the molecules move toward the wall” is the unweighted fraction with vx>0v_x>0, which is also 12\tfrac12. It matches the vx2v_x^2-weighted fraction in the integral only because the distribution is symmetric — which, in equilibrium, it is.

Why one direction carries a third of the motion Derivation

Nothing distinguishes the xx, yy, and zz axes for a gas at rest, so the mean-square velocity components are equal:

vx2  =  vy2  =  vz2.\langle v_x^2\rangle \;=\; \langle v_y^2\rangle \;=\; \langle v_z^2\rangle.

The speed obeys v2=vx2+vy2+vz2v^2 = v_x^2 + v_y^2 + v_z^2. Averaging both sides and using the equality of the three components,

v2  =  vx2+vy2+vz2  =  3vx2vx2  =  13v2.\langle v^2\rangle \;=\; \langle v_x^2\rangle + \langle v_y^2\rangle + \langle v_z^2\rangle \;=\; 3\,\langle v_x^2\rangle \qquad\Longrightarrow\qquad \langle v_x^2\rangle \;=\; \tfrac13\,\langle v^2\rangle.

This is the 13\tfrac13 in the boxed result: of a molecule’s motion, the share pressing on any single wall is one direction out of three. ✓

Pressure as an energy density

The boxed result has a cleaner reading in terms of energy. Multiplying any per-molecule quantity by the number density nn rescales it from “per molecule” to “per unit volume” — the same step that turns the mass of one molecule into the mass density of the gas, ρ=nm\rho = n m (molecules per volume times mass per molecule). Applied to kinetic energy, with each molecule carrying 12mv2\big\langle\tfrac12 m v^2\big\rangle on average, it gives the kinetic-energy density:

u  =  nmolecules per volume  12mv2energy per molecule  =  12nmv2.u \;=\; \underbrace{n}_{\text{molecules per volume}}\;\underbrace{\Big\langle \tfrac12 m v^2 \Big\rangle}_{\text{energy per molecule}} \;=\; \tfrac12\, n\, m\, \langle v^2\rangle.

Comparing this with the boxed pressure gives a clean ratio:

pu  =  13nmv212nmv2  =  1/31/2  =  23,sop  =  23u.\frac{p}{u} \;=\; \frac{\tfrac13\, n\, m\, \langle v^2\rangle}{\tfrac12\, n\, m\, \langle v^2\rangle} \;=\; \frac{1/3}{1/2} \;=\; \frac{2}{3}, \qquad\text{so}\qquad p \;=\; \tfrac23\, u.

Pressure is two-thirds of the kinetic-energy density. The 23\tfrac23 is the 13\tfrac13 from the three directions divided by the 12\tfrac12 in the definition of kinetic energy — the factor of two between mv2m v^2 and 12mv2\tfrac12 m v^2.

Temperature and the ideal-gas law

The last ingredient is the temperature TT. Boltzmann’s constant

kB  =  1.380649×1023 J/Kk_B \;=\; 1.380649\times 10^{-23}\ \text{J/K}

is the fixed conversion factor between temperature and energy: it sets how much kinetic energy corresponds to a given absolute temperature TT (in kelvin, K). The equipartition theorem of statistical mechanics fixes that energy at 32kBT\tfrac32 k_B T of translational kinetic energy per molecule,

12mv2  =  32kBT,somv2  =  3kBT.\Big\langle \tfrac12 m v^2 \Big\rangle \;=\; \tfrac32 k_B T, \qquad\text{so}\qquad m\,\langle v^2\rangle \;=\; 3 k_B T.
Equipartition: where the factor 3/2 comes from Derivation

Equipartition (developed in Physics → Kinetic theory) assigns, on average, an energy 12kBT\tfrac12 k_B T to each independent quadratic term in a system’s energy. A molecule’s translational kinetic energy is a sum of three such terms, one per direction,

12mv2  =  12mvx2+12mvy2+12mvz2,\tfrac12 m v^2 \;=\; \tfrac12 m v_x^2 + \tfrac12 m v_y^2 + \tfrac12 m v_z^2,

so each carries 12kBT\tfrac12 k_B T and the total is

12mv2  =  312kBT  =  32kBT.\Big\langle \tfrac12 m v^2 \Big\rangle \;=\; 3\cdot\tfrac12 k_B T \;=\; \tfrac32 k_B T.

Per direction this reads 12mvx2=12kBT\big\langle\tfrac12 m v_x^2\big\rangle = \tfrac12 k_B T, i.e. vx2=kBT/m\langle v_x^2\rangle = k_B T/m, consistent with vx2=13v2\langle v_x^2\rangle = \tfrac13\langle v^2\rangle above. ✓

Substituting mv2=3kBTm\langle v^2\rangle = 3 k_B T into the boxed result p=13nmv2p = \tfrac13 n m\langle v^2\rangle cancels the 13\tfrac13 against the 33 and leaves the ideal-gas law,

p  =  nkBT.p \;=\; n\, k_B\, T.

The units confirm it: nn is a count per volume (m3\text{m}^{-3}), kBk_B is energy per temperature (J/K\text{J/K}), and TT is a temperature (K\text{K}), so nkBTn\,k_B\,T carries units of J/m3=N/m2=Pa\text{J}/\text{m}^3 = \text{N}/\text{m}^2 = \text{Pa} — an energy per unit volume, which is exactly a pressure.

The simulation

The interactive below runs a 2-D ideal gas: NN identical particles, mass 11, bouncing elastically off the walls of a box of area VV and off each other. Each particle’s velocity components vx,vyv_x, v_y are drawn from independent Gaussians of width σT\sigma\propto\sqrt{T}, so the speed v|v| is distributed according to the Maxwell–Boltzmann law

f(v)  =  mkBTvexp ⁣(mv22kBT),f(v) \;=\; \frac{m}{k_B T}\, v\, \exp\!\Big(-\frac{m v^2}{2 k_B T}\Big),

shown as the red curve on the right. The gray histogram is the measured speed distribution from the simulation, time-averaged as the dynamics run. The two converge to each other — the macroscopic distribution is what the microscopic dynamics produce.

area V = 100% of maxSpeed distributionConverges to Maxwell–Boltzmann020406080Speed (sim units)00.050.100.150.200.25f(v)
80
300 K
100%
⟨v⟩ (sim units/s)
0.0
P (sim units)
0.00
PV / NkT
0.00

Every collision is time-reversible, and energy is conserved exactly. The macroscopic gas law emerges as a statistical statement about a system whose microscopic dynamics are perfectly deterministic: macroscopic thermodynamic equilibrium is consistent with, and indeed implies, vigorous microscopic motion.

What one molecule looks like

Pick any single molecule in the simulation. Its trajectory is a sequence of free flights at constant velocity, punctuated by elastic collisions that scatter it into a new direction with about the same speed. Over many collisions the directions become uncorrelated, and the molecule’s position random-walks through the box.

A caution on language: the next lesson treats a different random-walk-like phenomenon — Brownian motion — that is often conflated with this one. The wandering trajectory of one bath molecule is a microscopic random walk emerging from deterministic, time-reversible physics. What Robert Brown saw under his microscope in 1827 was the motion of a particle very much larger than the bath molecules, jostled by them. That phenomenon needs its own treatment, which the next lesson gives.