# Thermodynamics

> Physics (AP Physics 1, 2 and C) · AP Physics 2 · Heat, waves, light and the atom. A free chapter of Atlas, the interactive visual textbook: https://atlasclass.app/physics/thermo/. On the site each page sits beside an interactive 3D figure; here it is the words and the math (LaTeX) alone.

## Chapter 16 · Thermodynamics

*gases, heat and entropy*

A gas is a crowd of atoms flying in straight lines and bouncing off each other and off the walls. Everything a gas does, from the push it puts on a piston to the way it warms and cools, comes from that motion.

In the cylinder, heat flows into a gas under a weighted piston. Its atoms speed up, the gas expands and lifts the weight, and on the graph its state slides along a line of constant pressure. Some of the heat went into the atoms’ motion; the rest left again as work done lifting the piston.

This chapter builds thermodynamics from the atoms up: where pressure and temperature come from, the ideal gas law, how heat flows, the first law’s bookkeeping of heat and work, specific heat and conduction, and why heat only ever flows one way.

## 16.1 · Kinetic theory of pressure

*a push from every bounce*

The atoms of a gas move in every direction at once. Each time one strikes a wall it bounces off, and the wall feels a small push. The pressure of a gas is billions of those pushes, every instant.

Take one atom of mass *m* striking a wall head-on at speed *v*_*x* and bouncing straight back, an elastic collision. Its momentum perpendicular to the wall reverses, from +*mv*_*x* to −*mv*_*x*. Momentum is conserved, so the wall gains what the atom lost:

$$\Delta p_\text{wall} = 2mv_x$$

The force on the wall is the momentum it gains per unit time, summed over all the atoms that strike it. Spread over the wall’s area, that is the pressure:

$$P = \frac{F_\perp}{A}$$

Faster atoms give each push more momentum *and* strike more often, so pressure rises with speed. More atoms in the box means more strikes, and more pressure too.

Pressure is not only at the walls. A surface placed anywhere in the gas is struck from both sides, so the pressure exists throughout the gas.

**Example.** An argon atom (*m* = 6.64 × 10^−26 kg) at 432 m/s strikes a wall head-on. It gives the wall

$$\begin{aligned}\Delta p &= 2(6.64 \times 10^{-26})(432) \\ &= 5.74 \times 10^{-23}\ \text{kg}\cdot\text{m/s}\end{aligned}$$

The traced atom in the figure strikes the right-hand wall 3 times each loop; the other atoms add their own pushes, shorter for the slower ones.

## 16.2 · Kinetic theory of temperature

*the average kinetic energy of the atoms*

Temperature is a measure of how fast a gas’s atoms move. More exactly, the absolute temperature *T* is proportional to the average kinetic energy of the atoms:

$$K_\text{avg} = \tfrac{3}{2}k_BT = \tfrac{1}{2}mv_\text{rms}^2$$

*k*_B = 1.38 × 10^−23 J/K is Boltzmann’s constant, and *T* is in kelvin. *v*_rms, the **root-mean-square speed**, is the square root of the average of *v*^2: the speed an atom with the average kinetic energy would have.

**Example.** Argon at 300 K:

$$\begin{aligned}K_\text{avg} &= \tfrac{3}{2}(1.38 \times 10^{-23})(300) \\ &= 6.21 \times 10^{-21}\ \text{J} \\ v_\text{rms} &= \sqrt{\frac{2K_\text{avg}}{m}} \\ &= \sqrt{\frac{2(6.21 \times 10^{-21})}{6.64 \times 10^{-26}}} \\ &= 432\ \text{m/s}\end{aligned}$$

No atom keeps one speed for long: collisions trade energy between them all the time. At any instant the speeds are spread out in the **Maxwell–Boltzmann distribution**: a few atoms nearly still, most near the middle, a long tail of fast ones.

Warm the gas and the whole curve shifts to higher speeds. Its peak moves right and drops, and it spreads wider. The area under it, the number of atoms, stays the same. At 900 K, three times 300 K, *v*_rms is √3 times as large: 749 m/s.

At one temperature every gas has the same *K*_avg, so lighter atoms move faster: helium’s *v*_rms is 3.16 times argon’s, since argon’s atoms are ten times as massive.

## 16.3 · The ideal gas law

*PV = nRT*

An **ideal gas** is the simplest model of a gas, and real gases follow it closely unless they are very dense or nearly cold enough to condense. It assumes

- the atoms move in random directions at a spread of speeds;
- the atoms’ own volume is negligible next to the gas’s volume;
- collisions, with each other and with the walls, are elastic;
- the atoms exert forces on each other only while colliding.

For such a gas, pressure, volume and temperature are tied together by the **ideal gas law**:

$$PV = nRT = Nk_BT$$

*n* is the amount in moles and *R* = 8.31 J/(mol·K); or *N* is the number of atoms and *k*_B is Boltzmann’s constant. (*N* = *nN*_A, and *R* = *N*_A*k*_B.) *P* in pascals, *V* in m³ and *T* in kelvin.

**Example.** 0.400 mol of gas fills a rigid 10.0 L box (0.0100 m³) at 0 °C = 273 K:

$$\begin{aligned}P &= \frac{nRT}{V} = \frac{(0.400)(8.31)(273)}{0.0100} \\ &= 9.07 \times 10^{4}\ \text{Pa}\end{aligned}$$

Hold the volume fixed and warm the gas: the pressure rises in proportion to the absolute temperature, 90.7 kPa at 0 °C and 124.0 kPa at 100 °C. Plotted against *T* in °C the points lie on a straight line. Extend it to lower temperatures and it reaches zero pressure at −273 °C, and so does the line for any other amount of any gas. That temperature is **absolute zero**, 0 K, where the atoms’ kinetic energy would be zero.

## 16.4 · Thermal energy transfer and equilibrium

*from hotter to colder, until the temperatures meet*

When two objects at different temperatures are in thermal contact, energy passes from the hotter to the colder. Energy transferred that way, because of a temperature difference, is **heat**, *Q*.

It can go three ways:

- **Conduction:** atoms in contact collide, and on average the faster ones give energy to the slower. Solids, at a touching surface.
- **Convection:** a warm fluid moves, carrying its energy with it, as warm air rises from a heater.
- **Radiation:** electromagnetic waves carry the energy, with no material needed in between. Sunlight warming the Earth.

Heat flows from hot to cold spontaneously, and never the other way on its own. The atoms trade energy in both directions all the time; but there are vastly more ways for the energy to be shared out evenly than for it to stay bunched in the hotter object, so evenly shared is overwhelmingly the most probable state.

When the temperatures are equal the two objects are in **thermal equilibrium**. Energy still passes back and forth in collisions, but equally each way: there is no *net* transfer, and both temperatures stay put.

**Example.** Two blocks of the same metal and mass, at 80 °C and 20 °C, are pressed together. Each degree one loses, the other gains, so they meet halfway, at 50 °C. The heat flows fastest at first, when the difference is largest, and slows as the temperatures close.

## 16.5 · The first law of thermodynamics

*ΔU = Q + W*

The **internal energy** *U* of a system is the total kinetic and potential energy of its atoms and molecules. An ideal gas’s atoms exert no forces on each other between collisions, so it has no internal potential energy; for a monatomic ideal gas

$$U = \tfrac{3}{2}nRT = \tfrac{3}{2}Nk_BT$$

There are two ways to change a gas’s internal energy: heat it, or do work on it. That is the **first law of thermodynamics**, the conservation of energy:

$$\Delta U = Q + W$$

*Q* is the energy transferred *into* the gas by heating (negative if it leaves). *W* is the work done *on* the gas. At constant (or average) pressure,

$$W = -P\,\Delta V$$

When the gas expands it pushes the piston out and does work on its surroundings, so the work done on it is negative. Compress it and *W* is positive.

**Example.** 0.400 mol of gas under a weighted piston stays at 100 kPa while it is heated from 10.0 L to 15.0 L:

$$\begin{aligned}W &= -(1.00 \times 10^{5})(0.0050) = -500\ \text{J} \\ \Delta U &= \tfrac{3}{2}nR\Delta T = \tfrac{3}{2}P\Delta V \\ &= 750\ \text{J} \\ Q &= \Delta U - W = 750 + 500 \\ &= 1250\ \text{J}\end{aligned}$$

Of the 1250 J of heat, 750 J stays in the gas as faster atoms (its temperature rises from 301 K to 451 K) and 500 J leaves as work lifting the weight. Cool it back to A and every term changes sign.

## 16.6 · Processes on a PV diagram

*the area under the path is the work*

A gas’s state is a point on a graph of pressure against volume; a process is a path from one point to another. The size of the work is the area under the path:

$$|W| = \text{area under the } P\text{–}V \text{ curve}$$

Moving right (expanding), the work done on the gas is negative; moving left (compressing), positive. Curves of constant temperature, **isotherms**, are hyperbolas, *PV* = constant; isotherms farther from the origin are hotter. Since *U* = (3/2)*PV* for a monatomic gas, ΔU can be read from the end points.

Four processes from state A (200 kPa, 10.0 L):

| process | held fixed | *W* (J) | Δ*U* (J) | *Q* (J) |
| --- | --- | --- | --- | --- |
| isobaric | *P* | −2000 | 3000 | 5000 |
| isothermal | *T* | −1386 | 0 | 1386 |
| adiabatic | *Q* = 0 | −1110 | −1110 | 0 |
| isovolumetric | *V* | 0 | −1500 | −1500 |

- **Isobaric** (constant pressure): a flat path; *W* = −*P*Δ*V* = −(200 kPa)(0.010 m³).
- **Isovolumetric** (constant volume): a vertical path with no area, so *W* = 0 and Δ*U* = *Q*.
- **Isothermal** (constant temperature): along an isotherm, so Δ*U* = 0 and *Q* = −*W*: every joule of work done comes in as heat.
- **Adiabatic** (no heat, *Q* = 0): Δ*U* = *W*. Expanding, the gas does work out of its own internal energy and cools, so its path falls more steeply than the isotherm.

The same start and end states can be joined by different paths with different *W* and *Q*; Δ*U* depends only on the end states.

## 16.7 · Specific heat and thermal conductivity

*how much heat warms it, how fast heat gets through*

The heat needed to change an object’s temperature is proportional to its mass and to the change in temperature:

$$Q = mc\,\Delta T$$

*c*, the **specific heat**, is the energy to warm 1 kg by 1 K (or 1 °C). It is a property of the material, the same for any sample of it; here it is taken not to change with temperature.

| material | water | aluminum | iron | copper |
| --- | --- | --- | --- | --- |
| *c* (J/(kg·K)) | 4180 | 900 | 450 | 385 |

**Example.** 20.0 kJ goes into 0.500 kg each of water and aluminum: water rises Δ*T* = 20000/((0.500)(4180)) = 9.6 K, aluminum 44.4 K. Water’s large specific heat is why it warms and cools slowly.

Heat conducts through a slab or rod at a rate set by the material and the shape:

$$\frac{Q}{\Delta t} = \frac{kA\,\Delta T}{L}$$

*A* is the cross-sectional area, *L* the length the heat travels, Δ*T* the temperature difference across it, and *k* the material’s **thermal conductivity**: copper 400, aluminum 240, glass 0.80, wood 0.12 W/(m·K).

**Example.** A copper rod with *A* = 1.0 × 10^−4 m² and *L* = 0.50 m joins 100 °C to 20 °C:

$$\begin{aligned}\frac{Q}{\Delta t} &= \frac{(400)(1.0 \times 10^{-4})(80)}{0.50} \\ &= 6.4\ \text{W}\end{aligned}$$

The same rod in glass would pass only 0.0128 W. Double the area and the rate doubles; double the length and it halves.

## 16.8 · Entropy and the second law of thermodynamics

*energy spreads out, and stays spread*

Lift the partition and the gas spreads into the empty half of the box. Nothing pushes it there: the atoms simply move, and there are far more ways for 40 atoms to be spread through the whole box than gathered in one half. The chance of finding all 40 back in the left half at once is (½)^40, about 9 × 10^−13.

**Entropy** measures how spread out a system’s energy is, over its atoms and over space. It is a state function: it depends only on the system’s state, not on how it got there. A system left to itself moves toward the state of greatest entropy, which is equilibrium.

The **second law of thermodynamics**: the total entropy of an isolated system never decreases. In an irreversible process, such as the gas spreading, heat flowing from hot to cold, or friction, it increases. It stays constant only in an ideal reversible process.

That is why heat flows from hot to cold on its own. The energy spread over both objects has more entropy than the energy bunched in the hot one.

The entropy of a system that is *not* isolated can decrease, as long as the entropy of its surroundings increases at least as much. Water freezing in a freezer loses entropy; the freezer’s heat, released into the kitchen, raises the kitchen’s by more.

---

Read it with the figures, and practice it graded as you go: https://atlasclass.app/physics/thermo/
