The ideal gas equation · Physics Class 11–12 | StemPy Lab
Course 12.1·Lesson 2 of 3
The ideal gas equation
Boyle's law, Charles's law and Avogadro's law join into one equation for a gas at low density: pV=nRT=NkBT
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
A tyre on a hot day
Pump a bicycle tyre in the morning and ride in the hot sun. By afternoon the tyre feels harder. Nobody added air. The air got warmer, and its pressure went up.
Squeeze the end of a bicycle pump with your thumb over the hole. The air gets harder to push. Its volume went down, and its pressure went up.
A gas changes its pressure, volume and temperature together. Let us find the rule.
Four simple laws
Experiments on gases at low density give four laws.
Boyle's law. For a fixed amount of gas at a steady temperature, pV stays the same. Halve the volume and the pressure doubles.
Charles's law. For a fixed amount at a steady pressure, V∝T, with T in kelvin.
The pressure law. For a fixed amount in a fixed volume, p∝T.
Avogadro's law. At the same pressure and temperature, V∝n, the number of moles.
The ideal gas equation
All four fit into one equation:
pV=nRT
Here n is the number of moles and R=8.31 J/(mol K) is the universal gas constant. A gas that follows this equation exactly is an ideal gas. Real gases come close at low pressure and high temperature.
We can count molecules instead of moles. The number of molecules is N=nNA. Then
pV=NkBT,kB=NAR=1.38×10−23J/K
For a fixed amount of gas, nR does not change, so
T1p1V1=T2p2V2
Two rules for every gas problem.
The temperature is always in kelvin: T=t+273, with t in degrees Celsius.
The pressure is the absolute pressure. A tyre gauge shows the pressure above the air outside. Add the outside pressure, about 101 kPa, to get the absolute pressure.
The gas on a pressure-volume graph
Keep the temperature fixed and plot p against V. Boyle's law gives a curve called an isotherm. A hotter gas gives an isotherm that lies higher and further out.
A graph of pressure in kilopascal against volume in litres for 1.0 mole of an ideal gas. Three falling curves are drawn, for 200 kelvin, 300 kelvin and 400 kelvin. Each curve is a pressure-volume curve at one temperature, with p V constant along it. The curve for the higher temperature lies higher and further from the axes.
Move the volume slider. The point slides along the curve. Now change the temperature. The whole curve moves. Does the last readout, pV/(nT), ever change? It stays at 8.31 J/(mol K). That number is R.
Mass, moles and density
The number of moles is the mass divided by the molar mass: n=m/M. Put this into pV=nRT and use ρ=m/V:
p=MρRT
At the same pressure and temperature, a gas with a larger molar mass is denser.
A worked example
Why does a helium balloon rise? Find the density of helium and of air at 300 K and 101.3 kPa. Helium has M=0.004 kg/mol and air has M=0.029 kg/mol.
We want the density, so ρ=RTpM. Start with RTp=8.31J/(mol K)×300K101.3×103Pa=40.6mol/m3. That is the number of moles in each cubic metre, for any gas.
Helium.ρ=40.6mol/m3×0.004kg/mol=0.163kg/m3.
Air.ρ=40.6mol/m3×0.029kg/mol=1.18kg/m3.
Check. Air is about seven times denser, the same as 29/4. So the air pushes the balloon up more than the helium weighs.
Practise with new numbers
Try it in Python
A weather balloon is filled at the ground and let go. As it rises, the air outside gets thinner and colder. The program uses T1p1V1=T2p2V2 at each height.
Common mistakes
Using degrees Celsius. At 0∘C the gas would have no volume. Always change to kelvin.
Using the gauge pressure. A tyre at a gauge pressure of 200 kPa holds air at about 301 kPa absolute.
Mixing litres and cubic metres. In pV=nRT with R=8.31 J/(mol K), use pascal and cubic metres. 1 L is 10−3 m³.
Forgetting that two things change. When a gas rises in the air, both p and T change. Use p1V1/T1=p2V2/T2.