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 ().
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
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
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, .
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.