1.7.10 · D2Thermodynamics

Visual walkthrough — Internal energy of ideal gas U = (f - 2)nRT

2,421 words11 min readBack to topic

Step 1 — A gas is a swarm of tiny bouncing balls

WHAT. Picture a sealed box. Inside are many identical particles (molecules), each a tiny hard ball, flying in straight lines until it hits a wall or another ball and bounces off.

WHY start here. Before we can talk about "energy of a gas" we need to know where the energy lives. The parent note's key claim is: for an ideal gas there are no forces between molecules except at the instant of a collision. That means no stored spring-energy, no stored "pulling-together" energy — the only energy is the energy of motion (kinetic energy). This is the foundation of everything below.

PICTURE. Below: a box with several balls and their velocity arrows. The arrows point in random directions and have random lengths — some balls are fast, some slow.

Figure — Internal energy of ideal gas U = (f - 2)nRT

Because the balls fly in random directions, the average velocity is zero (as many go left as right). So we cannot use average velocity to measure energy. We need something that is always positive — that is why we will use speed squared, coming next.


Step 2 — Pressure comes from balls hammering the walls

WHAT. One wall of the box feels a steady push (pressure) because balls keep slamming into it and bouncing back. Kinetic theory counts these hits and turns them into a formula.

WHY. Pressure and volume are things we can measure in the lab. Speed is something we cannot see directly. If we can write pressure in terms of speed, we get a bridge from the invisible (molecular motion) to the visible (a pressure gauge).

PICTURE. A single ball approaches the right wall with a rightward velocity component, bounces, and leaves with that component reversed. The change in its motion is the "kick" it gives the wall.

Figure — Internal energy of ideal gas U = (f - 2)nRT

Counting all such kicks over the whole wall gives the standard kinetic-theory result:


Step 3 — Match kinetic theory to the ideal gas law

WHAT. We have TWO formulas for the same quantity . Set them equal.

WHY. The ideal gas law is a second, experimentally-verified expression for . Two expressions for one thing means we can equate them and cancel — that is how you solve for the unknown (here, speed in terms of temperature).

PICTURE. Two boxes labelled "", each holding a different formula, joined by an equals sign — showing that they describe the exact same measured quantity.

Figure — Internal energy of ideal gas U = (f - 2)nRT

The ideal gas law, written two equivalent ways:

Now equate the kinetic-theory with the per-molecule ideal-gas :

The (molecule count) appears on both sides, so it cancels — a single molecule's average behaviour is all that matters.


Step 4 — Temperature IS average kinetic energy

WHAT. Cancel , then rearrange to isolate the average kinetic energy of one molecule.

WHY. This is the punchline of kinetic theory and the reason depends only on : temperature is literally a stand-in for molecular kinetic energy. Once we see this, the parent note's claim " only" becomes obvious.

PICTURE. A slider: as increases, the velocity arrow on a single molecule grows longer. Temperature and speed rise together.

Figure — Internal energy of ideal gas U = (f - 2)nRT

Start from (after cancelling ). Multiply both sides by :


Step 5 — Equipartition: every "way to move" gets

WHAT. Generalize the pattern "each direction gets " into a rule. The equipartition theorem says: every independent quadratic way of storing energy carries, on average, per molecule.

WHY. In Step 4 we only counted straight-line motion (translation, 3 ways). But molecules can also spin, and each spin axis is another way to store energy as a square term (). Nature shares energy equally among all these ways. To get the total energy we must count them all.

PICTURE. Three panels showing a molecule's "ways to move": moving along , , (translation) and spinning about two axes (rotation). Each box is stamped with .

Figure — Internal energy of ideal gas U = (f - 2)nRT


Step 6 — Different molecules have different (all cases)

WHAT. The value of depends on the molecule's shape. We enumerate every case so no gas surprises you.

WHY. Using for everything is the most common mistake. A dumbbell-shaped molecule can spin; a single atom cannot. We must count honestly.

PICTURE. Left: a lone atom (monatomic) — only slides, 3 arrows. Right: a dumbbell (diatomic) — slides in 3 ways and spins about the 2 axes across the bond (the accent-red curved arrows), but not about the bond line itself.

Figure — Internal energy of ideal gas U = (f - 2)nRT
Molecule Translation Rotation energy per molecule
Monatomic (He, Ar) 3 0
Diatomic (O₂, N₂) 3 2
Nonlinear polyatomic (H₂O) 3 3

Step 7 — Add up all molecules to get

WHAT. Multiply the energy of one molecule by the number of molecules, then convert to moles.

WHY. is the total internal energy — the sum over the whole swarm. Because every molecule shares the same average , "sum" is just "multiply by ."

PICTURE. One molecule stamped , times a crowd of molecules, equals a big total box labelled .

Figure — Internal energy of ideal gas U = (f - 2)nRT

Swap for (the bridge from Step 3):


Step 8 — The limiting/edge cases must handle

WHAT. Test the formula on extreme situations so you are never caught out.

WHY. A good formula should give sensible answers at the edges. Check them.

PICTURE. Three mini-scenarios: (arrows shrink to dots, ), isothermal change ( flat, so even as changes), and doubling (twice the crowd, twice the ).

Figure — Internal energy of ideal gas U = (f - 2)nRT
  • Absolute zero, : . All motion stops — no jiggling, no energy. ✔
  • Isothermal process, : , even though and change wildly. Since only, nothing about volume matters. (See the First law of thermodynamics: the gas absorbs heat and does equal work.) ✔
  • Double the gas, : doubles. Twice as many molecules, twice the total zoom-energy. ✔
  • Change only: — independent of the path taken (this drives the definition of $C_v$).

The one-picture summary

Figure — Internal energy of ideal gas U = (f - 2)nRT

This single picture stacks the whole chain: one bouncing ball → pressure formula → matched to gas law → temperature = KE → equipartition shares per way → count ways → multiply by molecules → convert to moles → .

One molecule bouncing

PV equals one third N m mean v squared

Match to ideal gas law PV equals N kB T

Half m mean v squared equals three halves kB T

Each way to move gets half kB T

Count f ways per molecule

Multiply by N molecules

U equals f over 2 n R T

Recall Feynman retelling — the whole walkthrough in plain words

Imagine a box of tiny bouncy balls. Each ball zooms around; the hotter the box, the faster they zoom. When balls bang the walls, we feel a push — that push is pressure, and by counting the bangs we get a formula linking pressure to how fast the balls move. But we already know another formula for pressure (the gas law), so we set the two equal and — poof — out pops the fact that temperature is just how much the balls are zooming. Now, a ball can zoom in three directions, and a dumbbell-shaped ball can also spin two ways. Nature is fair: it gives every one of these "ways to move" the same little slice of energy, . So we count the ways (call it ), give each its slice, add up all the balls, and switch from "number of balls" to "moles." What we get is : total zoom-energy of the gas, which depends only on how hot it is.

Recall Quick self-test (cover the answers!)

Where does the in come from? ::: Motion splits equally over the 3 directions; only one pushes a given wall. Why can we cancel in Step 3? ::: It appears on both sides — the equation reduces to per-molecule behaviour. What does equipartition give each degree of freedom? ::: per molecule. Why does a diatomic molecule have , not 6? ::: Rotation about the bond axis has ~zero moment of inertia, so it is frozen out; only 2 rotations count. What is at ? ::: Zero — all motion stops. Why is in an isothermal process? ::: only, and .


Connections