Definition:
where p is the pressure, V is the volume, and A is the Helmholtz energy function, i.e.
Taking the total derivative
From the Second law of thermodynamics one obtains
thus one arrives at
For G(T,p) we have the following total differential