In the case of the Ehrenfest classification for the first order phase transition it is said:
If the first derivative of the free energy is discontinuous then we have a first order phase transition.
Now I know that for the free energy we have : $dF= -pdV - SdT + \mu dN$.
From here we get : $-(\partial F/\partial T)_P=S$.
This is easy to understand. But it can be also found by taking the derivative of the chemical potential wrt Temperature:
$-(\partial \mu/\partial T)_P=S$. Where does this equation comes from?
And an additional question regarding phase transitions.
If we are observing the liquid-gas phase transition. In our lectures the professor said that the system will always choose the state with the smaller chemical potential. So if for a fixed temperature value we have the system in the gas phase and we increase the pressure beyond the Vapor pressure then the system will jump into the liquid state because the chemical potential in the liquid phase has a smaller value. My question is the following:
In the graph done by the professor (which I don't know how to illustrate here) it looks as if the chemical potential for the liquid phase decreases in value as pressure increases. But for the chemical potential the following equation was derived in the lecture:
$\mu = \frac G N = \frac F N + \frac {PV}N = f + P \nu$
where: G is the Gibbs energy, F is the free energy, N the number of particles in the system, f the free energy for particle, and $\nu$ inverse of density. The point is that the chemical potential is proportional to the pressure. Which means that regardless of the phase in which the system is found, an increase in pressure means an increases in chemical potential for the gas and the liquid state and that the graph done by the professor is not correct,meaning for the liquid phase the chemical potential increases, but the one for the gas increases more, hence the system changes phase (into liquid) as pressure increases.
Am I correct about the part in bolt?