In thermodynamics, the fundamental thermodynamic relation are four fundamental equations which demonstrate how four important thermodynamic quantities depend on variables that can be controlled and measured experimentally. Thus, they are essentially equations of state, and using the fundamental equations, experimental data can be used to determine sought-after quantities like G (Gibbs free energy) or H (enthalpy). The relation is generally expressed as a microscopic change in internal energy in terms of microscopic changes in entropy, and volume for a closed system in thermal equilibrium in the following way. dU=TdS−PdV Here, U is internal energy, T is absolute temperature, S is entropy, P is pressure, and V is volume. This is only one expression of the fundamental thermodynamic relation. It may be expressed in other ways, using different variables (e.g. using thermodynamic potentials). For example, the fundamental relation may be expressed in terms of the enthalpy H as dH=TdS+VdP, in terms of the Helmholtz free energy F as dF=−SdT−PdV, and in terms of the Gibbs free energy G as dG=−SdT+VdP.
The first and second laws of thermodynamics The first law of thermodynamics states that: dU=δQ−δW where δQ and δW are infinitesimal amounts of heat supplied to the system by its surroundings and work done by the system on its surroundings, respectively. According to the second law of thermodynamics we have for a reversible process: dS=δQT Hence: δQ=TdS By substituting this into the first law, we have: dU=TdS−δW Letting δW be reversible pressure-volume work done by the system on its surroundings, δW =PdV we have: dU=TdS−PdV This equation has been derived in the case of reversible changes. However, since U, S, and V are thermodynamic state functions that depend on only the initial and final states of a thermodynamic process, the above relation holds also for non-reversible changes, if it is assumed that U depends only on S and V. In fact, if U is function only of the parameters S and V (i.e. U (S, V)) then dU can be written as dU=(∂U∂S)VdS+(∂U∂V)SdV and therefore one can define T and P as: T=(∂U∂S)V P=−(∂U∂V)S If the composition, i.e. the amounts ni of the chemical components, in a system of uniform temperature and pressure can also change, e.g. due to a chemical reaction, the fundamental thermodynamic relation generalizes to: dU=TdS−PdV +∑iμidni The μi are the chemical potentials corresponding to particles of type i. If the system has more external parameters than just the volume that can change, the fundamental thermodynamic relation generalizes to dU=TdS+∑jXjdxj+∑iμidni Here the Xj are the generalized forces corresponding to the external parameters xj. (The negative sign used with pressure is unusual and arises because pressure represents a compressive stress that tends to decrease volume. Other generalized forces tend to increase their conjugate displacements.)
Relationship to statistical mechanics The fundamental thermodynamic relation and statistical mechanical principles can be derived from one another.
… excerpt ends here. Continue reading the full article.

