Entropy and the Second Law of Thermodynamics

Interactive Lecture

The Second Law of Thermodynamics and Irreversibility

by Dr Arnaldo Delli Carri

Understanding Entropy

Entropy is a measure of disorder, randomness, or — most usefully for engineers — the unavailability of energy to do work. The same quantity reaches well beyond thermodynamics, into information theory and cosmology, but it is the engineering meaning this lecture develops.

Entropy is a state function that quantifies the degree of disorder in a system. In any real (irreversible) process, the total entropy of an isolated system always increases — that asymmetry is what gives thermodynamics its direction in time.

What is Entropy?

Entropy can be understood from multiple perspectives:

The statistical definition, introduced by Ludwig Boltzmann, provides deep insight:

\[S = k_B \ln(\Omega)\]

Where:

This equation is so fundamental that it's engraved on Boltzmann's tombstone!

The Second Law of Thermodynamics

The Second Law can be stated in several equivalent ways:

Clausius Statement: Heat cannot spontaneously flow from a colder body to a hotter body.

Kelvin-Planck Statement: It is impossible to construct a heat engine that operates in a cycle and produces no effect other than the absorption of heat from a reservoir and the performance of an equal amount of work.

Entropy Statement: The entropy of an isolated system never decreases; it either increases (irreversible process) or remains constant (reversible process).

\[\Delta S_{universe} \geq 0\]

Entropy Change Calculations

For a reversible process, the entropy change is defined as:

\[dS = \frac{\delta Q_{rev}}{T}\]

For a finite reversible process:

\[\Delta S = \int_1^2 \frac{\delta Q_{rev}}{T}\]

Where:

For specific processes:

Isothermal Process (constant T):

\[\Delta S = \frac{Q}{T}\]

Isobaric Process (ideal gas):

\[\Delta S = m c_p \ln\left(\frac{T_2}{T_1}\right)\]

Isochoric Process (ideal gas):

\[\Delta S = m c_v \ln\left(\frac{T_2}{T_1}\right)\]

General Process (ideal gas):

\[\Delta S = m c_v \ln\left(\frac{T_2}{T_1}\right) + m R_s \ln\left(\frac{V_2}{V_1}\right)\]

Here \(R_s\) is the specific gas constant (J/(kg·K)), not the universal constant used elsewhere on this page: \(R_s = R/M\), where \(R = 8.314\) J/(mol·K) and \(M\) is the molar mass (kg/mol).

Interactive Simulation 1: Carnot Cycle and Heat Engine

Explore the ideal reversible heat engine operating between two thermal reservoirs. The Carnot cycle represents the maximum possible efficiency for any heat engine and demonstrates fundamental principles of entropy.

600
300

The Carnot efficiency depends only on the temperatures of the hot and cold reservoirs: \(\eta_{Carnot} = 1 - \frac{T_C}{T_H}\). No real heat engine operating between these two reservoirs can exceed it.

Interactive Simulation 2: Free Expansion and Entropy Increase

Observe how a gas spontaneously expands into a vacuum, increasing entropy even though no heat is transferred. Watch the real-time entropy graph and density histogram to see the Second Law in action.

2.0
50

Entropy increases in free expansion even though \(Q = 0\) and \(W = 0\), because the number of accessible microstates grows: \(\Delta S = nR\ln(V_2/V_1)\). The gas will never spontaneously return to the left half — this irreversibility establishes the thermodynamic arrow of time.

Engineering Applications

The Second Law reaches into almost every branch of engineering — here's where entropy directly shapes design decisions:

Every real engineering process generates entropy. Minimising entropy generation is equivalent to minimising energy waste and improving efficiency — the principle behind design choices from power plants down to microprocessors.

Summary of Key Equations

Concept Equation Description
Boltzmann Entropy \(S = k_B \ln(\Omega)\) Statistical definition of entropy
Entropy Change (Reversible) \(dS = \frac{\delta Q_{rev}}{T}\) Differential entropy change
Second Law \(\Delta S_{universe} \geq 0\) Entropy never decreases in isolated system
Carnot Efficiency \(\eta_{Carnot} = 1 - \frac{T_C}{T_H}\) Maximum heat engine efficiency
Isothermal Process \(\Delta S = \frac{Q}{T}\) Entropy change at constant temperature
Isobaric (Ideal Gas) \(\Delta S = mc_p\ln(T_2/T_1)\) Constant pressure process
Isochoric (Ideal Gas) \(\Delta S = mc_v\ln(T_2/T_1)\) Constant volume process
Free Expansion \(\Delta S = nR\ln(V_2/V_1)\) Entropy increase in free expansion
Gibbs Free Energy \(G = H - TS\) Determines spontaneity at constant T, P
Heat Engine Efficiency \(\eta = \frac{W}{Q_H} = 1 - \frac{Q_C}{Q_H}\) Actual heat engine efficiency
COP (Refrigerator) \(COP_R = \frac{Q_C}{W} = \frac{Q_C}{Q_H - Q_C}\) Coefficient of Performance
Clausius Inequality \(\oint \frac{\delta Q}{T} \leq 0\) For any cyclic process

Practice Problems

Problem 1: Carnot Engine Efficiency

A Carnot heat engine operates between a hot reservoir at 800 K and a cold reservoir at 300 K. Calculate:

a) The thermal efficiency of the engine

b) If the engine absorbs 2000 J of heat from the hot reservoir per cycle, how much work does it produce?

c) How much heat is rejected to the cold reservoir?

Show Solution

Problem 2: Entropy Change in Heating

A 2 kg block of copper (cp = 385 J/(kg·K)) is heated from 20°C to 120°C at constant pressure. Calculate the entropy change of the copper block.

Show Solution

Problem 3: Entropy Generation in Heat Transfer

Two identical blocks of aluminium (mass = 1 kg each, cp = 900 J/(kg·K)) are initially at 400 K and 300 K respectively. They are brought into thermal contact in an insulated container until they reach thermal equilibrium. Calculate:

a) The final equilibrium temperature

b) The total entropy change of the system

c) Is this process reversible or irreversible?

Show Solution

Problem 4: Free Expansion of Gas

One mole of an ideal gas initially occupies 0.01 m³ at 300 K. It undergoes free expansion into an evacuated chamber, doubling its volume. The process is adiabatic. Calculate:

a) The final temperature

b) The work done by the gas

c) The entropy change

Show Solution

Knowledge Check Quiz

Question 1: Which statement correctly describes entropy?

Question 2: The Second Law of Thermodynamics states that:

Question 3: A Carnot engine operates between 600 K and 300 K. Its efficiency is:

Question 4: In a reversible adiabatic process:

Question 5: Which process generates the most entropy?

Question 6: If a heat engine has an efficiency greater than the Carnot efficiency:

Question 7: The total entropy change of the universe in an irreversible process is: