2.4.2 · D2Thermodynamics & Statistical Mechanics (Advanced)

Visual walkthrough — Legendre transforms connecting them

2,086 words9 min readBack to topic

Step 1 — A curve is just a hill of points

WHAT. Draw a bowl-shaped curve. Call the horizontal axis and the height .

WHY. In thermodynamics will be entropy and the height will be energy . But for now forget physics — just a curve. Everything hinges on one fact: a curve can be described two totally different ways, and both hold the same information.

PICTURE. Look at the figure. The curve is drawn as a string of dots . That is description #1: "tell me your height at every horizontal position."

Figure — Legendre transforms connecting them

Step 2 — The slope: a second name for each point

WHAT. At one point on the curve, draw the tangent line — the straight line that just kisses the curve. Its steepness is the slope, which we name .

WHY. Sliding along a bowl, the slope changes smoothly: gentle on the left, steeper on the right. Because it never repeats on a one-way-bending curve, the slope alone can act as an address. Instead of "the point at ," we can say "the point where the slope is ." This swap — position for slope — is the entire idea.

PICTURE. The red tangent line touches the curve; its rise-over-run triangle is drawn beside it. The green arrow shows that as we walk right, the slope grows. Each slope value points to exactly one spot.

Figure — Legendre transforms connecting them

Step 3 — Where does that tangent line hit the wall?

WHAT. Extend the tangent line back to the vertical axis (). It crosses at some height. Call that crossing the intercept .

WHY. A straight line is completely fixed by two numbers: its slope and its intercept. We already have the slope . If we also record where the line hits the axis, we have captured the whole tangent line — and a bowl is nothing but the family of all its tangent lines.

PICTURE. The tangent line is continued (dashed) leftward until it strikes the vertical axis. The little dot on that axis is . Notice: for a bowl the line dips below the curve's own starting height, so often sits lower than — that gap is exactly .

Figure — Legendre transforms connecting them

Let us read the intercept off the geometry. The tangent line through the point with slope is Set to reach the axis:


Step 4 — Check nothing was lost: the mirror slope

WHAT. Ask: if I only kept the intercepts , could I rebuild the original curve? Differentiate .

WHY. Re-packaging is only useful if it's reversible. We want proof that the tangent-line description hides none of the curve.

PICTURE. The figure shows the curve (lavender) beside its transform (coral). An arrow marks that where has slope , the new curve has slope at the location . The two are perfect mirror-partners.

Figure — Legendre transforms connecting them

Differentiate carefully, treating as depending on :


Step 5 — The degenerate case: a straight line has no transform

WHAT. Test the machine on a curve that does not bend: a straight line .

WHY. The contract says cover every case. A straight line has the same slope everywhere — so "address a point by its slope" fails: infinitely many points share slope , and no other slope value exists at all. The inversion breaks.

PICTURE. A perfectly straight line with every tangent identical to itself; the "slope axis" collapses to a single point . The transform is defined only there, and there it gives a single number — the whole line's intercept .

Figure — Legendre transforms connecting them

Step 6 — Apply it to energy: born of

WHAT. Take the real curve: internal energy plotted against entropy (holding fixed). Its slope is temperature, . Legendre-transform on the -slot.

WHY. is not a lab knob; is. We want a potential whose independent variable is . This is exactly Step 3, with , , .

PICTURE. The -vs- bowl with a tangent of slope . Its intercept on the energy axis is the new potential . The vertical drop from down to that intercept is the term .

Figure — Legendre transforms connecting them

Copy the intercept formula with the thermodynamic names: Differentiate using (the first law, see Internal Energy and the First Law): The cancelled; the driver is now .


Step 7 — The sign trap: transforming on volume

WHAT. Now transform on the -slot to swap for pressure. But the slope of in is — it carries a minus sign (from ).

WHY. The recipe subtracts (slope)(variable). If we blindly subtract we get the wrong potential. We must read the slope's sign off the differential first.

PICTURE. The -vs- curve slopes downward, so its tangent slope is negative, . Subtracting a negative = adding. The figure highlights the double-minus turning into a plus.

Figure — Legendre transforms connecting them

Transform on both slots at once → the lab's favourite, , natural in — the potential behind Chemical Potential and Phase Equilibrium.


The one-picture summary

WHAT. One diagram stacks the whole story: a convex curve, a tangent, its slope , its intercept , and the four-potential "square" that results when become .

Figure — Legendre transforms connecting them

The map from geometry to physics, in one line:

slope p equals f prime

intercept g equals f minus p x

x equals S and f equals U

exact differentials

convex curve f of x

tangent line

transform g of p

potentials U H F G

Maxwell relations

The last arrow leads straight to Maxwell Relations; the same tangent-line trick reappears in mechanics as Lagrangian → Hamiltonian, and the intercepts show up statistically in Partition Functions.

Recall Feynman retelling (plain words, no symbols)

Imagine a smooth valley drawn on paper. You can describe that valley by listing its height at every step across the ground. Or — here's the trick — you can describe it by listing, for every possible steepness of hillside, the exact tilted line that grazes the valley there, and where that line would hit the far wall.

Those two descriptions hold the identical valley. The second one — "for each steepness, here's the grazing line's wall-height" — is the Legendre transform. Its magic is reversibility: the steepness of the new description hands you back your original horizontal position, so you never lose the valley.

Now rename things: the ground is entropy, the height is energy, the steepness of the energy valley is temperature. A thermostat sets the steepness (temperature), never the entropy directly. So we re-describe energy by steepness — and out pops the free energy . Read its steepness in the temperature direction, you recover the entropy; read it in the volume direction, you recover the pressure. Same information, re-packaged so the lab's knobs are the handles. Do it on volume instead (watching the minus sign hidden in ) and you get enthalpy; do both and you get Gibbs energy. Every step is the same one picture: a tangent line, its slope, its intercept.

Recall Quick self-test

The transform re-addresses points of a curve by their ::: slope instead of position . The transform value is geometrically the ::: intercept of the tangent line (its height at ). The proof no info is lost is ::: , so transforming twice returns the original. Why not ? ::: the slope , and subtracting adds . A straight-line has no full transform because ::: its slope is constant, so slopes can't address distinct points.