# 1.7: Connecting the van der Waals and the viral equations: the Boyle temperature

$$\newcommand{\vecs}{\overset { \rightharpoonup} {\mathbf{#1}} }$$ $$\newcommand{\vecd}{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}{\| #1 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$$$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

Using the molar volume definition, we can rewrite the ideal gas law as a ratio that will always equal one:

$StartFraction upper P upper V overbar Over upper R upper T EndFraction equals 1 left-parenthesis assuming ideality of the gas right-parenthesis$

For real gases, however, this ratio very rarely is equal to one. This ratio is a useful metric for deviation of a gas from ideality, and it appears often enough that we can give this ratio its own definition, Z, the compressibility factor:

$upper Z equals StartFraction upper P upper V overbar Over upper R upper T EndFraction left-parenthesis upper Z is unitless right-parenthesis$

If Z is less than 1, the gas is more compact than we'd predict the corresponding ideal gas to be; if Z is greater than 1, the gas is more spread out than we'd predict the corresponding ideal gas to be. Graphs of compressibilities of gases are some of the first comparison graphs you tend to get exposed to in physical chemistry, and it's worth it to look closely at an example of such a graph and interpret it. Compressibility factors as a function of temperature and pressure for nitrogen gas.
Image taken from "Retired Pchem Prof" on Wikimedia Commons; CC BY-SA 4.0.

The most vivid differences in compressibility on this graph for nitrogen are found at a temperature of 220 K. At this comparatively low temperature, nitrogen molecules are able to attract one another more than you'd expect for an ideal gas even when the pressure the gas is under gets relatively high; therefore the gas tends to be more densely packed than ideal, and the compressibility is less than 1. However, when pressure gets high enough (approximately above 230 bar), repulsion between the gas molecules because of their volume takes over, and the gas molecules are more spread out than you would expect an ideal gas to be at that pressure; the compressibility is greater than 1.

At higher temperatures, as you'd expect, there is much less attraction between the gas molecules because the speed at which the molecules are moving don't allow for a great deal of attraction. Once the temperature reaches a certain level, at no point do the gas molecules appear to attract one another into a more dense packing at all; any substantial pressure causes the repulsive effects to have greater significance.

The virial equation is even more elegantly written in terms of the compressibility factor:

$upper P upper V overbar equals upper R upper T left-parenthesis 1 plus StartFraction upper B Over upper V overbar EndFraction plus StartFraction upper C Over upper V overbar squared EndFraction plus StartFraction upper D Over upper V overbar cubed EndFraction plus ellipsis right-parenthesis right-arrow upper Z equals StartFraction upper P upper V overbar Over upper R upper T EndFraction equals 1 plus StartFraction upper B Over upper V overbar EndFraction plus StartFraction upper C Over upper V overbar squared EndFraction plus StartFraction upper D Over upper V overbar cubed EndFraction plus ellipsis$

Our tabulation of the second virial coefficient in the last section made note that the values of B depend on temperature. There were certain values of B for low temperatures that were negative, and for high temperatures that were positive. The immediate implication is that there is a temperature where B goes to zero, and (if we continue to ignore the higher terms of the virial expansion as we have been), the compressibility factor reverts back to one:

$upper Z equals StartFraction upper P upper V overbar Over upper R upper T Subscript upper B Baseline EndFraction equals 1 upper T Subscript upper B Baseline right-arrow Boyle temperature$

This Boyle temperature is unique for every gas. The virial equation doesn't give a whole lot of clarity to what the Boyle temperature actually represents, however, other than a temperature where virial properties magically go to zero.

Making the van der Waals equation fit into the form of the compressibility factor is a bit more of an algebraic challenge, but a worthwhile one to take on. Let's start by taking the van der Waals equation in terms of the molar volume, and solve the equation for pressure:

$left-parenthesis upper P plus StartFraction a Over upper V overbar squared EndFraction right-parenthesis left-parenthesis upper V overbar minus b right-parenthesis equals upper R upper T right-arrow upper P plus StartFraction a Over upper V overbar squared EndFraction equals StartFraction upper R upper T Over upper V overbar minus b EndFraction right-arrow upper P equals StartFraction upper R upper T Over upper V overbar minus b EndFraction minus StartFraction a Over upper V overbar squared EndFraction$

By then multiplying every term by the molar volume divided by RT, we can then build an expression that's equivalent to the compressibility factor:

$upper P StartFraction upper V overbar Over upper R upper T EndFraction equals StartFraction upper R upper T Over upper V overbar minus b EndFraction StartFraction upper V overbar Over upper R upper T EndFraction minus StartFraction a Over upper V overbar squared EndFraction StartFraction upper V overbar Over upper R upper T EndFraction right-arrow upper Z equals StartFraction upper P upper V overbar Over upper R upper T EndFraction equals StartFraction upper V overbar Over upper V overbar minus b EndFraction minus StartFraction a Over upper V overbar upper R upper T EndFraction$

We have one term in this difference with molar volume isolatable in the denominator; in order to make this equivalent to the virial equation, we need to have the other term set up like this as well. It turns out that the best first step to do this is to transform the first term into a Taylor series expansion. We start by dividing top and bottom of that fraction by the molar volume:

$StartFraction upper P upper V overbar Over upper R upper T EndFraction equals StartFraction upper V overbar slash upper V overbar Over upper V overbar slash upper V overbar minus b slash upper V overbar EndFraction minus StartFraction a Over upper V overbar upper R upper T EndFraction right-arrow StartFraction upper P upper V overbar Over upper R upper T EndFraction equals StartFraction 1 Over 1 minus b slash upper V overbar EndFraction minus StartFraction a Over upper V overbar upper R upper T EndFraction$

We now have the first term in the form 1/1-x, which can be expanded by the Taylor series into 1 + x + x2 + x3 + ... Here, x is b divided by the molar volume:

$StartFraction upper P upper V overbar Over upper R upper T EndFraction equals 1 plus StartFraction b Over upper V overbar EndFraction plus left-parenthesis StartFraction b Over upper V overbar EndFraction right-parenthesis squared plus left-parenthesis StartFraction b Over upper V overbar EndFraction right-parenthesis cubed plus ellipsis minus StartFraction a Over upper V overbar upper R upper T EndFraction$

Recall the full form of the virial equation that we rederived earlier in the section in terms of the molar volume:

$StartFraction upper P upper V overbar Over upper R upper T EndFraction equals 1 plus StartFraction upper B Over upper V overbar EndFraction plus StartFraction upper C Over upper V overbar squared EndFraction plus StartFraction upper D Over upper V overbar cubed EndFraction plus ellipsis$

We've only provided values for the second virial coefficient B; that's because we made the decision that only extending the virial equation to the second term would be sufficient for approximating the real behavior of a gas. For a similar reason, we're going to limit the Taylor series expansion to eliminate terms in the molar volume squared and beyond. The simplified version of the rearranged van der Waals and virial equations, therefore, are these:

$StartFraction upper P upper V overbar Over upper R upper T EndFraction equals 1 plus StartFraction b Over upper V overbar EndFraction minus StartFraction a Over upper V overbar upper R upper T EndFraction equals 1 plus StartFraction b minus a slash upper R upper T Over upper V overbar EndFraction$

$StartFraction upper P upper V overbar Over upper R upper T EndFraction equals 1 plus StartFraction upper B Over upper V overbar EndFraction$

The upshot of all of this rearrangement is that we've expressed the second virial coefficient B in terms of the two van der Waals coefficients:

$upper B equals b minus StartFraction a Over upper R upper T EndFraction$

That's not the only benefit to this derivation. At the Boyle temperature TB, we achieve ideality in gas behavior; in terms of the virial equation, B = 0 at the Boyle temperature. Therefore we can do one more simple rearrangement:

$0 equals b minus StartFraction a Over upper R upper T Subscript upper B Baseline EndFraction b right-arrow StartFraction a Over upper R upper T Subscript upper B Baseline EndFraction right-arrow upper T Subscript upper B Baseline equals StartFraction a Over b upper R EndFraction$

The van der Waals constants, therefore, contain information about when the gas behaves ideally.

Building these kinds of theoretical connections between relationships is one of the core tasks we pursue in our study of physical chemistry. We can make a great deal of headway with algebraic rearrangement. Ultimately, however, we'll need the tools of the calculus to describe changes in the systems we'll study over time.

1.7: Connecting the van der Waals and the viral equations: the Boyle temperature is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.