In this section we will develop the **ideal gas law** from first principles, that is, by considering the behavior of individual particles in an ensemble of gas particles. "Particles" will be our generic term for atoms and/or molecules.

Before we begin, we have to realize that this is a pretty complicated task, so we have to make some approximations. That's the way we often have to move forward in science: We make approximations to come up with a simple model, then ask, if we remove the constraints of our approximations (like adding friction in projectile motion), how does our model change, and can we then add that change to it?

Our assumptions are pretty simple →

- Gases consist of spherical particles so small the distance between gas particles (atoms or molecules) is always much smaller than the distance between them.

- The gas particles have the same mass.

- The number of molecules is so large that an average over, say particle speed, is meaningful.

- The particles are in constant motion, and undergo perfectly elastic collisions with other particles and with the walls of the container. Interactions, especially attraction, between particles is negligible (i.e. they exert no forces on one another).

- The temperature of the gas depends on the average kinetic energy of the particles.

- The time between collisions with the container walls is smaller than the time between collisions with other particles.

X
### Ensemble

In chemistry and physics, **ensemble** means a collection of particles – atoms and/or molecules – large enough that averages of their properties, such as speed or kinetic energy, are meaningful.

An ensemble of particles is a theoretical grouping that helps us think through how individual atoms or molecules contribute to the bulk properties of gases, liquids or solids.

Consider some kind of container holding gas "particles." We'll call them particles, though they could be atoms, like He or Ar, or molecules, like CO_{2} or O_{2}. The particles are in constant motion in three dimensions. They have a range of velocities, but there are enough of them that an average velocity is a meaningful number. Here we're looking at the container from one side.

If we look at just one gas particle with average velocity **v**, we can decompose that velocity vector into velocity **v _{x}**, toward the wall, and

If we use that velocity to calculate the momentum of the particle in the x-direction, **p _{x} = mv_{x}**, we have this simplified picture.

Now we're interested in how much force each particle exerts on the container wall as it hits it, so we'll have to let it bounce off the wall. Remember that one of our approximations is that this will be a perfectly-elastic collision – no attractive forces between particles and walls. In the picture below, the inward and outward momentum vectors are angled just a bit so they won't overlap, but it's easy to see that the change in momentum is the forward momentum minus the backward momentum (a negative number).

So the momentum change perpendicular to the wall upon bouncing off of it is **Δp _{x} = 2p_{x}**.

In order to calculate the total force that any particle exerts on the container walls, it's necessary to know how *often* it hits a wall. More hits in a given time means more force over that time which means more pressure (remember that pressure is force divided by area).

The particle will hit any *one* side wall, say the left one in the figure above, after traveling a distance of 2**L**, where **L** is the distance between walls. Using the velocity definition v = distance/time, we can calculate **Δt**.

Now from our studies of momentum and impulse (**Δp**), we know that

where **Δp** is the impulse and **Δt** is the time between collisions. If **p _{x} = mv_{x}** is the momentum in the x-direction we get the force of a particle on the wall as a function of its velocity, mass and the length of the container:

Make sure you work through that last line to see where the 2's come from and why they cancel.

Now if we have an ensemble of N particles, each of which are bouncing off our wall with the average force (because they can all be considered to be moving with the average velocity), the total force on a wall is

Here we've put a bar over the vx to indicate that we're talking about the average velocity in the x-direction.

Now in our container, there's nothing special about the x-direction, and we'd expect that the average velocities in all three dimensions would be equal

Using the squares of the velocities is important because velocity is a vector, and with equal probability of moving in either of two opposite directions, the x-, y- and z-velocities would be zero if we didn't square. We can always take a root when we need to get to the velocity.

Now the Pythagorean theorem for a three-dimensional velocity vector with x-, y- and z-components is

Now using the equivalence of the squares of the velocities, we can rewrite that as

And we can solve that for the x-component:

Now we can plug that into our formula for the force, to express it as a function of the average velocity – forget about components now – of the particles in the container:

Now pressure is force divided by area: P = F/A, and the area of a wall of our container is A = L2. So we can convert to pressure like this:

Now if L3 is the volume we can write the pressure as

The average kinetic energy is in there

Now the average kinetic energy of a particle in our ensemble is

and if we insert that into the pressure equation we get

Now this is a remarkable place to pause. We've just related energy, the average kinetic energy of the particles in our gas, to the pressure and volume of the gas.

That expression is usually written in terms of the pressure-volume product, like this:

The average kinetic energy of the particles of a gas is related to the product of pressure and volume (PV) by

Because N is just a number (no units) it follows that the product, PV, has units of *energy*.

In the early days of exploring the properties of gases, Boyle, Charles, Gay-Lussac and Clapeyron developed a few important empirical laws of gas behavior, relating pressure, temperature, volume and number of particles. The most important relationship, due to Clapeyron, showed that the product of pressure and volume (**PV**) is proportional to the number of particles and the temperature:

**PV = NkT**,

where **k** is a proportionality constant known as the Boltzmann constant, **k = 1.381 × 10 ^{-23} J/K**

The constant can be viewed merely as being there to get the units right. The product **kT** has units of energy (Joules, J)

If we equate the theoretical and empirical formulas for PV,

The transitive property gives us

Canceling the N's and solving for the average kinetic energy per particle, KE gives us a remarkable result:

The average kinetic energy of the particles of a gas depends only on the temperature and can be approximated, to very good measure, with this formula.

X
### empirical

An empirical rule or law is one that is based on experiment and observation instead of pure mathematical logic. Empirical observations inform theoretical investigations, and theory invites experiment in order to confirm, disprove or improve the theory.

The average translational kinetic energy of the atoms or molecules of a gas is

where k = 1.381 × 10^{-23} J/K is the Boltzmann constant, and T is the temperature in Kelvin.

X
### Translational KE

The translational kinetic energy is the energy of movement in 3D space, along the x-, y- and z-directions. It does not include the kinetic energy of rotation of molecules or vibration of molecular bonds, neither of which is a factor for an ideal gas of microscopic particles.

The empirically-derived ideal gas law, **PV = NkT** and the kinetic molecular theory of an ideal gas give us a connection between the measurable properties of gases and the average kinetic energy of the gas particles.

If we let R be the Boltzmann constant multiplied by Avogadro's number,

We get the *molar* gas constant **R = 8.314 J/mol·K** or **8.314 J·mol ^{-1}·K^{-1}**.

Then the ideal gas law can be rewritten,

**PV = nRT**,

where **n** is the number of moles instead of the number of particles (**N**).

The ideal gas law has two forms:

where **N** is the number of gas particles (atoms or molecules), **n** is the number of moles, **k = 1.381 × 10 ^{-23} J/K** is the Boltzmann constant and

**xaktly.com** by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2016, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.