The Ideal Gas from first principles

We explore the connection between the macroscopic world of particles and the macroscopic world of gases. This should be accessible to high school students with an interest in math and physics. Making some simple assumptions about how particles move and how gases behave, we derive the ideal gas law which connects pressure (P), volume (V) and temperature (T).

Let's imagine a box of volume V filled with N particles. One of its faces has an area A.

box1.png

If that face was free to slide, the pressure from the gas could push it outwards, like so:

box-expand.png

Instead, we imagine containing the gas, by providing the necessary pressure from the outside.

box-pressure.png

Pressure is simply the force per unit of area, . So our question is:

what force F do we need to exert to prevent the gas from expanding?

A single particle

Let's assume a particle collides with a face of the box in an interval of time Δt. Let's start by considering the force necessary to contain a single particle. single_molecule.png

Let's assume this particle is moving with velocity v, which has 3 components, vx along the x direction, vy along y and vz along z. Let's consider our moving wall is along the x direction, and ask about for force that this particle creates on it.

Assumption: The particle obeys Newton's laws

It will thus move according to Newton's 2nd law:

Assumption: Collisions with the walls of the box are assumed to be elastic.

Note that elastic, in this context, means something different from the elasticity of a rubber band or a spring. An elastic collision is one in which momentum and kinetic energy are conserved. By contrast, in an inelastic collision, the kinetic energy before the collision can become sound, heat, or an internal vibration or deformation of the object.

Atoms are assumed to collide like perfect billiard balls (and produce no sound, since there is no air between them to carry any sound!).

Let's imagine what would happen if collisions between particles in the gas and particles in the wall were not elastic. Some particle would fly towards the wall with kinetic energy , then come back with . So it would lose energy when it hits the wall. Since the overall energy is conserved, the particles in the wall must have gained some of that kinetic energy. After trillions and trillions of collisions, the average kinetic energy of the particles on the wall would increase. Thus the gas would cool and the wall would heat up.

To describe a perfectly elastic collision of a particle with the wall, in the x component we can write:

single_molecule_before_after.png

So in order to prevent one particle from pushing on the wall, the wall would have to exert a force of , where the negative sign tells us it points to the left. But of course, a gas will have many particles hitting the wall.

A basketball will typically have 180,000,000,000,000,000,000,000 molecules inside it! That's a lot of potential collisions!

Our next question is, how many of those particles are hitting the wall? Let's call N the total number of particles in the box. Many will be towards the center of the box, or on the other side of it. We are interested in the face of the box labelled A. How many particles are hitting that wall in a time interval Δt? Let's call that number N. This is the number of particles going to the right in the x direction that will be close enough to hit the wall in a time Δt.

Let's consider a volume V , close to the wall of area A. The molecules moving to the right fast enough will hit the wall before a time Δt has elapsed.

7.volume_that_will_hit.png

How can we quantify this volume and what does "fast enough" mean here?

The volume can be written as: V = d A. The length of the side times the area of the wall. If we want a molecule inside V , moving to the right, to reach the wall in a time Δt, it will have to travel a distance d. In other words, if a particle inside V moves to the right with velocity vx, it will cover a distance d = vx Δt. The volume of the box which contains particles that will hit is thus V = vx Δt A.

Now, to find the force that these particles exert on the wall, we need to know how many will hit the wall. If N are going to hit in a time , they will, together, exert a force:

The total force will be the sum of the force exerted by each one of the N particles hitting the wall. So how many particles hit the wall? If V is the total volume of the box, and N the total number of particles, the particles hitting the wall will be:

the 1/2 factor comes because, on average, half the particles in V are going to the right and half are going to the left. The other factor is the volume containing particles that will reach the wall, over the total volume. Let's imagine only a sliver 1/100 of the volume contains particles close enough to hit the wall after a time Δt. Then N/200 would be the particles hitting the wall.

Coming back to the total force exerted on the surface A, we can rewrite it as:

Replacing, V = vx Δt A into () we obtain:

. However, note that and the number 2 are in the numerator and the denominator. We can thus simplify to: .

Let us define n = N/V as the particle density per cubic meter (total particles over volume). The force along the x direction thus simplifies to:

To relate this to the pressure on the surface of the box, we can remember that and so by dividing both sides of equation () by the area we obtain: . Before taking the next step, we will multiply and divide by 2 in order to make more apparent the presence of the Kinetic Energy in the equation. Our equation becomes:

Let's recap our goal: We are trying to find a relationship between P, V and T for a gas, based on first principles arising from the motion of its particles. We have made a few assumptions:

  1. The particle collisions are perfectly elastic
  2. The particles obey Newton's laws

So far we have a direct relationship between the Kinetic Energy of a particle along direction-x and the Pressure along x. However we would like the pressure on all the walls, and how it relates to the average kinetic energy in all directions. We will make a new assumption

The average velocity of the particles is zero and has no preferred direction (x, y and z are equivalent).

Since there is no preferred direction, we can say that the average of the velocity squared should be equal in all directions. In other words:

Where the brackets < > represent the average of the magnitude inside them. In addition, the total velocity can be found from the components of the velocity by applying Pythagoras in 3D.

3d-velocity

Thus simply:

Combining equations () and () it follows that or . This allows us to rewrite the pressure in terms of the average velocity squared (not just in the x direction). Inserting this back into the Pressure equation, and reminding ourselves that n=N/V:

In other words: The total pressure of the gas in the box is inversely proportional to the volume and directly proportional to the average kinetic energy of the molecules. Let's rename the average kinetic energy as KE, so we can write:

We have thus almost reached our destination. The product of pressure (P) and volume (V) in a gas is equal to the number of molecules in a gas times two-thirds of the Kinetic Energy. But how is KE related to the temperature?

The final step is one that was established experimentally. The constant connecting kinetic energy and Kelvin temperature is called the Boltzmann constant k. A multitude of experiments showed that

Thus, if we look at equations () and () we can recognize that average kinetic energy and temperature are related by:

Thus we have found the equation governing the pressure, volume and temperature of an ideal gas:

An alternative formulation that you will often see uses the gas constant R and the number of mols n, where nR = Nk.

Bibliography

Thanks: Special thanks to Mia Oleksak for her comments on the draft.