Reference topics: MIT 5.60 · independent study notes, not affiliated

Thermodynamics

First and second laws, entropy, thermodynamic cycles, and applications to energy systems.

5Lectures
1Assignments
1Exams
42hDuration
1

Introduction and the First Law

What is Thermodynamics? Thermodynamics is the study of energy: how it's stored, transferred, and converted. It began with steam engines in the 1800s and now underpins everything from power plants...

⏱ 50 min read

What is Thermodynamics?

Thermodynamics is the study of energy: how it's stored, transferred, and converted. It began with steam engines in the 1800s and now underpins everything from power plants to refrigerators to biology.

Systems and Surroundings

A system is what we're studying (a gas in a cylinder, a chemical reactor, a biological cell). The surroundings are everything else. The boundary separates them.

Systems are:

  • Open: matter can cross the boundary (a pump, a turbine)
  • Closed: matter cannot cross, but energy can (a piston-cylinder)
  • Isolated: neither matter nor energy crosses (an ideal thermos)

State Variables

The state of a system is described by properties like:

  • Temperature T (K)
  • Pressure P (Pa, atm, bar)
  • Volume V (m³)
  • Internal energy U (J)
  • Enthalpy H = U + PV (J)
  • Entropy S (J/K)

These are state functions — they depend only on the current state, not on how the system got there.

Path Functions

Heat Q and work W are path functions — their values depend on the specific process. That's why we write δQ and δW (inexact differentials) rather than dQ and dW.

The First Law

Energy is conserved:

ΔU = Q - W

where:

  • ΔU = change in internal energy
  • Q = heat added to the system (positive if added)
  • W = work done by the system (positive if done by the system)

This is the thermodynamic version of energy conservation. You cannot create or destroy energy — only convert it.

Sign Convention

Two conventions exist. We use:

  • Q > 0: heat added to system
  • W > 0: work done BY system
  • ΔU > 0: internal energy increases

Alternative (chemistry): W > 0 means work done ON system. Be careful when reading textbooks.

Work in Various Processes

Isochoric (constant V): W = 0 (no volume change)

Isobaric (constant P): W = P × ΔV

Isothermal (constant T, ideal gas): W = nRT × ln(V₂/V₁)

Adiabatic (no heat exchange, Q = 0): W = -ΔU

Heat Capacity

Cv = (∂U/∂T)_V (constant volume)
Cp = (∂H/∂T)_P (constant pressure)

For an ideal gas:

Cp - Cv = R

The ratio γ = Cp/Cv is 5/3 for monatomic gases, 7/5 for diatomic gases.

Example: Gas Expansion

A gas expands from V₁ = 1 L to V₂ = 3 L against a constant external pressure P_ext = 2 atm. How much work is done?

W = P_ext × ΔV = 2 atm × (3 - 1) L = 4 L·atm = 405 J

The gas does 405 J of work on the surroundings. If the process is adiabatic (Q = 0), the internal energy drops by 405 J — the gas cools.

Enthalpy

For constant-pressure processes (most chemical reactions), it's convenient to use enthalpy:

H = U + PV

ΔH = Q_p (heat at constant pressure)

Combustion, phase changes, and most chemical reactions happen at constant pressure. Enthalpy is the natural variable.

Key Takeaways

  • First law: energy is conserved: ΔU = Q - W
  • State functions depend only on current state
  • Path functions (Q, W) depend on the process
  • Work = area under P-V diagram
  • Enthalpy is convenient for constant-P processes
  • Heat capacity relates temperature change to heat
2

The Second Law and Entropy

Why We Need a Second Law The first law says energy is conserved. But it doesn't tell us which processes happen. A cup of hot coffee never spontaneously heats up by absorbing heat from the room —...

⏱ 50 min read

Why We Need a Second Law

The first law says energy is conserved. But it doesn't tell us which processes happen. A cup of hot coffee never spontaneously heats up by absorbing heat from the room — even though that would conserve energy. The second law tells us why.

Spontaneous Processes

Processes have a direction:

  • Heat flows from hot to cold
  • Gas expands to fill a vacuum
  • Salt dissolves in water
  • Iron rusts in air

The reverse never happens spontaneously, even though it conserves energy.

Entropy

Entropy S is a measure of the number of ways a system can be arranged — its "disorder" or, more precisely, the number of microstates consistent with the macrostate.

Boltzmann's equation:

S = k_B × ln(Ω)

where Ω is the number of microstates.

Units: J/K.

The Second Law

For any spontaneous process in an isolated system:

ΔS ≥ 0

Entropy never decreases in an isolated system. The universe tends toward disorder.

For a system + surroundings (non-isolated):

ΔS_universe = ΔS_system + ΔS_surroundings ≥ 0

Entropy Change Calculations

Reversible isothermal process:

ΔS = Q_rev / T

Heating or cooling at constant pressure:

ΔS = ∫ Cp / T dT

For a constant Cp: ΔS = Cp × ln(T₂/T₁)

Ideal gas expansion:

ΔS = nR × ln(V₂/V₁)

The Carnot Cycle

The most efficient heat engine possible operates between temperatures T_H (hot) and T_C (cold):

η_Carnot = 1 - T_C / T_H

This is the theoretical maximum. No real engine can beat it.

For a heat pump (heating):

COP_heating = T_H / (T_H - T_C)

For a refrigerator (cooling):

COP_cooling = T_C / (T_H - T_C)

Real Engines

Real engines (gas turbines, steam turbines, internal combustion) have efficiencies well below Carnot due to:

  • Friction
  • Heat losses
  • Irreversible combustion
  • Finite-rate heat transfer

Typical:

  • Coal power plant: 33-40%
  • Combined cycle gas: 55-62%
  • Internal combustion engine: 25-35%
  • Solar cell: 15-25%

Entropy and Information

Shannon's information entropy:

H = -Σ p_i × log₂(p_i)

This has the same mathematical form as thermodynamic entropy. The connection is deep: information is physical, and erasing information costs energy (Landauer's principle: kT ln 2 per bit).

Statistical View

The second law is statistical. For a small number of particles, entropy can decrease briefly. For 10²³ particles, entropy decrease is astronomically unlikely.

This is why the second law is so reliable in practice — it's true with overwhelming probability, not as an absolute law.

Key Takeaways

  • Second law: entropy of an isolated system never decreases
  • Entropy measures number of microstates (S = k ln Ω)
  • Carnot efficiency sets the upper bound for heat engines
  • Real engines are far below Carnot due to irreversibility
  • Entropy connects to information theory
  • Second law is statistical, not absolute
3

Thermodynamic Cycles

What is a Cycle? A thermodynamic cycle returns the working fluid to its initial state. Net work is the area enclosed by the cycle on a P-V diagram. W_net = ∮ P dV Engines and refrigerators operate on...

⏱ 50 min read

What is a Cycle?

A thermodynamic cycle returns the working fluid to its initial state. Net work is the area enclosed by the cycle on a P-V diagram.

W_net = ∮ P dV

Engines and refrigerators operate on cycles.

The Rankine Cycle (Steam Power Plants)

The standard cycle for steam power generation:

  1. Pump: compress liquid water from low to high pressure
  2. Boiler: heat water to steam at high P and T
  3. Turbine: steam expands, producing work
  4. Condenser: steam condenses back to liquid

Efficiency: 35-45% for typical plants. Higher T_H and lower T_C improve efficiency.

The Brayton Cycle (Gas Turbines)

The standard cycle for jet engines and gas turbines:

  1. Compressor: raises air pressure
  2. Combustor: adds heat by burning fuel
  3. Turbine: expands hot gas, producing work
  4. Exhaust: hot gas exits

Efficiency: 30-40% simple cycle, 55-62% in combined cycle (with a Rankine bottoming cycle).

The Otto Cycle (Gasoline Engines)

Used in spark-ignition engines:

  1. Intake: air-fuel mixture enters
  2. Compression: piston compresses mixture
  3. Combustion: spark ignites, pressure spikes
  4. Expansion: hot gas pushes piston
  5. Exhaust: gases leave

Efficiency: 25-35%, limited by knock (premature ignition) and heat losses.

The Diesel Cycle

Compression-ignition engines:

  • Air compressed to 15-20:1 (vs 8-10:1 for gasoline)
  • Fuel injected at high pressure, auto-ignites
  • Higher efficiency than Otto (35-45%)

The high compression ratio is why diesels are more efficient.

The Carnot Cycle

The most efficient cycle possible:

  1. Isothermal expansion (T_H)
  2. Adiabatic expansion (T_H → T_C)
  3. Isothermal compression (T_C)
  4. Adiabatic compression (T_C → T_H)

Efficiency: 1 - T_C/T_H.

Real cycles differ from Carnot in that they're not reversible. Irreversibilities (finite-rate heat transfer, friction) reduce efficiency.

Refrigeration Cycles

The vapor-compression cycle is used in air conditioners and refrigerators:

  1. Compressor: raises refrigerant pressure (and temperature)
  2. Condenser: rejects heat to the environment, refrigerant condenses
  3. Expansion valve: pressure drops suddenly, refrigerant cools
  4. Evaporator: absorbs heat from the cold space

COP: 2-4 typical. Higher with better insulation and smaller temperature lift.

Combined Cycles

Stack two cycles to use heat rejected by the top cycle as input to the bottom cycle:

Gas turbine (Brayton) → waste heat → steam turbine (Rankine)

Efficiency: 55-62%, the best in commercial power generation.

Absorption Refrigeration

Instead of a mechanical compressor, use a heat source to drive the cycle. Used in RV fridges (propane) and industrial chillers (waste heat).

Lower efficiency than vapor compression, but no moving parts and can run on waste heat.

Key Takeaways

  • Cycles convert heat to work (or work to heat)
  • Carnot sets the upper bound on efficiency
  • Rankine for steam, Brayton for gas, Otto/Diesel for combustion
  • Combined cycles achieve the highest real efficiencies
  • Refrigeration moves heat against the gradient using work
  • Efficiency improves with higher T_H and lower T_C
4

Phase Equilibria and Mixtures

Phases of Matter Materials exist in phases: solid, liquid, gas, and sometimes plasma. Which phase is stable depends on temperature and pressure. A phase diagram shows the stable phase at each (T, P)....

⏱ 50 min read

Phases of Matter

Materials exist in phases: solid, liquid, gas, and sometimes plasma. Which phase is stable depends on temperature and pressure.

A phase diagram shows the stable phase at each (T, P).

The Phase Diagram of Water

Key features:

  • Triple point: (0.01°C, 0.006 atm) — all three phases coexist
  • Critical point: (374°C, 218 atm) — liquid and gas become indistinguishable
  • Melting line: solid-liquid boundary
  • Sublimation line: solid-gas boundary
  • Vaporization line: liquid-gas boundary

Above the critical point, water is a supercritical fluid — used industrially for extraction and as a green solvent.

Phase Transitions

  • Melting: solid → liquid (latent heat of fusion, 334 kJ/kg for water)
  • Vaporization: liquid → gas (latent heat of vaporization, 2257 kJ/kg for water at 100°C)
  • Sublimation: solid → gas directly

Latent heats are large. Boiling 1 kg of water takes 7× more energy than heating it from 0 to 100°C.

Clausius-Clapeyron Equation

Relates vapor pressure to temperature:

dP/dT = L / (T × Δv)

where L is the latent heat and Δv is the volume change.

Integrating (for small ranges):

ln(P₂/P₁) = -(L/R) × (1/T₂ - 1/T₁)

This is how pressure cookers work: higher pressure → higher boiling point → faster cooking.

Humidity and Psychrometrics

For air-water mixtures:

  • Relative humidity (RH): ratio of actual vapor pressure to saturation vapor pressure
  • Absolute humidity: mass of water per mass of dry air
  • Dew point: temperature at which condensation begins

If you cool air below its dew point, water condenses. This is why glasses sweat on humid days.

HVAC engineers use psychrometric charts to design air conditioning and drying systems.

Mixtures and Partial Pressure

For a mixture of ideal gases:

Dalton's law:

P_total = Σ P_i

Each gas has its own partial pressure P_i = y_i × P_total, where y_i is the mole fraction.

Raoult's law for liquid mixtures:

P_i = x_i × P_i_sat

The vapor pressure of each component is proportional to its mole fraction in the liquid.

Henry's law for dissolved gases:

P_i = k_H × x_i

Used for solubility of gases in liquids (e.g., CO₂ in water — carbonated drinks).

Distillation

Separation by differences in volatility. Used everywhere:

  • Refineries (crude oil → gasoline, diesel, jet fuel)
  • Chemical plants (purify solvents)
  • Whiskey production (separate ethanol)

Fractional distillation uses a column with many stages, each enriching the vapor in the more volatile component.

Key Takeaways

  • Phase diagrams show stable phases at each (T, P)
  • Latent heats are large — phase changes dominate energy balances
  • Clausius-Clapeyron relates vapor pressure to temperature
  • Humidity is a key variable in HVAC and drying
  • Dalton, Raoult, Henry: the three laws for mixtures
  • Distillation separates by volatility
5

Heat Transfer Modes

Three Modes of Heat Transfer Heat can move by: 1. Conduction: through a solid or stationary fluid 2. Convection: via a moving fluid 3. Radiation: electromagnetic waves Real systems often have al...

⏱ 50 min read

Three Modes of Heat Transfer

Heat can move by:

  1. Conduction: through a solid or stationary fluid
  2. Convection: via a moving fluid
  3. Radiation: electromagnetic waves

Real systems often have all three.

Conduction — Fourier's Law

q = -k × A × dT/dx

where:

  • q = heat flow rate (W)
  • k = thermal conductivity (W/m·K)
  • A = area (m²)
  • dT/dx = temperature gradient

For a plane wall of thickness L with T₁ on one side and T₂ on the other:

q = k × A × (T₁ - T₂) / L

The thermal resistance is:

R = L / (k × A)

This lets us use electrical circuit analogies: resistances in series add.

Thermal Conductivity

| Material | k (W/m·K) |
|----------|-----------|
| Air | 0.026 |
| Water | 0.6 |
| Wood | 0.15 |
| Glass | 1.0 |
| Steel | 50 |
| Copper | 400 |
| Diamond | 2000 |

Metals conduct well (free electrons), gases poorly (few molecules). This is why vacuum flasks work.

Convection — Newton's Law of Cooling

q = h × A × (T_surface - T_fluid)

where h is the convection coefficient (W/m²·K):

  • Natural convection (air): h = 5-25
  • Forced convection (air): h = 25-250
  • Boiling water: h = 3,000-100,000

Forced convection is much better than natural — this is why computers have fans.

Radiation — Stefan-Boltzmann Law

q = ε × σ × A × (T_s⁴ - T_env⁴)

where:

  • ε = emissivity (0 to 1)
  • σ = 5.67 × 10⁻⁸ W/m²·K⁴ (Stefan-Boltzmann constant)

Radiative heat transfer is significant at high temperatures (T⁴ dependence). At room temperature, radiation is usually small compared to convection, but at 1000°C it dominates.

Combined Heat Transfer

For a wall with convection on both sides:

q = (T_hot - T_cold) / R_total

where R_total = R_conv1 + R_cond + R_conv2.

Each resistance:
R_conv = 1 / (h × A)
R_cond = L / (k × A)

This is the standard approach for building insulation, heat exchangers, and electronics cooling.

Thermal Resistance Example

A CPU generates 65 W. The heatsink has R_sa = 0.3 K/W (sink-to-air), and the thermal paste has R_cs = 0.1 K/W. Ambient is 25°C.

Case temperature: T_case = T_ambient + P × (R_sa + R_cs) = 25 + 65 × 0.4 = 51°C

Adequate cooling. If R_total were 0.8, we'd hit 77°C — too close to the limit.

Heat Exchangers

Devices that transfer heat between two fluids without mixing them:

  • Parallel flow: both fluids flow in the same direction. Temp difference decreases along the length. Limited performance.
  • Counterflow: fluids flow in opposite directions. Higher effectiveness. Standard for most applications.

Log Mean Temperature Difference (LMTD):

Q = U × A × LMTD

where U is the overall heat transfer coefficient (1/R_total).

Key Takeaways

  • Three modes: conduction, convection, radiation
  • Conduction: Fourier's law q = -kA dT/dx
  • Convection: Newton's cooling q = hA(Ts - T∞)
  • Radiation: Stefan-Boltzmann q = εσA(Ts⁴ - T∞⁴)
  • Thermal resistance lets us use circuit analogies
  • Heat exchangers use counterflow for efficiency
  • Radiation dominates at high temperatures

📝 Problem Set 1: First Law, Second Law, Cycles

Q1. 1 kg of air is heated at constant volume from 300K to 500K. Find the heat added (Cv = 0.718 kJ/kg·K).

Show Solution

Q = 1 × 0.718 × 200 = 143.6 kJ.

Q2. A Carnot engine operates between 500°C and 30°C. What is its maximum efficiency?

Show Solution

T_H = 773K, T_C = 303K. η = 1 - 303/773 = 0.608 = 60.8%.

Q3. An ideal gas expands isothermally at 400K from 1L to 5L. Find the work done on 1 mole of gas.

Show Solution

W = 1 × 8.314 × 400 × ln(5) = 3325.6 × 1.609 = 5353 J ≈ 5.35 kJ.

🎯 Midterm 1: First Law, Cycles, Entropy

Q1. A steam power plant operates between 600°C and 40°C with efficiency 40%. Compare to Carnot efficiency.

Show Solution

Carnot: η_C = 1 - (313/873) = 0.641 = 64.1%. Actual: 40%. Ratio = 40/64.1 = 0.624. A typical real power plant achieves ~60% of Carnot.

Q2. Calculate entropy change when 1 kg of water at 20°C is heated to 80°C (Cp = 4.18 kJ/kg·K).

Show Solution

ΔS = m·Cp·ln(T2/T1) = 1 × 4.18 × ln(353/293) = 4.18 × 0.186 = 0.778 kJ/K.

Q3. A refrigerator maintains 4°C in a 25°C room with COP = 3. How much work does it consume to remove 1 kJ of heat from the cold space?

Show Solution

COP = Q_C / W. W = Q_C / COP = 1/3 = 0.333 kJ = 333 J.