Thermodynamic Network
Thermodynamics  

Introduction  What is this thing called Thermodynamics???  Definitions  Thermal Equilibrium and Zeroth Law  Limitations 
First Law  Work, Heat, Energy, and the First Law  Work, Heat, Energy, and the First Law (simplied)  Derivatives  Derivatives Exercise  Reversibility, Enthalpy, and Heat Capacity 
Second Law  Things to Think About  Observations and Second Law of Thermodynamics  Alternative Approach  the Clausis Inequality  Consequences of the Second Law  Consequences of the Second Law (simplified)  Carnot Principle  motivation and examples  Equivalence of Second Law Statements* 
Third Law  Third Law of Thermodynamics  Consequences of Third Law* 
Development of Thermodynamics  The Thermodynamic Network  Network Exercise  Equations of State (EOS)  EOS Example, Reading Tables, and Numerical Analysis  EOS Exercises  Thermochemistry 
* Optional Section 

Contents
Introduction
We now want to combine the first and second laws. The approach we will use was developed by J. Willard Gibbs in the late nineteenth century.
Fundamental Equation
The first law of thermodynamics is [math]dU=dQ+dW[/math]
For a reversible process with only PV work [math]dW=PdV[/math]
The Clausis Inequality gives for a reversible process [math]dQ=TdS[/math]
Combining these equations gives [math]dU=TdSPdV[/math]
This is called the Fundamental Equation of Thermodynamics
Importance
Let us look at the this equation in more detail. We derived the equation using reversible processes. However, let us look at each of the terms in the fundamental equation. Every term is in fact a state function. As explained in that section, state functions are path independent. Therefore, the fundamental equation applies to all closed, simple^{[1]} systems.
We will now make a rather bold statement: All of thermodynamics can be derived from the fundamental equation. (That is why it is called the fundamental equation)
Thermodynamic Network
We now wish to make some relations between the thermodynamic properties (P, V, T, U, S, and H) using the fundamental equation. These relations are called the Thermodynamic Network.
Legendre Transformation
If we look at the fundamental equation we see that the independent variables are S and V. However, in most applications these are not in fact the independent variables.^{[2]}
To interchange the independent and dependent variables we use the technique called a Legendre Transformation.
Let us consider a function F_{1} = F_{1}(x,y,z,…)
The total differential is then
[math]dF_1=Xdx+Ydy+Zdz+\cdots\qquad (1)[/math]
where
[math]X=\frac{\partial F}{\partial x},\ldots[/math]
Reminder: x, y, z, ... are the independent variables and X, Y, Z, ... are dependent variables.
We now introduce the following function
[math]F_2=F_1+Xx[/math]
then
[math]dF_2=dF_1XdxxdX[/math]
inserting this into equation (1) gives
[math]dF_2=xdX+Ydy+Zdz+\cdots[/math]
We now have the function F_{2} = F_{2}(X,y,z,…)
Thus X is now the independent variable and x the dependent variable.
Enthalpy
Now we are ready to look at the thermodynamic network. Let us start by considering systems where the independent variables are S and P. We need to change the fundamental equation so that P, instead of V, is the independent variable. Therefore we will apply the Legendre transformation to PdV:
[math]PdV=d(PV)VdP[/math]
Then the fundamental equation becomes
[math]dU=TdSd(PV)+VdP[/math]
or
[math]d(U+PV)=TdS+VdP[/math]
on the leftside is the enthalpy, therefore
[math]dH=TdS+VdP[/math]
Helmholtz Energy
Now let us consider a system with T and V as the independent variables. This time we will apply the Legendre Transformation to TdS:
[math]TdS = d(TS)SdT[/math]
and the fundamental equation becomes
[math]dU = d(TS)SdTPdV[/math] [math]d(UTS) = SdTPdV[/math]
The quantity U  TS is called the Helmholtz Energy, A^{[3]}
[math]A=UTS[/math]
Therefore,
[math]dA=SdTPdV[/math]
Gibbs Energy
By far the most important systems used in the application of thermodynamics are those with T and P as the independent variables. In this case we need to apply the Legendre Transformation to both TdS and PdV:
[math]TdS=d(TS)SdT[/math] [math]PdV=d(PV)VdP[/math]
and the fundamental equation becomes
[math]dU=d(TS)SdTd(PV)+VdP[/math] [math]d(UTS+PV)=SdT+VdP[/math]
The quantity U  TS + PV is called the Gibbs Energy, G
[math]G=UTS+PV[/math]
Which can also be written
[math]G=HTS[/math] or [math]G=A+PV[/math]
Therefore,
[math]dG=SdT+VdP[/math]
The quantities U, H, A, and G are known as Thermodynamic Potentials^{[4]}
Maxwell Equations
Remember this theorem concerning exact differentials?
The equation
[math]df=M(x,y)dx+N(x,y)dy[/math]
is an exact differential if and only if
[math]\left (\frac{\partial M}{\partial y}_x\right ) = \left (\frac{\partial N}{\partial x}_y\right ) dy[/math]
Now since all linear combinations of state functions are state functions, H, A, and G must be state functions. Therefore, we can use this theorem to develop some relationships.
Consider the fundamental equation
[math]dU=TdSPdV[/math]
Comparing this to above we can set M = T, N = P, x = S, and y = V.
Now using the theorem gives
[math]\left (\frac{\partial T}{\partial V}\right )_S=\left (\frac{\partial P}{\partial S}\right )_V[/math]
Doing the same method with [math]dH=TdS+VdP[/math] gives
[math]\left (\frac{\partial T}{\partial P}\right )_S=\left (\frac{\partial V}{\partial S}\right )_P[/math]
From [math]dA=SdTPdV[/math]
[math]\left (\frac{\partial S}{\partial V}\right )_T=\left (\frac{\partial P}{\partial T}\right )_V[/math]
From [math]dG=SdT+VdP[/math]
[math]\left (\frac{\partial S}{\partial P}\right )_T=\left (\frac{\partial V}{\partial T}\right )_P[/math]
These four relations are known as the Maxwell Equations
For reference a table of the above is given HERE.
Please, do not memorize these. Instead, you should be able to derive any of them if necessary.
Derivatives of Thermodynamic Quantities
Let us look at the derivatives which involve only P, V, and T.
There are three such derivatives. Two of them are given special names and symbols:
[math]\alpha\equiv\frac{1}{V}\left (\frac{\partial V}{\partial T}\right )_P[/math]
[math]\kappa_T\equiv \frac{1}{V}\left (\frac{\partial V}{\partial P}\right )_T[/math]
α is called the volume expansivity or coefficient of expansion
κ is called the isothermal compressibility
These are often found in tables.
Note: Different sources use different (and often confusing) notation.^{[5]}
The remaining partial derivative is [math]\left(\frac{\partial P}{\partial T}\right)_V[/math]
Using the properties of partial derivatives we can write this as [math]\left (\frac{\partial P}{\partial T} \right )_V=\frac{\left (\frac{\partial P}{\partial V} \right )_T}{\left (\frac{\partial T}{\partial V} \right )_P}=\frac{\alpha}{\kappa_T}[/math]
The Network
If we consider all of the thermodynamic variables (P, V, T, S, U, H, A, G) we have 336 possible derivatives.
Amazingly, we can write all of these in terms of just three derivatives: α, κ_{T}, and C_{P}!
This is in addition a very important result. We cannot directly measure S, U, H, A, or G. However, we can get α and κ_{T} from PVT data. Using this and C_{P} data we can get S, etc.
Derivatives of Entropy
If we take the derivatives of S with respect to P, V, and T we get six derivatives:
[math]\left ( \frac{\partial S}{\partial P} \right )_{T} \; \left ( \frac{\partial S}{\partial V} \right )_{T} \; \left ( \frac{\partial S}{\partial T} \right )_{P} \; \left ( \frac{\partial S}{\partial T} \right )_{V} \; \left ( \frac{\partial S}{\partial P} \right )_{V} \; \left ( \frac{\partial S}{\partial V} \right )_{P} [/math]
For the first two of these we can use the Maxwell equations:
[math]\left(\frac{\partial S}{\partial P}\right)_{T}=\left(\frac{\partial V}{\partial T}\right)_{P}=\alpha V[/math]
[math]\left(\frac{\partial S}{\partial V}\right)_{T}=\left(\frac{\partial P}{\partial T}\right)_{V}=\frac{\alpha}{\kappa_{T}}[/math]
The two derivatives of S with respect to T are related to the heat capacities:
[math]\left(\frac{\partial S}{\partial T}\right)_{P}=\frac{C_{P}}{T}[/math]
[math]\left(\frac{\partial S}{\partial P}\right)_{T}=\frac{C_{V}}{T}[/math]
C_{P} is related to C_{V} by:
[math]C_{V}=C_{P}\frac{TV\alpha^{2}}{\kappa_{T}}[/math]
Notes
 ↑ By simple we mean with only PV work
 ↑ Review: The independent variables are the properties we can freely change; for example, pressure and temperature. Dependent variables are those which cannot be controlled.
 ↑ A comes from Arbit, the German word for work
 ↑ So called because of they are analogous to potentials in mechanics and electromagnetism
 ↑ For example, I have seen some sources use β for expansivity and other sources use β for isothermal compressibility.