1.7.13 · D2Thermodynamics

Visual walkthrough — First law of thermodynamics — dU = dQ − dW, sign conventions

2,160 words10 min readBack to topic

Step 1 — Draw the system and give every arrow a name

  • The yellow arrow pointing in is heat. We give it the name (from the Latin quantitas caloris). It is energy that crosses the wall because outside is hotter than inside.
  • The red arrow on the piston is work. We call it . It is energy the gas spends by pushing the piston out.
  • The blue jiggling dots are the molecules. The total energy of all that jiggling is the internal energy, named .

Step 2 — Energy is never lost: write the ledger

Picture a tank of water (the figure). Water pours in from a tap (). Water is stored, raising the level (). Water flows out through a spout (). The iron rule of a tank:

  • — everything that entered (the tap).
  • — the change in what is stored. The little triangle means "change in" — final minus initial.
  • — everything that left (the spout).

Step 3 — Rearrange into the famous form

Starting from the ledger , subtract from both sides:

For a tiny sliver of the process we write the same law with tiny changes:

  • in front means "an infinitesimally small amount of." Instead of the whole journey, this is one microscopic step of it.

Step 4 — Where does the work actually come from?

Look at the piston close-up. Let the piston have area . The gas presses on it with pressure (force per unit area). So the total push is:

Now let the piston slide out a tiny distance (the red arrow). Work is force times distance:

But watch the shaded green slab the piston sweeps out — its volume is area times thickness:

Substitute and the geometry disappears, leaving pure thermodynamics:

  • — pressure at that instant.
  • — the sliver of volume added in that instant.
  • The (integral) is a running total — it adds up every sliver from the start volume to the end volume . We need it because can change as the gas expands, so we cannot just multiply once.

Step 5 — The sign of from the sign of

Two panels in the figure:

  • Expansion (left): the piston moves out, volume grows, so . Then . The gas does work on the surroundings — energy leaves. In this subtracts from stored energy.
  • Compression (right): the piston is pushed in, volume shrinks, so . Then . The surroundings do work on the gas — energy enters. In , subtracting a negative adds energy.

Step 6 — The four special processes: kill one term at a time

Each panel is a path (volume across, pressure up):

Process What's held fixed Term that dies Law becomes
Isochoric volume
Isobaric pressure none
Isothermal temperature (ideal gas)
Adiabatic no heat crosses
  • Isochoric (vertical line): the piston is bolted. It cannot move, so no volume sweeps out, . All heat becomes stored energy — the gas just gets hotter.
  • Isobaric (horizontal line): pressure constant, so (the integral of a constant is just times the width).
  • Isothermal (gentle curve): for an ideal gas, depends only on temperature (see Internal energy and degrees of freedom). Hold fixed and cannot change: , so every joule of heat leaves as work.
  • Adiabatic (steep curve): walls insulated, . Now work and internal energy trade directly — compress it and it heats up, with nowhere for the heat to escape.

Step 7 — The degenerate case: free expansion into vacuum

Picture a box split by a wall: gas on the left, vacuum on the right (the figure). Puncture the wall. The gas rushes to fill the whole box — volume doubles.

  • No piston, no push: the gas expands into empty space, so there is no external pressure to push against. Work done , even though volume changed. (In , the relevant opposing pressure is zero.)
  • Insulated walls: no heat crosses, .

Feed both into the law:

So is unchanged — and for an ideal gas that means temperature does not change at all, even though the gas expanded! This is the counter-intuitive gem that proves tracks state, not the drama of the volume changing.


The one-picture summary

Everything on one canvas: heat pours in (yellow), work leaves out the piston (red), and whatever is left raises the internal energy (blue). The ledger balances exactly:

Recall Feynman retelling — the whole walkthrough in plain words

A box of gas has three doors: heat in, work out, and energy stored inside. Nothing can appear from nowhere (Step 1–2), so what comes in = what stays + what goes out — that's the whole law, just a tank of water with a tap and a spout (Step 3). The "work out" is the gas shoving the piston: force is pressure times area, distance is how far it slides, and multiplying gives — the volume it sweeps (Step 4). Whether that work is plus or minus is just whether the volume grew or shrank (Step 5). To feel the law, kill one term: bolt the piston (no work), or insulate the walls (no heat), or hold the temperature so the stored energy can't change (Step 6). And the trick that proves it all: let the gas burst into vacuum — volume doubles but it pushes nothing and loses no heat, so it doesn't even change temperature (Step 7). What you eat equals what you store plus what you spend.


Connections