How the Jarzynski equality and the Crooks relation recover free energy from irreversible pulls
Sandbox Physics ·
The mean work always exceeds the free-energy change, and the excess depends on how fast you pull. Average differently, taking the exponential of minus the work, and the dissipation cancels exactly, leaving the equilibrium free energy. The price is that this average rests almost entirely on rare pulls that happened to cost very little.
Start from equilibrium, repeat the same pulling protocol many times and record the work W of each pull. Jarzynski showed in 1997 that the average of e−W/kBT equals e−ΔF/kBT exactly, however fast you pull. Eq. (58) of the Seifert review derives it for Langevin dynamics.
Because the exponential is convex, the average of an exponential is never smaller than the exponential of the average. Applied to the left-hand side this gives ⟨W⟩≥ΔF: the second law follows from the equality.
Check it with the Gaussian of Chapter 3. The exponential average of a Gaussian variable can be computed directly and gives ΔF=⟨W⟩−VarW/2kBT. With VarW=2kBTWd the right-hand side is exactly ⟨W⟩−Wd.
⟨e−W/kBT⟩=e−ΔF/kBT⟹⟨W⟩≥ΔF
The brackets average over many independent pulls, each of which must start in equilibrium.
The reverse protocol starts in equilibrium at the end point and drags the trap back along the same path. The Crooks relation connects the two sets of pulls: the probability of forward work W divided by the probability of reverse work −W equals e(W−ΔF)/kBT.
Where the two distributions cross the ratio is one, and the work there is ΔF. Flip the sign of the reverse work, plot both histograms together and read off the crossing. The logarithm of the ratio is a straight line in W with slope 1/kBT. With 40 000 simulated pulls in each direction, the fitted slope is 0.992±0.007 and the crossing is at 2.40kBT, against the exact 2.41kBT.
PR(−W)PF(W)=e(W−ΔF)/kBT
Eq. (61) of the Seifert review. Multiply both sides by PR(−W)e−W/kBT and integrate over W to recover the Jarzynski equality.Analytic Gaussian work distributions for the default Lab settings, work in units of kBT: forward pulls (cyan) and reverse pulls with the sign of the work flipped (amber). They cross at the free-energy change ΔF=2.41kBT (dashed line).
In the exponential average, cheap pulls weigh far more than expensive ones. For a Gaussian, completing the square in e−W/kBTP(W) gives another Gaussian of the same width centred at ΔF−Wd. An accurate estimate needs enough pulls near that point.
The fraction of pulls below that centre is Φ(−2Wd/kBT). At the default Wd=2.10kBT it is about 2%, roughly 4 pulls out of 200. In the Lab’s default record the single heaviest pull carries 38% of the exponential sum.
Raise the speed to 40μm/s and Wd=6.36kBT; the fraction drops to 1.8×10−4. Two hundred pulls usually contain none, and the forward estimate comes out high: the default record gives 4.38kBT. Even 20 000 pulls give 3.00kBT. The reverse estimate errs the other way, 0.39kBT for the same record, and the Crooks crossing lies between them.
e−W/kBTP(W)∝exp[−4kBTWd(W−ΔF+Wd)2]
This holds for a Gaussian. A measured work distribution with a longer low-work tail is easier to average; one with a shorter tail is harder.
Worked example: four numbers from the default record
The Lab’s default record has 200 pulls in each direction. The forward mean work is 4.41kBT, an upper bound on ΔF. The forward Jarzynski estimate is 2.08kBT, the reverse estimate 2.23kBT and the Crooks crossing 2.30kBT. The exact value is fL=2.41kBT.
The forward estimate is low by 0.33kBT. Resampling the 200 pulls gives a statistical uncertainty of about 0.4kBT, so the miss is not unusual. Repeating the whole experiment with 40 random seeds gives a mean forward error of +0.10kBT with a standard deviation of 0.29kBT; direct Gaussian sampling predicts +0.08±0.37kBT. The crossing errs by −0.03±0.21kBT, steadier than the forward estimate.
Two lessons carry over. A one-way estimate is high on average, by an amount that shrinks with the number of pulls. Using both directions is usually steadier. The last chapter measures how fast the bias falls with the number of pulls.
In the Uphill drag preset, predict the order of the mean work, the Jarzynski estimate and the crossing, then compare them with the exact value.
Watch the chart of the estimate as pulls accumulate and find where the curve jumps. Each jump is a single pull that cost unusually little.
Switch to Rare pulls decide and resample several times. Is the forward estimate always above ΔF? Is the crossing? Explain with the fraction formula of this chapter.
Exercises with explained answers
Use the convexity of the exponential to derive the second law from the Jarzynski equality.
Show the answer
A convex function satisfies ⟨eX⟩≥e⟨X⟩. With X=−W/kBT this gives e−ΔF/kBT≥e−⟨W⟩/kBT; taking logarithms gives ⟨W⟩≥ΔF.
Show that the probability of a pull doing at least ζ less work than ΔF is at most e−ζ/kBT. What is the bound for 5kBT?
Show the answer
Write the equality as ⟨e−(W−ΔF)/kBT⟩=1. Keep only pulls with W<ΔF−ζ: each contributes more than eζ/kBT, so their probability times eζ/kBT cannot exceed 1. For 5kBT the bound is about 0.0067. Single pulls can beat the second law, but large violations become exponentially rare.
In a fast-pull experiment the forward Jarzynski estimate is 4.38kBT and the reverse estimate 0.39kBT. What would you report?
Show the answer
The two one-way estimates are biased in opposite directions, so the true value should lie between them. Use both data sets together, for example by reading the Crooks crossing, and report a resampling uncertainty. If that uncertainty is still too large, pull more slowly or collect more pulls.
Version 1, 18 May 2012. Section 2: overdamped Langevin dynamics, Eq. (14) for the heat released into the medium and Eqs. (15)–(19) for the first law along one trajectory. Section 4: Eqs. (58) and (61), the Jarzynski and Crooks relations. Section 6.2: entropy production for master equations, Eqs. (120)–(129). Section 7.2: relative-entropy bounds on dissipation, Eqs. (146)–(150). Section 7.3: measurement and feedback, Eqs. (151)–(163).
Version 1, 30 October 1996. The equality between the exponential average of work over repeated switching from equilibrium and the equilibrium free-energy difference. We read the abstract and the setup; the derivation in this course is the Langevin version given in the Seifert review.
Version 4. The ratio of forward and time-reversed work distributions. We use the relation in the form of Seifert Eq. (61) and test it on simulated pulls; we did not reproduce the paper’s own examples.
Keep reading
What this page links to directly
You are hereHow the Jarzynski equality and the Crooks relation recover free energy from irreversible pulls