Chemical potential
Consider two systems and in a reservoir such that the temperature is constant. The systems are not only in thermal contact but can also exchange particles (diffusive contact). The Helmholtz Free energy is
The total number of particles is constant (). At the minimum and
In equilibrium . For the particles flow from to .
For an ideal gas where . The chemical potential is (using )
For we have the expression
Alternatively
which is the chemical potential in this case (equivalent to adding one particle).
Internal and total chemical potential
Let at surface level. At height the external chemical potential ist . The total chemical potential is constant
That means . That means
The chemcial potential can also be written as
Because and
and
for changes with and we find
Gibbs factor and Gibbs sub
If the system has energy , the probability for occupying this state is given by the Boltzmann factor
If we include the chemical potential aswell and assume that the system and reservoir form a large body with constant energy and constant number of particles .
The probability of the system to have energy and particles is
If is the total number of states, . Assume that the reservoir is much bigger than the system.
The difference in entropy is
The Gibbs Factor is the exponential
And the probability of finding the system in state is . is the analogous to the partition function to normalize this probability: .
We write The expectation value for a variable is
The expectation vlaue for the number of particles is
and is often called fugacity.
For an ideal gas and . We write . The expectation value of the energy is
Because we have
The total entropy wants to be maximized
We can calculcate this grand potential as follows