Derivation of the Fundamental Equations of Thermodynamics
Thermodynamics is the science of energy transformation, governing the intricate relationships between heat, work, and the physical states of matter. To move beyond qualitative descriptions and achieve precise quantitative analysis, thermodynamics relies on a rigorous mathematical framework. The primary objective of this framework is to establish a bridge between state functions—properties that depend only on the current condition of a system—and the measurable variables we can observe in a laboratory, such as pressure ($P$), volume ($V$), and temperature ($T$).
The derivation of the fundamental equations of thermodynamics is not an arbitrary mathematical exercise. Instead, it is a logical progression rooted in the two most profound principles of the universe: the First and Second Laws of Thermodynamics.
The Mathematical Foundations: The First and Second Laws
Before deriving the complex relations used in engineering and chemistry, we must establish the differential forms of the two core laws.
1. The First Law: Conservation of Energy
The First Law of Thermodynamics is essentially the principle of energy conservation applied to thermal systems. For a closed system, the change in internal energy ($dU$) is defined by the balance between the heat added to the system ($\delta Q$) and the work performed by the system ($\delta W$):
$$dU = \delta Q - \delta W$$
A critical distinction must be made here: $U$ is a state function, meaning its differential $dU$ is an exact differential. Its value depends solely on the initial and final states. Conversely, $\delta Q$ and $\delta W$ are path functions (inexact differentials); their values depend on the specific process or "path" taken to move from one state to another.
2. The Second Law: The Concept of Entropy
While the First Law accounts for the quantity of energy, the Second Law introduces the concept of its quality and directionality through entropy ($S$). For a reversible process, the relationship between heat transfer and temperature is expressed as:
$$\delta Q_{rev} = T dS$$
This equation is transformative. It allows us to convert the path-dependent quantity $\delta Q$ into a state-dependent quantity $S$, provided the process is reversible.
The Fundamental Thermodynamic Relation
By synthesizing these two laws, we arrive at the "master equation" of thermodynamics. For a reversible process, we substitute the expression for $\delta Q_{rev}$ and the work term for a simple expansion ($\delta W_{rev} = P dV$) into the First Law:
$$dU = T dS - P dV$$
This is known as the Fundamental Thermodynamic Relation. It reveals a profound truth: the internal energy $U$ of a system is a function of its entropy and volume, expressed as $U = U(S, V)$. From this single expression, all other thermodynamic properties can be derived through mathematical transformations.
Thermodynamic Potentials and Legendre Transformations
In practical applications, controlling entropy ($S$) is nearly impossible. Engineers and chemists typically control temperature ($T$) and pressure ($P$) instead. To accommodate these experimental realities, we use Legendre transformations to switch the independent variables of the system, creating different "thermodynamic potentials."
1. Enthalpy ($H$)
Enthalpy is the preferred potential for processes occurring at constant pressure (isobaric processes), such as most chemical reactions in an open container. It is defined as:
$$H = U + PV$$
Taking the total differential:
$$dH = dU + P dV + V dP$$
Substituting the fundamental relation ($dU = T dS - P dV$) into this equation, the $P dV$ terms cancel out, leaving:
$$dH = T dS + V dP$$
This shows that enthalpy is a function of entropy and pressure, $H = H(S, P)$.
2. Helmholtz Free Energy ($A$)
The Helmholtz free energy is essential for systems held at constant temperature and volume (isochoric processes). It is defined as:
$$A = U - TS$$
Differentiating gives:
$$dA = dU - T dS - S dT$$
Substituting $dU$, we obtain:
$$dA = -S dT - P dV$$
Thus, $A$ is a function of temperature and volume, $A = A(T, V)$.
3. Gibbs Free Energy ($G$)
Perhaps the most widely used potential in science, the Gibbs free energy is the key to understanding processes at constant temperature and pressure (isobaric-isothermal processes). It is defined as:
$$G = H - TS$$
Its differential form is:
$$dG = dH - T dS - S dT$$
Substituting the expression for $dH$, we get:
$$dG = V dP - S dT$$
This establishes $G$ as a function of pressure and temperature, $G = G(P, T)$.
Maxwell Relations: Connecting the Measurable to the Unmeasurable
The mathematical elegance of these derivations culminates in the Maxwell Relations. Because all the thermodynamic potentials ($U, H, A, G$) are state functions, their differentials are exact. According to Clairaut's Theorem, the order of partial differentiation does not matter. This allows us to derive relationships between different physical properties.
For example, starting from the Gibbs free energy ($dG = V dP - S dT$), the equality of mixed partial derivatives implies:
$$\left( \frac{\partial V}{\partial T} \right)_P = -\left( \frac{\partial S}{\partial P} \right)_T$$
The engineering significance of this cannot be overstated. The term on the left—the change in volume with respect to temperature at constant pressure—is a measurable quantity related to thermal expansion. The term on the right—the change in entropy with respect to pressure—is extremely difficult to measure directly. Maxwell relations allow us to calculate these "invisible" properties using only "visible" ones.
Summary and Practical Context
The derivation of these fundamental equations provides a complete logical architecture for understanding matter and energy. This framework serves various specialized fields in distinct ways:
- In Engineering Thermodynamics, these equations define the efficiency limits of power cycles, such as the Carnot or Rankine cycles, which drive everything from car engines to power plants.
- In Chemical Thermodynamics, the minimization of Gibbs free energy serves as the ultimate criterion for determining whether a chemical reaction or a phase change (like ice melting into water) will occur spontaneously.
- Distinction from Transport Phenomena: It is important to note that while thermodynamics describes the equilibrium states and the direction of change, fields like heat transfer or fluid dynamics focus on the rates at which energy and mass move through space and time.
By mastering these derivations, one gains more than just a set of formulas; one gains the ability to predict the behavior of complex systems through the fundamental laws that govern the physical world.