<<

Van der Waals equation, Maxwell construction, and Legendre transforms

Markus Deserno Department of Physics, Carnegie Mellon University, Pittsburgh, PA 51213, USA (Dated: March 4, 2013) The van der Waals equation is the best known example of an that exhibits a first-order transition with a critical end point. Since clearly the remains a mono- tonic function of the in experiment, the van der Waals equation is amended by a Maxwell construction, in which the famous “equal area” cut of the van der Waals loop replaces that loop. This equal area construction is equivalent to replacing the corresponding van der Waals by its convex envelope. In fact, the relation between these two, as well as the associated , is also the perfect example and opportunity to understand how typical features of phase transitions appear in thermodynamic potentials and their Legendre transforms.

I. SCALED SPECIFIC FREE ENERGY The scaled pressurep ˜ := p/pc := 8pvc/3kBTc is now

The Helmholtz free energy of the van der Waals can 8 ∂f˜ 8 T˜ 3 p˜ = − = − (5) be written as follows: 3 ∂v˜ 3˜v − 1 v˜2 !T˜ (V − Nb′)T 3/2 a′N 2 F (T,V,N)= −NkBT 1 + log ′ − , To check whether we got the critical point right, let us Nc V calculate   (1) ′ ′ ′ ∂p˜ 24T˜ 6 where a , b , and c are constants (i.e., independent of T , = − + , (6a) V , and N). We will first re-express this equation in the ∂v˜ (1 − 3˜v)2 v˜3 following way: ∂2p˜ 144T˜ 18 = − − . (6b) 1. Volume and free energy are divided by N, thus ∂v˜2 (1 − 3˜v)3 v˜4

making them intensive. In other words, we revert 2 ∂p˜ ∂ p˜ to specific volume and a specific free energy: At the critical point we must have ∂v˜ = ∂v˜2 = 0, which immediately givesv ˜c = t˜c = 1, as we have ar- V → v = V/N , (2a) ranged. This also shows that at the critical point we have 8 F → f = F/N . (2b) p˜c =p ˜(1, 1) = 1, thus explaining the extra factor 3 we introduced above in the definition of the scaled pressure.

2. We know that the van der Waals equation has a critical point. We will measure in II. SCALED GIBBS FREE ENERGY units of the critical temperature Tc, specific free en- ergy in units of kBTc, and specific volume in units The specific Gibbs free energy follows from the specific of the critical specific volume vc: Helmholtz free energy via a Legendre transformation: ˜ T → T = T/Tc , (3a) g˜(T,˜ p˜) = min f˜(T,˜ v˜)+˜pv˜ . (7) v˜ f → f˜ = f/k T , (3b) B c  v → v˜ = v/vc . (3c) This always works, even when for T˜ < T˜c = 1 the Helmholtz free energy ceases to be a convex function To accomplish these replacements, we also need to of the specific volume by developing a local concave know (or check for ourselves—see below) that Vc = “bump”. It is precisely this bump which gives rise to ′ ′ ′ ˜ 3b and kBTc =8a /27b . the van der Waals loop in the pressure, and replacing f by its convex envelope is equivalent to the well-known after these replacements we find equal-area Maxwell construction—as can be seen as fol- lows: If the Maxwell loop starts atv ˜1 and ends atv ˜2, (˜v − 1 )T˜3/2 9 ˜ f˜(T,˜ v˜)= −T˜ 1 + log 3 − , (4) p˜ = −∂f/∂v˜ implies c′′ 8˜v " # v˜2 f˜(˜v2) − f˜(˜v1) ′′ 0= d˜v p˜(˜v) − p˜eq ⇒ −p˜eq = . (8) with a new (dimensionless) constant c . Changing its v˜ − v˜ Zv˜1 2 1 numerical value adds a term proportional to T˜ to the   specific free energy, and hence proportional to TN˜ to Sincep ˜eq =p ˜(˜v1,2) = −∂f/∂˜ v˜|1,2, this condition shows the free energy. Since in the following we will only be that the equal-area construction onp ˜(˜v) is equivalent to interested in derivatives with respect to volume, we can a double tangent construction on f˜(˜v), i.e., making f˜(˜v) ′′ set c ≡ 1 without any effects. convex. 2

FIG. 1. This triple-plot links the specific Helmholtz free energy f˜(˜v), the pressurep ˜(˜v) and the spe- f largest deviation of cific Gibbs free energyg ˜(˜p) for the van der Waals van der Waals free energy gas at a particular temperature T˜ = 0.75 below from its convex envelope the critical point. Notice that the double tangent construction on f˜(˜v) translates to the Maxwell con- struction inp ˜(˜v), which again translates to the kink thermodynamically ing ˜(˜p). The part in f˜(˜v) which is eliminated by the double tangent construction (the non-convex invisible "dent" bit) corresponds to the bow-tie attached tog ˜(˜p) at the kink, which is eliminated by the “min” pre- scription in the Legendre transform. The blue lines therefore indicate the binodal of the phase transi- tion; the red lines correspond to the (mean field) spinodal, at which the second derivative of f˜(˜v) (and hence the ) turns negative (or, equivalently, the second derivative of the “hidden” double piece ofg ˜(˜p) turns positive). tangent

p v

g v thermodynamically Maxwell construction invisible "bow−tie" of equal areas

We know that the Legendre transformg ˜(˜p) will be ing way: Each pair {p˜ , g˜(˜p)} can evidently be written as concave even if the function we started with does not ∂f˜ ˜ ∂f˜ {− ∂v˜ , f(˜v)− ∂v˜ v˜}, which can be viewed as a parametric necessarily have a positive second derivative everywhere. representation of the graph ofg ˜(˜p) withv ˜ as the parame- ˜ In fact, we know that if we were to replace f(˜v) by its ter. Plotting this, we see that—without insisting on tak- convex envelope we would get the same Legendre trans- ing the minimum value—the locally non-convex pieces in form. Moreover, the Legendre transform of a linear re- f˜(˜v) reappear as a curiously shaped “bow-tie” attached gion transforms into a kink (and vice versa!), and all to the graph of the proper Legendre transform. The two the non-convexity vanishes from the description. Where pieces where f˜(˜v) already deviates from its convex en- does it go? It is eliminated by the “min” procedure lead- velop but still has a positive derivative simply continue ing to the definition ofg ˜, and hence we do lose infor- the two branches of the graph ofg ˜(˜p) on both sides of the mation if we Legendre transform functions that are not kink. The piece in f˜(˜v) where even the second derivative fully convex (or fully concave). However, we can illus- is negative connects these two extensions via two cusps. trate where it is “hiding”: take the definition of the Leg- All of this is jointly illustrated in Fig. 1. endre transform and write it parametrically in the follow-