### Root-mean-square speed

Root-mean-square speed is the measure of the speed of particles in a gas that is most convenient for problem solving within the kinetic theory of gases. It is defined as the square root of the average velocity-squared of the molecules in a gas. It is given by the formula

$v_\mathrm{rms} = \sqrt {{3RT}\over{M_m}}$
where vrms is the root mean square of the speed, Mm is the molar mass of the gas in kilograms per mole, R is the molar gas constant, and T is the temperature in kelvin. Although the molecules in a sample of gas have an average kinetic energy (and therefore an average speed) the individual molecules move at various speeds and they stop and change direction according to the law of density measurements and isolation, i.e. they exhibit a distribution of speeds. Some move fast, others relatively slowly. Collisions change individual molecular speeds but the distribution of speeds remains the same. This equation is derived from kinetic theory of gases using Maxwell–Boltzmann distribution function. The higher the temperature, the greater the mean velocity will be. This works well for both nearly ideal, atomic gases like helium and for molecular gases like diatomic oxygen. This is because despite the larger internal energy in many molecules (compared to that for an atom), 3RT/2 is still the mean translational kinetic energy. This can also be written in terms of the Boltzmann constant (k) as
$v_\mathrm{rms} = \sqrt {{3kT}\over{m}}$
where m is the mass of one molecule of the gas.
This can be derived with energy methods:
$E_\mathrm{k} = {{3}\over{2}}nRT = \frac{3}{2}NkT$
where Ek is the kinetic energy and N is the number of gas molecules.
$E_\mathrm{k,molecule} = {{1}\over{2}}mv^2$
Given that v2 ignores direction, it is logical to assume that the formula can be extended to the entire sample, replacing m with the entire sample's mass, equal to the molar mass times the number of moles n yielding
${{1}\over{2}}nMv^2 = E_\mathrm{k}$
Therefore
$v_\mathrm{rms} = \sqrt {{2E_\mathrm{k}}\over{m}}$
which is equivalent.
The same result is obtained by solving the Gaussian integral containing the Maxwell speed distribution, p(v):
$v_\mathrm{rms} = \sqrt{\int_{0}^{\infty} v^2\ p(v)dv}\,\!$
$= \sqrt{\int_{0}^{\infty} 4 \pi \left (\frac{m}{2 \pi k T} \right )^\frac{3}{2} v^4\ e^{-\frac{v^{2}m}{2kT}}dv}\,\!$
$= \sqrt{4 \pi \left (\frac{m}{2 \pi k T} \right )^\frac{3}{2} \frac{3}{8} \pi^{\frac{1}{2}} \left( \frac{2kT}{m}\right)^{\frac{5}{2}}}\,\!$
$= \sqrt{\frac{3kT}{m}}$