HL only The Particulate Nature of Matter BETA B.4

Thermodynamics

This topic explores the fundamental laws of thermodynamics, analysing how thermal energy is converted into work via cyclic processes and how entropy governs the direction of spontaneous energy transfer.

Part of IB Physics (2025-2030 syllabus) — Standard and Higher Level.

Key points

  • The First Law of Thermodynamics is a statement of conservation of energy: the heat energy added to a system (QQ) equals the change in its internal energy (ΔU\Delta U) plus the work done by the system (WW).
  • For an ideal gas, internal energy depends solely on temperature; therefore, any process where temperature remains constant (isothermal) results in zero change in internal energy (ΔU=0\Delta U = 0).
  • Thermodynamic changes are represented on pressure-volume (P-VP\text{-}V) diagrams, where the work done during any process is equal to the area under the process curve.
  • In an isovolumetric process the volume is fixed, so the gas does no work (W=0W = 0) and the first law reduces to Q=ΔUQ = \Delta U: all heat added goes directly into internal energy.
  • The Second Law of Thermodynamics states that the total entropy of an isolated system always increases over time, dictating that heat cannot spontaneously flow from a colder body to a hotter body.
  • A heat engine operates in a closed cycle, taking in heat (QHQ_H) from a hot reservoir, performing mechanical work (WW), and rejecting waste heat (QCQ_C) to a cold reservoir.
  • The Carnot cycle represents the absolute upper limit of efficiency for any heat engine operating between two temperatures, consisting entirely of reversible isothermal and adiabatic steps.

Subtopic by subtopic

The first law of thermodynamics

The first law of thermodynamics is the principle of energy conservation applied to a gas, given by:

Q=ΔU+WQ = \Delta U + W

where QQ is the thermal energy added to the gas, ΔU\Delta U is the change in its internal energy and WW is the work done by the gas.

The signs carry the physics:

  • Q>0Q > 0 when heat flows in
  • W>0W > 0 when the gas expands and pushes on its surroundings
  • ΔU>0\Delta U > 0 when the temperature rises

For an ideal gas the internal energy is purely the random kinetic energy of the molecules, so ΔU\Delta U depends only on the temperature change. For a fixed amount of monatomic ideal gas:

ΔU=32nRΔT=32NkBΔT\Delta U = \frac{3}{2} n R \Delta T = \frac{3}{2} N k_B \Delta T

A bicycle pump shows the law in action: pushing the piston in quickly does work on the trapped air (W<0W < 0) before much heat can escape, so ΔU\Delta U is positive and the barrel becomes noticeably warm.

You must be able to assign the correct sign to each term from a written description, rearrange the law to find any one quantity, and link the sign of ΔU\Delta U to whether the gas heats up or cools down.

Thermodynamic processes (isobaric, isothermal, adiabatic, isovolumetric)

IB problems use four standard processes, each defined by what stays constant and each drawn as a different curve on a P-VP\text{-}V diagram. In every case the work done equals the area under the curve.

  • Isobaric (constant pressure): a horizontal line, with W=PΔVW = P\Delta V.
  • Isovolumetric (constant volume): a vertical line; zero area means W=0W = 0, so Q=ΔUQ = \Delta U.
  • Isothermal (constant temperature): the curve follows PV=constantPV = \text{constant}; since ΔU=0\Delta U = 0 for an ideal gas, all heat absorbed becomes work, Q=WQ = W.
  • Adiabatic (Q=0Q = 0): no heat is exchanged, so ΔU=W\Delta U = -W; for a monatomic ideal gas the curve is steeper than any isotherm through the same point.

In an adiabatic compression the gas temperature rises even though no heat is added. Microscopically, gas molecules collide elastically with the inward-moving piston and rebound with a higher speed, gaining kinetic energy. Because the internal energy of an ideal gas is solely the sum of its molecular kinetic energies, this work done on the gas appears directly as a rise in temperature.

You must be able to identify each process from its curve, apply the first law to it, and carry out adiabatic calculations using the curve a monatomic ideal gas obeys:

PV5/3=constantPV^{5/3} = \text{constant}

Entropy and the second law of thermodynamics

Entropy measures how spread out the energy and particles of a system are. Counting arrangements makes this precise: if a macrostate can be produced by Ω\Omega different microstates, its entropy is:

S=kBlnΩS = k_B \ln \Omega

States that can occur in more ways have higher entropy, which is why gases mix and hot objects share their energy: the evened-out arrangements vastly outnumber the ordered ones.

For thermal energy ΔQ\Delta Q transferred at constant absolute temperature TT, the entropy change is:

ΔS=ΔQT\Delta S = \frac{\Delta Q}{T}

The same energy transfer counts for more at a low temperature, and this is the key to the second law of thermodynamics: in any real (irreversible) process the total entropy of a system plus its surroundings increases. Heat therefore flows spontaneously from hot to cold, because the cold body gains more entropy than the hot body loses, and never the reverse on its own.

Local decreases are allowed. A freezer turns water into highly ordered ice (ΔS<0\Delta S < 0 for the water), but the heat it pumps into the kitchen raises the entropy of the surroundings by more, so ΔStotal>0\Delta S_{\text{total}} > 0.

You must be able to calculate entropy changes for both a system and its surroundings, predict the sign of ΔS\Delta S, and explain in entropy terms why a process is irreversible.

Heat engines and efficiency

A heat engine is any device that runs a gas around a repeating cycle to convert thermal energy into useful mechanical work. In each cycle it absorbs heat QHQ_H from a hot reservoir, delivers net work WW, and rejects waste heat QCQ_C to a cold reservoir.

Because the gas returns to its starting state, ΔU=0\Delta U = 0 over a complete cycle and conservation of energy gives:

QH=W+QCQ_H = W + Q_C

Efficiency compares useful output with energy input:

η=WQH=1QCQH\eta = \frac{W}{Q_H} = 1 - \frac{Q_C}{Q_H}

The second law forbids QC=0Q_C = 0: no cyclic engine can convert all of its heat input into work, so η<1\eta < 1 always. A petrol car engine, with hot combustion gases as its hot reservoir and the exhaust and radiator as its cold one, typically manages η0.3\eta \approx 0.3; the remaining 70%70\% of the fuel's energy leaves as waste heat.

On a P-VP\text{-}V diagram a cycle is a closed loop, and the area enclosed equals the net work per cycle. A clockwise loop is an engine (net work done by the gas); a counter-clockwise loop is a refrigerator or heat pump (net work done on the gas).

You must be able to track QHQ_H, WW and QCQ_C through a cycle, calculate efficiencies, and read net work from loop areas.

The Carnot cycle

The Carnot cycle is the idealized engine cycle that sets the efficiency ceiling for any engine working between the same two temperatures. It has four reversible steps:

  • an isothermal expansion at ThT_h during which the gas absorbs QHQ_H
  • an adiabatic expansion that cools the gas to TcT_c
  • an isothermal compression at TcT_c that rejects QCQ_C
  • an adiabatic compression that returns the gas to its starting state

Its efficiency depends only on the reservoir temperatures in kelvin:

ηCarnot=1TcTh\eta_{\text{Carnot}} = 1 - \frac{T_c}{T_h}

A power station running between Th=750 KT_h = 750\ \text{K} and Tc=300 KT_c = 300\ \text{K} can therefore never exceed η=1300750=0.60\eta = 1 - \frac{300}{750} = 0.60, however well it is engineered.

The Carnot value is unachievable in practice because every step would have to be truly reversible. Reversible heat transfer in the isothermal stages requires an infinitesimally small temperature difference between the gas and the reservoir, meaning the transfer would be infinitely slow, and the adiabatic stages would need zero friction and no turbulence.

Real engines must operate in finite time and always experience friction and heat leaks, so they inevitably generate entropy and their efficiencies fall well below the Carnot limit.

You must be able to sketch and label the four steps on a P-VP\text{-}V diagram, calculate ηCarnot\eta_{\text{Carnot}}, and explain why real engines cannot reach it.

Formulae

Q=ΔU+WQ = \Delta U + W

To apply the First Law of Thermodynamics, conservation of energy, where Q is heat added to the system and W is work done by the system.

ΔU=32nRΔT=32NkBΔT\Delta U = \frac{3}{2}nR\Delta T = \frac{3}{2}Nk_B\Delta T

To find the change in internal energy of a fixed amount of monatomic ideal gas directly from its temperature change, using either the number of moles nn or the number of molecules NN.

W=PΔVW = P \Delta V

To calculate the work done by or on a gas during an isobaric (constant pressure) process.

PV5/3=constantPV^{5/3} = \text{constant}

To relate pressure and volume changes during a rapid, reversible adiabatic process of a monatomic ideal gas; the exponent 5/35/3 is specific to monatomic gases.

ΔS=ΔQT\Delta S = \frac{\Delta Q}{T}

To calculate the change in entropy of a system during a reversible heat transfer process occurring at a constant absolute temperature T (in Kelvin).

S=kBlnΩS = k_B \ln \Omega

To relate the entropy of a system to the number of microstates Ω\Omega consistent with its macroscopic state, where kBk_B is the Boltzmann constant.

η=WQH=1QCQH\eta = \frac{W}{Q_H} = 1 - \frac{Q_C}{Q_H}

To determine the thermal efficiency of any heat engine from the work output and heat inputs/outputs.

ηCarnot=1TcTh\eta_{\text{Carnot}} = 1 - \frac{T_c}{T_h}

To calculate the maximum possible efficiency of a heat engine operating between a cold reservoir temperature T_c and a hot reservoir temperature T_h (both in Kelvin).

Definitions

Internal energy (UU)
The sum of the random kinetic energies and potential energies of all the constituent particles in a system.
Adiabatic process
A thermodynamic change in state during which no thermal energy is transferred into or out of the system (Q=0Q = 0).
Entropy (SS)
A thermodynamic property that measures the degree of disorder or randomness in a system, or the number of microstates corresponding to a given macrostate.
Reversible process
An idealized thermodynamic process that occurs infinitely slowly, remaining in continuous thermodynamic equilibrium so that both the system and environment can be returned to their initial states.
Heat engine
A device that converts thermal energy into mechanical work by running a working substance around a repeating cycle between a hot reservoir and a cold reservoir.

Worked examples

1

An ideal gas in a thermally insulated cylinder is rapidly compressed, with 450 J450\ \text{J} of mechanical work performed on the gas. State the thermal energy transfer QQ, calculate the change in internal energy ΔU\Delta U of the gas, and describe what happens to its temperature.

  1. 1
    Identify the process type: Since the cylinder is thermally insulated, no heat enters or leaves the system, meaning Q=0 JQ = 0\ \text{J} (an adiabatic process).
  2. 2
    State the First Law of Thermodynamics: ΔU=QW\Delta U = Q - W, where WW is the work done *by* the gas.
  3. 3
    Determine the sign of the work: Because work is done *on* the gas, the work done *by* the gas is negative (W=450 JW = -450\ \text{J}).
  4. 4
    Calculate the change in internal energy: ΔU=0(450 J)=+450 J\Delta U = 0 - (-450\ \text{J}) = +450\ \text{J}.
  5. 5
    Describe the temperature change: For an ideal gas, internal energy is directly proportional to its absolute temperature. Since ΔU\Delta U is positive, the temperature of the gas must rise.

Answer: Q=0 JQ = 0\ \text{J}, ΔU=+450 J\Delta U = +450\ \text{J}, and the temperature increases.

2

A heat engine operates between a hot reservoir at 427C427^\circ\text{C} and a cold reservoir at 27C27^\circ\text{C}. Determine the maximum theoretical efficiency of this engine, and calculate the minimum thermal energy rejected to the cold reservoir for every 1200 J1200\ \text{J} of work produced.

  1. 1
    Convert both temperatures from Celsius to Kelvin: Th=427+273=700 KT_h = 427 + 273 = 700\ \text{K} and Tc=27+273=300 KT_c = 27 + 273 = 300\ \text{K}.
  2. 2
    Calculate the maximum (Carnot) efficiency: ηCarnot=1TcTh=1300700=470.571\eta_{\text{Carnot}} = 1 - \frac{T_c}{T_h} = 1 - \frac{300}{700} = \frac{4}{7} \approx 0.571 (or 57.1%57.1\%).
  3. 3
    Relate efficiency to work and heat input: η=WQH    QH=Wη\eta = \frac{W}{Q_H} \implies Q_H = \frac{W}{\eta}.
  4. 4
    Substitute the given work value to find the required heat input from the hot reservoir: QH=120047=2100 JQ_H = \frac{1200}{\frac{4}{7}} = 2100\ \text{J}.
  5. 5
    Calculate the minimum heat rejected to the cold reservoir using the conservation of energy (W=QHQCW = Q_H - Q_C): QC=QHW=2100 J1200 J=900 JQ_C = Q_H - W = 2100\ \text{J} - 1200\ \text{J} = 900\ \text{J}.

Answer: Maximum efficiency = 57.1%57.1\%, minimum heat rejected = 900 J900\ \text{J}

3

A block of ice of mass 0.500 kg0.500\ \text{kg} at 0C0^\circ\text{C} melts completely in a large room held at 17C17^\circ\text{C}. The specific latent heat of fusion of ice is 3.34×105 J kg13.34 \times 10^5\ \text{J kg}^{-1}. Calculate the entropy change of the ice, the entropy change of the room, and hence show that the melting is consistent with the second law of thermodynamics.

  1. 1
    Calculate the thermal energy absorbed by the melting ice: ΔQ=mL=0.500×3.34×105=1.67×105 J\Delta Q = mL = 0.500 \times 3.34 \times 10^5 = 1.67 \times 10^5\ \text{J}.
  2. 2
    Find the entropy change of the ice, which melts at a constant temperature of T=0+273=273 KT = 0 + 273 = 273\ \text{K}: ΔSice=ΔQT=1.67×105273=+612 J K1\Delta S_{\text{ice}} = \frac{\Delta Q}{T} = \frac{1.67 \times 10^5}{273} = +612\ \text{J K}^{-1}.
  3. 3
    Find the entropy change of the room, which loses the same thermal energy at a constant T=17+273=290 KT = 17 + 273 = 290\ \text{K}: ΔSroom=1.67×105290=576 J K1\Delta S_{\text{room}} = -\frac{1.67 \times 10^5}{290} = -576\ \text{J K}^{-1}.
  4. 4
    Add the two contributions to find the total entropy change: ΔStotal=612576=+36 J K1\Delta S_{\text{total}} = 612 - 576 = +36\ \text{J K}^{-1}.
  5. 5
    Interpret the result: because ΔStotal>0\Delta S_{\text{total}} > 0, the total entropy of the ice plus its surroundings increases, so the spontaneous melting is consistent with the second law of thermodynamics.

Answer: ΔSice=+612 J K1\Delta S_{\text{ice}} = +612\ \text{J K}^{-1}, ΔSroom=576 J K1\Delta S_{\text{room}} = -576\ \text{J K}^{-1}, ΔStotal+36 J K1>0\Delta S_{\text{total}} \approx +36\ \text{J K}^{-1} > 0, consistent with the second law.

Common mistakes

  • ×Using temperatures in Celsius instead of Kelvin in thermodynamic formulas. Always convert to Kelvin, especially when calculating entropy changes (ΔS=ΔQT\Delta S = \frac{\Delta Q}{T}) and Carnot efficiencies (η=1TcTh\eta = 1 - \frac{T_c}{T_h}).
  • ×Confusing the sign of work (WW) in the First Law equation. If a gas expands, it does positive work *by* the system (W>0W > 0). If a gas is compressed, work is done *on* the system (W<0W < 0).
  • ×Incorrectly assuming that 'adiabatic' means 'isothermal'. While no heat enters or leaves in an adiabatic process (Q=0Q = 0), the temperature *does* change because work is done, which directly alters the internal energy (ΔU=W\Delta U = -W).
  • ×Believing that the entropy of a system can never decrease. Local entropy can decrease (e.g., when water freezes in a freezer), but the total entropy of the system plus its surroundings must always increase (ΔStotal0\Delta S_{\text{total}} \ge 0).

Exam tips

  • When asked to **sketch** isothermal and adiabatic curves starting from the same initial state on a P-VP\text{-}V diagram, always make the adiabatic curve steeper than the isothermal curve.
  • When asked to **distinguish** between thermodynamic processes, explicitly state which variable remains constant: temperature for isothermal, pressure for isobaric, volume for isovolumetric, and thermal energy transfer (Q=0Q=0) for adiabatic.
  • To **calculate** the net work done during a complete thermodynamic cycle, find the area enclosed by the loop on a P-VP\text{-}V diagram. Clockwise cycles represent net work done *by* the gas (heat engines); counter-clockwise cycles represent net work done *on* the gas (heat pumps).
  • When the command term **determine** is used with entropy change, ensure you check whether heat is added to (positive change) or removed from (negative change) the system.

All IB Physics topics