Physics:Ideal gas law
Thermodynamics 

The ideal gas law, also called the general gas equation, is the equation of state of a hypothetical ideal gas. It is a good approximation of the behavior of many gases under many conditions, although it has several limitations. It was first stated by Benoît Paul Émile Clapeyron in 1834 as a combination of the empirical Boyle's law, Charles's law, Avogadro's law, and GayLussac's law.^{[1]} The ideal gas law is often written in an empirical form:
[math]\displaystyle{ pV = nRT }[/math] where [math]\displaystyle{ p }[/math], [math]\displaystyle{ V }[/math] and [math]\displaystyle{ T }[/math] are the pressure, volume and temperature respectively; [math]\displaystyle{ n }[/math] is the amount of substance; and [math]\displaystyle{ R }[/math] is the ideal gas constant. It can also be derived from the microscopic kinetic theory, as was achieved (apparently independently) by August Krönig in 1856^{[2]} and Rudolf Clausius in 1857.^{[3]}
Equation
The state of an amount of gas is determined by its pressure, volume, and temperature. The modern form of the equation relates these simply in two main forms. The temperature used in the equation of state is an absolute temperature: the appropriate SI unit is the kelvin.^{[4]}
Common forms
The most frequently introduced forms are:[math]\displaystyle{ pV = nRT = n k_\text{B} N_\text{A} T = N k_\text{B} T }[/math]where:
 [math]\displaystyle{ p }[/math] is the absolute pressure of the gas,
 [math]\displaystyle{ V }[/math] is the volume of the gas,
 [math]\displaystyle{ n }[/math] is the amount of substance of gas (also known as number of moles),
 [math]\displaystyle{ R }[/math] is the ideal, or universal, gas constant, equal to the product of the Boltzmann constant and the Avogadro constant,
 [math]\displaystyle{ k_\text{B} }[/math] is the Boltzmann constant,
 [math]\displaystyle{ N_{A} }[/math] is the Avogadro constant,
 [math]\displaystyle{ T }[/math] is the absolute temperature of the gas,
 [math]\displaystyle{ N }[/math] is the number of particles (usually atoms or molecules) of the gas.
In SI units, p is measured in pascals, V is measured in cubic metres, n is measured in moles, and T in kelvins (the Kelvin scale is a shifted Celsius scale, where 0.00 K = −273.15 °C, the lowest possible temperature). R has for value 8.314 J/(mol·K) = 1.989 ≈ 2 cal/(mol·K), or 0.0821 L⋅atm/(mol⋅K).
Molar form
How much gas is present could be specified by giving the mass instead of the chemical amount of gas. Therefore, an alternative form of the ideal gas law may be useful. The chemical amount, n (in moles), is equal to total mass of the gas (m) (in kilograms) divided by the molar mass, M (in kilograms per mole):
 [math]\displaystyle{ n = \frac{m}{M}. }[/math]
By replacing n with m/M and subsequently introducing density ρ = m/V, we get:
 [math]\displaystyle{ pV = \frac{m}{M} RT }[/math]
 [math]\displaystyle{ p = \frac{m}{V} \frac{RT}{M} }[/math]
 [math]\displaystyle{ p = \rho \frac{R}{M} T }[/math]
Defining the specific gas constant R_{specific(r)} as the ratio R/M,
 [math]\displaystyle{ p = \rho R_\text{specific}T }[/math]
This form of the ideal gas law is very useful because it links pressure, density, and temperature in a unique formula independent of the quantity of the considered gas. Alternatively, the law may be written in terms of the specific volume v, the reciprocal of density, as
 [math]\displaystyle{ pv = R_\text{specific}T. }[/math]
It is common, especially in engineering and meteorological applications, to represent the specific gas constant by the symbol R. In such cases, the universal gas constant is usually given a different symbol such as [math]\displaystyle{ \bar R }[/math] or [math]\displaystyle{ R^* }[/math] to distinguish it. In any case, the context and/or units of the gas constant should make it clear as to whether the universal or specific gas constant is being used.^{[5]}
Statistical mechanics
In statistical mechanics the following molecular equation is derived from first principles
 [math]\displaystyle{ P = nk_\text{B}T, }[/math]
where P is the absolute pressure of the gas, n is the number density of the molecules (given by the ratio n = N/V, in contrast to the previous formulation in which n is the number of moles), T is the absolute temperature, and k_{B} is the Boltzmann constant relating temperature and energy, given by:
 [math]\displaystyle{ k_\text{B} = \frac{R}{N_\text{A}} }[/math]
where N_{A} is the Avogadro constant.
From this we notice that for a gas of mass m, with an average particle mass of μ times the atomic mass constant, m_{u}, (i.e., the mass is μ u) the number of molecules will be given by
 [math]\displaystyle{ N = \frac{m}{\mu m_\text{u}}, }[/math]
and since ρ = m/V = nμm_{u}, we find that the ideal gas law can be rewritten as
 [math]\displaystyle{ P = \frac{1}{V}\frac{m}{\mu m_\text{u}} k_\text{B} T = \frac{k_\text{B}}{\mu m_\text{u}} \rho T. }[/math]
In SI units, P is measured in pascals, V in cubic metres, T in kelvins, and k_{B} = 1.38×10^{−23} J⋅K^{−1} in SI units.
Combined gas law
Combining the laws of Charles, Boyle and GayLussac gives the combined gas law, which takes the same functional form as the ideal gas law says that the number of moles is unspecified, and the ratio of [math]\displaystyle{ PV }[/math] to [math]\displaystyle{ T }[/math] is simply taken as a constant:^{[6]}
 [math]\displaystyle{ \frac{PV}{T}=k, }[/math]
where [math]\displaystyle{ P }[/math] is the pressure of the gas, [math]\displaystyle{ V }[/math] is the volume of the gas, [math]\displaystyle{ T }[/math] is the absolute temperature of the gas, and [math]\displaystyle{ k }[/math] is a constant. When comparing the same substance under two different sets of conditions, the law can be written as
 [math]\displaystyle{ \frac{P_1 V_1}{T_1}= \frac{P_2 V_2}{T_2}. }[/math]
Energy associated with a gas
According to the assumptions of the kinetic theory of ideal gases, one can consider that there are no intermolecular attractions between the molecules, or atoms, of an ideal gas. In other words, its potential energy is zero. Hence, all the energy possessed by the gas is the kinetic energy of the molecules, or atoms, of the gas.
 [math]\displaystyle{ E=\frac{3}{2} n RT }[/math]
This corresponds to the kinetic energy of n moles of a monoatomic gas having 3 degrees of freedom; x, y, z. The table here below gives this relationship for different amounts of a monoatomic gas.
Energy of a monoatomic gas  Mathematical expression 

Energy associated with one mole  [math]\displaystyle{ E=\frac{3}{2}RT }[/math] 
Energy associated with one gram  [math]\displaystyle{ E=\frac{3}{2}rT }[/math] 
Energy associated with one atom  [math]\displaystyle{ E=\frac{3}{2}k_BT }[/math] 
Applications to thermodynamic processes
The table below essentially simplifies the ideal gas equation for a particular processes, thus making this equation easier to solve using numerical methods.
A thermodynamic process is defined as a system that moves from state 1 to state 2, where the state number is denoted by subscript. As shown in the first column of the table, basic thermodynamic processes are defined such that one of the gas properties (P, V, T, S, or H) is constant throughout the process.
For a given thermodynamics process, in order to specify the extent of a particular process, one of the properties ratios (which are listed under the column labeled "known ratio") must be specified (either directly or indirectly). Also, the property for which the ratio is known must be distinct from the property held constant in the previous column (otherwise the ratio would be unity, and not enough information would be available to simplify the gas law equation).
In the final three columns, the properties (p, V, or T) at state 2 can be calculated from the properties at state 1 using the equations listed.
Process  Constant  Known ratio or delta  p_{2}  V_{2}  T_{2} 

Isobaric process  Pressure  V_{2}/V_{1}  p_{2} = p_{1}  V_{2} = V_{1}(V_{2}/V_{1})  T_{2} = T_{1}(V_{2}/V_{1}) 
T_{2}/T_{1}  p_{2} = p_{1}  V_{2} = V_{1}(T_{2}/T_{1})  T_{2} = T_{1}(T_{2}/T_{1})  
Isochoric process (Isovolumetric process) (Isometric process) 
Volume  p_{2}/p_{1}  p_{2} = p_{1}(p_{2}/p_{1})  V_{2} = V_{1}  T_{2} = T_{1}(p_{2}/p_{1}) 
T_{2}/T_{1}  p_{2} = p_{1}(T_{2}/T_{1})  V_{2} = V_{1}  T_{2} = T_{1}(T_{2}/T_{1})  
Isothermal process  Temperature  p_{2}/p_{1}  p_{2} = p_{1}(p_{2}/p_{1})  V_{2} = V_{1}/(p_{2}/p_{1})  T_{2} = T_{1} 
V_{2}/V_{1}  p_{2} = p_{1}/(V_{2}/V_{1})  V_{2} = V_{1}(V_{2}/V_{1})  T_{2} = T_{1}  
Isentropic process (Reversible adiabatic process) 
Entropy^{[a]}

p_{2}/p_{1}  p_{2} = p_{1}(p_{2}/p_{1})  V_{2} = V_{1}(p_{2}/p_{1})^{(−1/γ)}  T_{2} = T_{1}(p_{2}/p_{1})^{(γ − 1)/γ} 
V_{2}/V_{1}  p_{2} = p_{1}(V_{2}/V_{1})^{−γ}  V_{2} = V_{1}(V_{2}/V_{1})  T_{2} = T_{1}(V_{2}/V_{1})^{(1 − γ)}  
T_{2}/T_{1}  p_{2} = p_{1}(T_{2}/T_{1})^{γ/(γ − 1)}  V_{2} = V_{1}(T_{2}/T_{1})^{1/(1 − γ) }  T_{2} = T_{1}(T_{2}/T_{1})  
Polytropic process  P V^{n}  p_{2}/p_{1}  p_{2} = p_{1}(p_{2}/p_{1})  V_{2} = V_{1}(p_{2}/p_{1})^{(−1/n)}  T_{2} = T_{1}(p_{2}/p_{1})^{(n − 1)/n} 
V_{2}/V_{1}  p_{2} = p_{1}(V_{2}/V_{1})^{−n}  V_{2} = V_{1}(V_{2}/V_{1})  T_{2} = T_{1}(V_{2}/V_{1})^{(1 − n)}  
T_{2}/T_{1}  p_{2} = p_{1}(T_{2}/T_{1})^{n/(n − 1)}  V_{2} = V_{1}(T_{2}/T_{1})^{1/(1 − n) }  T_{2} = T_{1}(T_{2}/T_{1})  
Isenthalpic process (Irreversible adiabatic process) 
Enthalpy^{[b]}

p_{2} − p_{1}  p_{2} = p_{1} + (p_{2} − p_{1})  T_{2} = T_{1} + μ_{JT}(p_{2} − p_{1})  
T_{2} − T_{1}  p_{2} = p_{1} + (T_{2} − T_{1})/μ_{JT}  T_{2} = T_{1} + (T_{2} − T_{1}) 
^{^} a. In an isentropic process, system entropy (S) is constant. Under these conditions, p_{1}V_{1}^{γ} = p_{2}V_{2}^{γ}, where γ is defined as the heat capacity ratio, which is constant for a calorifically perfect gas. The value used for γ is typically 1.4 for diatomic gases like nitrogen (N_{2}) and oxygen (O_{2}), (and air, which is 99% diatomic). Also γ is typically 1.6 for mono atomic gases like the noble gases helium (He), and argon (Ar). In internal combustion engines γ varies between 1.35 and 1.15, depending on constitution gases and temperature.
^{^} b. In an isenthalpic process, system enthalpy (H) is constant. In the case of free expansion for an ideal gas, there are no molecular interactions, and the temperature remains constant. For real gasses, the molecules do interact via attraction or repulsion depending on temperature and pressure, and heating or cooling does occur. This is known as the Joule–Thomson effect. For reference, the Joule–Thomson coefficient μ_{JT} for air at room temperature and sea level is 0.22 °C/bar.^{[7]}
Deviations from ideal behavior of real gases
The equation of state given here (PV = nRT) applies only to an ideal gas, or as an approximation to a real gas that behaves sufficiently like an ideal gas. There are in fact many different forms of the equation of state. Since the ideal gas law neglects both molecular size and intermolecular attractions, it is most accurate for monatomic gases at high temperatures and low pressures. The neglect of molecular size becomes less important for lower densities, i.e. for larger volumes at lower pressures, because the average distance between adjacent molecules becomes much larger than the molecular size. The relative importance of intermolecular attractions diminishes with increasing thermal kinetic energy, i.e., with increasing temperatures. More detailed equations of state, such as the van der Waals equation, account for deviations from ideality caused by molecular size and intermolecular forces.
Derivations
Empirical
The empirical laws that led to the derivation of the ideal gas law were discovered with experiments that changed only 2 state variables of the gas and kept every other one constant.
All the possible gas laws that could have been discovered with this kind of setup are:
 Boyle's law ( ) [math]\displaystyle{ PV = C_1 \quad \text{or} \quad P_1 V_1 = P_2 V_2 }[/math]
 Charles's law ( ) [math]\displaystyle{ \frac{V}{T} = C_2 \quad \text{or} \quad \frac{V_1}{T_1} = \frac{V_2}{T_2} }[/math]
 Avogadro's law ( ) [math]\displaystyle{ \frac{V}{N}=C_3 \quad \text{or} \quad \frac{V_1}{N_1}=\frac{V_2}{N_2} }[/math]
 GayLussac's law ( ) [math]\displaystyle{ \frac{P}{T}=C_4 \quad \text{or} \quad \frac{P_1}{T_1}=\frac{P_2}{T_2} }[/math]
 [math]\displaystyle{ NT = C_5 \quad \text{or} \quad N_1 T_1 = N_2 T_2 }[/math]
 [math]\displaystyle{ \frac{P}{N} = C_6 \quad \text{or} \quad \frac{P_1}{N_1}=\frac{P_2}{N_2} }[/math]
where P stands for pressure, V for volume, N for number of particles in the gas and T for temperature; where [math]\displaystyle{ C_1, C_2, C_3, C_4, C_5, C_6 }[/math] are constants in this context because of each equation requiring only the parameters explicitly noted in them changing.
To derive the ideal gas law one does not need to know all 6 formulas, one can just know 3 and with those derive the rest or just one more to be able to get the ideal gas law, which needs 4.
Since each formula only holds when only the state variables involved in said formula change while the others (which are a property of the gas but are not explicitly noted in said formula) remain constant, we cannot simply use algebra and directly combine them all. This is why: Boyle did his experiments while keeping N and T constant and this must be taken into account (in this same way, every experiment kept some parameter as constant and this must be taken into account for the derivation).
Keeping this in mind, to carry the derivation on correctly, one must imagine the gas being altered by one process at a time (as it was done in the experiments). The derivation using 4 formulas can look like this:
at first the gas has parameters [math]\displaystyle{ P_1, V_1, N_1, T_1 }[/math]
Say, starting to change only pressure and volume, according to Boyle's law (Equation 1), then:
[math]\displaystyle{ P_1 V_1 = P_2 V_2 }[/math] 

( ) 
After this process, the gas has parameters [math]\displaystyle{ P_2,V_2,N_1,T_1 }[/math]
Using then equation (5) to change the number of particles in the gas and the temperature,
[math]\displaystyle{ N_1 T_1 = N_2 T_2 }[/math] 

( ) 
After this process, the gas has parameters [math]\displaystyle{ P_2,V_2,N_2,T_2 }[/math]
Using then equation (6) to change the pressure and the number of particles,
[math]\displaystyle{ \frac{P_2}{N_2} = \frac{P_3}{N_3} }[/math] 

( ) 
After this process, the gas has parameters [math]\displaystyle{ P_3,V_2,N_3,T_2 }[/math]
Using then Charles's law (equation 2) to change the volume and temperature of the gas,
[math]\displaystyle{ \frac{V_2}{T_2} = \frac{V_3}{T_3} }[/math] 

( ) 
After this process, the gas has parameters [math]\displaystyle{ P_3,V_3,N_3,T_3 }[/math]
Using simple algebra on equations (7), (8), (9) and (10) yields the result: [math]\displaystyle{ \frac{P_1 V_1}{N_1 T_1} = \frac{P_3 V_3}{N_3 T_3} }[/math] or [math]\displaystyle{ \frac{PV}{NT} = k_\text{B} , }[/math] where [math]\displaystyle{ k_\text{B} }[/math] stands for the Boltzmann constant.
Another equivalent result, using the fact that [math]\displaystyle{ nR = N k_\text{B} }[/math], where n is the number of moles in the gas and R is the universal gas constant, is: [math]\displaystyle{ PV = nRT, }[/math] which is known as the ideal gas law.
If three of the six equations are known, it may be possible to derive the remaining three using the same method. However, because each formula has two variables, this is possible only for certain groups of three. For example, if you were to have equations (1), (2) and (4) you would not be able to get any more because combining any two of them will only give you the third. However, if you had equations (1), (2) and (3) you would be able to get all six equations because combining (1) and (2) will yield (4), then (1) and (3) will yield (6), then (4) and (6) will yield (5), as well as would the combination of (2) and (3) as is explained in the following visual relation:
where the numbers represent the gas laws numbered above.
If you were to use the same method used above on 2 of the 3 laws on the vertices of one triangle that has a "O" inside it, you would get the third.
For example:
Change only pressure and volume first:
[math]\displaystyle{ P_1 V_1 = P_2 V_2 }[/math] 

( ) 
then only volume and temperature:
[math]\displaystyle{ \frac{V_2}{T_1} = \frac{V_3}{T_2} }[/math] 

( ) 
then as we can choose any value for [math]\displaystyle{ V_3 }[/math], if we set [math]\displaystyle{ V_1 = V_3 }[/math], equation (2') becomes:
[math]\displaystyle{ \frac{V_2}{T_1} = \frac{V_1}{T_2} }[/math] 

( ) 
combining equations (1') and (3') yields [math]\displaystyle{ \frac{P_1}{T_1} = \frac{P_2}{T_2} }[/math], which is equation (4), of which we had no prior knowledge until this derivation.
Theoretical
Kinetic theory
The ideal gas law can also be derived from first principles using the kinetic theory of gases, in which several simplifying assumptions are made, chief among which are that the molecules, or atoms, of the gas are point masses, possessing mass but no significant volume, and undergo only elastic collisions with each other and the sides of the container in which both linear momentum and kinetic energy are conserved.
First we show that the fundamental assumptions of the kinetic theory of gases imply that
 [math]\displaystyle{ PV = \frac{1}{3}Nmv_{\text{rms}}^2. }[/math]
Consider a container in the [math]\displaystyle{ xyz }[/math] Cartesian coordinate system. For simplicity, we assume that a third of the molecules moves parallel to the [math]\displaystyle{ x }[/math]axis, a third moves parallel to the [math]\displaystyle{ y }[/math]axis and a third moves parallel to the [math]\displaystyle{ z }[/math]axis. Next we temporarily assume that all molecules move with the same velocity [math]\displaystyle{ v }[/math]. We choose an area [math]\displaystyle{ S }[/math] on a wall of the container, perpendicular to the [math]\displaystyle{ x }[/math]axis. When time [math]\displaystyle{ t }[/math] elapses, all molecules in the volume [math]\displaystyle{ vtS }[/math] moving in the positive direction of the [math]\displaystyle{ x }[/math]axis will hit the area. There are [math]\displaystyle{ NvtS/V }[/math] molecules in a part of volume [math]\displaystyle{ vtS }[/math] of the container, but only one sixth (i.e. a half of a third) of them moves in the positive direction of the [math]\displaystyle{ x }[/math]axis. Therefore the number of molecules [math]\displaystyle{ N' }[/math] that will hit the area [math]\displaystyle{ S }[/math] when the time [math]\displaystyle{ t }[/math] elapses is [math]\displaystyle{ NvtS/(6V) }[/math].
When a molecule bounces off the wall of the container, it changes its momentum [math]\displaystyle{ \mathbf{p}_1 }[/math] to [math]\displaystyle{ \mathbf{p}_2=\mathbf{p}_1 }[/math]. Hence the magnitude of change of the momentum of one molecule is [math]\displaystyle{ \mathbf{p}_2\mathbf{p}_1=2mv }[/math]. The magnitude of the change of momentum of all molecules that bounce off the area [math]\displaystyle{ S }[/math] when time [math]\displaystyle{ t }[/math] elapses is then [math]\displaystyle{ \Delta \mathbf{p}=2mvN'=NtSmv^2/(3V) }[/math]. From [math]\displaystyle{ F=\Delta \mathbf{p}/t }[/math] and [math]\displaystyle{ P=F/S }[/math] we get
 [math]\displaystyle{ P=\frac{1}{3}Nm\frac{v^2}{V}. }[/math]
We supposed that all molecules move with the same velocity [math]\displaystyle{ v }[/math], but in fact they move with different velocities, so we replace [math]\displaystyle{ v^2 }[/math] in the equation by the arithmetic mean of all squares of all velocities of the molecules, i.e. by [math]\displaystyle{ v_{\text{rms}}^2. }[/math] Therefore
 [math]\displaystyle{ P=\frac{1}{3}Nm\frac{v_{\text{rms}}^2}{V} }[/math]
which gives the desired formula.
Using the Maxwell–Boltzmann distribution, the fraction of molecules that have a speed in the range [math]\displaystyle{ v }[/math] to [math]\displaystyle{ v + dv }[/math] is [math]\displaystyle{ f(v) \, dv }[/math], where
 [math]\displaystyle{ f(v) = 4\pi \left(\frac{m}{2\pi kT}\right)^{\!\frac{3}{2}}v^2 e^{\frac{mv^2}{2kT}} }[/math]
and [math]\displaystyle{ k }[/math] denotes the Boltzmann constant. The rootmeansquare speed can be calculated by
 [math]\displaystyle{ v_{\text{rms}}^2 = \int_0^\infty v^2 f(v) \, dv = 4\pi \left(\frac{m}{2\pi kT}\right)^{\frac{3}{2}}\int_0^\infty v^4 e^{\frac{mv^2}{2kT}} \, dv. }[/math]
Using the integration formula
 [math]\displaystyle{ \int_0^\infty x^{2n}e^{\frac{x^2}{a^2}} \, dx = \sqrt{\pi} \, \frac{(2n)!}{n!}\left(\frac{a}{2}\right)^{2n+1}, }[/math]
it follows that
 [math]\displaystyle{ v_{\text{rms}}^2 = 4\pi\left(\frac{m}{2\pi kT}\right)^{\!\frac{3}{2}}\sqrt{\pi} \, \frac{4!}{2!}\left(\frac{\sqrt{\frac{2kT}{m}}}{2}\right)^{\!5} = \frac{3kT}{m}, }[/math]
from which we get the ideal gas law:
 [math]\displaystyle{ PV = \frac{1}{3} Nm\left(\frac{3kT}{m}\right) = NkT. }[/math]
Statistical mechanics
Let q = (q_{x}, q_{y}, q_{z}) and p = (p_{x}, p_{y}, p_{z}) denote the position vector and momentum vector of a particle of an ideal gas, respectively. Let F denote the net force on that particle. Then the timeaveraged kinetic energy of the particle is:
 [math]\displaystyle{ \begin{align} \langle \mathbf{q} \cdot \mathbf{F} \rangle &= \left\langle q_{x} \frac{dp_{x}}{dt} \right\rangle + \left\langle q_{y} \frac{dp_{y}}{dt} \right\rangle + \left\langle q_{z} \frac{dp_{z}}{dt} \right\rangle\\ &=\left\langle q_{x} \frac{\partial H}{\partial q_x} \right\rangle  \left\langle q_{y} \frac{\partial H}{\partial q_y} \right\rangle  \left\langle q_{z} \frac{\partial H}{\partial q_z} \right\rangle = 3k_\text{B} T, \end{align} }[/math]
where the first equality is Newton's second law, and the second line uses Hamilton's equations and the equipartition theorem. Summing over a system of N particles yields
 [math]\displaystyle{ 3Nk_{B} T =  \left\langle \sum_{k=1}^{N} \mathbf{q}_{k} \cdot \mathbf{F}_{k} \right\rangle. }[/math]
By Newton's third law and the ideal gas assumption, the net force of the system is the force applied by the walls of the container, and this force is given by the pressure P of the gas. Hence
 [math]\displaystyle{ \left\langle\sum_{k=1}^{N} \mathbf{q}_{k} \cdot \mathbf{F}_{k}\right\rangle = P \oint_{\text{surface}} \mathbf{q} \cdot d\mathbf{S}, }[/math]
where dS is the infinitesimal area element along the walls of the container. Since the divergence of the position vector q is
 [math]\displaystyle{ \nabla \cdot \mathbf{q} = \frac{\partial q_{x}}{\partial q_{x}} + \frac{\partial q_{y}}{\partial q_{y}} + \frac{\partial q_{z}}{\partial q_{z}} = 3, }[/math]
the divergence theorem implies that
 [math]\displaystyle{ P \oint_{\text{surface}} \mathbf{q} \cdot d\mathbf{S} = P \int_{\text{volume}} \left( \nabla \cdot \mathbf{q} \right) dV = 3PV, }[/math]
where dV is an infinitesimal volume within the container and V is the total volume of the container.
Putting these equalities together yields
 [math]\displaystyle{ 3 N k_\text{B} T = \left\langle \sum_{k=1}^{N} \mathbf{q}_{k} \cdot \mathbf{F}_{k} \right\rangle = 3PV, }[/math]
which immediately implies the ideal gas law for N particles:
 [math]\displaystyle{ PV = Nk_{B} T = nRT, }[/math]
where n = N/N_{A} is the number of moles of gas and R = N_{A}k_{B} is the gas constant.
Other dimensions
For a ddimensional system, the ideal gas pressure is:^{[8]}
 [math]\displaystyle{ P^{(d)} = \frac{N k_B T}{L^d}, }[/math]
where [math]\displaystyle{ L^d }[/math] is the volume of the ddimensional domain in which the gas exists. Note that the dimensions of the pressure changes with dimensionality.
See also
 Physics:Boltzmann constant – Physical constant relating particle kinetic energy with temperature
 Configuration integral – Function in thermodynamics and statistical physics
 Physics:Dynamic pressure – Kinetic energy per unit volume of a fluid
 Gas laws
 Physics:Internal energy – Energy contained within a system
 Physics:Van der Waals equation – Gas equation of state which accounts for nonideal gas behavior
References
 ↑ "Mémoire sur la puissance motrice de la chaleur" (in fr). Journal de l'École Polytechnique XIV: 153–90. 1835. Facsimile at the Bibliothèque nationale de France (pp. 153–90).
 ↑ "Grundzüge einer Theorie der Gase" (in de). Annalen der Physik und Chemie 99 (10): 315–22. 1856. doi:10.1002/andp.18561751008. Bibcode: 1856AnP...175..315K. https://zenodo.org/record/1423642. Facsimile at the Bibliothèque nationale de France (pp. 315–22).
 ↑ "Ueber die Art der Bewegung, welche wir Wärme nennen" (in de). Annalen der Physik und Chemie 176 (3): 353–79. 1857. doi:10.1002/andp.18571760302. Bibcode: 1857AnP...176..353C. https://zenodo.org/record/1423644. Facsimile at the Bibliothèque nationale de France (pp. 353–79).
 ↑ "Equation of State". http://www.grc.nasa.gov/WWW/K12/airplane/eqstat.html.
 ↑ Moran; Shapiro (2000). Fundamentals of Engineering Thermodynamics (4th ed.). Wiley. ISBN 0471317136.
 ↑ Raymond, Kenneth W. (2010). General, organic, and biological chemistry : an integrated approach (3rd ed.). John Wiley & Sons. p. 186. ISBN 9780470504765. https://books.google.com/books?id=iIltMoHUtJUC&pg=PA186. Retrieved 29 January 2019.
 ↑ J. R. Roebuck (1926). "The JouleThomson Effect in Air". Proceedings of the National Academy of Sciences of the United States of America 12 (1): 55–58. doi:10.1073/pnas.12.1.55. PMID 16576959. Bibcode: 1926PNAS...12...55R.
 ↑ Khotimah, Siti Nurul; Viridi, Sparisoma (20110607). "Partition function of 1, 2, and 3D monatomic ideal gas: A simple and comprehensive review". Jurnal Pengajaran Fisika Sekolah Menengah 2 (2): 15–18. Bibcode: 2011arXiv1106.1273N.
Further reading
 Davis; Masten (2002). Principles of Environmental Engineering and Science. New York: McGrawHill. ISBN 0072350539.
External links
 "Website giving credit to Benoît Paul Émile Clapeyron, (1799–1864) in 1834". http://www.gearseds.com/curriculum/learn/lesson.php?id=23&chapterid=5.
 Configuration integral (statistical mechanics) where an alternative statistical mechanics derivation of the idealgas law, using the relationship between the Helmholtz free energy and the partition function, but without using the equipartition theorem, is provided. VuQuoc, L., Configuration integral (statistical mechanics), 2008. this wiki site is down; see this article in the web archive on 2012 April 28.
 Gas equations in detail
Original source: https://en.wikipedia.org/wiki/Ideal gas law.
Read more 