Maxwell–Boltzmann distribution

a
>
0

{\displaystyle a>0}

x
∈
(
0
;
∞
)

{\displaystyle x\in (0;\infty)}

2
π

x
2

e

−

x
2

/

(

2

a
2

)

a
3

{\displaystyle \sqrt{\frac{2}{\pi}} \frac{x^2 e^{-x^2/\left(2a^2\right)}}{a^3}}

erf
⁡

(

x

2

a

)

−

2
π

x

e

−

x
2

/

(

2

a
2

)

a

{\displaystyle \operatorname{erf}\left(\frac{x}{\sqrt{2} a}\right) -\sqrt{\frac{2}{\pi}} \frac{x e^{-x^2/\left(2a^2\right)}}{a} }

# μ
2
a

2
π

{\displaystyle \mu=2a \sqrt{\frac{2}{\pi}}}

2

a

{\displaystyle \sqrt{2} a}

σ
2

=

a
2

(
3
π
−
8
)

π

{\displaystyle \sigma^2=\frac{a^2(3 \pi - 8)}{\pi}}

γ
1

=

2

2

(
16
−
5
π
)

(
3
π
−
8

)

3

/

2

{\displaystyle \gamma\_1=\frac{2 \sqrt{2} (16 -5 \pi)}{(3 \pi - 8)^{3/2}}}

γ
2

=
4

(

−
96
40
π
−
3

π
2

)

(
3
π
−
8

)
2

{\displaystyle \gamma\_2=4\frac{\left(-96+40\pi-3\pi^2\right)}{(3 \pi - 8)^2}}

ln
⁡

(

a

2
π

)

γ
−

1
2

{\displaystyle \ln\left(a\sqrt{2\pi}\right)+\gamma-\frac{1}{2}}

In physics (in particular in statistical mechanics), the **Maxwell–Boltzmann distribution** is a particular probability distribution named after James Clerk Maxwell and Ludwig Boltzmann.

It was first defined and used for describing particle speeds in idealized gases, where the particles move freely inside a stationary container without interacting with one another, except for very brief collisions in which they exchange energy and momentum with each other or with their thermal environment. The term "particle" in this context refers to gaseous particles only (atoms or molecules), and the system of particles is assumed to have reached thermodynamic equilibrium. The energies of such particles follow what is known as Maxwell–Boltzmann statistics, and the statistical distribution of speeds is derived by equating particle energies with kinetic energy.

Mathematically, the Maxwell–Boltzmann distribution is the chi distribution with three degrees of freedom (the components of the velocity vector in Euclidean space), with a scale parameter measuring speeds in units proportional to the square root of

T

/

m

{\displaystyle T/m}

 (the ratio of temperature and particle mass).

The Maxwell–Boltzmann distribution is a result of the kinetic theory of gases, which provides a simplified explanation of many fundamental gaseous properties, including pressure and diffusion. The Maxwell–Boltzmann distribution applies fundamentally to particle velocities in three dimensions, but turns out to depend only on the speed (the magnitude of the velocity) of the particles. A particle speed probability distribution indicates which speeds are more likely: a particle will have a speed selected randomly from the distribution, and is more likely to be within one range of speeds than another. The kinetic theory of gases applies to the classical ideal gas, which is an idealization of real gases. In real gases, there are various effects (e.g., van der Waals interactions, vortical flow, relativistic speed limits, and quantum exchange interactions) that can make their speed distribution different from the Maxwell–Boltzmann form. However, rarefied gases at ordinary temperatures behave very nearly like an ideal gas and the Maxwell speed distribution is an excellent approximation for such gases. Ideal plasmas, which are ionized gases of sufficiently low density, frequently also have particle distributions that are partially or entirely Maxwellian.

The distribution was first derived by Maxwell in 1860 on heuristic grounds. Boltzmann later, in the 1870s, carried out significant investigations into the physical origins of this distribution.

The distribution can be derived on the ground that it maximizes the entropy of the system. A list of derivations are:

1. Maximum entropy probability distribution in the phase space, with the constraint of conservation of average energy

⟨
H
# ⟩
E

{\displaystyle \langle H \rangle = E}

;
2. Canonical ensemble.

## Distribution function

Assuming the system of interest contains a large number of particles, the fraction of the particles within an infinitesimal element of three-dimensional velocity space,

d
3

v

{\displaystyle d^3v}

, centered on a velocity vector of magnitude

v

{\displaystyle v}

, is

f
(
v
)

d
3

v

{\displaystyle f(v) d^3v}

, in which

f
(
v
)

d

3

# v

(

m

2
π
k
T

)

3

/

2

e

−

m

v
2

2
k
T

d

3

v
,

{\displaystyle f(v) ~\mathrm{d}^3v = \left(\frac{m}{2 \pi kT}\right)^{3/2}\, e^{- \frac{mv^2}{2kT}} ~\mathrm{d}^3v, }

where

m

{\displaystyle m}

 is the particle mass and

k
T

{\displaystyle kT}

 is the product of Boltzmann's constant and thermodynamic temperature.

One can write the element of velocity space as d

3

v

{\displaystyle ^3v}

 = d

v
x

{\displaystyle v\_x}

d

v
y

{\displaystyle v\_y}

d

v
z

{\displaystyle v\_z}

, for velocities in a standard Cartesian coordinate system, or as d

3

v

{\displaystyle ^3v}

 =

v
2

{\displaystyle v^2}

d

v

{\displaystyle v}

d

Ω

{\displaystyle \Omega}

 in a standard spherical coordinate system, where d

Ω

{\displaystyle \Omega}

 is an element of solid angle. Here

f
(
v
)

{\displaystyle f(v)}

 is given as a probability distribution function, properly normalized so that

∫
f
(
v
)

{\displaystyle \int f(v)}

d

3

v

{\displaystyle ^3v}

 over all velocities equals one. In plasma physics, the probability distribution is often multiplied by the particle density, so that the integral of the resulting distribution function equals the density.

The Maxwellian distribution function for particles moving in only one direction, if this direction is

x

{\displaystyle x}

, is

f
(

v
x

)

d

v
x

=

(

m

2
π
k
T

)

1

/

2

e

−

m

v
x
2

2
k
T

d

v
x

,

{\displaystyle f(v\_x) ~\mathrm{d}v\_x = \left(\frac{m}{2 \pi kT}\right)^{1/2}\, e^{- \frac{mv\_x^2}{2kT}} ~\mathrm{d}v\_x, }

which can be obtained by integrating the three-dimensional form given above over

v
y

{\displaystyle v\_y}

 and

v
z

{\displaystyle v\_z}

.

Recognizing the symmetry of

f
(
v
)

{\displaystyle f(v)}

, one can integrate over solid angle and write a probability distribution of speeds as the function

f
(
v
)

d

# v

(

m

2
π
k
T

)

3

/

2

4
π

v
2

e

−

m

v
2

2
k
T

d

v
,

{\displaystyle f(v) ~\mathrm{d}v= \left(\frac{m}{2 \pi kT}\right)^{3/2}\, 4\pi v^2 e^{- \frac{mv^2}{2kT}} ~\mathrm{d}v, }

This probability density function gives the probability, per unit speed, of finding the particle with a speed near

v

{\displaystyle v}

. This equation is simply the Maxwell–Boltzmann distribution (given in the infobox) with distribution parameter

# a

k
T

/

m

{\displaystyle a=\sqrt{kT/m}}

.
The Maxwell–Boltzmann distribution is equivalent to the chi distribution with three degrees of freedom and scale parameter

# a

k
T

/

m

{\displaystyle a=\sqrt{kT/m}}

.

The simplest ordinary differential equation satisfied by the distribution is:

k
T
v

f
′

(
v
)
f
(
v
)
(
m

v
2

−
2
k
T
# )
0
,

{\displaystyle k T v f'(v)+f(v) (m v^2-2 kT)=0,}

f
(
1
# )

2
π

e

−

m

2
k
T

(

m

k
T

)

3

/

2

{\displaystyle f(1)=\sqrt{\frac{2}{\pi }} e^{-\frac{m}{2 k T}} \left(\frac{m}{k T}\right)^{3/2}}

or in unitless presentation:

a
2

x

f
′

(
x
)

(

x
2

−
2

a
2

)

f
(
x
# )
0
,

{\displaystyle a^2 x f'(x)+\left(x^2-2 a^2\right) f(x)=0, }

f
(
1
# )

2
π

e

−

1

2

a
2

a
3

.

{\displaystyle f(1)=\frac{\sqrt{\frac{2}{\pi }} e^{-\frac{1}{2 a^2}}}{a^3}.}

With the Darwin–Fowler method of mean values, the Maxwell–Boltzmann distribution is obtained as an exact result.

## Relation to the 2D Maxwell–Boltzmann distribution

For particles confined to move in a plane, the speed distribution is given by

P
(
s
<

v
→

<
s
d
s
# )

m
s

k
T

exp
⁡

(

−

m

s
2

2
k
T

)

d
s

{\displaystyle P(s < |\vec{v}| < s + ds) = \frac{ms}{kT}\exp\bigg(-\frac{ms^2}{2kT}\bigg) ds }

This distribution is used for describing systems in equilibrium. However, most systems do not start out in their equilibrium state. The evolution of a system towards its equilibrium state is governed by the Boltzmann equation. The equation predicts that for short range interactions, the equilibrium velocity distribution will follow a Maxwell–Boltzmann distribution. To the right is a molecular dynamics (MD) simulation in which 900 hard sphere particles are constrained to move in a rectangle. They interact via perfectly elastic collisions. The system is initialized out of equilibrium, but the velocity distribution (in blue) quickly converges to the 2D Maxwell–Boltzmann distribution (in orange).

## Typical speeds

The mean speed

⟨
v
⟩

{\displaystyle \langle v \rangle}

,
most probable speed (mode) vp,
and root-mean-square speed

⟨

v
2

⟩

{\displaystyle \sqrt{\langle v^2 \rangle}}

can be obtained from properties of the Maxwell distribution.

This works well for nearly ideal, monatomic gases like helium, but also for molecular gases like diatomic oxygen.
This is because despite the larger heat capacity (larger internal energy at the same temperature) due to their larger number of degrees of freedom, their translational kinetic energy (and thus their speed) is unchanged.

* The most probable speed, vp, is the speed most likely to be possessed by any molecule (of the same mass m) in the system and corresponds to the maximum value or mode of f(v). To find it, we calculate the derivative df/dv, set it to zero and solve for v:

d
f
(
v
)

d
v

=
−
8
π

(

m

2
π
k
T

)

3

/

2

v

e

−

m

v
2

2
k
T

(

m

v
2

2
k
T

−
1

)

=
0

{\displaystyle \frac{df(v)}{dv} = -8\pi \left(\frac{m}{2 \pi kT}\right)^{3/2}\ v\ e^{-\frac{mv^2}{2kT}} \left(\frac{mv^2}{2kT}-1\right) = 0}

with the solution:

m

v
p
2

2
k
T

=
1

{\displaystyle \frac{mv\_p^2}{2kT} = 1 }

v
p

=

2
k
T

m

=

2
R
T

M

{\displaystyle v\_p = \sqrt { \frac{2kT}{m} } = \sqrt { \frac{2RT}{M} }}

R is the gas constant and M is molar mass of the substance, and thus may be calculated as a product of particle mass, *m*, and Avogadro constant, *N**a*:

# M
m

N
a

{\displaystyle M = m N\_a}

For diatomic nitrogen (N2, the primary component of air)
at room temperature (300 K), this gives

v
p

≈

2
⋅

8.31

J
⋅

mol

−
1

K

−
1

300

K

0.028

kg
⋅

mol

−
1

≈
422

m/s
.

{\displaystyle v\_p \approx \sqrt{\frac{2\cdot{}8.31\ \text{J}\cdot{}\text{mol}^{-1}\text{K}^{-1}\ 300\ \text{K}}{0.028\ \text{kg}\cdot{}\text{mol}^{-1}}} \approx 422\ \text{m/s}.}
* The mean speed is the expected value of the speed distribution, setting

# b

1

2

a
2

=

m

2
k
T

{\displaystyle b=\frac{1}{2a^2}=\frac{m}{2kT}}

:

⟨
v
# ⟩

∫
0

∞

v

f
(
v
)

d
v

{\displaystyle \langle v \rangle = \int\_0^{\infty} v \, f(v) \, dv}

=
4
π

(

b
π

)

3
2

∫

0

∞

v
3

e

−
b

v

2

d
v

{\displaystyle = 4 \pi \left (\frac{b}{ \pi } \right )^\frac{3}{2} \int\_{0}^{\infty} v^3\ e^{-bv^{2}}dv\,\!}

=
4
π

(

b
π

)

3
2

1

2

b
2

=

4

π
b

{\displaystyle = 4 \pi \left (\frac{b}{ \pi } \right )^\frac{3}{2} \frac{1}{2b^2} = \sqrt{\frac{4}{\pi b}} \,\!}

=

8
k
T

π
m

=

8
R
T

π
M

=

2

π

v
p

{\displaystyle = \sqrt { \frac{8kT}{\pi m}}= \sqrt { \frac{8RT}{\pi M}} = \frac{2}{\sqrt{\pi}} v\_p }
* The mean square speed

⟨

v
2

⟩

{\displaystyle \langle v^2 \rangle}

 is the second-order raw moment of the speed distribution. The "root mean square speed"

v

r
m
s

{\displaystyle v\_\mathrm{rms}}

 is the square root of the mean square speed, corresponding to the speed of a particle with median kinetic energy, setting

# b

1

2

a
2

=

m

2
k
T

{\displaystyle b=\frac{1}{2a^2}=\frac{m}{2kT}}

:

v

r
m
s

=

⟨

v
2

⟩

=

(

∫
0

∞

v
2

f
(
v
)

d
v

)

1

/

2

{\displaystyle v\_\mathrm{rms} = \sqrt{\langle v^2 \rangle} = \left(\int\_0^{\infty} v^2 \, f(v) \, dv \right)^{1/2}}

=

(

4
π

(

b
π

)

3
2

∫

0

∞

v
4

e

−
b

v
2

d
v

)

1

/

2

{\displaystyle = \left( 4 \pi \left (\frac{b}{ \pi } \right )^\frac{3}{2} \int\_{0}^{\infty} v^4\ e^{-bv^2}dv\right)^{1/2}\,\!}

=

(

4
π

(

b
π

)

3
2

3
8

π

b
5

)

1

/

2

=

(

3

2
b

)

1

/

2

{\displaystyle = \left(4 \pi \left (\frac{b}{\pi}\right )^\frac{3}{2} \frac{3}{8} \sqrt{\frac{\pi}{b^5}} \right)^{1/2} = \left( \frac{3}{2b} \right)^{1/2}\,\!}

=

3
k
T

m

=

3
R
T

M

=

3
2

v
p

{\displaystyle = \sqrt { \frac{3kT}{m}}= \sqrt { \frac{3RT}{M} } = \sqrt{ \frac{3}{2} } v\_p }

In summary, the typical speeds are related as follows:

v
p

≈
88.6
%

⟨
v
⟩
<
⟨
v
⟩
<
108.5
%

⟨
v
⟩
≈

v

r
m
s

.

{\displaystyle v\_p \approx 88.6\%\ \langle v \rangle < \langle v \rangle < 108.5\%\ \langle v \rangle \approx v\_\mathrm{rms}. }

The root mean square speed is directly related to the speed of sound c in the gas, by

# c

γ
3

v

r
m
s

=

f
2

3
f

v

r
m
s

=

f
2

2
f

v
p

,

{\displaystyle c = \sqrt{\frac{\gamma}{3}}\ v\_\mathrm{rms} = \sqrt{\frac{f+2}{3f}}\ v\_\mathrm{rms} = \sqrt{\frac{f+2}{2f}}\ v\_p ,}

where

# γ
1

2
f

{\displaystyle \gamma = 1 + \frac{2}{f}}

 is the adiabatic index, f is the number of degrees of freedom of the individual gas molecule. For the example above, diatomic nitrogen (approximating air) at 300 K,

# f
5

{\displaystyle f = 5}

 and

# c

7
15

v

r
m
s

≈
68
%

v

r
m
s

≈
84
%

v
p

≈
353

m

/

s

,

{\displaystyle c = \sqrt{\frac{7}{15}}v\_\mathrm{rms} \approx 68\%\ v\_\mathrm{rms} \approx 84\%\ v\_p \approx 353\ \mathrm{m/s}, }

the true value for air can be approximated by using the average molar weight of air (29 g/mol), yielding
347 m/s at 300 K (corrections for variable humidity are of the order of 0.1% to 0.6%).

The average relative velocity

v

r
e
l

≡
⟨

v
→

1

−

v
→

2

# ⟩
∫

d
3

v
1

d
3

v
2

v
→

1

−

v
→

2

f
(

v
→

1

)
f
(

v
→

2

# )

4

π

k
T

m

=

2

⟨
v
⟩

where the three-dimensional velocity distribution is

f
(

v
→

)
≡

1

(
2
π
k
T

/

m

)

3

/

2

e

−

1
2

m

v
→

2

/

k
T

.

{\displaystyle f(\vec{v}) \equiv \frac{1}{(2\pi kT/m)^{3/2}}e^{-\frac12 m\vec{v}^2/kT}. }

The integral can easily be done by changing to coordinates

u
→

=

v
→

1

−

v
→

2

{\displaystyle \vec{u} = \vec{v}\_1-\vec{v}\_2 }

 and

U
→

=

v
→

1

v
→

2

2

.

{\displaystyle \vec{U} = \frac{\vec{v}\_1+\vec{v}\_2}{2}.}

## Derivation and related distributions

### Maxwell–Boltzmann statistics

Main articles: Maxwell–Boltzmann statistics#Derivations, Boltzmann distribution
The original derivation in 1860 by James Clerk Maxwell was an argument based on molecular collisions of the Kinetic theory of gases as well as certain symmetries in the speed distribution function; Maxwell also gave an early argument that these molecular collisions entail a tendency towards equilibrium. After Maxwell, Ludwig Boltzmann in 1872 also derived the distribution on mechanical grounds and argued that gases should over time tend toward this distribution, due to collisions (see H-theorem). He later (1877) derived the distribution again under the framework of statistical thermodynamics. The derivations in this section are along the lines of Boltzmann's 1877 derivation, starting with result known as Maxwell–Boltzmann statistics (from statistical thermodynamics). Maxwell–Boltzmann statistics gives the average number of particles found in a given single-particle microstate. Under certain assumptions, the logarithm of the fraction of particles in a given microstate is proportional to the ratio of the energy of that state to the temperature of the system:

−
log
⁡

(

N
i

N

)

∝

E
i

T

.

{\displaystyle -\log \left(\frac{N\_i}{N}\right) \propto \frac{E\_i}{T}.}

The assumptions of this equation are that the particles do not interact, and that they are classical; this means that each particle's state can be considered independently from the other particles' states. Additionally, the particles are assumed to be in thermal equilibrium.

This relation can be written as an equation by introducing a normalizing factor:

N
i

N

=

exp
⁡
(
−

E
i

/

k
T
)

∑
j

exp
⁡
(
−

E
j

/

k
T
)

{\displaystyle
\frac{N\_i} N = \frac{\exp(-E\_i/kT) } { \sum\_j \exp(-E\_j/kT) }}

where:

* Ni is the expected number of particles in the single-particle microstate i,
* N is the total number of particles in the system,
* Ei is the energy of microstate i,
* the sum over index j takes into account all microstates,
* T is the equilibrium temperature of the system,
* k is the Boltzmann constant.

The denominator in Equation (**1**) is simply a normalizing factor so that the ratios

N
i

:
N

{\displaystyle N\_i:N}

 add up to unity — in other words it is a kind of partition function (for the single-particle system, not the usual partition function of the entire system).

Because velocity and speed are related to energy, Equation (**1**) can be used to derive relationships between temperature and the speeds of gas particles. All that is needed is to discover the density of microstates in energy, which is determined by dividing up momentum space into equal sized regions.

### Distribution for the momentum vector

The potential energy is taken to be zero, so that all energy is in the form of kinetic energy.
The relationship between kinetic energy and momentum for massive non-relativistic particles is

# E

p
2

2
m

{\displaystyle E=\frac{p^2}{2m}}

where *p*2 is the square of the momentum vector
**p** = [*p**x*, *p**y*, *p**z*]. We may therefore rewrite Equation (**1**) as:

N
i

N

=

1
Z

exp
⁡

[

−

p

i
,
x

2

p

i
,
y

2

p

i
,
z

2

2
m
k
T

]

{\displaystyle
\frac{N\_i}{N} =
\frac{1}{Z}
\exp \left[
-\frac{p\_{i, x}^2 + p\_{i, y}^2 + p\_{i, z}^2}{2mkT}
\right]}

where *Z* is the partition function, corresponding to the denominator in Equation (**1**). Here *m* is the molecular mass of the gas, *T* is the thermodynamic temperature and *k* is the Boltzmann constant. This distribution of

N
i

:
N

{\displaystyle N\_i:N}

 is proportional to the probability density function *f***p** for finding a molecule with these values of momentum components, so:

f

p

(

p
x

,

p
y

,

p
z

)
∝
exp
⁡

[

−

p
x
2

p
y
2

p
z
2

2
m
k
T

]

{\displaystyle
f\_\mathbf{p} (p\_x, p\_y, p\_z)
\propto
\exp \left[
-\frac{p\_x^2 + p\_y^2 + p\_z^2}{2mkT}
\right]}

The normalizing constant can be determined by recognizing that the probability of a molecule having *some* momentum must be 1.
Integrating the exponential in (**4**) over all *p**x*, *p**y*, and *p**z* yields a factor of

∭

−
∞

∞

exp
⁡

[

−

p
x
2

p
y
2

p
z
2

2
m
k
T

]

d

p
x

d

p
y

d

p
z

=

(

π

2
m
k
T

)
3

{\displaystyle \iiint\_{-\infty}^{+\infty} \exp \left[ -\frac{p\_x^2 + p\_y^2 + p\_z^2}{2mkT}\right] dp\_x\ dp\_y\ dp\_z = {(\sqrt{\pi} \sqrt{2mkT})^3}}

So that the normalized distribution function is:

f

p

(

p
x

,

p
y

,

p
z

# )

(

2
π
m
k
T

)

−
3

/

2

exp
⁡

[

−

p
x
2

p
y
2

p
z
2

2
m
k
T

]

{\displaystyle
f\_\mathbf{p} (p\_x, p\_y, p\_z) =
\left( 2 \pi mkT \right)^{-3/2}
\exp \left[
-\frac{p\_x^2 + p\_y^2 + p\_z^2}{2mkT}
\right]}

   (6)

The distribution is seen to be the product of three independent normally distributed variables

p
x

{\displaystyle p\_x}

,

p
y

{\displaystyle p\_y}

, and

p
z

{\displaystyle p\_z}

, with variance

m
k
T

{\displaystyle mkT}

. Additionally, it can be seen that the magnitude of momentum will be distributed as a Maxwell–Boltzmann distribution, with

# a

m
k
T

{\displaystyle a=\sqrt{mkT}}

.
The Maxwell–Boltzmann distribution for the momentum (or equally for the velocities) can be obtained more fundamentally using the H-theorem at equilibrium within the Kinetic theory of gases framework.

### Distribution for the energy

The energy distribution is found imposing

f
E

(
E
)
d
# E

f
p

(

p

)

d
3

p

,

{\displaystyle
 f\_E(E) dE = f\_p(\textbf p) d^3 \textbf p,
}

where

d
3

p

{\displaystyle d^3 \textbf p}

 is the infinitesimal phase-space volume of momenta corresponding to the energy interval

d
E

{\displaystyle dE}

.
Making use of the spherical symmetry of the energy-momentum dispersion relation

# E

p

2

/

2
m

{\displaystyle E=| \textbf p|^2/2m}

,
this can be expressed in terms of

d
E

{\displaystyle dE}

 as

d
3

p

=
4
π

p

2

d

p

=
4
π
m

2
m
E

d
E
.

{\displaystyle
}

Using then (**8**) in (**7**), and expressing everything in terms of the energy

E

{\displaystyle E}

, we get

f
E

(
E
)
d
# E

1

(
2
π
m
k
T

)

3

/

2

e

−
E

/

k
T

4
π
m

2
m
E

d
# E
2

E
π

(

1

k
T

)

3

/

2

exp
⁡

(

−
E

k
T

)

d
E

{\displaystyle
 f\_E(E) dE = \frac{1}{(2\pi m k T)^{3/2}} e^{-E/kT} 4 \pi m \sqrt{2mE} dE = 2 \sqrt{\frac{E}{\pi}} \left( \frac{1}{kT} \right)^{3/2} \exp\left(\frac{-E}{kT} \right) dE
}

and finally

f
E

(
E
# )
2

E
π

(

1

k
T

)

3

/

2

exp
⁡

(

−
E

k
T

)

{\displaystyle f\_E(E) = 2 \sqrt{\frac{E}{\pi}} \left( \frac{1}{kT} \right)^{3/2} \exp\left(\frac{-E}{kT} \right)}

   (9)

Since the energy is proportional to the sum of the squares of the three normally distributed momentum components, this energy distribution can be written equivalently as a gamma distribution, using a shape parameter,

k

s
h
a
p
e

=
3

/

2

{\displaystyle {k}\_{shape} = 3/2}

 and a scale parameter,

θ

s
c
a
l
e

=
k
T

{\displaystyle {\theta}\_{scale} = kT}

.

Using the equipartition theorem, given that the energy is evenly distributed among all three degrees of freedom in equilibrium, we can also split

f
E

(
E
)
d
E

{\displaystyle f\_E(E) dE}

 into a set of chi-squared distributions, where the energy per degree of freedom,

ϵ

{\displaystyle \epsilon}

, is distributed as a chi-squared distribution with one degree of freedom,

f
ϵ

(
ϵ
)

d
# ϵ

1

π
ϵ
k
T

exp
⁡

[

−
ϵ

k
T

]

d
ϵ

{\displaystyle
f\_\epsilon(\epsilon)\,d\epsilon= \sqrt{\frac{1 }{\pi \epsilon kT}}~\exp\left[\frac{-\epsilon}{kT}\right]\,d\epsilon
}

At equilibrium, this distribution will hold true for any number of degrees of freedom. For example, if the particles are rigid mass dipoles of fixed dipole moment, they will have three translational degrees of freedom and two additional rotational degrees of freedom. The energy in each degree of freedom will be described according to the above chi-squared distribution with one degree of freedom, and the total energy will be distributed according to a chi-squared distribution with five degrees of freedom. This has implications in the theory of the specific heat of a gas.

The Maxwell–Boltzmann distribution can also be obtained by considering the gas to be a type of quantum gas for which the approximation *ε >> k T* may be made.

### Distribution for the velocity vector

Recognizing that the velocity probability density *f***v** is proportional to the momentum probability density function by

f

v

d
3

# v

f

p

(

d
p

d
v

)

3

d
3

v

{\displaystyle
f\_\mathbf{v} d^3v = f\_\mathbf{p} \left(\frac{dp}{dv}\right)^3 d^3v
}

and using **p** = m**v** we get

f

v

(

v
x

,

v
y

,

v
z

# )

(

m

2
π
k
T

)

3

/

2

exp
⁡

[

−

m
(

v
x
2

v
y
2

v
z
2

)

2
k
T

]

{\displaystyle
f\_\mathbf{v} (v\_x, v\_y, v\_z) =
\left(\frac{m}{2 \pi kT} \right)^{3/2}
\exp \left[-
\frac{m(v\_x^2 + v\_y^2 + v\_z^2)}{2kT}
\right]
}

which is the Maxwell–Boltzmann velocity distribution. The probability of finding a particle with velocity in the infinitesimal element [*dv**x*, *dv**y*, *dv**z*] about velocity **v** = [*v**x*, *v**y*, *v**z*] is

f

v

(

v
x

,

v
y

,

v
z

)

d

v
x

d

v
y

d

v
z

.

{\displaystyle
f\_\mathbf{v} \left(v\_x, v\_y, v\_z\right)\, dv\_x\, dv\_y\, dv\_z.
}

Like the momentum, this distribution is seen to be the product of three independent normally distributed variables

v
x

{\displaystyle v\_x}

,

v
y

{\displaystyle v\_y}

, and

v
z

{\displaystyle v\_z}

, but with variance

k
T

m

{\displaystyle \frac{kT}{m}}

.
It can also be seen that the Maxwell–Boltzmann velocity distribution for the vector velocity
[*v**x*, *v**y*, *v**z*] is the product of the distributions for each of the three directions:

f

v

(

v
x

,

v
y

,

v
z

)

=

f
v

(

v
x

)

f
v

(

v
y

)

f
v

(

v
z

)

{\displaystyle
f\_\mathbf{v} \left(v\_x, v\_y, v\_z\right) = f\_v (v\_x)f\_v (v\_y)f\_v (v\_z)
}

where the distribution for a single direction is

f
v

(

v
i

# )

m

2
π
k
T

exp
⁡

[

−
m

v
i
2

2
k
T

]

.

{\displaystyle
f\_v (v\_i) =
\sqrt{\frac{m}{2 \pi kT}}
\exp \left[
\frac{-mv\_i^2}{2kT}
\right].
}

Each component of the velocity vector has a normal distribution with mean

μ

v
x

=

μ

v
y

=

μ

v
z

=
0

{\displaystyle \mu\_{v\_x} = \mu\_{v\_y} = \mu\_{v\_z} = 0}

 and standard deviation

σ

v
x

=

σ

v
y

=

σ

v
z

=

k
T

m

{\displaystyle \sigma\_{v\_x} = \sigma\_{v\_y} = \sigma\_{v\_z} = \sqrt{\frac{kT}{m}}}

, so the vector has a 3-dimensional normal distribution, a particular kind of multivariate normal distribution, with mean

μ

v

=

0

{\displaystyle \mu\_{\mathbf{v}} = {\mathbf{0}} }

 and covariance

Σ

v

=

(

k
T

m

)

I

{\displaystyle \Sigma\_{\mathbf{v}} = \left(\frac{kT}{m}\right)I}

, where

I

{\displaystyle I}

 is the

3
×
3

{\displaystyle 3 \times 3
}

 identity matrix.

### Distribution for the speed

The Maxwell–Boltzmann distribution for the speed follows immediately from the distribution of the velocity vector, above. Note that the speed is

# v

v
x
2

v
y
2

v
z
2

{\displaystyle v = \sqrt{v\_x^2 + v\_y^2 + v\_z^2}}

and the volume element in spherical coordinates

d

v
x

d

v
y

d

v
z

=

v
2

sin
⁡
θ

d
v

d
θ

d
# ϕ

v
2

d
v

d
Ω

{\displaystyle dv\_x\, dv\_y\, dv\_z = v^2 \sin \theta\, dv\, d\theta\, d\phi = v^2 dv\, d\Omega}

where

ϕ

{\displaystyle \phi}

 and

θ

{\displaystyle \theta}

 are the spherical coordinate angles of the velocity vector. Integration of the probability density function of the velocity over the solid angles

d
Ω

{\displaystyle d\Omega}

 yields an additional factor of

4
π

{\displaystyle 4\pi}

.
The speed distribution with substitution of the speed for the sum of the squares of the vector components:

f
(
v
# )

(

2
π

)

1

/

2

(

m

k
T

)

3

/

2

v
2

exp
⁡

[

−

m

v
2

2
k
T

]

.

{\displaystyle
f (v) =
\left(\frac{2}{\pi} \right)^{1/2}
\left(\frac{m}{ kT} \right)^{3/2}
v^2
\exp \left[-
\frac{mv^2}{2kT}
\right].
}

## In *n*-dimensional space

In *n*-dimensional space, Maxwell–Boltzmann distribution becomes:

f
(
v
)

d

n

# v

(

m

2
π
k
T

)

n

/

2

e

−

m

v

2

2
k
T

d

n

v

{\displaystyle f(v) ~\mathrm{d}^nv = \left(\frac{m}{2 \pi kT}\right)^{n/2}\, e^{- \frac{m|v|^2}{2kT}} ~\mathrm{d}^nv }

Speed distribution becomes:

f
(
v
)

d

# v
const.
×

e

−

m

v
2

2
k
T

×

v

n
−
1

d

v

{\displaystyle f(v) ~\mathrm{d}v = \text{const.} \times e^{- \frac{mv^2}{2kT}} \times v^{n-1} ~\mathrm{d}v }

The following integral result is useful:

∫

0

∞

v
a

e

−

m

v
2

2
k
T

d
v

=

[

2
k
T

m

]

(
a
1
)

/

2

∫

0

∞

e

−
x

x

a
2

d

x

1
2

=

[

2
k
T

m

]

(
a
1
)

/

2

∫

0

∞

e

−
x

x

a
2

x

−

1
2

2

d
x

=

[

2
k
T

m

]

(
a
1
)

/

2

Γ
(

a
1

2

)

2

{\displaystyle \begin{align}
\int\_{0}^{+\infty} v^a e^{-\frac{mv^2}{2kT}} dv
&= \left[\frac{2kT}{m}\right]^{(a+1)/2} \int\_{0}^{+\infty} e^{-x}x^{\frac{a}{2}}dx^{\frac{1}{2}}\\
&= \left[\frac{2kT}{m}\right]^{(a+1)/2} \int\_{0}^{+\infty} e^{-x}x^{\frac{a}{2}}\frac{x^{-\frac{1}{2}}}{2}dx\\
&= \left[\frac{2kT}{m}\right]^{(a+1)/2} \frac{\Gamma (\frac{a+1}{2})}{2}
\end{align}}

where

Γ
(
z
)

{\displaystyle \Gamma(z)}

is the Gamma function. This result can be used to calculate the moments of speed distribution function:

⟨
v
⟩

=

∫

0

∞

v
⋅

v

n
−
1

e

−

m

v
2

2
k
T

d
v

∫

0

∞

v

n
−
1

e

−

m

v
2

2
k
T

d
v

=

[

2
k
T

m

]

1

/

2

Γ
(

n
1

2

)

Γ
(

n
2

)

{\displaystyle \begin{align}
\langle v \rangle
&= \frac{\int\_{0}^{+\infty} v \cdot v^{n-1} e^{-\frac{mv^2}{2kT}} dv}
{\int\_{0}^{+\infty} v^{n-1} e^{-\frac{mv^2}{2kT}} dv} \\
&= \left[\frac{2kT}{m}\right]^{1/2} \frac{\Gamma (\frac{n+1}{2})}{\Gamma (\frac{n}{2})}
\end{align}}

which is the mean speed itself

v

avg

=
⟨
v
# ⟩

[

2
k
T

m

]

1

/

2

Γ
(

n
1

2

)

Γ
(

n
2

)

{\displaystyle v\_{\text{avg}} = \langle v \rangle = \left[\frac{2kT}{m}\right]^{1/2} \frac{\Gamma (\frac{n+1}{2})}{\Gamma (\frac{n}{2})}}

.

⟨

v
2

⟩

=

∫

0

∞

v
2

⋅

v

n
−
1

e

−

m

v
2

2
k
T

d
v

∫

0

∞

v

n
−
1

e

−

m

v
2

2
k
T

d
v

=

[

2
k
T

m

]

Γ
(

n
2

2

)

Γ
(

n
2

)

=

[

2
k
T

m

]

n
2

=

n
k
T

m

{\displaystyle \begin{align}
\langle v^2 \rangle
&= \frac{\int\_{0}^{+\infty} v^2 \cdot v^{n-1} e^{-\frac{mv^2}{2kT}} dv}
{\int\_{0}^{+\infty} v^{n-1} e^{-\frac{mv^2}{2kT}} dv} \\
&= \left[\frac{2kT}{m}\right] \frac{\Gamma (\frac{n+2}{2})}{\Gamma (\frac{n}{2})} \\
&= \left[\frac{2kT}{m}\right] \frac{n}{2} = \frac{nkT}{m}
\end{align}}

which gives root-mean-square speed

v

rms

=

⟨

v
2

⟩

=

[

n
k
T

m

]

1

/

2

{\displaystyle v\_{\text{rms}} = \sqrt{\langle v^2 \rangle} = \left[\frac{nkT}{m}\right]^{1/2} }

.

The derivative of speed distribution function:

d
f
(
v
)

d
v

=
const.
×

e

−

m

v
2

2
k
T

(

−

m
v

k
T

v

n
−
1

(
n
−
1
)

v

n
−
2

)

=
0

{\displaystyle \frac{df(v)}{dv} = \text{const.} \times \ e^{-\frac{mv^2}{2kT}} \left(-\frac{mv}{kT} v^{n-1}+(n-1)v^{n-2}\right) = 0 }

This yields the most probable speed (mode)

v

p

=

[

(
n
−
1
)
k
T

m

]

1

/

2

{\displaystyle v\_{\text{p}} = \left[\frac{(n-1)kT}{m}\right]^{1/2}}

.

## See also

* Quantum Boltzmann equation
* Maxwell–Boltzmann statistics
* Maxwell–Jüttner distribution
* Boltzmann distribution
* Boltzmann factor
* Rayleigh distribution
* Kinetic theory of gases