Physics
Universitystatistical-mechanics

The Maxwell-Boltzmann Distribution

Not every molecule in a gas moves at the average speed — most don't. The exact shape of that spread turns out to be forced by nothing more than isotropy and independence.

Before this, you should know:

The previous topic ended with a clean, satisfying equation: 12mv2=32kBT\frac{1}{2}m\langle v^2\rangle = \frac{3}{2}k_BT. It's tempting to read that as "every molecule in the gas moves at speed 3kBT/m\sqrt{3k_BT/m}." That reading is wrong, and it's worth being precise about why.

v2\langle v^2 \rangle is an average — computed over an enormous number of molecules that are constantly colliding with each other, trading energy back and forth in every encounter. Right after a collision, one molecule might be launched at three times its old speed while the one it hit nearly stops. A moment later, a different pair does the same thing in reverse. There is no mechanism in this picture that could make every molecule settle on one common speed — quite the opposite: collisions are exactly what keeps scrambling the individual speeds, second by second, molecule by molecule. What stays fixed, even while every individual molecule's speed is churning, is the overall statistical pattern of speeds across the whole population. That pattern is what this topic finds, exactly.

This is precisely the kind of question probability and statistics was built to answer: not "what is the one value of vv," but "what is the probability distribution over all possible values of vv" — a continuous distribution, since speed isn't restricted to a discrete list of allowed values the way, say, a coin flip is.

Two physical assumptions, and the algebra they force

Here is Maxwell's own argument, and it is worth following closely because it derives the distribution's shape from almost nothing.

Work first with the velocity components (vx,vy,vz)(v_x,v_y,v_z) rather than the speed itself, and make two physical assumptions about the probability density f(vx,vy,vz)f(v_x,v_y,v_z) for a molecule to have a given velocity:

  1. Independence. The three components are statistically independent of one another — knowing vxv_x tells you nothing about vyv_y. This lets the joint density factor: f(vx,vy,vz)=g(vx)g(vy)g(vz)f(v_x,v_y,v_z) = g(v_x)\,g(v_y)\,g(v_z), for some single-variable function gg that is the same for all three directions (nothing in an ordinary gas picks out xx, yy, or zz as special).
  2. Isotropy. The gas has no preferred direction at all, so the density can only depend on the speed, not the direction of travel: f(vx,vy,vz)=F(vx2+vy2+vz2)f(v_x,v_y,v_z) = F(v_x^2+v_y^2+v_z^2) for some function FF.

Put those together:

g(vx)g(vy)g(vz)=F(vx2+vy2+vz2)g(v_x)\,g(v_y)\,g(v_z) = F(v_x^2+v_y^2+v_z^2)

Take the logarithm of both sides, and define hlngh \equiv \ln g and HlnFH \equiv \ln F:

h(vx)+h(vy)+h(vz)=H(vx2+vy2+vz2)h(v_x) + h(v_y) + h(v_z) = H(v_x^2+v_y^2+v_z^2)

Differentiate with respect to vxv_x, holding vy,vzv_y,v_z fixed (the chain rule picks up a factor of 2vx2v_x on the right):

h(vx)=2vxH(vx2+vy2+vz2)h'(v_x) = 2v_x\,H'(v_x^2+v_y^2+v_z^2)

Do the same with respect to vyv_y:

h(vy)=2vyH(vx2+vy2+vz2)h'(v_y) = 2v_y\,H'(v_x^2+v_y^2+v_z^2)

Divide one by the other, and HH' — the same function, evaluated at the same argument in both equations — cancels completely:

h(vx)vx=h(vy)vy\frac{h'(v_x)}{v_x} = \frac{h'(v_y)}{v_y}

The left side depends only on vxv_x; the right side only on vyv_y. Since vxv_x and vyv_y can be varied completely independently of one another, the only way this equation can hold for every choice of both is if each side is the same constant, call it 2a2a:

h(vx)=2avxh(vx)=avx2+bh'(v_x) = 2a\,v_x \quad\Longrightarrow\quad h(v_x) = av_x^2 + b

Exponentiating back, g(vx)=Ceavx2g(v_x) = Ce^{av_x^2}. For this to be a normalizable probability density (one that doesn't blow up as vx±v_x\to\pm\infty), aa must be negative — write a=1/(2σ2)a = -1/(2\sigma^2). Isotropy and independence, together, have forced the distribution of each velocity component to be a Gaussian — precisely the bell-shaped curve that appears throughout probability and statistics as the limit the central limit theorem points to, though here it arrives by a completely different, purely mechanical route.

Fixing the width with what we already know

The one thing left undetermined is σ2\sigma^2, and the previous topic already handed us the answer. We found 12mv2=32kBT\frac{1}{2}m\langle v^2\rangle = \frac32k_BT, and by the same isotropy used there, vx2=13v2=kBTm\langle v_x^2\rangle = \frac13\langle v^2\rangle = \frac{k_BT}{m}. A Gaussian g(vx)evx2/2σ2g(v_x)\propto e^{-v_x^2/2\sigma^2} has variance exactly σ2=vx2\sigma^2 = \langle v_x^2\rangle, so σ2=kBT/m\sigma^2 = k_BT/m. Normalizing gg to integrate to 11 (the standard Gaussian integral eax2dx=π/a\int e^{-ax^2}dx=\sqrt{\pi/a}) gives the fully specified single-component distribution:

g(vx)=m2πkBT  exp(mvx22kBT)g(v_x) = \sqrt{\frac{m}{2\pi k_BT}}\;\exp\left(-\frac{mv_x^2}{2k_BT}\right)

From velocity components to speed

We want the distribution of speed v=vx2+vy2+vz2v = \sqrt{v_x^2+v_y^2+v_z^2}, not of any one component. Multiply the three component distributions together to get the full joint density in velocity space:

f(vx,vy,vz)=(m2πkBT)3/2exp(m(vx2+vy2+vz2)2kBT)=(m2πkBT)3/2emv2/2kBTf(v_x,v_y,v_z) = \left(\frac{m}{2\pi k_BT}\right)^{3/2}\exp\left(-\frac{m(v_x^2+v_y^2+v_z^2)}{2k_BT}\right) = \left(\frac{m}{2\pi k_BT}\right)^{3/2}e^{-mv^2/2k_BT}

This depends only on vv, exactly as isotropy demanded — it assigns equal probability density to every direction at a fixed speed. To find the probability of the speed itself falling in a small range [v,v+dv][v,v+dv], we need to add up this density over every direction consistent with that speed: a thin spherical shell in velocity space, of radius vv and thickness dvdv, whose volume is 4πv2dv4\pi v^2\,dv (the same geometric fact that gives a sphere's surface area). Multiplying the density by that shell volume gives the Maxwell-Boltzmann speed distribution:

F(v)=4π(m2πkBT)3/2v2emv2/2kBTF(v) = 4\pi\left(\frac{m}{2\pi k_BT}\right)^{3/2} v^2\,e^{-mv^2/2k_BT}

Two competing effects are visible directly in this formula, and their tug-of-war is the whole story of its shape: the v2v^2 factor grows with speed (there's simply more "room" — more directions — at larger speeds), while the exponential falls off (fast molecules are exponentially rarer). The result is a curve that starts at zero, rises to a single peak, and decays back toward zero — never symmetric, always with a longer tail toward high speeds than toward low ones.

A plot of the Maxwell-Boltzmann speed distribution F(v) versus speed v: a curve starting at the origin, rising to a peak, and decaying with a long tail to the right. Three vertical dashed lines mark, from left to right, the most probable speed in blue, the mean speed in amber, and the root-mean-square speed in purple, showing they are close together but distinctly ordered.

The same gas, three different "typical" speeds. They are close, but never equal — the distribution is not symmetric, so its peak, its average, and its root-mean-square value are three genuinely different numbers.

Three different "typical" speeds

Because the curve isn't symmetric, "the typical speed" splits into (at least) three legitimately different numbers, each answering a different question.

Most probable speed vpv_p: where the curve peaks. Set dF/dv=0dF/dv=0. Since F(v)v2emv2/2kBTF(v)\propto v^2e^{-mv^2/2k_BT}, product rule gives ddv(v2emv2/2kBT)=emv2/2kBT(2vmv3kBT)\frac{d}{dv}\left(v^2e^{-mv^2/2k_BT}\right) = e^{-mv^2/2k_BT}\left(2v - \frac{mv^3}{k_BT}\right), which vanishes (for v0v\neq0) when 2=mv2/kBT2 = mv^2/k_BT:

vp=2kBTmv_p = \sqrt{\frac{2k_BT}{m}}

Mean speed v\langle v\rangle: the expectation value of vv under this distribution, exactly the integral construction from probability and statistics applied to a continuous variable, v=0vF(v)dv\langle v\rangle = \int_0^\infty v\,F(v)\,dv. Carrying out that integral (it requires one integration by parts and the same family of Gaussian integrals used above) gives:

v=8kBTπm\langle v\rangle = \sqrt{\frac{8k_BT}{\pi m}}

Root-mean-square speed vrms=v2v_{\text{rms}} = \sqrt{\langle v^2\rangle}: this is the one we already know, straight from the previous topic's 12mv2=32kBT\frac12m\langle v^2\rangle = \frac32 k_BT:

vrms=3kBTmv_{\text{rms}} = \sqrt{\frac{3k_BT}{m}}

Compare the numerical coefficients inside the square roots: 2<8/π2.55<32 < 8/\pi\approx2.55 < 3. So vp<v<vrmsv_p < \langle v\rangle < v_{\text{rms}}, always, for any gas at any temperature — a direct fingerprint of the distribution's asymmetry, since a symmetric distribution would force all three to coincide.

Worked example

Nitrogen gas (N2N_2, molar mass M=0.028 kg/molM = 0.028\text{ kg/mol}) is at room temperature, T=300 KT=300\text{ K}. Find its rms speed, and compare it to the speed of sound in nitrogen, cs=γRT/Mc_s = \sqrt{\gamma R T/M} with γ=1.4\gamma = 1.4 for a diatomic gas. (click to reveal the solution)

Setting up: work per mole rather than per molecule, using the universal gas constant R=NAkB=8.314 J/(mol⋅K)R = N_A k_B = 8.314\text{ J/(mol·K)} and molar mass M=NAmM = N_A m, so that kBT/m=RT/Mk_BT/m = RT/M (the Avogadro's number in numerator and denominator cancels). The rms speed formula becomes:

vrms=3RTMv_{\text{rms}} = \sqrt{\frac{3RT}{M}}

Plugging in numbers:

vrms=3×8.314×3000.028=7482.60.028=267,235.7517 m/sv_{\text{rms}} = \sqrt{\frac{3\times8.314\times300}{0.028}} = \sqrt{\frac{7482.6}{0.028}} = \sqrt{267{,}235.7} \approx 517\text{ m/s}

Speed of sound, using the given formula:

cs=γRTM=1.4×8.314×3000.028=3491.90.028=124,710353 m/sc_s = \sqrt{\frac{\gamma R T}{M}} = \sqrt{\frac{1.4\times8.314\times300}{0.028}} = \sqrt{\frac{3491.9}{0.028}} = \sqrt{124{,}710} \approx 353\text{ m/s}

Comparing the two: the ratio is clean and, notably, doesn't depend on TT or MM at all — both cancel:

vrmscs=3RT/MγRT/M=3γ=31.41.46\frac{v_{\text{rms}}}{c_s} = \sqrt{\frac{3RT/M}{\gamma RT/M}} = \sqrt{\frac{3}{\gamma}} = \sqrt{\frac{3}{1.4}} \approx 1.46

Check directly against the numbers: 517/3531.46517/353 \approx 1.46. Matches exactly, as it must.

Interpreting the result: the rms molecular speed in nitrogen at room temperature, about 517 m/s517\text{ m/s} (roughly 1860 km/h1860\text{ km/h}), is faster than the speed of sound in that same gas, about 353 m/s353\text{ m/s}. That is not a coincidence or an accident of nitrogen specifically — sound itself is a pressure wave that propagates through a gas by molecules colliding with their neighbors and passing the disturbance along, so the speed of sound can never exceed the typical molecular speed carrying it; the ratio 3/γ\sqrt{3/\gamma} derived above is always a number close to (and greater than) 11 for any ordinary gas, regardless of what that gas is or how hot it is.

Where this leads

We now have the exact statistical shape of molecular speeds in an ordinary gas at equilibrium — but notice what we still don't have an explanation for. Why a Gaussian, mechanically? Isotropy and independence forced the functional form, but nothing here explained why a system left alone settles into this particular distribution and stays there, rather than some other distribution, or none at all. Answering that question properly requires stepping back from gases specifically and asking a much more general question: given a huge number of possible configurations a system could be in, why do some configurations dominate overwhelmingly over others? That is the question the next topic takes up from scratch, and it is the deepest idea in this entire track.