Ideal gasses are nice because they have several properties that make them relatively easy and useful to work with:

A mixture of ideal gasses is also an ideal gas. Therefore, you can use the ideal gas law on the entire mixture or on any of its components without loss of validity.

The Partial Pressure of a component in an ideal gas mixture is related to the total pressure by the equation PA=xA∗P{\displaystyle P_{A}=x_{A}*P} where xA{\displaystyle x_{A}} is the mole fraction of component A in the mixture.

The ideal gas equation, if it is valid, is independent of the properties of the gas. Therefore, there is no need to look up or measure gas-specific parameters, all you need to know is 3 of the unknowns (P,V,T, and n) and you can solve for the fourth one.

The enthalpy and entropy of an ideal gas only depend on temperature (not pressure or volume).

Many gasses are close to ideal at low pressures and high temperatures. Therefore it can be used as a realistic reference state to which a real gas can be compared.

There are many other useful properties of ideal gasses that will be discussed in thermodynamics.

Suppose that you have water vapor in a small water bottle. What happens when you apply pressure to that vapor by shrinking the volume? If you apply more pressure to the bottle, the gas molecules within become closer and closer together. However, the closer molecules of a substance are to one another, the larger the dispersion forces (and polar forces, if applicable) are between them. Eventually, the dispersion forces become significant, and the kinetic theory of gasses as stated above is no longer valid. Therefore, the ideal gas law no longer applies, or becomes a rough estimate at best.

At very high pressures, a vapor might even condense into a liquid, which would also invalidate the use of the law.

By definition of temperature, when the temperature of a substance decreases, this indicates a lower average kinetic energy of the molecules of that substance. Molecules with less kinetic energy also have less momentum, and therefore are more easily swayed by dispersion forces from other molecules and by gravity. Eventually, the temperature might become low enough that the forces from other molecules cause significant deviations in the path of a molecule, and in this case the ideal gas law becomes less valid.

The ideal gas law is not the only way to express relationships between system properties. There are an infinite number of possible ways that you could propose to correlate system variables, although thermodynamics provides some guidelines regarding how many variables to correlate and what types of correlations we should look for. In particular, it is most useful to correlate relationships between state variables, for which changes in the properties do not depend on how the change occurred.

Any equation that relates state variables is called an equation of state. The most commonly-used equations of state relate the variables P, T, V, and n (pressure, temperature, volume, and number of moles) since they are all measurable variables whereas many other possible variables are not directly measurable (such as enthalpy, which will be discussed later).

One use of the compressibility is that it allows a simple extension of the ideal gas law, which is completely general.

Real-Gas Extension to the Ideal Gas Law

PV=nRTZ{\displaystyle PV=nRTZ}

Unfortunately, Z is not a constant for any material, but changes with pressure and temperature. However, in a later section you will learn a technique called the generalized compressibility method with which you can estimate the value of Z for any substance, given certain data. Once it is known, this extension can be used to calculate an unknown system property.

One of the oldest equations that was developed to take non-ideality into account is called the Van der Waals Equation, which has two substance-dependent parameters. One takes into account the interactions between particles, and the other the fact that particles have volume, sometimes substantial.

The Van der Waals equation is as follows:

(p+n2aV2)(V−nb)=nRT{\displaystyle \left(p+{\frac {n^{2}a}{V^{2}}}\right)\left(V-nb\right)=nRT} where a and b depend on the gas being analyzed

The Van der Waals equation is significantly more accurate than the ideal gas law and can be used to crudely predict when a gas will condense. However, it is not sufficiently accurate for many industrial purposes, and therefore other methods have been sought since then.

The Virial equation is an equation which has a potentially infinite number of parameters that depend on the properties of the substances involved. It is important because it can be shown to be a valid extension to the ideal gas law using statistical theories (whereas the other equations of state have been derived semi-empirically).

The virial equation can take several forms, depending on the data one has available. The one in terms of molar volume is:

One of the more modern equations of state is the Peng-Robinson equation, which is most useful for describing nonpolar molecules such as hydrocarbons or nitrogen. The Peng-Robinson equation has two parameters like the Van der Waals equation, but unlike the latter, one of the parameters is not constant; it depends on the temperature of the system as well as the properties of the substance inside.