Ideal Gas Law

An ideal gas is a gas whose molecules take up no volume of their own. They exert no forces on one another except during collisions. Real gases behave this way at low density, far from the conditions at which they liquefy. The ideal gas law relates the four quantities that describe a sample of such a gas,

where is the absolute pressure, is the volume, is the absolute temperature in kelvins, and is the number of molecules. The constant is Boltzmann’s constant,

It converts a temperature into an energy, and is the energy scale of everything in thermodynamics. Many texts and lab handouts write the pressure as lowercase .

Chemistry counts molecules in moles. A mole (mol) contains Avogadro’s number of molecules, , and the molar mass of a substance, in grams per mole, is numerically equal to its molecular mass in atomic mass units. A sample of mass holds moles and molecules. In moles the law reads

where is the universal gas constant. The two forms say the same thing, because . This course uses and , and quotes and when a problem is stated in moles. Standard temperature and pressure (STP) means and . One mole of any ideal gas at STP occupies .

The law is an equation of state. It has four variables and is one equation, so by itself it predicts nothing. Give it any three of , , , and and it returns the fourth. With fixed, which is the usual case, two of the remaining three fix the third, and every point of a $P$-$V$ diagram is a state with a definite temperature. The law describes a gas in equilibrium, which means one pressure and one temperature throughout the container. For a fixed amount of gas it reduces to the combined gas law, . Air and other common gases follow it to within a fraction of a percent at ordinary conditions. It fails at high pressure or near liquefaction, where the van der Waals equation applies.

Not Taught in Lecture

Lecture mentioned moles and only to set them aside in favor of and . Molar mass, in liter-atmospheres, STP, and the molar volume were not covered. They follow Giancoli sections 17.7 and 17.8.

Intuition

The gas laws describe a fixed sample of gas. The ideal gas law adds the amount. Doubling the number of molecules in a container at fixed volume and temperature doubles the number of collisions with the walls. The pressure doubles with it, as the first sketch shows. Pressure is therefore proportional to , and the three gas laws combine into . The proportionality constant is Boltzmann’s constant when the amount is counted in molecules and when it is counted in moles. One equation covers every gas because the molecules of a low-density gas do not interact. They spend their time in free flight, and a helium atom in free flight behaves like a nitrogen molecule in free flight. The kinetic theory of gases derives the law from this picture and identifies as a measure of the kinetic energy per molecule.

An equation of state describes a constraint, not a process. A sample of gas with fixed has three variables and one equation, so it has two degrees of freedom. Its state is a point on a - diagram, and the equation assigns a temperature to every point. The curves of constant temperature are hyperbolas, called isotherms, and higher temperatures lie farther from the origin. The second diagram shows three isotherms and one state. Any process that changes the gas slowly traces a path across this diagram. The work done by the gas is the area under the path.

\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\begin{tikzpicture}[x=1cm,y=1cm,>=latex]
\draw[very thick] (0,0) rectangle (2.4,2.0);
\foreach \x/\y in {0.4/0.5,0.9/1.4,1.3/0.7,0.5/1.6} \fill (\x,\y) circle (0.06);
\foreach \y in {0.6,1.4} {\fill (2.31,\y) circle (0.06); \draw[->,very thick,hot] (2.4,\y) -- (2.85,\y);}
\node at (1.2,-0.4) {$N$ molecules};
\node at (1.2,-0.85) {pressure $P$};
\begin{scope}[xshift=4.4cm]
\draw[very thick] (0,0) rectangle (2.4,2.0);
\foreach \x/\y in {0.4/0.5,0.9/1.4,1.3/0.7,0.5/1.6,1.7/1.2,0.3/1.0,1.0/0.35,1.6/1.75} \fill (\x,\y) circle (0.06);
\foreach \y in {0.35,0.8,1.25,1.7} {\fill (2.31,\y) circle (0.06); \draw[->,very thick,hot] (2.4,\y) -- (2.85,\y);}
\node at (1.2,-0.4) {$2N$ molecules};
\node at (1.2,-0.85) {pressure $2P$};
\end{scope}
\node at (3.4,2.45) {same $V$, same $T$};
\end{tikzpicture}
\end{document}
\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{prp}{HTML}{8E6BD6}
\begin{tikzpicture}
\draw[->] (0,0) -- (6.4,0) node[below] {$V$};
\draw[->] (0,0) -- (0,4.6) node[left] {$P$};
\draw[very thick,cold,domain=0.55:6.0,samples=80] plot (\x,{1.8/\x}) node[right] {$T_1$};
\draw[very thick,prp,domain=0.85:5.2,samples=80] plot (\x,{3.0/\x}) node[right] {$T_2$};
\draw[very thick,hot,domain=1.15:4.4,samples=80] plot (\x,{4.4/\x}) node[right] {$T_3$};
\fill (2.0,1.5) circle (0.08);
\draw[->] (3.0,2.7) -- (2.1,1.6);
\node[right] at (3.0,2.7) {state $(P, V)$, with $T = PV/Nk$};
\draw[dashed] (2.0,0) -- (2.0,1.5);
\draw[dashed] (0,1.5) -- (2.0,1.5);
\node[right] at (3.6,4.0) {$T_1 < T_2 < T_3$};
\node[right] at (3.6,3.5) {isotherms $PV = NkT$};
\end{tikzpicture}
\end{document}

Properties

(Four Variables, One Equation) A single equation of state cannot say what happened to a gas; the process has to be given.

Compressing a gas quickly in a sealed cylinder makes it hot enough to ignite paper. The ideal gas law does not predict this. It says only that stayed fixed while fell, and that leaves and free to trade off in any proportion. What fixes the outcome is how the change was made. A fast push lets no heat escape, and that extra condition, not the equation of state, is what sets the final temperature. Every problem about a changing gas therefore needs two ingredients: the equation of state and a statement of the process. The three named gas laws are the processes that hold one variable fixed.

(Density of a Gas) The density follows from the pressure, the temperature, and the molar mass.

Not Taught in Lecture

Lecture used the density of air, at STP, only to count the molecules in a bottle. It did not derive . This property follows Giancoli section 17.8.

Substituting into the law and dividing by gives

where must be in kilograms per mole when is in joules. Air has an average molar mass of , so its density is at STP and at . The formula shows that hot air is less dense than cold air at the same pressure. It also shows that a gas with a smaller molar mass, such as helium (), is less dense than air. Both facts are the basis of buoyant balloons.

(Internal Energy Depends on T Alone) The internal energy of an ideal gas is a function of its temperature only.

Ideal gas molecules have no potential energy of interaction. The internal energy of the gas is therefore the sum of the kinetic energies of its molecules. The kinetic theory shows that the average kinetic energy per molecule is set by alone. Compressing or expanding an ideal gas at constant temperature therefore leaves its internal energy unchanged, even though the pressure and volume both change. Any heat added during such an isothermal process leaves again as work done by the gas.

(Unit Bookkeeping) Most errors with the law come from mixed units.

The law needs absolute pressure, not gauge pressure, and kelvins, not degrees Celsius. With , the volume must be in cubic meters () and the pressure in pascals. Small volumes are often given in cubic centimeters, with . A product of pressure and volume is an energy, and . With , the volume is in liters and the pressure in atmospheres. Problems that compare two states of the same sample avoid entirely through the combined gas law. Any consistent units for and then cancel. Temperature never cancels this way and must always be in kelvins.

(Differential Form) For a fixed amount of gas, small changes along any path obey .

Not Taught in Lecture

Lecture did not write this form. It substituted instead. The homework uses it.

Along a process, both sides of change. The product rule gives the change of the left side, . With fixed, the right side changes by . So

On an isobar , and the relation becomes . On an isotherm , and it becomes . It is the usual first step when a problem gives a rule for the heat and asks for the path. The note 2.5.3d Adiabatic Process shows such a case.

(Mixtures of Gases) In a mixture of ideal gases, each gas exerts its own partial pressure, and the partial pressures add.

Not Taught in Lecture

Lecture did not cover mixtures. This rule is Dalton’s law of partial pressures, and the homework uses it.

Ideal gas molecules do not interact, so each gas in a mixture behaves as if the others were absent. Gas alone in the volume would exert its partial pressure, . The total pressure is the sum,

So a mixture obeys , with the total number of molecules. The kind of molecule does not matter, only the count. Each partial pressure must be taken in the full volume the mixture fills.

(Limits of Validity) The law fails when the molecules are close enough to feel one another.

Not Taught in Lecture

Lecture said only that the free-particle picture breaks down near the change from gas to liquid. The two corrections below follow Giancoli section 18.5.

The two assumptions, negligible molecular volume and no intermolecular forces, both break down at high density. The volume of the molecules themselves reduces the space available and raises the pressure above the prediction. The attraction between molecules pulls them inward and lowers the pressure below the prediction. Near the boiling point the attraction wins, and the gas condenses. The van der Waals equation adds one correction for each effect. At room temperature and one atmosphere, air departs from the ideal gas law by less than percent.

Derivation

Not Taught in Lecture

Lecture obtained from molecular collisions with the walls, as in 2.3.1 Molecular Interpretation of Temperature. This route through the gas laws and Avogadro’s hypothesis follows Giancoli section 17.7.

We want to show how the ideal gas law follows from the gas laws and one further experimental fact. The combined gas law states that is constant for a fixed sample. The constant depends on how much gas is present. Avogadro’s hypothesis states that equal volumes of any two gases at the same pressure and temperature contain the same number of molecules. The note 2.2.4 Avogadro’s Number discusses it. The volume of a sample at fixed and is therefore proportional to its number of moles , and so is . Writing the proportionality constant as gives

The value of comes from a single measurement. One mole of gas at STP occupies , so

which is the headline value. The same constant works for every gas because Avogadro’s hypothesis holds for every gas.

Examples

Not Taught in Lecture

Lecture did not use moles or molar mass in problems. This example follows Giancoli section 17.8.

(Easy) Mass of the Air in a Room

A room measures by by . The air is at and , and its average molar mass is .

(Medium) Weather Balloon

A helium balloon is released at ground level with a volume of , where the pressure is and the temperature is . It rises to an altitude where the pressure is and the temperature is . No helium escapes.

(Medium) Gas Trapped Under a Piston

A vertical cylinder of radius traps air under a piston of mass . The piston slides without friction, and the atmosphere above it is at . A mass is then placed on the piston.

\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[x=1cm,y=1cm,>=latex]
\draw[very thick] (0,3.0) -- (0,0) -- (2.0,0) -- (2.0,3.0);
\draw[very thick,fill=white] (0.02,1.6) rectangle (1.98,1.85);
\draw[very thick] (0.45,1.85) rectangle (1.55,2.4);
\foreach \x/\y in {0.4/0.4,0.9/1.1,1.5/0.5,1.3/1.3,0.5/1.2,1.0/0.6} \fill (\x,\y) circle (0.05);
\foreach \x in {0.2,1.8} \draw[->,thick] (\x,2.85) -- (\x,1.92);
\node[above] at (1.0,2.85) {$P_{\mathrm{atm}}$};
\draw (1.55,2.12) -- (2.4,2.12) node[right] {added mass, $0.500\ \mathrm{kg}$};
\draw (1.98,1.72) -- (2.4,1.72) node[right] {piston, $0.200\ \mathrm{kg}$};
\node[right] at (2.1,0.8) {trapped air};
\draw[<->] (0,-0.3) -- (2.0,-0.3) node[midway,below] {$2r = 4.00\ \mathrm{cm}$};
\end{tikzpicture}
\end{document}

See Also