Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Chemical potential

The puzzle: what do particles flow down?

Heat flows from hot to cold, and stops when the temperatures are equal. A piston moves from high pressure to low, and stops when the pressures are equal. Particles, you might say, flow from where they are crowded to where they are sparse, and stop when the densities are equal. Ink spreads through water that way; so does the smell of coffee through a room.

Now connect two boxes of gas, and make one change: the floor of box B sits higher in energy than the floor of box A — by gravity, by an electric offset, or because the walls of A attract the molecules. Nothing else is different.

Two boxes of 105 sites each exchange 2000 particles at temperature TT; the floor of box B (right) is raised by 2 kBT2\,\kB T. All particles start in B. Each dot stands for 10 particles. The two gauges show each box’s chemical potential μ\mu in units of kBT\kB T, computed from its current count. The particles do not spread out evenly: they pile into A until its density is about seven times B’s — and stay there. The gauge for A starts at the bottom of its scale: an empty box’s chemical potential is −∞-\infty, because the first particle to enter it brings a great deal of entropy. The two gauges end level.

The densities end up unequal, by a factor of seven, and stay that way for as long as the simulation runs. Particles are still hopping both ways; the traffic simply balances. Something has become equal between the two boxes, and it is not the density.

The answer is the chemical potential, the third slope of module 09’s entropy surface, which has so far appeared only as a symbol. This module makes it concrete: it computes it, measures it in a simulation, and uses it to explain the atmosphere, adsorption on a surface, a chemical reaction and osmosis.

Predict before you calculate

Commit to an answer for each of these before reading on. Write them down.

  1. Two boxes like the ones above exchange particles, but this time they start with equal densities. Do particles flow at all? If so, which way?

  2. Raise B’s floor further, from 2 kBT2\,\kB T to 4 kBT4\,\kB T. By roughly what factor does the final density ratio change? Try to guess a functional form.

  3. Two boxes hold particles with the same energy per particle — no floors, no forces — but one box is ten times larger than the other, and they start with equal numbers of particles. Do particles flow when the boxes are connected?

  4. A bag of sugar solution, whose wall lets water through but not sugar, sits in pure water. Which way does the water move, and what happens to the bag?

Explore the model

The laboratory runs the simulation above and lets you change everything in it: the floor offset, the temperature, the number of particles and the sizes of the two boxes. For each run it plots the count in each box against time and, beside it, the two chemical potentials. It then stacks twelve boxes into a column to make an atmosphere, and shrinks one box to a few hundred binding sites to make an adsorbing surface.

The run of the first animation, as numbers, against the number of proposed hops in units of the relaxation time τ\tau (3500 proposals here). Top: the number of particles in box A (blue), with the average of eight runs (grey dashed) and the exact equilibrium value (horizontal line). Bottom: the difference μA−μB\mu_A - \mu_B in units of kBT\kB T. It starts at the bottom of the scale — box A is empty, and an empty box’s μ\mu is −∞-\infty — climbs to zero as the count settles, and then jitters about zero by a few hundredths of kBT\kB T — the size of the random traffic between the boxes.

Run the laboratory now, then come back. Four things are worth doing before you read on:

Derive the result

System and boundary. Two subsystems that can exchange energy and particles with each other through a fixed, permeable wall, the pair isolated from everything else. Later, one of the two becomes very large and plays the role of a reservoir.

Independent variables. Each subsystem’s energy, volume and particle number, UU, VV, NN — module 09’s variables for the fundamental relation S(U,V,N)S(U, V, N).

Sign convention. The course convention holds,

dU=δQ+δWon,\mathrm{d}U = \dbar Q + \dbar \Won ,

for a closed system. A system that particles can enter gains a third term, μ dN\mu\,\mathrm{d}N, the energy that arrives with the particles; quasistatically δQ=T dS\dbar Q = T\,\mathrm{d}S and δWon=−P dV\dbar \Won = -P\,\mathrm{d}V, which is module 09’s dU=T dS−P dV+μ dN\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V + \mu\,\mathrm{d}N.

Route. Six steps. The chemical potential is recalled from module 09 as a slope of SS; the maximum-entropy argument gives the equilibrium condition and the direction of flow; module 10’s potentials give its practical form; the ideal gas gives its value, and with it the barometric formula a second time. Finally module 11’s bath argument is repeated for a bath that exchanges particles, and the resulting weight is spent on an adsorbing surface, a reaction and a membrane.

Steps 1 to 5 are thermodynamic arguments: they use nothing but the entropy function and its slopes. Step 6 is statistical: it counts a reservoir’s microstates. After the sign convention above no heat or work appears, so every differential below is exact — an ordinary d\mathrm{d} of a state function.

Step 1: the chemical potential, as a slope

Module 09 read three quantities off the entropy surface. The first two became the temperature and the pressure; the third was named and set aside.

The minus sign and the factor TT are there to make μ\mu look like an energy. Read the definition as a statement about entropy: −μ/T-\mu/T is how much entropy one more particle brings, if it brings no energy and takes up no room. For most systems adding a particle adds microstates, ∂S/∂N>0\partial S/\partial N > 0, and μ\mu is negative.

That already rules out the naive reading. μ\mu is not the energy of a particle, or the energy per particle: it is a derivative of the entropy, and a particle that brings no energy at all can still change the entropy a great deal.

Step 2: equal chemical potentials, and which way particles flow

Let subsystems 1 and 2 share a total energy UU and a total particle number NN. By the maximum postulate of module 09 the pair settles where

Stot=S1(U1,V1,N1)+S2(U−U1,V2,N−N1)S_{\mathrm{tot}} = S_1(U_1, V_1, N_1) + S_2(U - U_1, V_2, N - N_1)

is largest. At the maximum both partial derivatives vanish. The energy derivative gives 1/T1=1/T21/T_1 = 1/T_2, which is module 09’s result. The particle derivative gives

∂Stot∂N1=(∂S1∂N1)U1,V1−(∂S2∂N2)U2,V2=−μ1T1+μ2T2=0.\frac{\partial S_{\mathrm{tot}}}{\partial N_1} = \left(\frac{\partial S_1}{\partial N_1}\right)_{U_1,V_1} - \left(\frac{\partial S_2}{\partial N_2}\right)_{U_2,V_2} = -\frac{\mu_1}{T_1} + \frac{\mu_2}{T_2} = 0 .

Away from equilibrium, the same derivative gives the direction. Let dN1\mathrm{d}N_1 particles move into subsystem 1 at a common temperature TT:

dStot=μ2−μ1T dN1.\mathrm{d}S_{\mathrm{tot}} = \frac{\mu_2 - \mu_1}{T}\,\mathrm{d}N_1 .

The second law demands dStot>0\mathrm{d}S_{\mathrm{tot}} > 0, so dN1>0\mathrm{d}N_1 > 0 exactly when μ2>μ1\mu_2 > \mu_1. Particles flow from high chemical potential to low, just as energy flows from high temperature to low. This is module 09’s argument, bullet for bullet, with NN in place of UU.

Nothing in the argument mentions the density. Density matters only through μ\mu, and μ\mu depends on other things too: the energy a particle has in each box, and how many ways there are to place it. That is the answer to the puzzle, and step 4 makes it quantitative.

Step 3: the practical face — mu from the Gibbs free energy

The definition of step 1 holds UU and VV fixed while adding a particle, which no experiment does. Module 10 built the potential whose natural variables are the ones a laboratory controls: the Gibbs free energy G=U−TS+PVG = U - TS + PV, with

dG=−S dT+V dP+μ dN.\mathrm{d}G = -S\,\mathrm{d}T + V\,\mathrm{d}P + \mu\,\mathrm{d}N .

Read off the coefficient of dN\mathrm{d}N:

μ=(∂G∂N)T,P.\mu = \left(\frac{\partial G}{\partial N}\right)_{T,P} .

This is the same μ\mu as step 1’s, not a new quantity with the same name: module 10 obtained dG\mathrm{d}G from dU=T dS−P dV+μ dN\mathrm{d}U = T\,\mathrm{d}S - P\,\mathrm{d}V + \mu\,\mathrm{d}N, whose dN\mathrm{d}N coefficient is, rearranged as dS=dU/T+(P/T) dV−(μ/T) dN\mathrm{d}S = \mathrm{d}U/T + (P/T)\,\mathrm{d}V - (\mu/T)\,\mathrm{d}N, exactly step 1’s slope. A Legendre transform changes which variables are held fixed; it does not change the coefficient of a variable it leaves alone. The laboratory checks the equality numerically.

Now use extensivity. Module 09 derived the Euler relation U=TS−PV+μNU = TS - PV + \mu N from it alone. Substituting into GG:

The chemical potential of a pure substance is its Gibbs free energy per particle, and it depends on TT and PP alone — not on how much substance there is. The Helmholtz free energy does not share this property: F=U−TS=μN−PVF = U - TS = \mu N - PV. The difference is that GG’s other natural variables, TT and PP, are both intensive, so NN is its only extensive variable; FF’s natural variables include the volume, which is extensive too.

Step 4: the ideal gas, and a floor

Module 09 stated the Sackur–Tetrode entropy of a monatomic ideal gas, and module 12 derived it from the partition function:

S=NkB[ln⁡(VN(4πmU3Nh2)3/2)+52].S = N\kB\left[\ln\left(\frac{V}{N}\left(\frac{4\pi m U}{3 N h^2}\right)^{3/2}\right) + \frac52\right] .

Differentiate at fixed UU and VV. The 52\tfrac52 is cancelled exactly by the derivatives of the two factors of 1/N1/N inside the logarithm, and substituting U=32NkBTU = \tfrac32 N\kB T afterwards,

μ=−T(∂S∂N)U,V=kBTln⁡(NV(h22πmkBT)3/2).\mu = -T\left(\frac{\partial S}{\partial N}\right)_{U,V} = \kB T \ln\left(\frac{N}{V}\left(\frac{h^2}{2\pi m \kB T}\right)^{3/2}\right) .

The combination in the second bracket defines a density.

With n=N/Vn = N/V, the chemical potential of a classical ideal gas is

μ=kBTln⁡nnQ.\mu = \kB T \ln\frac{n}{n_Q} .

For argon at 300 K300\ \mathrm{K} and 1 bar1\ \mathrm{bar}, n/nQ=9.8×10−8n/n_Q = 9.8 \times 10^{-8} and μ=−16.1 kBT=−0.42 eV\mu = -16.1\,\kB T = -0.42\ \mathrm{eV}. A gas is classical precisely when n≪nQn \ll n_Q, so the chemical potential of a classical gas is always negative, and it rises toward zero as the gas is compressed toward the quantum concentration. That is the entropic term: the sparser the gas, the more room each new particle has, and the more entropy it brings.

A floor. Now put the gas where each particle has an extra energy uextu_{\mathrm{ext}} — a height zz in gravity, uext=mgzu_{\mathrm{ext}} = m g z; a potential step; a binding site. The total energy is U=Ukin+NuextU = U_{\mathrm{kin}} + N u_{\mathrm{ext}}, and the entropy depends only on the kinetic part: S(U,V,N)=SST(U−Nuext,V,N)S(U, V, N) = S_{\mathrm{ST}}(U - N u_{\mathrm{ext}}, V, N). Differentiating at fixed UU picks up one extra term, −uext ∂SST/∂U=−uext/T-u_{\mathrm{ext}}\,\partial S_{\mathrm{ST}}/\partial U = -u_{\mathrm{ext}}/T, so

μ=kBTln⁡nnQ+uext.\mu = \kB T \ln\frac{n}{n_Q} + u_{\mathrm{ext}} .

The chemical potential has two parts: an energy a particle carries, and an entropic part set by the density. Particles flow down the sum.

Apply it to the puzzle. Two boxes at one temperature, floors uAu_A and uBu_B, reach equilibrium when kBTln⁡(nA/nQ)+uA=kBTln⁡(nB/nQ)+uB\kB T\ln(n_A/n_Q) + u_A = \kB T\ln(n_B/n_Q) + u_B:

nAnB=e−(uA−uB)/(kBT).\frac{n_A}{n_B} = e^{-(u_A - u_B)/(\kB T)} .

With B’s floor 2 kBT2\,\kB T higher, nA/nB=e2=7.4n_A/n_B = e^2 = 7.4. The box with the lower floor ends up denser, and the densities stay unequal for good — because the chemical potentials, not the densities, are what equalize. The same formula holds for the laboratory’s lattice-gas boxes, with the site density in place of nQn_Q, as long as the boxes are far from full.

Step 5: the barometric formula, a second time

Module 11 derived the density of the atmosphere from the Boltzmann factor: one molecule at height zz, with the rest of the air as its bath, is found there with probability proportional to e−mgz/(kBT)e^{-m g z/(\kB T)}. Now derive it again, with no molecule singled out and no probability.

Slice an isothermal column of air into thin horizontal layers. Neighbouring layers exchange molecules, so in equilibrium every layer has the same chemical potential. With step 4’s uext=mgzu_{\mathrm{ext}} = m g z,

kBTln⁡n(z)nQ+mgz=const,\kB T \ln\frac{n(z)}{n_Q} + m g z = \text{const} ,

and therefore

n(z)=n(0) e−mgz/(kBT).n(z) = n(0)\, e^{-m g z/(\kB T)} .

The two routes rest on different hypotheses. Module 11’s needs the rest of the atmosphere to act as a bath for one molecule at a time. This one needs each layer to be an ideal gas in equilibrium with its neighbours. Both need a single temperature. Their agreement is the first hint of what step 6 shows in general: the chemical potential is the Boltzmann factor’s bookkeeping, done for particles instead of energy.

Step 6: a bath that exchanges particles

Module 11 derived the Boltzmann factor by placing a small system in contact with a large bath and counting the bath’s microstates. Repeat the argument, but let the bath — now a particle reservoir as well as a heat bath — exchange particles with the system too.

The system is in microstate ss, with energy EsE_s and NsN_s particles. The reservoir holds the rest, U0−EsU_0 - E_s and N0−NsN_0 - N_s, and the probability of ss is proportional to the number of reservoir microstates, eSR(U0−Es, N0−Ns)/kBe^{S_R(U_0 - E_s,\, N_0 - N_s)/\kB}. The reservoir is large, so expand its entropy to first order in both small quantities, using its slopes ∂SR/∂U=1/T\partial S_R/\partial U = 1/T and ∂SR/∂N=−μ/T\partial S_R/\partial N = -\mu/T:

SR(U0−Es,N0−Ns)≈SR(U0,N0)−EsT+μNsT.S_R(U_0 - E_s, N_0 - N_s) \approx S_R(U_0, N_0) - \frac{E_s}{T} + \frac{\mu N_s}{T} .

This is the grand canonical ensemble. It is the canonical weight with one more term: each particle a state holds counts in its favour by eμ/(kBT)e^{\mu/(\kB T)}. The normalizing sum over every state and every particle number is the grand partition function, and its machinery is module 17’s. Here one site is enough.

One adsorption site. A site on a surface can be empty — energy 0, no particle — or hold one molecule with binding energy ε\varepsilon (negative for a site that attracts). The gas above is the reservoir. The two weights are 1 and e−(ε−μ)/(kBT)e^{-(\varepsilon - \mu)/(\kB T)}, and the mean occupation is

⟨n⟩=1e(ε−μ)/(kBT)+1.\langle n \rangle = \frac{1}{e^{(\varepsilon - \mu)/(\kB T)} + 1} .

When μ\mu is far below ε\varepsilon the site is almost always empty; when μ\mu is far above it the site is almost always full; at μ=ε\mu = \varepsilon it is filled half the time. The gas sets μ\mu through step 4, eμ/(kBT)=n/nQ=P/(nQkBT)e^{\mu/(\kB T)} = n/n_Q = P/(n_Q \kB T), and substituting gives the fraction of the surface covered at pressure PP:

θ=PP+P0,P0=nQkBT eε/(kBT).\theta = \frac{P}{P + P_0} , \qquad P_0 = n_Q \kB T\, e^{\varepsilon/(\kB T)} .

This is the Langmuir isotherm: linear in PP at low pressure, saturating at full coverage, and half covered at P=P0P = P_0. A more strongly binding site, with more negative ε\varepsilon, has a smaller P0P_0 and fills at lower pressure.

The function 1/(ex+1)1/(e^{x} + 1) will reappear in module 17 as the Fermi–Dirac function, the mean occupation of a quantum state by electrons. Nothing about the formula will change but its name: an electron state, too, is a site that holds at most one particle.

A reaction. A molecule that can exist in two forms, A and B, with ground energies εA\varepsilon_A and εB\varepsilon_B, is a particle that can hop between two “boxes”. Converting one molecule from A to B moves one particle from box A to box B, so equilibrium is μA=μB\mu_A = \mu_B. With step 4’s ideal-gas form for each, kBTln⁡(nA/nQ,A)+εA=kBTln⁡(nB/nQ,B)+εB\kB T\ln(n_A/n_{Q,A}) + \varepsilon_A = \kB T\ln(n_B/n_{Q,B}) + \varepsilon_B, and

nBnA=nQ,BnQ,A e−(εB−εA)/(kBT).\frac{n_B}{n_A} = \frac{n_{Q,B}}{n_{Q,A}}\, e^{-(\varepsilon_B - \varepsilon_A)/(\kB T)} .

This is the law of mass action for the simplest reaction there is. Module 12 reached the same ratio for two isomers from their partition functions. For a reaction that changes the number of molecules, say A+B⇌CA + B \rightleftharpoons C, the condition becomes μA+μB=μC\mu_A + \mu_B = \mu_C, and the ratio nC/(nAnB)n_C/(n_A n_B) is fixed by the temperature alone: the equilibrium constant.

A membrane. A semipermeable membrane lets the solvent (water) through but not the solute (sugar). Only the solvent can move, so only the solvent’s chemical potential has to be equal on the two sides. Adding solute lowers it.

The pure solvent side has the higher chemical potential, so water flows into the solution. It stops when the solution side is at a higher pressure, P+ΠP + \Pi, which raises the solvent’s chemical potential by v Πv\,\Pi, with vv the volume per solvent molecule ((∂μ/∂P)T=v(\partial\mu/\partial P)_T = v from step 3’s dG\mathrm{d}G). Equal solvent chemical potentials then require

Π v=−kBTln⁡(1−x).\Pi\, v = -\kB T \ln(1 - x) .

The formula is the ideal-gas law with the solute in the role of the gas, and that resemblance has misled many people into picturing solute molecules pushing on the membrane. They do not: the solute never crosses it. The pressure is the price of stopping the solvent from flowing down its own chemical-potential difference.

Verify computationally

Every number below comes from thermolab.chemical. The temperature is 300 K300\ \mathrm{K} unless stated, and every energy is quoted in units of kBT\kB T.

1. Three routes to one mu. For argon at 1 bar1\ \mathrm{bar}, the laboratory computes the chemical potential three ways: as −T ∂S/∂N-T\,\partial S/\partial N by a central difference on the Sackur–Tetrode S(U,V,N)S(U, V, N), with TT itself read off the same surface; as ∂G/∂N\partial G/\partial N by a central difference on module 10’s numerically built G(T,P,N)G(T, P, N); and from the closed form kBTln⁡(n/nQ)\kB T\ln(n/n_Q). All three give μ=−16.139 kBT\mu = -16.139\,\kB T; they agree to 3×10−93 \times 10^{-9} and 8×10−138 \times 10^{-13}, and G/NG/N matches μ\mu to 4×10−164 \times 10^{-16}. Refining the step of the entropic difference by factors of two quarters its error each time: the stencil is second order.

2. The puzzle, simulated. Two boxes of 105 sites, 2000 particles, B’s floor raised by 2 kBT2\,\kB T, every particle starting in B. The time constant of the approach is 3500 proposed hops, and each run is twenty time constants long.

The dilute formula is off by 0.2%0.2\% because the boxes are 1.8%1.8\% full: with single occupancy, the entropic term is kBTln⁡[N/(M−N)]\kB T\ln[N/(M - N)] rather than kBTln⁡(N/M)\kB T\ln(N/M), and the exact count uses that form. At 1%1\% filling or less the difference is below the simulation’s noise.

3. Against the density difference. Start the same boxes at equal densities, 1000 particles each. Box A’s chemical potential starts at −4.6 kBT-4.6\,\kB T and B’s at −2.6 kBT-2.6\,\kB T, so particles flow from B into A — from the box that is exactly as crowded into the one that is exactly as crowded — and keep flowing until A holds 1767 and B 233. This is the falsifying experiment for “particles always flow from high to low concentration”.

4. Against the energy per particle. No floors at all now: box A has 104 sites, box B 105, and each starts with 1000 particles. Every particle has the same energy, zero, in either box. Yet A starts at μ=−2.2 kBT\mu = -2.2\,\kB T and B at −4.6 kBT-4.6\,\kB T, and particles flow from A to B until A holds 178 (exact: 181.8) and the two densities are equal, 0.018 in each. With the energies equal, the entropic term alone decides — which is the falsifying experiment for “the chemical potential is the energy per particle”.

5. The functional form. Sweeping B’s floor from 0 to 3 kBT3\,\kB T in steps of 0.5 kBT0.5\,\kB T and fitting ln⁡(nA/nB)\ln(n_A/n_B) against the offset gives a slope of 0.996±0.0020.996 \pm 0.002 per kBT\kB T: each extra kBT\kB T of offset multiplies the density ratio by ee.

6. How steady is equal mu? Once settled, μA−μB\mu_A - \mu_B fluctuates about zero. From the exact distribution of the split, its standard deviation is 0.31, 0.098, 0.031 and 0.0097 kBT0.0097\,\kB T for 100, 103, 104 and 105 particles; the fitted exponent is -0.502. Equality of chemical potentials, like equality of temperatures in module 08, is sharp only for large systems, and sharpens as N−1/2N^{-1/2}.

An isothermal column of twelve layers of 50 00050\,000 sites each; each layer sits 0.4 kBT0.4\,\kB T above the one below, as a layer of air sits mg Δzm g\,\Delta z above the one below it. All 2000 particles start in the bottom layer. Left: the particles, each dot standing for five. Middle: the count in each layer (bars) and the exponential n(z)∝e−mgz/(kBT)n(z) \propto e^{-m g z/(\kB T)} (dashed). Right: each layer’s chemical potential in units of kBT\kB T (dots). They start far apart — a layer that is still empty sits pinned at the left edge — and gather onto one vertical line.

7. The column. Averaged over the second half of four runs, the fitted decay of ln⁡n\ln n with layer number is −0.398±0.001-0.398 \pm 0.001 per layer, against the -0.4 of the barometric formula; the remaining half percent is single occupancy again, since the bottom layer is 1.3%1.3\% full. The twelve layers’ chemical potentials agree to within 0.03 kBT0.03\,\kB T. A column that knows nothing but “hop, and accept by Metropolis” settles into the exponential atmosphere, with the chemical potential constant up its height.

8. The adsorption site. A surface of 200 binding sites at ε=−3 kBT\varepsilon = -3\,\kB T exchanges particles with a reservoir of 20 00020\,000 sites at energy 0. Changing the total number of particles changes the reservoir’s chemical potential; the laboratory measures the fraction of the surface covered.

Left, a sigmoid curve of occupation from zero to one against the chemical potential, with blue simulated points lying on it and a dotted vertical line at the half-filled point. Right, coverage against pressure rising steeply then flattening toward one, with the same points.

(a) Fraction of surface sites occupied against the reservoir’s chemical potential, relative to the binding energy, (μ−ε)/kBT(\mu - \varepsilon)/\kB T. The black curve is the one-site grand-canonical result 1/(e(ε−μ)/kBT+1)1/(e^{(\varepsilon - \mu)/\kB T} + 1); the blue points are simulated, each the average of the second half of one run, at eight particle numbers. (b) The same points against e(μ−ε)/kBTe^{(\mu - \varepsilon)/\kB T}, which for a dilute gas is its pressure in units of P0P_0 — the Langmuir isotherm θ=P/(P+P0)\theta = P/(P + P_0). The reservoir here is up to 11%11\% full, where its density and eμ/kBTe^{\mu/\kB T} differ by more than a tenth; that is why the axis is not the density.

particles in total2015060010002400
common μ\mu (kBT\kB T)-7.09-5.05-3.61-3.05-2.06
exact coverage0.01650.11400.35330.48710.7187
1/(e(ε−μ)/kBT+1)1/(e^{(\varepsilon - \mu)/\kB T} + 1)0.01650.11390.35320.48700.7186
simulated0.01650.1090.3690.4740.734

The exact coverage counts every way of sharing the particles between surface and reservoir. The formula needs only one number, the chemical potential that the two share, and reproduces it to 10-4. The surface does not know how big the reservoir is, or how many particles are in it. It responds only to μ\mu. The simulated coverages scatter about both by a few hundredths — two hundred sites, each full or empty, averaged over a finite run.

9. Osmosis. For sucrose in water at 298 K298\ \mathrm{K}, with the ideal-solution model:

concentration (mol/L)0.010.10.51.0
van 't Hoff Π\Pi (MPa)0.02480.2481.2392.479
−(kBT/v)ln⁡(1−x)-(\kB T/v)\ln(1 - x) (MPa)0.02480.2481.2452.502
difference0.009%0.009\%0.09%0.09\%0.45%0.45\%0.91%0.91\%

A 0.1-molar solution — 34 g34\ \mathrm{g} of sugar in a litre of water — has an osmotic pressure of 2.5 bar2.5\ \mathrm{bar}, enough to hold up a column of water 25 m25\ \mathrm{m} tall.

The falsifying experiment for osmosis. Which way something crosses a membrane can be weighed. Dissolve the shell of a raw egg in vinegar, leaving the egg inside its own membrane, which passes water far more readily than sugar. Left overnight in pure water, it swells and gains mass. Left in concentrated sugar syrup instead, it shrivels and loses mass. If osmosis were sugar pushed through the membrane, the egg in syrup would take up sugar and swell; it does the opposite. What crosses is the water, moving toward the side where its chemical potential is lower — into the egg from pure water, out of the egg into the syrup.

10. A measurement. The laboratory generates synthetic readings of Π\Pi at six concentrations, with a 3%3\% random error on each, standing in for a class’s dialysis-tubing experiment. Fitting Π\Pi against the molar concentration gives a slope of 2560±47 J mol−12560 \pm 47\ \mathrm{J\,mol^{-1}}, against RT=2479 J mol−1RT = 2479\ \mathrm{J\,mol^{-1}} at 298 K298\ \mathrm{K}: van 't Hoff’s law turned around, an estimate of the gas constant from sugar water, within two standard errors.

Transfer the idea

Wherever particles — molecules, electrons, defects, photons — can move between two places or two forms, equilibrium is equal chemical potential.

Looking ahead:

Worked examples

Try each one before opening its solution.

Worked example 1 — the chemical potential of air. Find nQn_Q and μ\mu for nitrogen (m=28 um = 28\ \mathrm{u}) at 300 K300\ \mathrm{K} and 1 bar1\ \mathrm{bar}.

Solution

n=P/(kBT)=2.41×1025 m−3n = P/(\kB T) = 2.41 \times 10^{25}\ \mathrm{m^{-3}}. With m=28×1.661×10−27 kgm = 28 \times 1.661 \times 10^{-27}\ \mathrm{kg},

nQ=(2πmkBTh2)3/2=1.45×1032 m−3,n_Q = \left(\frac{2\pi m \kB T}{h^2}\right)^{3/2} = 1.45 \times 10^{32}\ \mathrm{m^{-3}} ,

so n/nQ=1.67×10−7n/n_Q = 1.67 \times 10^{-7} and μ=kBTln⁡(1.67×10−7)=−15.6 kBT=−0.40 eV\mu = \kB T\ln(1.67 \times 10^{-7}) = -15.6\,\kB T = -0.40\ \mathrm{eV}. Air is six million times more dilute than the quantum concentration: deeply classical.

Worked example 2 — two boxes, one offset. Box B’s floor is 1.5 kBT1.5\,\kB T above box A’s; the boxes are the same size and hold 1000 particles between them, dilutely. How many end up in A?

Solution

nA/nB=e1.5=4.48n_A/n_B = e^{1.5} = 4.48, and with equal volumes NA/NB=4.48N_A/N_B = 4.48 too. So NA=1000×4.48/5.48=818N_A = 1000 \times 4.48/5.48 = 818, and NB=182N_B = 182.

Worked example 3 — a mountain. Using constant chemical potential, find the ratio of the nitrogen density at the top of a 5 km5\ \mathrm{km} mountain to that at sea level, for an isothermal atmosphere at 288 K288\ \mathrm{K}.

Solution

kBTln⁡n(z)+mgz\kB T\ln n(z) + m g z is the same at both heights, so n(5 km)/n(0)=e−mgz/(kBT)n(5\ \mathrm{km})/n(0) = e^{-m g z/(\kB T)}. The scale height is kBT/(mg)=8.72 km\kB T/(m g) = 8.72\ \mathrm{km}, so the ratio is e−5/8.72=0.56e^{-5/8.72} = 0.56. The real atmosphere is colder at altitude and the true ratio is somewhat different — the isothermal column is a model.

Worked example 4 — a site at its half-filling point. A surface site binds a molecule with ε=−0.1 eV\varepsilon = -0.1\ \mathrm{eV}, at 300 K300\ \mathrm{K} (kBT=0.0259 eV\kB T = 0.0259\ \mathrm{eV}). What fraction of the time is it occupied when the gas has μ=−0.15 eV\mu = -0.15\ \mathrm{eV}? When μ=−0.05 eV\mu = -0.05\ \mathrm{eV}?

Solution

(ε−μ)/kBT=0.05/0.0259=1.93(\varepsilon - \mu)/\kB T = 0.05/0.0259 = 1.93 in the first case, so ⟨n⟩=1/(e1.93+1)=0.127\langle n \rangle = 1/(e^{1.93} + 1) = 0.127. In the second it is -1.93, and ⟨n⟩=1/(e−1.93+1)=0.873\langle n \rangle = 1/(e^{-1.93} + 1) = 0.873. The two answers add to one: the function is symmetric about μ=ε\mu = \varepsilon.

Worked example 5 — a reaction. Molecules convert between forms A and B, with B higher by Δε=2 kBT\Delta\varepsilon = 2\,\kB T and equal quantum concentrations. What fraction is B? What if B’s nQn_Q is three times A’s — for instance, because B has three internal states of the same energy?

Solution

nB/nA=e−2=0.135n_B/n_A = e^{-2} = 0.135, so a fraction 0.135/1.135=0.1190.135/1.135 = 0.119 is B. With the factor three, nB/nA=3e−2=0.406n_B/n_A = 3e^{-2} = 0.406, and B’s share rises to 0.289. Entropy — more ways of being B — partly offsets energy.

Worked example 6 — how tall a column? A bag of 0.1-molar sugar solution is closed by a membrane at the bottom of a tube and dipped in pure water at 298 K298\ \mathrm{K}. How high does the solution rise in the tube?

Solution

Π=nskBT=(0.1×103×6.022×1023)×(1.381×10−23×298)=2.48×105 Pa\Pi = n_s\kB T = (0.1 \times 10^3 \times 6.022 \times 10^{23}) \times (1.381 \times 10^{-23} \times 298) = 2.48 \times 10^5\ \mathrm{Pa}. The column stops rising when its hydrostatic pressure ρgh\rho g h equals Π\Pi, so h=2.48×105/(1000×9.81)=25 mh = 2.48 \times 10^5/(1000 \times 9.81) = 25\ \mathrm{m} — ignoring the dilution caused by the water that flows in, which lowers it in practice.

Check your understanding

  1. Two boxes at the same temperature exchange particles through a small hole. When the exchange has stopped on average, which quantity is certainly the same in both boxes?

    A. The chemical potential mu. B. The concentration (particles per unit volume). C. The number of particles. D. The energy per particle.

    Check your answer

    Correct answer: A — The chemical potential mu.

    • A. Right. Maximizing the total entropy over the split of the particles gives dS_1/dN_1 = dS_2/dN_2, which at a common temperature is mu_1 = mu_2. In the laboratory two boxes whose floors differ by 2 k_B T settle at densities seven to one, with equal mu.

    • B. This is the misconception that particles always flow from high to low concentration. Density enters only through the entropic part of mu, k_B T ln(n/n_Q); if a particle has a different energy in each box, the densities end up unequal -- by exp(-Delta u/(k_B T)) -- and stay that way.

    • C. Nothing favours equal numbers: two boxes of different sizes with no energy offset end with equal densities, so the larger box holds more particles.

    • D. Two boxes with no floors and no forces have the same energy per particle from the start, yet particles flow from the more crowded one. The chemical potential includes an entropic term that the energy per particle does not.

  2. A system at fixed U and V has S/k_B = 1000.00 at N = 500 and S/k_B = 1004.00 at N = 502, at temperature T. Estimate its chemical potential, in units of k_B T.

    Check your answer

    Correct answer: -2.0 (± 0.05)

    mu = -T (dS/dN) at fixed U, V. The slope is (1004.00 - 1000.00) k_B / 2 = 2 k_B per particle, so mu = -2 k_B T. If you answered +2, you dropped the minus sign in the definition: adding particles that add entropy makes mu negative.

  3. For a pure substance, G = mu N but F is not mu N. Why?

    A. G’s natural variables T and P are intensive, so by extensivity G/N depends on T and P only -- and the Euler relation gives G = U - TS + PV = mu N; F = U - TS = mu N - PV depends on V as well. B. Because mu is defined as dG/dN, while F has no derivative with respect to N. C. Because G = mu N is only true for an ideal gas. D. Because F includes the kinetic energy of the particles and G does not.

    Check your answer

    Correct answer: A — G’s natural variables T and P are intensive, so by extensivity G/N depends on T and P only -- and the Euler relation gives G = U - TS + PV = mu N; F = U - TS = mu N - PV depends on V as well.

    • A. Right. The Euler relation U = TS - PV + mu N, from extensivity alone, gives both results. G has one extensive natural variable, N, so it is N times a function of intensive variables -- and that function is mu. F has two, V and N.

    • B. F does have one: mu = (dF/dN) at fixed T and V, too. Both derivatives give the same mu; what differs is whether the potential equals N times its derivative, and that depends on which other variables are extensive.

    • C. It holds for any one-component system whose entropy is extensive. The ideal gas is just the case where the laboratory checks it numerically.

    • D. Both contain U. They differ by PV, which is exactly the term that makes F = mu N - PV.

  4. Box 1 holds a gas at density 2 n_0 with mu_1 = -6 k_B T; box 2 holds a gas of the same species at density n_0 with mu_2 = -4 k_B T. The temperatures are equal. A hole is opened between them. What happens?

    A. Particles flow from box 2 into box 1, the denser box, because mu_2 > mu_1. B. Particles flow from box 1 into box 2, because box 1 is denser. C. Particles flow until the energy per particle is the same in both boxes, then stop. D. Nothing flows, because the temperatures are equal.

    Check your answer

    Correct answer: A — Particles flow from box 2 into box 1, the denser box, because mu_2 > mu_1.

    • A. Right. dS_tot = (mu_2 - mu_1) dN_1 / T > 0 for dN_1 > 0: particles flow from high mu to low, whatever the densities. Box 1 must have a lower floor -- an attractive wall, a lower height -- that makes its mu lower despite the crowding.

    • B. This is the concentration rule, and it fails whenever the boxes differ in anything but density. The chemical potentials rank the other way, and they decide.

    • C. This is the misconception that the chemical potential is just the energy per particle. Equal energies per particle do not stop the flow: in the laboratory, two boxes with no floors at all -- the same energy per particle from the start -- still exchange particles until their densities match, because mu has an entropic part. Flow stops at equal mu.

    • D. Equal temperatures stop the flow of energy, not of particles. Particle exchange needs equal mu as well.

  5. In an isothermal atmosphere of nitrogen at 288 K the scale height k_B T/(m g) is 8.72 km. Using constant mu, what is the ratio of the density at 3.0 km to the density at sea level?

    Check your answer

    Correct answer: 0.709 (± 0.005)

    k_B T ln n(z) + m g z is the same at both heights, so n(z)/n(0) = exp(-z/H) = exp(-3.0/8.72) = 0.709. If you answered 0.656, you used 7.1 km, a scale height for a colder or heavier gas, since H = k_B T/(m g); if 0.344, you gave z/H itself rather than the exponential.

  6. The grand-canonical weight P(s) ~ exp(-(E_s - mu N_s)/(k_B T)) is a theorem. Which hypotheses does it need?

    A. A reservoir large enough that its temperature and chemical potential stay fixed when it gives up energy and particles, and coupling weak enough that energies and particle numbers add. B. Every state (E_s, N_s) of the system must be equally probable. C. The system must be an ideal gas. D. The system must hold many particles, so that Stirling’s approximation applies to it.

    Check your answer

    Correct answer: A — A reservoir large enough that its temperature and chemical potential stay fixed when it gives up energy and particles, and coupling weak enough that energies and particle numbers add.

    • A. Right. The derivation expands the reservoir’s entropy to first order in the energy and particles it gives up; the neglected second-order terms are small only for a large reservoir. Weak coupling is what makes E_total = E_s + E_R.

    • B. The opposite: states are weighted unequally, by exp(-(E_s - mu N_s)/(k_B T)). Equal probability belongs to the isolated system plus reservoir as a whole, not to the small system -- the same trap as reading the canonical ensemble as equal probability.

    • C. Nothing about the system is assumed. The module applies the weight to a single adsorption site, which is not a gas at all.

    • D. Stirling is needed for the reservoir’s smooth entropy, not for the system. The weight holds for a system of one site holding zero or one particle.

  7. An adsorption site with binding energy epsilon is in contact with a gas at chemical potential mu, where (epsilon - mu)/(k_B T) = 1.5. What is its mean occupation?

    Check your answer

    Correct answer: 0.182 (± 0.003)

    = 1/(exp((epsilon - mu)/(k_B T)) + 1) = 1/(exp(1.5) + 1) = 1/(4.48 + 1) = 0.182. If you answered 0.223, you gave exp(-1.5), the Boltzmann ratio without the +1 of single occupancy; if 0.818, you swapped the sign of epsilon - mu.

  8. Molecules convert between forms A and B. Form B lies 1.0 k_B T above form A and has twice A’s quantum concentration (two internal states of equal energy). What is n_B/n_A at equilibrium?

    Check your answer

    Correct answer: 0.736 (± 0.01)

    mu_A = mu_B with mu_X = k_B T ln(n_X/n_Q,X) + epsilon_X gives n_B/n_A = (n_Q,B/n_Q,A) exp(-Delta epsilon/(k_B T)) = 2 exp(-1) = 0.736. If you answered 0.368, you left out the factor of two -- the extra ways of being B.

  9. A dialysis bag holding 0.2 mol/L sucrose solution is put in pure water at 298 K. The bag’s wall passes water but not sucrose. What happens, and how large is the osmotic pressure?

    A. Water flows into the bag, which swells; the osmotic pressure is about n_s k_B T = 5 bar. B. Sucrose flows out of the bag until the concentrations are equal; the pressure is about 5 bar. C. Water flows out of the bag, which shrinks, because the solution is denser. D. Nothing happens, because no pump is present.

    Check your answer

    Correct answer: A — Water flows into the bag, which swells; the osmotic pressure is about n_s k_B T = 5 bar.

    • A. Right. Sucrose lowers the water’s chemical potential inside the bag by about -k_B T ln(1 - x), so water flows in, toward the lower mu. It would stop only if the inside were at a higher pressure by Pi = n_s k_B T = 0.2 x 1000 x N_A x k_B x 298 = 5.0 x 10^5 Pa.

    • B. This is the misconception that osmosis is solute pushed through the membrane. The sucrose cannot cross at all. It is the water that moves, down its own chemical-potential difference.

    • C. The solution’s water has the lower chemical potential, so water flows in, not out. A bag of pure water in a sugar bath would shrink.

    • D. No pump is needed. Water flows down its chemical-potential difference as particles in the two-box simulation flow down theirs.

  10. In three or four sentences: why is the chemical potential of a classical ideal gas negative, and what would it signal if a gas’s mu approached zero?

Check your answer

For the ideal gas mu = k_B T ln(n/n_Q), with n_Q the quantum concentration, one particle per thermal wavelength cubed. A gas is classical exactly when n is far below n_Q -- air at room conditions is six million times more dilute -- so the logarithm is negative. Physically, adding a particle to a dilute gas adds entropy (it has a great deal of room), and mu = -T dS/dN is negative whenever dS/dN is positive. mu approaching zero means n approaching n_Q: the thermal wavelengths overlap, the classical counting behind Sackur-Tetrode fails, and quantum statistics (module 17) take over. A strong answer names both the entropic reason and the n_Q criterion.

Exam-style problems for this module — the ones worth doing with a pen — are collected in the problem set.

Explain it in your own words

Answer in a few sentences each.

  1. A chemist friend says that particles can only move from high to low concentration unless something pumps them. Explain why two connected boxes can hold particles at a seven-to-one density ratio with no pump at all.

  2. Why is the chemical potential of a classical ideal gas negative? What would it signal if a gas’s μ\mu approached zero?

  3. What does μ=(∂G/∂N)T,P\mu = (\partial G/\partial N)_{T,P} have to do with μ=−T(∂S/∂N)U,V\mu = -T(\partial S/\partial N)_{U,V}? Why is G=μNG = \mu N but F≠μNF \neq \mu N?

  4. In osmosis, what flows, what does not, and what is the osmotic pressure the price of?

Advanced: fugacity, activity, and why mu is not a free variable

Fugacity. Step 4’s ideal gas has μ=kBTln⁡(n/nQ)\mu = \kB T\ln(n/n_Q), or, per mole and in terms of the pressure, μ=μ∘(T)+RTln⁡(P/P∘)\mu = \mu^{\circ}(T) + RT\ln(P/P^{\circ}), with P∘P^{\circ} a chosen reference pressure. A real gas does not obey this. Rather than give up the convenient logarithm, chemical engineers keep it and define a corrected pressure ff, the fugacity, so that μ=μ∘(T)+RTln⁡(f/P∘)\mu = \mu^{\circ}(T) + RT\ln(f/P^{\circ}) holds exactly. For a dilute gas f→Pf \to P. Fugacity is therefore bookkeeping for eμ/RTe^{\mu/RT} in the units of a pressure, and equal chemical potentials become equal fugacities — which is how phase equilibria are tabulated in practice.

Activity. The same device applied to a solution: the activity aa of a component is defined by μ=μ∘+RTln⁡a\mu = \mu^{\circ} + RT\ln a. In step 6’s ideal solution the solvent’s activity is its fraction, a=1−xa = 1 - x. Real solutions have activity coefficients γ=a/x\gamma = a/x that differ from one, and measuring them — often by osmotic pressure — is how the departure from the ideal model is quantified. The sucrose example at the end of the verification is exactly such a departure.

Gibbs–Duhem, re-read. Module 09 derived

S dT−V dP+N dμ=0S\,\mathrm{d}T - V\,\mathrm{d}P + N\,\mathrm{d}\mu = 0

from extensivity. For one component it says that TT, PP and μ\mu cannot be varied independently: fix the temperature and the pressure, and the chemical potential is fixed too, with dμ=−s dT+v dP\mathrm{d}\mu = -s\,\mathrm{d}T + v\,\mathrm{d}P per particle. That is step 3’s μ=μ(T,P)\mu = \mu(T, P) again, now with its derivatives: (∂μ/∂P)T=v(\partial\mu/\partial P)_T = v is the step the osmotic derivation used. For a mixture of rr components the relation leaves r+1r + 1 independent intensive variables, and counting them across coexisting phases gives module 14’s phase rule.