 Alright, so let's see if we can go from our thermodynamic definition of the Gibbs free energy to use a thermodynamic connection to learn something about the Gibbs free energy if what we have is a partition function or the Boltzmann probabilities. So we have a definition for the Gibbs energy, which we can think of in this way, probably easier for right now if we think of it as the Helmholtz free energy U minus T S plus P V. Since we know what the thermodynamic connection formulas are for the Helmholtz energy and we also have one for the pressure, we can say that the Gibbs free energy is KT log Q. That's the thermodynamic connection formula for the Helmholtz free energy. We can add to that volume times the thermodynamic connection formula for the pressure, which was KT d log Q dV. So there's no cancellation that happens here, we just add these two terms together. So thermodynamic connection formula for the Gibbs free energy is KT log Q plus volume times KT times d log Q dV. So that's all there is to it. That's the thermodynamic connection formula for the Gibbs energy. If we have a partition function and what we'd like to know is the Gibbs energy, this is the formula we would use to do that.