In simple terms
A friendly intro before the formal notes — no formulas yet.
Energy in, work out, disorder up
Thermodynamics is a strict accountant. Every joule you add to a gas as heat is either stored inside it (raising its internal energy and therefore its temperature) or spent by the gas pushing on its surroundings as work — never lost. A second rule then decides which way the accounts are allowed to run: left to itself, a system always spreads its energy out, so entropy climbs.
Think of heating a sealed syringe of air. The heat you supply is like money coming into an account. Some of it is 'saved' as internal energy — the molecules jostle faster and the gas warms up. The rest is 'spent' as the gas pushes the plunger outward, doing work on your hand. The first law just balances the books: money in = money saved + money spent, which is . The second law adds that the spending can never be undone for free — the disorder you create leaks away and cannot be gathered back without paying somewhere else.
- 1
Identify the process from the description or the p–V graph: isothermal (), isobaric (constant ), isochoric (constant ) or adiabatic ().
- 2
Write the first law in the exam form , where is the work done BY the gas. Fix and state your signs: heat in is , expansion is .
- 3
Find the work: for constant pressure use ; for any process read the area under the p–V curve; for a full cycle use the enclosed area.
- 4
For direction and efficiency questions, use (temperatures in kelvin), and the Carnot ceiling .
Explore the concept
Use the live diagram, PhET or GeoGebra sim, and synced steps — play it, drag controls, or tap a step.
Step 1
Identify the process from the description or the p–V graph: isothermal (), isobaric (constant ), isochoric (constant ) or adiabatic ().
10 more simulations for this topic — run them in the Simulations section below
Simulations
Every simulation here runs the real model — try the steps on a card, then check what you see against the notes.
10 simulations · 4 to start with
Start herein this order — each one shows a different piece of the topic
- 3JCN PhysicsStart here · 19702 16.2 · 9702 16.1 · IB B.4
Isobaric Process
Expand a gas at constant pressure; compute work from the PV area
Why this one: Expand at constant pressure and read the work done as the rectangle p-delta-V under the line.
Try this
- Expand the gas at constant pressure and read the PV area.
- Compare the area with p × ΔV.
Look for Work done equals pΔV, the rectangle under the isobar.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsStart here · 29702 16.2 · 9702 16.1 · IB B.4
Isothermal Process
Compress a gas at constant temperature and trace the isotherm on a PV diagram
Why this one: Compress along the isotherm: delta-U = 0, so every joule of work done on the gas leaves as heat.
Try this
- Compress the gas at constant temperature and trace the isotherm.
- Halve the volume and read the pressure.
Look for At constant T, pV is constant, so the isotherm is a hyperbola and all heat supplied equals work done.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsStart here · 39702 16.2 · 9702 16.1 · IB B.4
Adiabatic Process
Compress a gas with no heat exchange; see temperature rise on the adiabat
Why this one: Compress with no heat exchange and watch the temperature climb because W goes straight into delta-U.
Try this
- Compress the gas with no heat exchange and watch the temperature.
- Compare the adiabat's steepness with an isotherm through the same point.
Look for With q = 0 the work done on the gas raises its internal energy, so temperature rises and the adiabat is steeper than an isotherm.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsStart here · 49702 16.2 · IB B.4
Carnot Engine
Step a Carnot engine through its four strokes; vary reservoir temperatures and read efficiency
Why this one: Change the reservoir temperatures and check efficiency never beats 1 - Tcold/Thot.
Try this
- Step the engine through its four strokes on the PV diagram.
- Raise the hot reservoir temperature and read the efficiency.
- Lower the cold reservoir temperature and read it again.
Look for Carnot efficiency is 1 - Tc/Th, the upper limit for any engine between those reservoirs.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
More simulations6 more on this topic — core ones first
- 3JCN PhysicsCore9702 16.2 · IB B.4
4-Stroke Engine
Watch intake, compression, power and exhaust strokes of a 4-stroke engine
Try this
- Watch the intake, compression, power and exhaust strokes in turn.
- Identify which stroke does work on the piston.
Look for Only the power stroke delivers work; the other three strokes prepare and clear the cylinder.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsCore9702 16.2 · IB B.4
Heat Engine
Operate a heat engine between hot and cold reservoirs; read efficiency
Try this
- Operate the engine between the hot and cold reservoirs and read the efficiency.
- Raise the hot reservoir temperature and compare.
- Lower the cold reservoir temperature and compare.
Look for Efficiency equals work out over heat in and rises as the gap between reservoir temperatures grows.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsCore9702 16.2 · IB B.4
Heat Pump
Run a heat pump / air conditioner cycle; see heat moved against the gradient
Try this
- Run the heat pump cycle and follow where heat is absorbed and rejected.
- Compare the heat moved with the work input.
Look for Work input lets heat flow from cold to hot, and the heat rejected equals heat absorbed plus work done.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsCore9702 16.2 · 9702 16.1 · IB B.4
Isovolumetric Pro
Heat a gas at constant volume and watch pressure rise with no work done
Try this
- Heat the gas at constant volume and watch the pressure rise.
- Read the work done on the PV diagram.
Look for With no volume change no work is done, so all heat supplied raises internal energy.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsCore9702 16.2 · IB B.4
PV Dia - Refrig
Trace a refrigerator cycle on a PV diagram
Try this
- Trace the refrigerator cycle on the PV diagram.
- Compare the direction of the loop with a heat engine's.
Look for A refrigerator runs the cycle anticlockwise, so net work is done on the gas to move heat from cold to hot.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
- 3JCN PhysicsCore9702 16.2 · 9702 16.1 · IB B.4
T in Adiabatic Proc.
Track temperature change during an adiabatic compression or expansion
Try this
- Compress adiabatically and track the temperature.
- Expand adiabatically and track it again.
Look for Adiabatic compression heats the gas and adiabatic expansion cools it, with no heat flowing either way.
3JCN Physics Simulation by Thomas Nguyen · CC BY 4.0
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Full topic notes
Formal explanation with the rigour you need for the exam.
The first law of thermodynamics
The first law is simply conservation of energy applied to a gas. Heat supplied to a gas cannot vanish: it either raises the internal energy of the gas or is spent by the gas doing work on its surroundings, or both. Writing for the heat added to the gas, for the change in internal energy and for the work done BY the gas, the budget balances exactly.
This is the form given in the IB data booklet. Rearranged it reads , which some prefer, but both say the same thing. The internal energy is the total random kinetic energy of the molecules, and for an ideal gas it depends only on the absolute temperature — so a rise in always means a rise in temperature. Everything in this topic follows from applying this one equation with a firm, consistent sign convention.
is the heat added to the gas: for heat in, for heat out.
is the change in internal energy: raises the temperature of an ideal gas.
is the work done BY the gas: when the gas expands, when it is compressed.
Choose your signs once and keep them for every quantity in the problem — mixing conventions is the fastest way to lose marks.
Work done by a gas and the p–V diagram
When a gas expands it pushes its boundary outward and does work on the surroundings. If the pressure stays constant while the volume changes by , the work done by the gas is the product of pressure and volume change.
For this to give joules, put the pressure in pascals and the volume change in cubic metres. More generally the pressure need not be constant, and then no longer applies directly. The powerful idea is that on a pressure–volume (p–V) diagram the work done by the gas is always the area under the curve for the process. A p–V diagram plots the state of the gas as a point, a process as a path between states, and the area beneath that path as the work exchanged. For a complete cycle the gas returns to its starting point and the net work is the area enclosed by the loop.
Area under the p–V curve = work done by the gas — true for any process, not just constant pressure.
Expansion (moving right on the diagram) gives positive work by the gas; compression (moving left) gives negative work.
For a full clockwise cycle the enclosed area is the net work done BY the gas () — this is a heat engine.
For a full anticlockwise cycle the net work is done ON the gas () — this is a refrigerator or heat pump.
The four processes and the first law
Four idealised processes appear again and again, and the first law takes a simple form in each. Recognising the process is the first move in almost every thermodynamics question, because it immediately tells you which term is zero.
Isothermal (constant ): for an ideal gas, so . All heat supplied leaves as work. Curve on p–V: a hyperbola, .
Isobaric (constant ): , so . Curve on p–V: a horizontal line.
Isochoric / isovolumetric (constant ): so , giving . All heat raises the internal energy. Curve on p–V: a vertical line.
Adiabatic (no heat, ): . An expanding gas cools because it does work at the expense of internal energy. Curve on p–V: steeper than an isotherm.
Entropy and the second law of thermodynamics
The first law tells you energy is conserved, but not which way a process will actually go. Drop an ice cube in warm water and heat always flows from the water to the ice, never the reverse — yet both directions conserve energy. The second law supplies the missing arrow. It is stated using entropy , a measure of how spread out, or disordered, the energy of a system is. The more ways the energy can be arranged among the molecules, the higher the entropy.
For heat transferred at a constant absolute temperature (in kelvin), the entropy change is , measured in J K⁻¹. Heat entering a body raises its entropy; heat leaving lowers it. The second law then states that for any real process the total entropy of an isolated system — the object together with everything it exchanges energy with — tends to increase, and can at best stay constant in an ideal reversible process.
This is why heat flows from hot to cold: the entropy lost by the hot body () is smaller than the entropy gained by the cold body () because dividing by the smaller temperature gives the larger change, so the total rises. A local decrease in entropy — water freezing, a crystal forming — is always allowed provided the surroundings gain even more. The second law forbids only a decrease of the isolated whole, and in doing so it sets the direction of the arrow of time.
Heat engines and thermal efficiency
A heat engine is any device that takes in heat from a hot reservoir, converts part of it into useful work , and rejects the remainder to a cold reservoir. Over a complete cycle the gas returns to its starting state, so and the first law gives . The thermal efficiency is the fraction of the incoming heat that is turned into useful work.
Because some heat must always be rejected () for the engine to keep running without decreasing the entropy of the universe, the efficiency is always less than 1. The second law forbids a perfect engine that turns all its incoming heat into work. The interesting question is: for two given reservoir temperatures, what is the highest efficiency physically allowed?
The Carnot cycle and maximum efficiency
Sadi Carnot answered that question with an idealised, perfectly reversible cycle. The Carnot cycle consists of four reversible steps between a hot reservoir at and a cold reservoir at : an isothermal expansion (absorbing heat at ), an adiabatic expansion (cooling to ), an isothermal compression (rejecting heat at ) and an adiabatic compression (warming back to ). Because every step is reversible, the total entropy change over the cycle is zero, and this gives the highest efficiency any engine can achieve between those two temperatures.
Both temperatures must be in kelvin. No real engine, with its friction and finite-rate heat flow, can reach the Carnot limit — it is an unattainable ceiling. But the formula is powerful: it shows efficiency rises as the reservoirs are pushed further apart in temperature, and it lets you judge instantly whether a claimed engine performance is even possible. Any engine claiming to beat is claiming to break the second law.
Always convert reservoir temperatures to kelvin before touching or . A Celsius value here produces a nonsense efficiency — often greater than 1 or negative — and examiners award nothing for it. Add 273 first, then compute.
Worked example — Carnot efficiency and maximum work
In Paper 2 the marks are analytic: each is tied to a specific line of working — a method mark (M) or an answer mark (A) — and error-carried-forward (ECF) means a wrong number early on does not have to cost you the marks that follow, provided your later steps follow correctly from it. But that protection only exists if the method is written down. Study how each mark below is earned by a specific line.
Common mistakes examiners penalise
Getting the sign of wrong in the first law — in the symbol is the work done BY the gas, so expansion is positive and compression is negative. Reversing it flips the sign of and loses the answer mark.
Thinking 'adiabatic' means constant temperature — adiabatic means no heat transfer, , NOT . An adiabatic expansion actually cools the gas because . Constant temperature is the isothermal case.
Confusing isothermal with adiabatic — isothermal gives and ; adiabatic gives and . They are opposite simplifications of the first law.
Using Celsius in or — these formulae need absolute temperature in kelvin. A Celsius value gives a nonsense efficiency or entropy. Add 273 first.
Dividing by instead of for efficiency — thermal efficiency is ; the heat TAKEN IN is always the denominator.
Forgetting for a constant-volume (isochoric) process — with no work is done, so all the heat goes to internal energy, .
Claiming the entropy of an isolated system can decrease — it never does; a system's own entropy may fall only if the surroundings gain at least as much, so the isolated total obeys .
Reading area on a p–V graph carelessly — the area under the curve is the work; for a full cycle it is the ENCLOSED area, positive for a clockwise loop (engine) and negative for an anticlockwise loop (refrigerator).
Where this leads
Thermodynamics ties the microscopic picture of the previous topics — molecules with kinetic energy and the ideal gas law — to the large-scale behaviour of engines, refrigerators and the cosmos itself. The first law is conservation of energy you have met before, now sharpened for gases; the second law is the deeper statement, the one physical principle that distinguishes past from future. Master the habit — name the process, write with firm signs, work in kelvin, and show every line — and both the calculations and the conceptual questions in this topic become variations on a method you already own.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
An ideal gas expands at a constant pressure of 200 kPa from a volume of m³ to m³ while 550 J of heat is supplied. Calculate (a) the work done by the gas and (b) the change in its internal energy. [4]
- 1
Identify the process. Pressure is constant, so this is isobaric and .
A heat engine takes in 800 J of heat from a hot reservoir at 500 K and rejects heat to a cold reservoir at 300 K. Calculate the maximum possible efficiency and the maximum work output. [4]
- 1
Model answer — full working.
A heat engine absorbs 2500 J of heat from a hot reservoir at 750 K and expels 1500 J to a cold reservoir at 300 K in each cycle. Calculate (a) the net work done per cycle, (b) the total entropy change of the universe per cycle, and state whether the engine is possible. [5]
- 1
(a) Net work. Over a complete cycle , so the first law gives . [M1: so ] J. [A1: 1000 J]
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Key terms for this topic — skim now; the Check step will test them.
- First law of thermodynamics (IB form)
: the heat added to a gas equals the increase in its internal energy plus the work done BY the gas. It is conservation of energy applied to a gas. Rearranged, .
- Internal energy of an ideal gas
The total random kinetic energy of the molecules. It depends only on the absolute temperature, so . If temperature is unchanged, .
- Work from a p–V graph
The work done by the gas equals the area under the p–V curve for any process, not just at constant pressure. For a complete cycle the net work is the area enclosed by the loop.
- Isothermal process
Constant temperature, so for an ideal gas and the first law gives . On a p–V diagram it is a hyperbola (). All heat supplied is turned into work.
- Isobaric process
Constant pressure. Work ; the first law is . On a p–V diagram it is a horizontal line.
- Isochoric (isovolumetric) process
Constant volume, so and no work is done: . The first law reduces to — all heat goes to internal energy. On a p–V diagram it is a vertical line.
- Adiabatic process
No heat transfer, (well-insulated or very rapid). The first law gives : a gas that expands adiabatically does work at the expense of its internal energy, so it cools. Steeper than an isotherm on a p–V graph.
- Second law (entropy statement)
The entropy of an isolated system never decreases; it increases for every real (irreversible) process and stays constant only in an ideal reversible one. Equivalently .
- Change in entropy,
For heat transferred at constant absolute temperature (in kelvin), the entropy change is , measured in J K⁻¹. Heat into a body raises its entropy; heat out lowers it.
- Thermal efficiency of a heat engine
. It is the useful work out divided by the heat taken in — always between 0 and 1, since some heat must be rejected to the cold reservoir.
- Carnot (maximum) efficiency
, with both temperatures in kelvin. No engine working between two reservoirs can beat this ideal reversible limit; it is reached only by the Carnot cycle.
- Internal energy change over a full cycle
Zero. Internal energy is a state function, so returning the gas to its starting state gives . Hence over a cycle .
Name it
Read the meaning, then pick which of this lesson’s terms it describes. Miss one and you see what your choice really means.
Constant pressure. Work ; the first law is . On a p–V diagram it is a horizontal line.
Quick check
Write your answer first, then compare it with the model one — the gap is what you would have lost.
Teach it back
If you can explain it simply, you own it — gaps here are marks you’d lose.
Teach it back
Explain this topic as if teaching a friend. We name the gaps an examiner would still dock.
Revision flashcards
Guess first, then flip — retrieval beats re-reading.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
is the heat added to the gas: for heat in, for heat out.
is the change in internal energy: raises the temperature of an ideal gas.
is the work done BY the gas: when the gas expands, when it is compressed.
Choose your signs once and keep them for every quantity in the problem — mixing conventions is the fastest way to lose marks.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 2 calculation marked: solve a heat-engine problem with full working
Get a Paper 2 calculation marked: solve a heat-engine problem with full working
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Get a Paper 2 calculation marked: solve a heat-engine problem with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.
Discuss Thermodynamics
Ask, share and discuss with other Physics HL students