Extra Material for Problem Set 2
I do not expect you to understand the material presented here. I wanted to post this so that those of you who are confused about the sign convention in Problem Set 2 Problem 1 can be satisfied and happy.
The sneaky thing in Problem 1 is that we are changing ensembles. We’re working in an isothermal-isobaric (well, really, iso-tension…?) ensemble. The parition function we derived in class is useful for ensembles! But we need something for an ensemble.
You see, we assumed that no external work was being done on the system. However, we have another constraint in our Lagrangian now, which is that the tension must be constant: . You could work through another nasty Lagrange multiplier problem (try it if you feel ambitious!) and you could find the correct partition function that way.
But there’s a neat-o trick for switching ensembles super-fast. It’s called a Legendre Transformation.
Legendre Transformations
How does a Legendre transform work? The key idea is to use the product rule. If is a conjugate pair of variables, then relates the variation in quantity to the variation in quantity .
Let’s go through the details. Consider a function of two independent variables, call it . It’s differential is
Let’s define and . I’m only doing this to keep the ugly math symbols to a minimum. You can write everything out with partials if you wish!
Our equation can now be rewritten as
Much cleaner.
Now here’s the clever part: use the product rule to compute the differential
and subtract this equation from to get
Call this cool new function the Legendre transformation :
.
To summarize, we have done a Legendre transformation from an original function to a new function by switching from variable to its conjugate variable . Of course, one could instead switch to to obtain or one could switch both independent variables to get . We see therefore that for two variables, there are four possible variants on the function. To make the connection back to thermodynamics, we might call these various functions the potentials.
Example: Gibbs Free Energy as a Legendre transformation of Helmholtz Free Energy
Recall the differential of Helmholtz Free Energy:
This differential is extremized when are constant. What if we want to find a new differential that is extremized when are constant? We need to do a Legendre transformation of .
So take and subtract from the Helmholtz:
Hey, that’s the differential of the Gibbs Free Energy! I.e., .
In your homework, you need to work in the Gibbs ensemble - you need a new partition function. Let’s start with the “” of statistical mechanics:
Now the Legendre transformation! Multiply both sides by :
So the new partition function for Homework Problem 1 is: