🐍 Interactive Jupyter Notebook: lecture_20_second_law_intro.ipynb
📥 Download Page as .ipynb (Python Notebook) 📑 Download Blank Slides (PDF)

20. Introduction to the Second Law of Thermodynamics, Heat Engines, and Cycle Statements

Term: Spring 2026
Instructor: Mukhamad Suhermanto
Primary References:


Learning Objectives:

  1. Explain the limitations of the First Law and why physical processes exhibit an inherent directionality.
  2. Define Thermal Energy Reservoirs (TERs) and model heat engines operating in cyclic energy conversion.
  3. Formulate and interpret the Kelvin-Planck and Clausius statements of the Second Law of Thermodynamics.
  4. Prove the rigorous equivalence of the Kelvin-Planck and Clausius statements using composite cycle analysis.

20.1 Limitations of the First Law & Directionality of Nature

The First Law of Thermodynamics guarantees that energy is conserved across all physical interactions (\(\Delta E = Q - W\)). However, energy conservation by itself does not dictate whether a proposed physical process can actually take place in nature (Moran et al. 2014), (Wassgren 2025):

Key Idea: The Role of the Second Law

The Second Law of Thermodynamics establishes:

  1. The direction of spontaneous natural processes (processes proceed only in the direction of increasing total entropy).
  2. That energy has both quantity and quality (high-grade mechanical work vs. low-grade dispersed thermal energy).
  3. The theoretical upper limit on the thermal efficiency of heat engines and the performance of heat pumps and refrigerators.

20.2 Thermal Energy Reservoirs & Heat Engines

20.2.1 Thermal Energy Reservoirs (TERs)

A Thermal Energy Reservoir is an idealized thermodynamic body possessing an infinite thermal heat capacity (\(m c_p \to \infty\)) (Waitz and Spakovszky 2008), (Yan 2022). It can absorb or supply finite quantities of heat without undergoing any measurable temperature change (\(dT_R = 0\)):

20.2.2 Heat Engines and Thermal Efficiency

A heat engine is a device that operates on a thermodynamic cycle to convert thermal energy from a high-temperature source into net useful mechanical shaft work:

  1. Receives heat from a high-temperature source: \(Q_H > 0\).
  2. Converts part of this heat into useful work: \(W_{\text{net,out}} > 0\).
  3. Rejects waste heat to a low-temperature sink: \(Q_L > 0\).
  4. Operates in a cycle: \(\Delta U_{\text{cycle}} = 0\).

Applying the First Law of Thermodynamics to the heat engine cycle:

\[ W_{\text{net}} = Q_{\text{net}} = Q_H - Q_L \tag{20.1} \]

The thermal efficiency \(\eta_{\text{th}}\) is the ratio of useful work output to the thermal energy input purchased:

\[ \eta_{\text{th}} \equiv \frac{W_{\text{net}}}{Q_H} = \frac{Q_H - Q_L}{Q_H} = 1 - \frac{Q_L}{Q_H} \tag{20.2} \]

Caution: The Universal Necessity of Heat Rejection

Notice that for \(\eta_{\text{th}}\) to equal \(1.0\) (\(100\%\)), the engine would have to reject zero heat to the surroundings (\(Q_L = 0\)). As we establish below, rejecting waste heat to a low-temperature sink is mandatory for any cyclic heat engine!

# Energy Balance and Thermal Efficiency of Heat Engines using kilojoule
from kilojoule.units import Quantity

# Thermal power plant parameters
Q_dot_H = Quantity(2500.0, 'MW')       # Heat input rate from nuclear reactor
W_dot_net = Quantity(850.0, 'MW')      # Net electrical generator power output

# 1. First Law energy balance: Q_dot_net = W_dot_net
# Q_dot_H - Q_dot_L = W_dot_net
Q_dot_L = Q_dot_H - W_dot_net

# 2. Thermal efficiency
eta_th = (W_dot_net / Q_dot_H).magnitude

# 3. Cooling water demand: River water absorbs Q_dot_L with allowable Delta_T = 8 °C
c_water = Quantity(4.184, 'kJ/kg/K')
delta_T_cooling = Quantity(8.0, 'delta_degC')
m_dot_cooling = (Q_dot_L / (c_water * delta_T_cooling)).to('kg/s')

print(f"Heat Input Rate:      Q_dot_H   = {Q_dot_H.to('MW'):.1f}")
print(f"Net Shaft Power:      W_dot_net = {W_dot_net.to('MW'):.1f}")
print(f"Waste Heat Rejected:  Q_dot_L   = {Q_dot_L.to('MW'):.1f}")
print(f"Thermal Efficiency:   eta_th    = {eta_th*100:.2f}%")
print(f"Cooling River Flow:   m_dot     = {m_dot_cooling.to('kg/s'):.1f} kg/s ({m_dot_cooling.to('ton/min'):.1f} metric tons/min)")
Heat Input Rate:      Q_dot_H   = 2500.0 MW
Net Shaft Power:      W_dot_net = 850.0 MW
Waste Heat Rejected:  Q_dot_L   = 1650.0 MW
Thermal Efficiency:   eta_th    = 34.00%
Cooling River Flow:   m_dot     = 49295.4 kg/s (2957.7 ton/min)

20.3 Classical Statements of the Second Law

Two historic formulations capture the physical essence of the Second Law for cyclic devices (Moran et al. 2014), (Waitz and Spakovszky 2008):

20.3.1 The Kelvin-Planck Statement

Definition: Kelvin-Planck Statement

“It is impossible for any device that operates on a thermodynamic cycle to receive heat from a single thermal reservoir and deliver a net amount of work.”

The Kelvin-Planck statement explicitly states that no heat engine can have a thermal efficiency of 100%:

\[ \eta_{\text{th}} < 100\%, \quad Q_L > 0 \tag{20.3} \]

A cyclic heat engine must exchange heat with at least two thermal reservoirs at different temperatures (\(T_H\) and \(T_L\)).

20.3.2 The Clausius Statement

Definition: Clausius Statement

“It is impossible to construct a device that operates on a thermodynamic cycle and produces no effect other than the transfer of heat from a lower-temperature body to a higher-temperature body.”

Heat cannot spontaneously flow uphill from a cold body to a warmer body without requiring an external work input (\(W_{\text{in}} > 0\)). Refrigerators and heat pumps cannot run without power!

20.3.3 Proof of Equivalence: Kelvin-Planck \(\iff\) Clausius

Although the Kelvin-Planck statement addresses power generation and the Clausius statement addresses refrigeration, they are logically and physically identical. A violation of either statement leads directly to a violation of the other.

Part 1: Violation of Kelvin-Planck Implies Violation of Clausius

  1. Suppose a hypothetical engine \(E_{\text{KP-violator}}\) operates on a cycle, receives heat \(Q_H\) from a single reservoir at \(T_H\), and produces net work \(W = Q_H\), rejecting zero heat (\(Q_L = 0\)).
  2. Now, use this work output \(W\) to drive a standard, Clausius-compliant refrigerator \(R\) operating between low-temperature reservoir \(T_L\) and high-temperature reservoir \(T_H\). The refrigerator extracts heat \(Q_L\) from \(T_L\) and discharges heat \(Q_H' = Q_L + W\) to reservoir \(T_H\).
  3. Couple the engine and refrigerator into a single composite system. The net work transferred across the combined boundary is \(W_{\text{net}} = W - W = 0\).
  4. The net heat transferred from the low-temperature reservoir \(T_L\) is \(Q_L\). The net heat delivered to the high-temperature reservoir \(T_H\) is \(Q_H' - Q_H = (Q_L + W) - W = Q_L\).
  5. The combined device produces no effect other than transferring heat \(Q_L\) from \(T_L\) to \(T_H\) without any work input—violating the Clausius statement!

Part 2: Violation of Clausius Implies Violation of Kelvin-Planck

  1. Suppose a hypothetical refrigerator \(R_{\text{Clausius-violator}}\) transfers heat \(Q_L\) from \(T_L\) to \(T_H\) while requiring zero work (\(W = 0\)).
  2. Couple this refrigerator with a standard heat engine \(E\) that extracts \(Q_H\) from \(T_H\), produces work \(W = Q_H - Q_L\), and rejects \(Q_L\) to \(T_L\).
  3. The net heat extracted from \(T_L\) is \(Q_L - Q_L = 0\). The net heat extracted from \(T_H\) is \(Q_H - Q_L\).
  4. The composite system extracts net heat \((Q_H - Q_L)\) from a single reservoir at \(T_H\) and converts it entirely into net work \(W = Q_H - Q_L\), rejecting zero heat to any other reservoir—violating the Kelvin-Planck statement!

Thus, the Kelvin-Planck and Clausius statements are completely equivalent.

from kilojoule.units import Quantity
# Cycle Feasibility Evaluator: Checking First and Second Law Compliance
def evaluate_heat_engine(Q_H, Q_L, W_net):
    '''Evaluate whether a proposed heat engine cycle satisfies the 1st and 2nd Laws.'''
    # Check First Law: Q_H - Q_L == W_net
    first_law_satisfied = abs((Q_H - Q_L) - W_net) < 1e-4
    
    # Check Second Law (Kelvin-Planck): Q_L must be > 0 and eta < 1.0
    eta = W_net / Q_H
    second_law_satisfied = (Q_L > 0) and (eta < 1.0)
    
    print(f"Cycle: Q_H = {Q_H} kJ, Q_L = {Q_L} kJ, W_net = {W_net} kJ | eta = {eta*100:.1f}%")
    if not first_law_satisfied:
        print(" -> IMPOSSIBLE: Violates First Law of Thermodynamics (Energy not conserved)!")
    elif not second_law_satisfied:
        print(" -> IMPOSSIBLE: Violates Second Law (Kelvin-Planck statement: 100% efficiency claimed)!")
    else:
        print(" -> PHYSICALLY FEASIBLE: Satisfies First and Second Laws.")

# Test three design proposals
print("Evaluating Proposed Heat Engine Designs:")
evaluate_heat_engine(Q_H=1000, Q_L=400, W_net=600)   # Valid engine
evaluate_heat_engine(Q_H=1000, Q_L=200, W_net=900)   # Violates First Law
evaluate_heat_engine(Q_H=1000, Q_L=0,   W_net=1000)  # Violates Second Law (Kelvin-Planck)
Evaluating Proposed Heat Engine Designs:
Cycle: Q_H = 1000 kJ, Q_L = 400 kJ, W_net = 600 kJ | eta = 60.0%
 -> PHYSICALLY FEASIBLE: Satisfies First and Second Laws.
Cycle: Q_H = 1000 kJ, Q_L = 200 kJ, W_net = 900 kJ | eta = 90.0%
 -> IMPOSSIBLE: Violates First Law of Thermodynamics (Energy not conserved)!
Cycle: Q_H = 1000 kJ, Q_L = 0 kJ, W_net = 1000 kJ | eta = 100.0%
 -> IMPOSSIBLE: Violates Second Law (Kelvin-Planck statement: 100% efficiency claimed)!

Engineering Practice Problems (Self-Study Exercises)

Try each problem on paper first using the principles from this chapter, then expand the step-by-step solution to check your derivation.

Practice Problem 1 — Thermal Efficiency, Fuel Burn, and Condenser Cooling Flow of a Steam Power Plant

A steam-electric generating station produces \(\dot{W}_{\text{net}} = 620\text{ MW}\) of continuous electrical power at an overall thermal efficiency of \(\eta_{\text{th}} = 41.5\%\). Natural gas fuel releases \(49,500\text{ kJ/kg}\) in the furnace, and river cooling water absorbs the condenser heat rejection with a maximum permitted temperature rise of \(\Delta T_w = 10.0^\circ\text{C}\) (\(c_w = 4.184\text{ kJ}/(\text{kg}\cdot\text{K})\)). Determine: (a) boiler heat input \(\dot{Q}_H\) in \(\text{MW}\), (b) heat rejected \(\dot{Q}_L\) in \(\text{MW}\), (c) fuel mass flow rate \(\dot{m}_f\), and (d) required river cooling-water flow rate \(\dot{m}_w\).

🔍 Click to View Complete Step-by-Step Solution
  1. Heat Input and Condenser Rejection Rates: \[\dot{Q}_H = \frac{\dot{W}_{\text{net}}}{\eta_{\text{th}}} = \frac{620}{0.415} = 1494.0\text{ MW}\] \[\dot{Q}_L = \dot{Q}_H - \dot{W}_{\text{net}} = 1494.0 - 620 = 874.0\text{ MW}\]

  2. Fuel Consumption Rate: \[\dot{m}_f = \frac{1493976\text{ kW}}{49,500\text{ kJ/kg}} = 30.18\text{ kg/s}\]

  3. Cooling-Water Mass Flow Rate: \[\dot{m}_w = \frac{\dot{Q}_L}{c_w \Delta T_w} = \frac{873976\text{ kW}}{(4.184)(10.0)} = 20889\text{ kg/s} \; (20.89\text{ m}^3/\text{s})\] Final Result: \(\dot{Q}_H = 1494.0\text{ MW}\), \(\dot{Q}_L = 874.0\text{ MW}\), \(\dot{m}_f = 30.18\text{ kg/s}\), \(\dot{m}_w = 20889\text{ kg/s}\).


Practice Problem 2 — Kelvin–Planck Statement Audit of Claimed Heat Engine Designs

Two startups pitch thermal power modules to an engineering review board:

🔍 Click to View Complete Step-by-Step Solution
  1. Audit Concept A: Although \(\dot{W}_{\text{net}} = \dot{Q}_{\text{in}}\) (\(450\text{ kW} = 450\text{ kW}\)) satisfies the First Law (Energy Conservation), it produces net cyclic work while exchanging heat with only a single thermal reservoir (\(\dot{Q}_L = 0, \; \eta_{\text{th}} = 100\%\)). This directly violates the Kelvin–Planck statement (a Perpetual Motion Machine of the Second Kind, PMM2) and is physically impossible.
  2. Audit Concept B: First Law check gives \(\dot{W}_{\text{net}} = \dot{Q}_H - \dot{Q}_L = 1200 - 960 = 240\text{ kW}\) (\(\checkmark\)), and its efficiency is \(\eta = 240/1200 = 20.0\%\). Since it rejects positive waste heat to a cold sink (satisfying Kelvin–Planck) and sits below the Carnot ceiling (\(1 - 293.15/453.15 = 35.3\%\)), Concept B is thermodynamically feasible.
  3. Final Verdict: Concept A is impossible (violates Kelvin–Planck / PMM2); Concept B is feasible (\(\eta = 20.0\%\)).

Practice Problem 3 — Combined-Cycle Cascaded Heat Engines & Overall Efficiency Derivation

A topping gas-turbine engine (\(\eta_1 = 36.0\%\)) receives \(\dot{Q}_H = 100.0\text{ MW}\) from burning fuel and delivers all of its exhaust waste heat \(\dot{Q}_{L,1}\) directly as the heat input \(\dot{Q}_{H,2}\) to a bottoming steam heat engine (\(\eta_2 = 25.0\%\)). (a) Compute \(\dot{W}_1\), \(\dot{Q}_{L,1}\), \(\dot{W}_2\), final waste heat \(\dot{Q}_{L,2}\), and the combined-cycle efficiency \(\eta_{\text{overall}}\). (b) Prove symbolically that \(\eta_{\text{overall}} = \eta_1 + \eta_2 - \eta_1 \eta_2\) (not \(\eta_1 + \eta_2\)!).

🔍 Click to View Complete Step-by-Step Solution
  1. Stage-by-Stage Energy Accounting: \[\dot{W}_1 = 0.36(100) = 36.0\text{ MW}, \qquad \dot{Q}_{L,1} = \dot{Q}_{H,2} = 100 - 36.0 = 64.0\text{ MW}\] \[\dot{W}_2 = 0.25(64.0) = 16.0\text{ MW}, \qquad \dot{Q}_{L,2} = 64.0 - 16.0 = 48.0\text{ MW}\]

  2. Combined Efficiency: Total net work is \(\dot{W}_{\text{tot}} = 36.0 + 16.0 = 52.0\text{ MW}\): \[\eta_{\text{overall}} = \frac{52.0}{100.0} = 0.520 \; (52.0\%)\]

  3. Symbolic Proof: Since \(\dot{W}_2 = \eta_2 \dot{Q}_{H,2} = \eta_2(1 - \eta_1)\dot{Q}_H\): \[\eta_{\text{overall}} = \frac{\dot{W}_1 + \dot{W}_2}{\dot{Q}_H} = \eta_1 + \eta_2(1 - \eta_1) = \mathbf{\eta_1 + \eta_2 - \eta_1 \eta_2}\] Check: \(0.36 + 0.25 - (0.36)(0.25) = 0.520\). Final Result: \(\eta_{\text{overall}} = 52.0\%\), \(\dot{W}_{\text{tot}} = 52.0\text{ MW}\).


Practice Problem 4 — Solar Dish Collector Area & Thermal Rejection for a Concentrated Power Unit

A concentrated solar-thermal parabolic dish plant generates \(\dot{W}_{\text{net}} = 120\text{ kW}\) under direct solar irradiance \(G = 880\text{ W/m}^2\). The optical receiver captures \(72\%\) of incident solar radiation into thermal heat \(\dot{Q}_H\), which drives a heat engine operating at \(\eta_{\text{th}} = 35\%\). Compute the engine heat input \(\dot{Q}_H\), waste heat rejected \(\dot{Q}_L\), overall solar-to-electric efficiency, and total mirror aperture area \(A_{\text{col}}\) in \(\text{m}^2\).

🔍 Click to View Complete Step-by-Step Solution
  1. Heat Engine Energy Balance (\(\eta_{\text{th}} = 0.35\)): \[\dot{Q}_H = \frac{120}{0.35} = 342.9\text{ kW}, \qquad \dot{Q}_L = 342.9 - 120 = 222.9\text{ kW}\]

  2. Solar Collector Optical Requirement (\(\eta_{\text{col}} = 0.72\)): \[\dot{Q}_{\text{solar}} = \frac{\dot{Q}_H}{0.72} = \frac{342.9}{0.72} = 476.2\text{ kW}, \qquad \eta_{\text{overall}} = (0.72)(0.35) = 25.2\%\]

  3. Required Mirror Area (\(A_{\text{col}} = \dot{Q}_{\text{solar}} / G\)): \[A_{\text{col}} = \frac{476190\text{ W}}{880\text{ W/m}^2} = 541.1\text{ m}^2\] Final Result: \(\dot{Q}_H = 342.9\text{ kW}\), \(\dot{Q}_L = 222.9\text{ kW}\), \(\eta_{\text{overall}} = 25.2\%\), \(A_{\text{col}} = 541.1\text{ m}^2\).

Summary & Key Takeaways


References, Suggested Reading & Video Lectures

Moran, Michael J., Howard N. Shapiro, Daisie D. Boettner, and Margaret B. Bailey. 2014. Fundamentals of Engineering Thermodynamics. 8th ed. Hoboken, NJ: John Wiley & Sons.
Waitz, Ian A., and Zoltan S. Spakovszky. 2008. 16.unified: Thermodynamics and Propulsion. Cambridge, MA: MIT OpenCourseWare, Massachusetts Institute of Technology.
Wassgren, Carl. 2021. Thermodynamics I (ME 200) Video Lecture Series. School of Mechanical Engineering, Purdue University. https://www.youtube.com/@cw2306/playlists.
———. 2025. Notes on Thermodynamics, Fluid Mechanics, and Gas Dynamics. West Lafayette, IN: School of Mechanical Engineering, Purdue University. https://engineering.purdue.edu/~wassgren/notes/NotesOnThermodynamicsFluidMechanicsAndGasDynamics_Wassgren.pdf.
Yan, Claire Yu. 2022. Introduction to Engineering Thermodynamics. BCcampus Open Education. https://open.umn.edu/opentextbooks/textbooks/introduction-to-engineering-thermodynamics.