This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Physics
IB Physics B.4 · HL only
Thermodynamics
How can the energy stored in and transferred by a system be analysed, and what decides the direction in which the system will evolve?
What you will learn
- HL Understand the first law, Q = ΔU + W, with work done by the gas taken as positive.
- HL Know the four gas processes, including adiabatic changes with PV^(5/3) constant, and how each appears on a P-V diagram.
- HL Understand how a gas cycle runs a heat engine and why the Carnot efficiency is the upper limit.
- HL Understand entropy from heat and temperature and from microstates, and the second law in its three forms.
You must be able to
- HL Calculate Q, W and ΔU for each stage of a gas cycle and the efficiency of the engine.
- HL Determine work done as the area under a P-V line or inside a loop.
- HL Calculate pressures and temperatures in adiabatic changes using PV^(5/3) and TV^(2/3).
- HL Calculate the Carnot efficiency and compare a real engine with it.
- HL Calculate entropy changes using ΔS = ΔQ ÷ T and S = kB ln Ω, including coin models.
- HL Explain how entropy can fall locally without breaking the second law.
In the exam. HL Paper 1A multiple choice (sign conventions, which quantity is zero in which process); HL Paper 2, where a gas cycle on a – diagram is a standard short question of 4 to 6 marks, or part of a 20-mark long question, built from parts of 1 to 3 marks (work from areas, for each stage, efficiency, comparison with Carnot), and where the second law appears as a 2 or 3 mark explanation. Paper 1B is the same paper at SL and HL, so it does not test B.4.
1Systems, and the sign convention
A system = whatever you draw a boundary around. Here it is nearly always a fixed amount of gas in a cylinder. Everything outside the boundary is the surroundings. Two kinds matter.
- A closed system lets no matter cross the boundary, but energy can cross both ways, as heat or as work. Gas sealed in a cylinder with a sliding piston is closed.
- An isolated system lets nothing cross: no matter and no energy. A rigid, sealed, perfectly insulated flask would be isolated. So, taken as a whole, is the universe.
The IB uses a single sign convention (the guide calls it Clausius' convention), with the work done by the gas. Almost every mark in this subtopic hangs on it.
Figure 1 shows it on a cylinder, for the two gases of worked example 1.
- In (a) heat flows in and the gas pushes the piston out, so and are both positive.
- In (b) the piston is pushed in and heat leaks out, so both are negative.
- is the net thermal energy supplied to the system: positive for heat in, negative for heat out.
- is the net work done by the system: positive when the gas expands and pushes the piston out, negative when the gas is compressed.
- is the change in internal energy. For an ideal gas it is positive exactly when the temperature rises.
2The first law of thermodynamics
Energy that reaches the gas as heat has two destinations. It stays inside as extra internal energy, or it leaves again as work done by the gas. So
This is conservation of energy for a closed system. The difficulty is only in the signs.
Worked example 1: the signs in action (Figure 1).
(a) A gas absorbs of heat and does of work pushing a piston out.
(b) A different gas is compressed, with of work done on it, while it loses of heat to the surroundings.
Find in each case.
In (b) the compression puts in, heat carries out, and stays. An answer of means the minus sign on was lost.
Internal energy of a monatomic ideal gas. From B.3, , so a temperature change gives
- Because , this is also .
- That form is the workhorse for cycle questions. comes straight from the pressure and volume at two labelled points, with no need for or .
- Only the end states matter for . and , by contrast, depend on how the gas got from one state to the other.
3Work done by a gas, and the area under the curve
Let the gas push a piston of area through a small distance at constant pressure . The force is , so the work is . And is the volume swept out:
(constant pressure)
On a – diagram this is the area of a rectangle, as Figure 2(a) shows: .
When the pressure changes during the expansion, cut the change into thin strips, each a small . Their sum is the area under the line, whatever its shape.
- For a straight line, use a trapezium or a rectangle plus a triangle.
- For a curve such as an isotherm there is no formula to use at this level. Count squares of the graph paper, taking a part-square as half or a fraction by eye. The answer is an estimate.
The area gives the size and the direction of travel gives the sign.
- Moving right (expansion), is positive.
- Moving left (compression), is negative.
- A vertical line has no area beneath it, so .
- A false origin means a volume axis that starts at a non-zero value. Then take from two labelled volumes, never from the edge of the grid.
- Check the multipliers too: pressure in and volume in means each grid unit of area is .
Worked example 2: pressure not constant. A monatomic ideal gas goes from X (, ) to Y (, ) along the straight line of Figure 2(b). Determine , and .
- X and Y have the same , hence the same temperature, so and all of heat supplied left as work. That does not make the process isothermal.
- Halfway along the line () the product is . So the gas warms and then cools back to where it began. Zero only describes the ends of the journey.
- The is also only the net heat. Heat flows in over the first part of the line and out near Y. The turning point is at (finding it takes calculus, beyond the course): about goes in and comes out.
- If a line like this sits in a cycle, do not take as its heat input in an efficiency calculation.
Worked example 3: heating at constant pressure. of a monatomic ideal gas is heated at from to . Find , and .
- At constant pressure, , so you never need the volumes.
- The ratio means exactly of the heat raises the temperature. The other goes into pushing the piston, for any monatomic gas heated at constant pressure.
4Four processes, each keeping one thing fixed
The guide names four processes, each obtained by holding one quantity fixed. Holding it fixed either deletes a term of the first law or ties to the others. Figure 3 draws all four from one starting state S.
| Process | What is fixed | On a – diagram | First law becomes |
|---|---|---|---|
| Isovolumetric (isochoric) | volume | vertical line | , so |
| Isobaric | pressure | horizontal line | , |
| Isothermal | temperature | curve | , so |
| Adiabatic | no heat crosses: | curve , steeper | , so |
You can also name a process from its energy bookkeeping.
- means isovolumetric.
- means isothermal.
- means adiabatic.
- with a flat line means isobaric.
The last two rows are the ones students swap.
- Isothermal. is fixed, so . If the gas expands and does work, an equal amount of heat must flow in. Realising it needs slow change and good thermal contact with a reservoir.
- Adiabatic. No heat crosses, so an expanding gas pays for its work out of internal energy and cools. A compressed gas warms. It needs insulation or a change too quick for heat to leak: pump up a bicycle tyre quickly and the compressed air warms the pump.
- That cooling is why the adiabat in Figure 3 is steeper than the isotherm. Expanding from S, both curves lose pressure because the volume grows. But the adiabatic gas also cools, so its pressure falls further and it ends on a colder isotherm (dashed).
For a monatomic ideal gas the adiabat obeys
(adiabatic, monatomic ideal gas)
Substituting turns this into . With and fixed, that is a second form. It is handier when temperatures are involved:
(adiabatic, monatomic ideal gas)
"Show that is constant" is a common short request. Those two lines are the whole answer: substitute , then cancel.
Worked example 4: an adiabatic compression. Neon at and fills . It is compressed adiabatically to . Calculate the final pressure, the final temperature and the work done.
Volume fell to a third but pressure rose more than sixfold, because the gas also heated up. An isothermal squeeze by the same factor would have given only three times the pressure.
5Cycles and heat engines
A cyclic process takes the gas through a sequence of changes and back to its starting state. It finishes at its starting temperature, so over a whole cycle . The first law gives
Over a cycle:
On a – diagram the net work is the area enclosed by the loop.
- Traced clockwise, the gas does more work expanding (at higher pressure) than is done on it compressing. The net work is positive and the loop is an engine.
- Traced anticlockwise, the net work is negative.
A heat engine runs such a cycle to turn thermal energy into work. Figure 4 shows its energy flows, arrow widths to scale, for worked example 5.
- It absorbs energy from a hot reservoir (burning fuel, steam from a boiler).
- It delivers useful work .
- It rejects the rest, , to a cold reservoir (air, a river, a cooling tower).
Energy is conserved, so . The efficiency is
- Since , this equals .
- That is the shortest route when a question gives the efficiency and one heat and asks for the other: .
- Engines are often described by rates, not per-cycle amounts. Divide both energies by the same time and the formula holds with power in place of energy: .
Worked example 5: an engine cycle. A monatomic ideal gas is taken round the rectangular cycle of Figure 5. Find for each stage, the net work and the efficiency.
Use with in and in , so is in joules. is at A, at B, at C and at D. Then for each stage.
A B: constant volume, pressure rises. No volume change, so . , so : heat in.
B C: constant pressure, the gas expands. and , so : heat in.
C D: constant volume, pressure falls. and , so : heat out.
D A: constant pressure, the gas is compressed. and , so : heat out.
The whole cycle. The values add to 0, as they must. The net work is , and so is the net heat, . The enclosed rectangle, , gives the same : a good check. The dashed isotherms through A and C mark the coldest and hottest states in the cycle.
- The input energy counts only the heat that goes in: .
- The leaving on C D and D A is .
- Dividing by the net heat, , would give an efficiency of 1: the commonest slip here.
Worked example 6: a cycle with a curved stage. A monatomic ideal gas is taken round the loop of Figure 6.
- A B at constant pressure.
- B C adiabatically.
- C A isothermally.
The data are A (, ) and B (, ). C lies on the isotherm through A. Counting squares under CA gives of work done on the gas. Find for each stage and the efficiency.
- The net heat, , agrees with the net work. Only A B takes heat in, so it alone is .
- The hottest state is B and the coldest is A (and C). So the Carnot limit for these extremes is .
- The loop reaches , about two-thirds of that limit.
Running a cycle backwards. Trace a loop anticlockwise and every energy arrow in Figure 4 reverses.
- Work is put in.
- Energy is taken from the cold reservoir.
- is delivered to the hot one.
That is a refrigerator or heat pump: heat goes from cold to hot only because work is put in (section 8).
6The Carnot cycle and the limit on efficiency
The Carnot cycle is an ideal, reversible cycle of two isotherms and two adiabats. Figure 7 takes it one stage at a time.
A B: isothermal expansion at the hot temperature . Heat flows in.
B C: adiabatic expansion. No heat; the gas does work and cools from to .
C D: isothermal compression at the cold temperature . Heat flows out.
D A: adiabatic compression. No heat; the gas warms from back to . The loop closes, and its area is the net work per cycle.
Because is constant along an adiabat, the end-volumes of the expansion are tied to the two temperatures: , so .
All the heat enters at the single highest temperature and leaves at the single lowest. No heat ever crosses a temperature difference inside the cycle. That is what makes it the best a cycle between two reservoirs can do. It gives an efficiency that depends on those two temperatures only:
(temperatures in kelvin)
- No engine between the same two reservoirs can exceed it.
- Real engines add friction, heat leaks and heat flow across finite temperature differences. All of these are irreversible and pull the efficiency below the Carnot value.
- would need (or an infinite ). Neither can be reached, so no engine converts heat completely into work.
- Section 7 shows where the formula comes from, and section 8 uses entropy to prove that nothing beats it.
- The Carnot cycle is a benchmark for comparing real engines, not a design anyone builds: it would need to run infinitely slowly.
- The limit binds heat engines only. A motor or generator converts between work and electrical energy with no heat-to-work step, so the Carnot formula does not apply to it.
- But a power station stays capped by the heat engine that turns its generator.
Worked example 7: a geothermal plant. Pressurised water at drives a turbine and the exhaust is cooled by a river at . Find the maximum possible efficiency.
Even the perfect plant would send more than six-tenths of its input into the river. Using degrees Celsius () gives an absurd answer.
Worked example 8: engine against its limit. An experimental engine receives every second from a furnace at . It delivers of output power and exhausts into a river at .
Compare its efficiency with the Carnot limit and find the rate of rejection.
- The engine reaches about a third of the theoretical best.
- For the cycle of Figure 5, the coldest point is A and the hottest is C, with . A Carnot engine between those temperatures would reach .
- The rectangle's is far below that, because it takes in heat at every temperature from to , not only at the top.
- The history is a nature-of-science point. Commercial steam engines were at work from the early eighteenth century.
- Roughly a hundred years later, in 1824, the French engineer Sadi Carnot asked whether an engine's efficiency has a limit, and showed that it does. Practice came first and the theory followed.
7Entropy, two ways
Entropy, , is a thermodynamic quantity that relates to the disorder of the particles in a system. It reflects how widely the energy is spread, and how many ways the particles could be arranged without the system looking any different. The guide gives two ways to calculate it.
From heat and temperature. Heat goes to a system at temperature . Its entropy changes by
with positive for heat in and in kelvin. The unit is . The formula applies directly when stays constant, as in boiling or melting, or when is small enough that barely moves.
Worked example 9: boiling water on a hob. A pan holds of water at . It boils away completely on a ring held at . The specific latent heat of vaporisation of water is .
Find the entropy change of the water, of the ring, and of the two together.
The water gains more entropy than the ring loses. The same is divided by the smaller temperature (section 8 builds the second law on this).
The sign of in gas processes. carries the sign of .
- In an isothermal expansion the gas takes in heat and its entropy rises by .
- In an isothermal compression it gives heat out and its entropy falls.
- In a reversible adiabatic process , so . The larger volume would raise the entropy but the cooling lowers it by exactly as much.
- An irreversible adiabatic change, such as gas rushing into a vacuum, does raise the entropy.
Entropy round a Carnot cycle. Apply this to Figure 7.
- On A B the gas gains .
- On both adiabats it is unchanged.
- On C D it loses .
The gas is back where it started, so its entropy is too. The net change is zero:
- That is the origin of the Carnot formula.
- The cycle is reversible, so the two reservoirs together also have zero net entropy change per cycle. The hot one loses and the cold one gains the same.
From counting microstates.
- A macrostate = what you can measure: pressure, volume, temperature or, with coins, the number of heads.
- A microstate = one exact arrangement of every particle (or coin) that produces that macrostate.
If is the number of microstates in a macrostate,
where is the Boltzmann constant. The guide suggests coins, and Figure 8 uses them. All microstates are equally likely. Four coins have 16 microstates (Figure 8(a)), grouped by macrostate: one way to show four heads, six ways to show two.
- So two heads turns up six times as often as four heads. Its entropy is . Four heads has .
- Scale up as Figure 8(b) does. 100 coins have about microstates with 50 heads but one with 100 heads. And of all microstates lie between 40 and 60 heads. The more coins, the narrower the peak.
- With molecules, almost every microstate belongs to an evenly spread macrostate. So a system left alone is practically certain to be found there. "Entropy increases" means ordered arrangements are so outnumbered that chance never selects them.
Counting and comparing
- Treat each coin or particle as distinguishable, so swapping two gives a new microstate.
- For coins there are microstates in all. The number with heads is the number of ways to choose which coins show heads: seven coins, two heads, gives .
- Microstates need not be about position. If six particles share energy in whole units and one particle holds all of it, there are 6 microstates, one per choice of particle.
An entropy change comes from the ratio of microstate counts.
A gas spreading out
- Use the same model for particles in a box divided into left and right halves, where only the half a particle is in matters.
- Eight particles all in the left half: . Let them move and "four in each half" has of the 256 equally likely microstates. So .
- The isolated gas ends in the most probable macrostate and does not return. The chance of all particles being in the left half at once is only .
- The change is irreversible because the final state has far more microstates than the first.
- The same counting links the two definitions. If gas particles expand freely into a vacuum and double their volume, each can be in either half of the new space. So grows by and .
- For one mole that is .
- Entropy is also higher in a larger volume, when hotter, and as a gas rather than a liquid or solid.
8The second law of thermodynamics
The guide wants three statements. They are one law seen from three sides.
Clausius form
- Thermal energy cannot flow spontaneously from a colder body to a hotter one.
- A refrigerator moves heat that way, but only because work is done on it.
Kelvin form
- No cyclic process can take thermal energy from a single reservoir and convert all of it into work.
- Every heat engine must reject energy to a colder reservoir, so always.
- This is the form behind the Carnot limit and behind the guide's question on why every engine has an upper limit on efficiency.
Entropy form
- The entropy of an isolated system never decreases.
- A reversible process can be undone so that system and surroundings both return exactly to their starting states. It is an idealisation (like the Carnot cycle) and entropy stays constant.
- An irreversible process cannot be undone and the entropy increases.
- Friction, heat flow across a temperature difference and the mixing of gases are irreversible. So the entropy of a real isolated system always rises.
Figure 9 shows why the Clausius and entropy forms say the same. Let flow from a body at to one at inside an isolated system.
- The hot body loses . The cold body gains , more, because the same is divided by a smaller . The total rises by , so the flow is allowed.
- Reverse it, from cold to hot, and every sign flips. Total entropy would fall by , which the entropy form forbids.
- That is the Clausius statement.
Nothing beats Carnot
- Let any engine take from a reservoir at and reject to one at . Over a cycle the engine's own entropy is unchanged. So the reservoirs' total change is , and the second law says this cannot be negative.
- Rearranged, , hence .
- Equality needs zero entropy production, which only a reversible engine achieves.
Entropy can fall locally
- The law applies to isolated systems. A system that is not isolated can lose entropy so long as its surroundings gain at least as much.
- Water freezing in a freezer becomes more ordered. But the freezer delivers that heat, plus its motor's work, to the kitchen, whose entropy rises by more.
- A growing plant builds ordered structures, paid for by sunlight arriving from the very hot Sun and heat leaving for cold space.
- A portable air conditioner whose hot exhaust hose is not led outside cannot cool a closed room. The heat it removes, plus the work its motor does, is released back into the room, so the room warms.
- Whenever you meet a local decrease, find where the larger increase happens.
The universe
- As the ultimate isolated system, its entropy can only rise. That gives time a direction (eggs break, never unbreak).
- It also points to a far future in which energy is so evenly spread that no work can be extracted anywhere.
Practice questions
46 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.