# Ideal gas

{{#invoke:Sidebar |collapsible | bodyclass = plainlist | titlestyle = padding-bottom:0.3em;border-bottom:1px solid #aaa; | title = Thermodynamics | imagestyle = display:block;margin:0.3em 0 0.4em; | image = | caption = The classical Carnot heat engine | listtitlestyle = background:#ddf;text-align:center; | expanded = Systems

| list1name = branches | list1title = Branches | list1 = Template:Startflatlist

| list2name = laws | list2title = Laws | list2 = Template:Startflatlist

| list3name = systems | list3title = Systems | list3 =

| list4name = sysprop | list4title = System properties

| list4 =

Note: Conjugate variables in italics

| list5name = material | list5title = Material properties | list5 =

| list6name = equations | list6title = Equations | list6 = Template:Startflatlist

| list7name = potentials | list7title = Potentials | list7 = Template:Startflatlist

| list8name = hist/cult | list8title = Template:Hlist | list8 =

| list9name = scientists | list9title = Scientists | list9 = Template:Startflatlist

| below = Book:Thermodynamics

}} An ideal gas is a theoretical gas composed of many randomly moving point particles that do not interact except when they collide elastically. The ideal gas concept is useful because it obeys the ideal gas law, a simplified equation of state, and is amenable to analysis under statistical mechanics. One mole of an ideal gas has a volume of 22.7 L at STP.

At normal conditions such as standard temperature and pressure, most real gases behave qualitatively like an ideal gas. Many gases such as nitrogen, oxygen, hydrogen, noble gases, and some heavier gases like carbon dioxide can be treated like ideal gases within reasonable tolerances.[1] Generally, a gas behaves more like an ideal gas at higher temperature and lower pressure,[1] as the work which is against intermolecular forces becomes less significant compared with the particles' kinetic energy, and the size of the molecules becomes less significant compared to the empty space between them.

The ideal gas model tends to fail at lower temperatures or higher pressures, when intermolecular forces and molecular size become important. It also fails for most heavy gases, such as many refrigerants,[1] and for gases with strong intermolecular forces, notably water vapor. At high pressures, the volume of a real gas is often considerably greater than that of an ideal gas. At low temperatures, the pressure of a real gas is often considerably less than that of an ideal gas. At some point of low temperature and high pressure, real gases undergo a phase transition, such as to a liquid or a solid. The model of an ideal gas, however, does not describe or allow phase transitions. These must be modeled by more complex equations of state.

The ideal gas model has been explored in both the Newtonian dynamics (as in "kinetic theory") and in quantum mechanics (as a "gas in a box"). The ideal gas model has also been used to model the behavior of electrons in a metal (in the Drude model and the free electron model), and it is one of the most important models in statistical mechanics.

## Types of ideal gas

There are three basic classes of ideal gas:

The classical ideal gas can be separated into two types: The classical thermodynamic ideal gas and the ideal quantum Boltzmann gas. Both are essentially the same, except that the classical thermodynamic ideal gas is based on classical statistical mechanics, and certain thermodynamic parameters such as the entropy are only specified to within an undetermined additive constant. The ideal quantum Boltzmann gas overcomes this limitation by taking the limit of the quantum Bose gas and quantum Fermi gas in the limit of high temperature to specify these additive constants. The behavior of a quantum Boltzmann gas is the same as that of a classical ideal gas except for the specification of these constants. The results of the quantum Boltzmann gas are used in a number of cases including the Sackur–Tetrode equation for the entropy of an ideal gas and the Saha ionization equation for a weakly ionized plasma.

## Classical thermodynamic ideal gas

### Macroscopic account

The ideal gas law is an extension of experimentally discovered gas laws. Real fluids at low density and high temperature approximate the behavior of a classical ideal gas. However, at lower temperatures or a higher density, a real fluid deviates strongly from the behavior of an ideal gas, particularly as it condenses from a gas into a liquid or as it deposits from a gas into a solid. This deviation is expressed as a compressibility factor.

The classical thermodynamic properties of an ideal gas can be described by two equations of state:.[2][3]

One of them is the well known ideal gas law

${\displaystyle PV=nRT\,}$

This equation is derived from Boyle's law: ${\displaystyle V=k/P}$ (at constant T and n); Charles's law: ${\displaystyle V=bT}$ (at constant P and n); and Avogadro's law: ${\displaystyle V=an}$ (at constant T and P). By combining the three laws, it would demonstrate that ${\displaystyle 3V=kba\left({\frac {Tn}{P}}\right)}$ which would mean that ${\displaystyle V=\left({\frac {kba}{3}}\right)\left({\frac {Tn}{P}}\right)}$.

The other equation of state of an ideal gas must express Joule's law, that the internal energy of a fixed mass of ideal gas is a function only of its temperature. For the present purposes it is convenient to postulate an exemplary version of this law by writing:

${\displaystyle U={\hat {c}}_{V}nRT}$

where

### Microscopic model

In order to switch from macroscopic quantities (left hand side of the following equation) to microscopic ones (right hand side), we use

${\displaystyle nR=Nk_{B}\ }$

where

The probability distribution of particles by velocity or energy is given by the Maxwell speed distribution.

The ideal gas model depends on the following assumptions:

• The molecules of the gas are indistinguishable, small, hard spheres
• All collisions are elastic and all motion is frictionless (no energy loss in motion or collision)
• Newton's laws apply
• The average distance between molecules is much larger than the size of the molecules
• The molecules are constantly moving in random directions with a distribution of speeds
• There are no attractive or repulsive forces between the molecules apart from those that determine their point-like collisions
• The only forces between the gas molecules and the surroundings are those that determine the point-like collisions of the molecules with the walls
• In the simplest case, there are no long-range forces between the molecules of the gas and the surroundings.

The assumption of spherical particles is necessary so that there are no rotational modes allowed, unlike in a diatomic gas. The following three assumptions are very related: molecules are hard, collisions are elastic, and there are no inter-molecular forces. The assumption that the space between particles is much larger than the particles themselves is of paramount importance, and explains why the ideal gas approximation fails at high pressures.

## Heat capacity

The heat capacity at constant volume, including an ideal gas is:

${\displaystyle {\hat {c}}_{V}={\frac {1}{nR}}T\left({\frac {\partial S}{\partial T}}\right)_{V}={\frac {1}{nR}}\left({\frac {\partial U}{\partial T}}\right)_{V}}$

where S is the entropy. This is the dimensionless heat capacity at constant volume, which is generally a function of temperature due to intermolecular forces. For moderate temperatures, the constant for a monatomic gas is ${\displaystyle {\hat {c}}_{V}=3/2}$ while for a diatomic gas it is ${\displaystyle {\hat {c}}_{V}=5/2}$. It is seen that macroscopic measurements on heat capacity provide information on the microscopic structure of the molecules.

The heat capacity at constant pressure of 1/R mole of ideal gas is:

${\displaystyle {\hat {c}}_{p}={\frac {1}{nR}}T\left({\frac {\partial S}{\partial T}}\right)_{p}={\frac {1}{nR}}\left({\frac {\partial H}{\partial T}}\right)_{p}={\hat {c}}_{V}+1}$

where ${\displaystyle H=U+pV}$ is the enthalpy of the gas.

Sometimes, a distinction is made between an ideal gas, where ${\displaystyle {\hat {c}}_{V}}$ and ${\displaystyle {\hat {c}}_{p}}$ could vary with temperature, and a perfect gas, for which this is not the case.

The ratio of the constant volume and constant pressure heat capacity is

${\displaystyle \gamma ={\frac {c_{P}}{c_{V}}}}$

For air, which is a mixture of gases, this ratio is 1.4.

## Entropy

Using the results of thermodynamics only, we can go a long way in determining the expression for the entropy of an ideal gas. This is an important step since, according to the theory of thermodynamic potentials, if we can express the entropy as a function of U (U is a thermodynamic potential), volume V and the number of particles N, then we will have a complete statement of the thermodynamic behavior of the ideal gas. We will be able to derive both the ideal gas law and the expression for internal energy from it.

Since the entropy is an exact differential, using the chain rule, the change in entropy when going from a reference state 0 to some other state with entropy S may be written as ${\displaystyle \Delta S}$ where:

${\displaystyle \Delta S=\int _{S_{0}}^{S}dS=\int _{T_{0}}^{T}\left({\frac {\partial S}{\partial T}}\right)_{V}\!dT+\int _{V_{0}}^{V}\left({\frac {\partial S}{\partial V}}\right)_{T}\!dV}$

where the reference variables may be functions of the number of particles N. Using the definition of the heat capacity at constant volume for the first differential and the appropriate Maxwell relation for the second we have:

${\displaystyle \Delta S=\int _{T_{0}}^{T}{\frac {C_{v}}{T}}\,dT+\int _{V_{0}}^{V}\left({\frac {\partial P}{\partial T}}\right)_{V}dV.}$

Expressing ${\displaystyle C_{V}}$ in terms of ${\displaystyle {\hat {c}}_{V}}$ as developed in the above section, differentiating the ideal gas equation of state, and integrating yields:

${\displaystyle \Delta S={\hat {c}}_{V}Nk\ln \left({\frac {T}{T_{0}}}\right)+Nk\ln \left({\frac {V}{V_{0}}}\right)}$

which implies that the entropy may be expressed as:

${\displaystyle S=Nk\ln \left({\frac {VT^{{\hat {c}}_{v}}}{f(N)}}\right)}$

where all constants have been incorporated into the logarithm as f(N) which is some function of the particle number N having the same dimensions as ${\displaystyle VT^{{\hat {c}}_{v}}}$ in order that the argument of the logarithm be dimensionless. We now impose the constraint that the entropy be extensive. This will mean that when the extensive parameters (V and N) are multiplied by a constant, the entropy will be multiplied by the same constant. Mathematically:

${\displaystyle S(T,aV,aN)=aS(T,V,N).\,}$

From this we find an equation for the function f(N)

${\displaystyle af(N)=f(aN).\,}$

Differentiating this with respect to a, setting a equal to unity, and then solving the differential equation yields f(N):

${\displaystyle f(N)=\Phi N\,}$

where ${\displaystyle \Phi }$ which may vary for different gases, but will be independent of the thermodynamic state of the gas. It will have the dimensions of ${\displaystyle VT^{{\hat {c}}_{v}}/N}$. Substituting into the equation for the entropy:

${\displaystyle {\frac {S}{Nk}}=\ln \left({\frac {VT^{{\hat {c}}_{v}}}{N\Phi }}\right).\,}$

and using the expression for the internal energy of an ideal gas, the entropy may be written:

${\displaystyle {\frac {S}{Nk}}=\ln \left[{\frac {V}{N}}\,\left({\frac {U}{{\hat {c}}_{v}kN}}\right)^{{\hat {c}}_{v}}\,{\frac {1}{\Phi }}\right]}$

Since this is an expression for entropy in terms of U, V, and N, it is a fundamental equation from which all other properties of the ideal gas may be derived.

This is about as far as we can go using thermodynamics alone. Note that the above equation is flawed — as the temperature approaches zero, the entropy approaches negative infinity, in contradiction to the third law of thermodynamics. In the above "ideal" development, there is a critical point, not at absolute zero, at which the argument of the logarithm becomes unity, and the entropy becomes zero. This is unphysical. The above equation is a good approximation only when the argument of the logarithm is much larger than unity — the concept of an ideal gas breaks down at low values of V/N. Nevertheless, there will be a "best" value of the constant in the sense that the predicted entropy is as close as possible to the actual entropy, given the flawed assumption of ideality. A quantum-mechanical derivation of this constant is developed in the derivation of the Sackur–Tetrode equation which expresses the entropy of a monatomic ${\displaystyle ({\hat {c}}_{v}=3/2)}$ ideal gas. In the Sackur-Tetrode theory the constant depends only upon the mass of the gas particle. The Sackur–Tetrode equation also suffers from a divergent entropy at absolute zero, but is a good approximation for the entropy of a monatomic ideal gas for high enough temperatures.

## Thermodynamic potentials

{{#invoke:main|main}} Expressing the entropy as a function of T, V, and N:

${\displaystyle {\frac {S}{kN}}=\ln \left({\frac {VT^{{\hat {c}}_{V}}}{N\Phi }}\right)}$

The chemical potential of the ideal gas is calculated from the corresponding equation of state (see thermodynamic potential):

${\displaystyle \mu =\left({\frac {\partial G}{\partial N}}\right)_{T,P}}$

where G is the Gibbs free energy and is equal to ${\displaystyle U+PV-TS}$ so that:

${\displaystyle \mu (T,V,N)=kT\left({\hat {c}}_{P}-\ln \left({\frac {VT^{{\hat {c}}_{V}}}{N\Phi }}\right)\right)}$

The thermodynamic potentials for an ideal gas can now be written as functions of T, V, and N as:

where, as before, ${\displaystyle {\hat {c}}_{P}={\hat {c}}_{V}+1}$. The most informative way of writing the potentials is in terms of their natural variables, since each of these equations can be used to derive all of the other thermodynamic variables of the system. In terms of their natural variables, the thermodynamic potentials of a single-species ideal gas are:

${\displaystyle U(S,V,N)={\hat {c}}_{V}Nk\left({\frac {N\Phi }{V}}\,e^{S/Nk}\right)^{1/{\hat {c}}_{V}}}$
${\displaystyle A(T,V,N)=NkT\left({\hat {c}}_{V}-\ln \left({\frac {VT^{{\hat {c}}_{V}}}{N\Phi }}\right)\right)}$
${\displaystyle H(S,P,N)={\hat {c}}_{P}Nk\left({\frac {P\Phi }{k}}\,e^{S/Nk}\right)^{1/{\hat {c}}_{P}}}$
${\displaystyle G(T,P,N)=NkT\left({\hat {c}}_{P}-\ln \left({\frac {kT^{{\hat {c}}_{P}}}{P\Phi }}\right)\right)}$

In statistical mechanics, the relationship between the Helmholtz free energy and the partition function is fundamental, and is used to calculate the thermodynamic properties of matter; see configuration integral for more details.

## Speed of sound

{{#invoke:main|main}} The speed of sound in an ideal gas is given by

${\displaystyle c_{sound}={\sqrt {\left({\frac {\partial P}{\partial \rho }}\right)_{s}}}={\sqrt {\frac {\gamma P}{\rho }}}={\sqrt {\frac {\gamma RT}{M}}}}$

where

${\displaystyle \gamma \,}$ is the adiabatic index ${\displaystyle ({\hat {c}}_{P}/{\hat {c}}_{V})}$
${\displaystyle s\,}$ is the entropy per particle of the gas.
${\displaystyle \rho \,}$ is the mass density of the gas.
${\displaystyle P\,}$ is the pressure of the gas.
${\displaystyle R\,}$ is the universal gas constant
${\displaystyle T\,}$ is the temperature
${\displaystyle M\,}$ is the molar mass of the gas.

## Ideal quantum gases

In the above-mentioned Sackur–Tetrode equation, the best choice of the entropy constant was found to be proportional to the quantum thermal wavelength of a particle, and the point at which the argument of the logarithm becomes zero is roughly equal to the point at which the average distance between particles becomes equal to the thermal wavelength. In fact, quantum theory itself predicts the same thing. Any gas behaves as an ideal gas at high enough temperature and low enough density, but at the point where the Sackur–Tetrode equation begins to break down, the gas will begin to behave as a quantum gas, composed of either bosons or fermions. (See the gas in a box article for a derivation of the ideal quantum gases, including the ideal Boltzmann gas.)

Gases tend to behave as an ideal gas over a wider range of pressures when the temperature reaches the Boyle temperature.

### Ideal Boltzmann gas

The ideal Boltzmann gas yields the same results as the classical thermodynamic gas, but makes the following identification for the undetermined constant Φ:

${\displaystyle \Phi ={\frac {T^{3/2}\Lambda ^{3}}{g}}}$

where Λ is the thermal de Broglie wavelength of the gas and g is the degeneracy of states.

### Ideal Bose and Fermi gases

An ideal gas of bosons (e.g. a photon gas) will be governed by Bose–Einstein statistics and the distribution of energy will be in the form of a Bose–Einstein distribution. An ideal gas of fermions will be governed by Fermi–Dirac statistics and the distribution of energy will be in the form of a Fermi–Dirac distribution.