Visual walkthrough — Thermodynamic potentials — U (internal), H (enthalpy), F (Helmholtz), G (Gibbs)
Step 1 — What is energy bookkeeping? (the piggy bank)
WHAT. A gas trapped in a container holds a certain amount of internal energy. Call it — just a number of joules, like the money inside a piggy bank. Two things can change that number: we can heat the gas (pour energy in through the walls) or the gas can push its container wall outward and do work (spend energy).
WHY start here. Every potential we build is rewritten. If you cannot picture changing, nothing later makes sense.
PICTURE. Look at the figure: the orange arrow into the box is heat added; the teal arrow out is work done by the gas pushing its piston. The bank level rises with heat, falls with work.

Step 2 — Naming the "slivers": what is and what is ?
WHAT. We now put faces on and .
The work sliver is easy to see: if the piston of area moves out by a tiny distance, the gas pushes with pressure over that area, and the enclosed volume grows by . Force distance . So
- = pressure (how hard the gas pushes, per unit area).
- = the tiny increase in volume as the piston slides out.
The heat sliver needs a new character. When we heat the gas reversibly (slowly, so it is never jolted), the heat added is
- = absolute temperature (how hot).
- = entropy — a measure of the gas's internal "spread-outness" or disorder (see Entropy and the Second Law). is a tiny change in that disorder.
WHY these two products? Notice the pattern: each energy sliver is an intensive quantity (something you can measure with one probe: , ) times a change in an extensive quantity (something that scales with system size: , ). This "intensive × d(extensive)" shape is the heart of everything below.
WHY entropy at all? Because "amount of heat" is not a property of the gas — but is an exact bookkeeping entry. Entropy is the accountant nature invented so that heat can be tracked cleanly.
PICTURE. The figure shows the piston push (teal, giving ) and a thermometer + a scatter of dots getting more spread out (orange, giving ).

Step 3 — Why this holds on any path (state function)
WHAT. We derived assuming a slow, reversible process. Now we claim it holds always, even for a violent, irreversible change.
WHY it's allowed. , , and are all state functions: their values depend only on where the gas is (its current , , etc.), not on how it got there. Picture two points on a map — the difference in altitude between them is fixed no matter which trail you hike. Since , , are differences of state functions, the relation between them is a fixed feature of the landscape, path-independent. We are allowed to compute it along the easy (reversible) trail and trust it everywhere.
PICTURE. Two paths between the same start and end dots on a map: a wiggly irreversible path (plum, dashed) and a smooth reversible one (teal). The net change in altitude is identical.

Step 4 — The problem: we can't hold and fixed in the lab
WHAT. is beautiful but impractical. In a real lab you rarely clamp entropy or volume. You clamp temperature (a thermostat / water bath) and pressure (leave the beaker open to the atmosphere).
WHY this matters. We want an energy function whose natural variables are the knobs we actually turn. So we must trade a variable we can't control ( or ) for one we can ( or ).
PICTURE. A lab bench: a sealed rigid box (controls ), a thermostat bath (controls ), an open beaker under the sky (controls ). We circle the knobs a human can grab.

Step 5 — The Legendre move: subtract off a rectangle
WHAT. To swap (which we can't fix) for (which we can), we add to . To swap for , we subtract . Why "add here, subtract there"? The geometry decides, not us.
WHY it works — the rectangle picture. Suppose is a curve rising with (at fixed ). Its slope is . We want a new function whose independent variable is the slope, not . The trick: at each point, subtract the tangent-line's rectangle so that what's left changes with the slope instead of with . Concretely, the differential of the product is
- The piece is exactly the annoying term in we want to cancel.
- The piece is the new term, carrying the slope as the variable.
PICTURE. The curve vs , the tangent at a point, and the shaded rectangle of area . Sliding along the slope instead of along is the whole idea of the transform.

Step 6 — Enthalpy : swap
WHAT. Build the potential natural in by adding :
WHY add . The in is the term stopping from becoming the slope . Adding injects ; the cancels the , leaving the fresh .
The differential, term by term:
So , and , .
PICTURE. A ledger-arrow diagram: start at , the and tokens annihilate (crossed out), appears. The natural-variable label flips from to .

Step 7 — Helmholtz and Gibbs : swap (and both)
WHAT. Build the potential natural in by subtracting : and the one natural in by doing both swaps:
WHY subtract . The term blocks from becoming the slope . Subtracting injects ; the cancels the , leaving the new .
The two differentials, term by term:
So and .
PICTURE. A 2×2 map of the four potentials placed on axes "variable I chose for the first slot" (S or T) vs "second slot" (V or p). Arrows labelled and move you between the corners.

Step 8 — Degenerate & edge cases (never leave a gap)
WHAT. Check the corners where a term dies.
- Isochoric (, rigid box): , and . Heat now bumps directly; no work escapes.
- Isobaric (, open): (Step 6). becomes the heat tracker.
- Isothermal (, bath): (all energy change is work) and (used in worked example (b): , see Chemical potential and the grand potential).
- Adiabatic-reversible (, insulated & slow): and . Energy changes are pure work.
- Zero-entropy limit (): the correction vanishes, so and — the "messiness tax" disappears near absolute zero (Third Law flavour).
WHY show all of them. Each real experiment clamps one variable; the reader must recognise which potential goes flat and which term survives, in every case.
PICTURE. A grid: rows = the four constraints, columns = which term of each survives vs dies. Dead terms greyed, live terms glowing.

The one-picture summary
WHAT. One diagram compresses the whole derivation: start at , apply (right) and (down), read the differential in each corner. This is the Legendre transforms square, and its exact-differential corners generate every Maxwell relation and the $C_p - C_V$ result.

Recall Feynman retelling (plain words, cover and recall)
Start with a piggy bank of energy . Two things move the level: heating it (that's , temperature times a change in messiness) and letting it push its wall out (that's , pressure times growth in size). That single sentence is . But in a real lab I don't get to dial "messiness" or "size" — I dial a thermostat (temperature) and I leave things open to the air (pressure). So I re-package the same energy so its handles are the ones I actually own. To swap "size" for "pressure," I bolt on ; the swap cancels the size-term and hands me a pressure-term — that's enthalpy . To swap "messiness" for "temperature," I peel off (the tax I can't spend); that's Helmholtz . Do both and I get Gibbs , whose handles and are exactly a chemist's knobs. Every "add " or "subtract " is forced by the plus/minus sign already sitting in the first sentence — I never guess. And in special cases (rigid box, open beaker, insulated, near absolute zero), one term simply switches off, telling me which bank balance to watch.