2.4.5 · D2Thermodynamics & Statistical Mechanics (Advanced)

Visual walkthrough — Chemical potential μ = (∂G - ∂N)_{T,P}

2,619 words12 min readBack to topic

Step 0 — The three things we are even allowed to change

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

In the figure the box has three controls: a thermometer (you set ; heat flow then moves entropy ), a piston (controls volume ), and a hatch (controls particle number ). Note the honest wiring: you turn directly, and responds — you cannot grab entropy with your hands. Everything on this page is about what happens when we nudge the hatch — the dial that the old first law ignored.


Step 1 — Energy stored in the box, and its "response slopes"

WHAT. We say depends on the three state variables: .

WHY. Because those are the only things that can change, can only change if one of them changes. So is a surface sitting over the three variables.

PICTURE. Look at the figure: is drawn as a curved sheet. If you walk along it, its steepness in each direction is a slope. Each slope gets a name:

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

Term by term, right where each sits:

  • — a tiny change in the box's total energy.
  • — the reversible heat that flows in when entropy changes by ; the energy responds with slope (the temperature). That slope IS what temperature means.
  • — nudge the volume by ; energy responds with slope . The minus sign says: let the box expand () and it loses energy by pushing on the world.
  • — nudge the hatch by particles; energy responds with slope .

Why this is the honest definition: we did not assume anything extra: we just noticed has a slope in the direction and gave it a symbol. Everything else is bookkeeping.


Step 2 — Why is the wrong potential for a lab

WHAT. We want a new energy bookkeeper whose natural variables are .

WHY. So that "freeze and , wiggle " is a thing you can actually do at the bench.

PICTURE. In the figure we trade the "hard" variables for the "easy" variables . This trade has a name and a recipe.

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

Step 3 — Building Gibbs free energy

WHAT. We defined a new energy as with two correction terms.

WHY. Each correction cancels a "hard" variable and hands us an "easy" one. This is the standard Legendre swap — trade a variable for its slope. See Euler Relation and Gibbs-Duhem for the deeper machinery.

PICTURE. In the figure the tall bar has a chunk shaved off the top and a chunk stacked on; the leftover height is .

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

Step 4 — Differentiate (just the product rule)

WHAT. Take a tiny change of .

WHY. We want to see which variables naturally responds to. To find its slopes we differentiate.

Using the product rule on (it becomes ) and on (it becomes ):

PICTURE. The figure shows the five little rectangles the product rule creates — two from each product term, plus the block waiting to be replaced.

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

Nothing physical happened yet — this is pure calculus. The magic is the next substitution.


Step 5 — Substitute the first law: the cancellation

WHAT. Replace using Step 1, .

WHY. Because is the only term still carrying the hard variables . Once we plug it in, watch what dies.

The from the first law cancels the from the product rule ( with ). The cancels ( with ). This cancellation is the whole point — it is why was built with exactly those two correction terms.

PICTURE. In the figure, matching amber blocks annihilate in pairs; only three survive.

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

What survives:


Step 6 — Read off μ by freezing two dials

WHAT. Hold fixed () and fixed ().

WHY. That is what the water bath and open atmosphere do for you automatically. Freezing those two variables kills the first two terms of the master differential.

Divide by :

PICTURE. The figure shows the surface over the axis with the floor held level; the tangent line's steepness is .

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}
Recall

Why does the subscript matter? ::: Because a different slope of the same surface (e.g. holding ) is a different physical quantity; only the -frozen slope of equals .


Step 7 — Edge case: the pure-substance shortcut μ = G/N

WHAT. For a single pure substance, scaling the amount of stuff by any factor (e.g. means "twice as much", means "half as much") scales by the same , at fixed . Here is just a dimensionless scale factor, a plain positive number you multiply the amount by. In symbols:

WHY it collapses to a per-particle number. If is strictly proportional to at fixed , then the slope equals the average — a straight line through the origin has slope = height ÷ base. Euler's theorem (Euler Relation and Gibbs-Duhem) states this cleanly:

PICTURE. In the figure, vs is a straight ray from the origin. The slope and the ratio are the same dashed line — that equality is only true for the straight ray of a pure substance. For a mixture the curve bends and you must use partial molar quantities .

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

Step 8 — Degenerate limits: does μ still make sense?

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

The figure shows all three: the diverging as (left), a sealed hatch (middle), and a level "μ-landscape" between two connected boxes at equilibrium (right, flat = no flow).


The one-picture summary

Figure — Chemical potential μ = (∂G - ∂N)_{T,P}

This single figure compresses the whole page: start at (top), swap hard variables for easy ones by adding to get (middle), cancel the matching terms, and read off the surviving -slope as (bottom). The dashed amber arrow traces particle flow always downhill in .

define G = U - TS + PV

substitute dU

hold T and P fixed

pure substance, extensive

dU = T dS - P dV + chem-pot dN

differentiate G

T dS and P dV cancel

dG = -S dT + V dP + chem-pot dN

chem-pot = dG over dN at fixed T P

chem-pot = G over N

(In the diagram, "chem-pot" is the plain-text stand-in for the Greek letter used everywhere else on this page — Mermaid labels must stay plain text.)

Recall Feynman: the walkthrough in plain words

We started with a box that has three controls — a temperature knob, a piston, and a hatch for adding particles. Turning the temperature knob makes heat flow, and that heat quietly moves a bookkeeping quantity called entropy (roughly, the logarithm of how many ways the particles can be arranged). The old energy rulebook only tracked heat and squeeze, so we gave the hatch its own slope and named it : the energy that rides in with one new particle. But that slope was written in quantities nobody can hold fixed in a lab (entropy, volume). So we built a new energy scorecard, , by shaving off the heat-energy and adding the push-energy — a bookkeeping trick that magically swaps the awkward variables for the easy ones, temperature and pressure. When we recomputed the slopes of , the heat and squeeze terms cancelled perfectly (that cancellation is the whole reason we chose ), leaving three clean terms. Freeze temperature and pressure — like sitting in a lab — and only the particle term survives: is the slope of as you add particles. For one pure ingredient, that slope is just divided by , because doubling the stuff doubles in a straight line. And when two connected boxes reach the same , the slopes match, nothing flows — that's equilibrium.