Classical Physics · Thermodynamics

The Macroscopic Synthesis of
Energy, Entropy & Equilibrium

A comprehensive, interactive exploration of the four laws, thermodynamic potentials, heat engines, phase equilibria, and real-gas behaviour.

⚖ Four Laws ∂ Potentials ⚙ Cycles 🧮 Calculators 🌡 Phase Diagrams
§ 01

Epistemological Foundations

Classical thermodynamics is the formal study of energy transformations — particularly the conversion of heat into work — and the governing principles that dictate the direction of physical processes. Developed in the 19th century through the work of Sadi Carnot, James Joule, and Rudolf Clausius, it matured into a rigorous axiomatic science that serves as the bedrock of engineering and materials science.

🔭

Rather than tracking ~10²³ individual particles, classical thermodynamics focuses on bulk observables — pressure P, volume V, temperature T — valid whenever the system's length scale greatly exceeds the molecular mean free path.

Macroscopic vs. Microscopic Descriptions

FeatureMacroscopic (Classical)Microscopic (Statistical)
Primary VariablesPressure, Volume, TemperaturePosition & velocity of every particle
Mathematical BasisAxiomatic laws & calculusProbability & quantum state distributions
System AssumptionMatter as a continuumMatter as discrete particles / quantum states
Information DensityLow — a few state variablesExtremely high — ~10²³ degrees of freedom
Engineering UtilityHigh for energy conversion & designHigh for material properties & fundamental physics

Classification of Thermodynamic Systems

🔓

Open System

Exchanges both mass and energy with surroundings. Standard model for turbines, nozzles, and pumps.

🔒

Closed System

Fixed mass; no matter crosses the boundary, but energy (heat & work) can still be exchanged. E.g. gas in a piston–cylinder.

🛡

Isolated System

Completely decoupled — exchanges neither mass nor energy with surroundings. E.g. insulated rigid tank.

System TypeMass TransferHeat TransferWork TransferExample
Open Yes Yes Yes Jet Engine, Compressor
Closed No Yes Yes Gas in Piston–Cylinder
Isolated No No No Insulated Rigid Tank
§ 02

The Four Laws of Thermodynamics

Zeroth Law

Thermal Equilibrium

If system A is in equilibrium with C, and B is in equilibrium with C, then A and B are in equilibrium with each other. This defines temperature as an objective state variable and validates thermometry.

First Law

Conservation of Energy

Energy is neither created nor destroyed. The change in internal energy equals the heat added minus the work done by the system. Heat and work are path functions; internal energy is a state function.

Second Law

Entropy & Directionality

The total entropy of an isolated system never decreases. This explains why heat flows hot → cold spontaneously and sets an upper bound on heat-engine efficiency (Carnot limit).

Third Law

Absolute Zero

The entropy of a perfect crystal approaches zero as T → 0 K. Absolute zero is unattainable by any finite sequence of processes; each cooling step requires exponentially more effort.

Historical Development

1824 — Sadi Carnot

Published Réflexions sur la puissance motrice du feu, introducing the ideal reversible heat engine and the concept of an efficiency limit.

1843–1850 — James Joule

Experimentally established the mechanical equivalent of heat (4.184 J = 1 cal), destroying the caloric theory and paving the way for the First Law.

1850–1865 — Rudolf Clausius

Formulated both the First and Second Laws; coined the word entropy (from Greek τροπή, transformation) in 1865.

1906 — Walther Nernst

Proposed the heat theorem — later refined as the Third Law — providing an absolute reference for entropy.

Entropy: Visualising Disorder

Click each box to see how molecular disorder maps onto entropy. More spread-out (disordered) configurations have higher entropy.

Low entropy — ordered crystal (S ≈ 0)
Medium entropy — liquid
High entropy — gas (click to animate)
§ 03

First Law — Energy in Depth

For a stationary closed system, where macroscopic kinetic and potential energy changes are negligible, the First Law reads:

First Law — Closed System

The infinitesimal forms distinguish between exact (state function) and inexact (path function) differentials:

Moving Boundary Work

The most common work form is expansion/compression work against a pressure force. For a quasi-equilibrium process:

Boundary Work

This integral is the area under the process curve on a P–V diagram. Different paths between the same two states yield different work values — confirming that work is a path function.

📊 Interactive P–V Diagram
Select a thermodynamic process to see how work (shaded area) changes.
Isothermal: PV = const. Work = area under hyperbola = nRT·ln(V₂/V₁).
§ 04

Second Law — Entropy & Irreversibility

Clausius Definition of Entropy (Reversible Process)
Principle of Entropy Increase
🧊→🔥

Clausius Statement

It is impossible to construct a device that operates in a cycle whose sole effect is to transfer heat from a cooler body to a hotter body.

🔋

Kelvin–Planck Statement

No device operating on a cycle can receive heat from a single reservoir and convert it entirely to work. Some heat must always be rejected.

📈

Entropy Generation

Friction, unrestrained expansion, and heat transfer across a finite ΔT all generate entropy, permanently degrading the "quality" of energy.

Boltzmann's Bridge to Statistical Mechanics

Boltzmann Entropy

Here W is the number of accessible microstates. A perfect crystal at 0 K has exactly one microstate (W = 1), giving S = kB ln 1 = 0 — the Third Law emerges naturally.

Absolute Entropy (3rd Law Reference)
§ 05

Thermodynamic Identity & Potentials

Combining the First and Second Laws for a reversible process yields the fundamental thermodynamic identity:

Fundamental Identity

For multi-component systems, the chemical potential μᵢ accounts for changes in composition:

Fundamental Identity — Multicomponent

Thermodynamic Potentials via Legendre Transforms

Each potential is optimised for a different set of natural variables, making calculations under specific experimental constraints tractable.

Internal Energy U
Natural vars: S, V — isolated systems
U
Enthalpy H
Natural vars: S, P — constant-pressure reactions, open-flow devices
H
Helmholtz Free Energy F
Natural vars: T, V — max work at constant T, V
F
Gibbs Free Energy G
Natural vars: T, P — chemistry & materials science at const T, P
G

Maxwell Relations

Schwarz's theorem (equality of mixed partials) applied to each potential yields four powerful relations connecting otherwise-unrelated measurables:

Source PotentialMaxwell RelationPhysical Utility
U Isentropic T-change linked to pressure-entropy sensitivity
H Joule–Thomson effect and throttling analysis
F Entropy–volume change via pressure–temperature coefficient
G Thermal expansion linked to entropy–pressure sensitivity
§ 06

Heat Engines & Thermodynamic Cycles

A heat engine converts thermal energy from a high-temperature source into mechanical work, rejecting waste heat to a low-temperature sink. The Carnot cycle sets the theoretical efficiency ceiling.

Carnot Efficiency
CycleProcessesApplicationKey Parameter
Carnot2 Isothermal + 2 AdiabaticTheoretical benchmarkT_H, T_C
Otto2 Isentropic + 2 IsochoricPetrol enginesCompression ratio r
Diesel2 Isentropic + 1 Isobaric + 1 IsochoricDiesel engines, generatorsCut-off ratio r_c
Brayton2 Isentropic + 2 IsobaricGas turbines, jet enginesPressure ratio r_p
Rankine2 Isentropic + 2 Isobaric (phase change)Steam power plantsBoiler pressure/temp
🌡 Carnot Efficiency Calculator
η = 1 − T_C / T_H — the maximum possible efficiency for any heat engine operating between two reservoirs.
Carnot Efficiency η
50.00%
No real engine can exceed this value.
Carnot efficiency vs. cold-reservoir temperature (T_H fixed at your input value)
🚗 Otto Cycle Efficiency
η_Otto = 1 − r^(1−γ), where r is the compression ratio and γ = C_P/C_V ≈ 1.4 for air.
Otto Cycle Efficiency
56.47%
Practical petrol engines achieve ~25–35% due to friction, heat losses, and non-ideal behaviour.
❄️ Refrigeration & Heat Pump COP
COP_ref = Q_C/W, COP_hp = Q_H/W = COP_ref + 1. Always COP_hp > COP_ref.
COP_refrigerator
4.60
Heat extracted per unit work input
COP_heat pump
5.60
Heat delivered per unit work input
§ 07

Phase Equilibria & the Gibbs Phase Rule

Phases coexist in equilibrium when the chemical potential of each component is identical in every phase:

Chemical Potential Equilibrium

The Gibbs Phase Rule tells us how many intensive variables can be freely varied while maintaining multi-phase coexistence:

Gibbs Phase Rule
Condition (C = 1)Phases PDegrees of Freedom FMeaning
Single phase (liquid)12Both T and P may vary independently
Two-phase boundary21Fixing T fixes saturation pressure P_sat
Triple point30State is uniquely fixed (single T, P)

Interactive Phase Diagram (Water)

Click anywhere on the diagram to identify the phase region and equilibrium conditions.
Schematic P–T phase diagram for a pure substance (not to scale). Critical point (water): 374°C, 220.6 bar.

Gibbs–Duhem Equation

At constant T and P, the chemical potentials in a mixture are not independent — they must satisfy:

For a binary mixture (A + B): if μ_A increases, μ_B must decrease proportionally. This provides a thermodynamic consistency check for experimental activity-coefficient data.

🔬 Phase Rule Calculator
F = C − P + 2
Degrees of Freedom F
2
Variance 2 means both T and P can be independently varied.
§ 08

Real Gases & Equations of State

The ideal gas law (PV = nRT) breaks down at high pressures and low temperatures. The Van der Waals equation adds two correction terms:

Van der Waals Equation of State
🪝

Parameter a — Pressure Correction

Accounts for attractive intermolecular forces that "pull" molecules away from the walls, reducing measured pressure below the ideal value.

📦

Parameter b — Volume Correction

Represents the "excluded volume" due to finite molecular size — the volume unavailable for molecular movement.

🌊

Critical Point Prediction

Above T_c, no distinction exists between liquid and gas. Van der Waals predicts: T_c = 8a/(27Rb), P_c = a/(27b²), V_c = 3nb.

⚗️ Van der Waals P–V Explorer
Adjust parameters and compare real vs ideal gas isotherms. Note the characteristic S-shaped curve below T_c that signals phase transition.
P–V isotherms. Blue = Van der Waals. Grey dashed = Ideal gas. CO₂ defaults: a = 0.364, b = 4.27×10⁻⁵.

Fugacity & Activity

For non-ideal systems, fugacity f replaces pressure in the chemical potential expression, preserving the ideal-gas functional form:

The fugacity coefficient φ = f/P and activity coefficient γ = a/x quantify deviation from ideality and are central to chemical plant design and biological thermodynamics modelling.

§ 09

Thermodynamic Stability & Le Chatelier

Equilibrium stability requires the entropy to be a concave function of its extensive variables (equivalently, internal energy must be convex). Violation leads to spontaneous phase separation.

Positive Heat Capacity

Adding heat increases temperature. Violation → thermal runaway.

Positive Compressibility

Increasing pressure decreases volume. Violation → mechanical instability and phase separation.

Le Chatelier–Braun Principle: Any system in stable equilibrium, when perturbed by an external influence, undergoes an internal modification that opposes that influence. This is not an independent law — it is a direct consequence of the Second Law and the concavity of entropy.

§ 10

Summary — The Four Laws

LawConceptual FocusKey EquationPhysical Significance
Zeroth Thermal Equilibrium A~B, B~C → A~C Defines temperature; enables thermometry
First Energy Conservation ΔU = Q − W Relates heat, work, and internal energy
Second Entropy & Direction ΔS_univ ≥ 0 Dictates process feasibility and efficiency limits
Third Absolute Zero S → 0 as T → 0 K Absolute entropy reference; 0 K unattainable
💡

The strength of classical thermodynamics lies in its independence from microscopic models. Whether analysing a massive power plant, a metallic alloy, or metabolic reactions within a living cell, these four laws remain the ultimate arbiter of physical feasibility.