11.1 Thermal Equilibrium and the Zeroth Law of Thermodynamics
Put a cup of hot tea on a table and leave it. Its temperature falls, the room’s rises by an imperceptible amount, and after a while nothing changes any further. Two systems in contact reach a common state called thermal equilibrium, in which no net heat flows between them even though they remain in contact. This is the state that lets you assign a single number, temperature, to describe “hotness” at all.
The trouble is that checking whether two systems are in equilibrium by placing them in direct contact is often inconvenient, you want to know if a patient and a healthy person are at the same temperature without pressing them together. The zeroth law rescues this:
If two systems A and B are separately in thermal equilibrium with a third system C, then A and B are in thermal equilibrium with each other.
Let C be a thermometer. The zeroth law says you never need to touch the patient and the healthy person together, touching each in turn to the same thermometer and reading the same value is enough to guarantee they’d be in equilibrium if they were in contact. This is precisely what makes a thermometer, and a temperature scale, a logically sound idea rather than a convenient fiction. It sounds obvious once stated, which is exactly why it went unnoticed and unnamed until after the first and second laws were already established, hence “zeroth”.
11.2 Heat, Internal Energy, Work, and the First Law of Thermodynamics
Internal energy is the sum of all the microscopic kinetic and potential energy inside a system, the random translational, rotational and vibrational motion of its molecules, and the energy stored in the forces between them. The one property that matters most about is that it is a state variable: its value is fixed entirely by the current state of the system (for an ideal gas, by its temperature alone), with no memory of how that state was reached.
Heat and work are different in kind. Neither is something a system has, both are modes of energy in transit, across the boundary of the system, and both can depend on the exact path taken between two states even when the start and end states are identical. Saying “this gas contains so much heat” is not loose language, it is simply false; the gas contains internal energy, and heat is one of the two ways that energy gets transferred in or out.
The first law of thermodynamics is nothing more than energy conservation, written so as to keep heat and work separately visible:
with the sign convention used throughout this chapter: is positive when heat is absorbed by the system, and is positive when work is done by the system on its surroundings (such as a gas pushing a piston outward). Get either sign backwards and every later result in this chapter, isothermal work, adiabatic cooling, engine efficiency, comes out wrong, so it is worth fixing firmly: heat in is positive, work out is positive, and both appear on the side of the equation that increases .
For a gas doing work only by changing its volume against a pressure , the work done by the gas as it expands from to is the area under its P-V curve:
which depends on the exact shape of that curve, the path, not just its endpoints. depends only on the endpoints. then has to absorb whatever path-dependence is left over, which is exactly why heat, like work, cannot be a state variable.
11.3 Thermodynamic Processes: Isothermal, Adiabatic, Isochoric, Isobaric and Cyclic
A thermodynamic process is any change from one equilibrium state of a gas to another. Five idealized processes get names of their own, four of them defined by which single thing is held fixed throughout (temperature, heat flow, volume or pressure), and the fifth by where it ends up. Two of them matter more than any others in this chapter, because they sit at opposite extremes of how a gas exchanges heat with its surroundings while its volume changes: the isothermal and the adiabatic process, which come first. The isochoric, isobaric and cyclic processes follow in §11.3.3 to §11.3.5.
11.3.1 Isothermal processes
An isothermal process holds temperature fixed throughout, which requires the gas to be in contact with a large heat reservoir and for the change to happen slowly enough that heat has time to flow in or out and keep constant at every instant. Since an ideal gas’s internal energy depends on temperature alone, fixed means for the entire process, no matter how far the volume changes. The first law then collapses to : every joule of heat that flows in becomes a joule of work done by the gas, and nothing is left over to change .
With constant, Boyle’s law fixes the whole curve, and integrating from to gives the work done by moles of gas in an isothermal process:
11.3.2 Adiabatic processes, and the diesel-engine effect
An adiabatic process is the opposite extreme: the system is thermally insulated, so at every instant, achieved in practice either by genuinely insulating the gas or, just as often, by changing its volume so fast that heat simply has no time to flow before the process is over. With , the first law gives:
Compress the gas and it does negative work (work is done on it), so is positive and its temperature rises, with no flame, heater, or heat source anywhere nearby. This is exactly the contrast the simulation on the concept page is built around: compress the same gas, from the same starting point, adiabatically and it visibly reddens as it heats; compress it isothermally instead and its colour never moves, a reservoir quietly pulls the same heat back out as fast as compression makes it. It is also precisely why a diesel engine needs no spark plug: the piston compresses air fast enough that the compression is effectively adiabatic, and that alone drives the air’s temperature past the ignition point of injected diesel fuel.
Because is no longer fixed, Boyle’s law does not apply; instead an adiabatic process of an ideal gas follows:
where (next section) is always greater than 1, which is why the adiabatic curve through any point on a P-V diagram is always steeper than the isothermal curve through that same point. Combining with also gives , and integrating along this curve gives the work done by the gas between states and :
Worked example
Adiabatic compression heats a gas with no heater at all
2.0 L of an ideal diatomic gas () at 100 kPa and 300 K is compressed adiabatically, quickly, to 0.80 L. Find the final temperature and the work done on the gas.
First the final temperature, from :
which is a jump of nearly 133 K from compression alone. The final pressure, from :
and the work done by the gas, then on it (opposite sign); since , pressures in kPa and volumes in L can be multiplied directly:
which checks out against the first law directly: with , every one of those 221.3 J done on the gas becomes , raising its temperature.
11.3.3 Isochoric processes: constant volume
An isochoric process holds the volume fixed, which is what happens to a gas sealed inside a rigid container while it is heated or cooled. With constant, at every instant, so the work integral from §11.2 vanishes no matter how much the pressure and temperature change along the way:
and the first law, , collapses to:
Every joule of heat supplied goes straight into internal energy, and so straight into raising the temperature, since the gas cannot spend any of it pushing a piston. Heating at constant volume is exactly the situation that defines in §11.4, so the heat is also . On a P-V diagram an isochoric process is a vertical line, and a vertical line has zero area under it, which is the same statement as seen geometrically. The air in a car tyre on a long, hot drive is close to this case: the tyre barely changes volume, so the extra internal energy shows up as a rise in temperature and pressure.
11.3.4 Isobaric processes: constant pressure
An isobaric process holds the pressure fixed, for example a gas under a freely sliding piston that carries a fixed weight, so the gas is always pushing against the same pressure while it expands or contracts. With constant, it comes straight out of the work integral:
Applying at the start and at the end, both at the same , gives and , so the same work can be written in terms of the temperature change instead:
Unlike the isothermal case, the temperature now changes, so the internal energy changes too, and the heat supplied has to pay for both: . Heating at constant pressure is exactly the situation that defines in §11.4, so . On a P-V diagram an isobaric process is a horizontal line, and the area under it is just a rectangle of height and width , which is again.
11.3.5 Cyclic processes, and the area of the loop
A cyclic process is any sequence of steps that ends with the gas back in exactly the state it started from: same pressure, same volume, same temperature. Because internal energy is a state variable (§11.2), it has to come back to its starting value too, however wild the route in between, so over one complete cycle. Putting that into the first law:
The net heat absorbed over a cycle equals the net work done by the gas over that cycle, which is exactly the fact every heat engine in §11.5 depends on. On a P-V diagram a cyclic process is a closed loop, and the net work done in one trip around it equals the area enclosed by the loop. The reason is the area-under-the-curve rule from §11.2: on the expanding part of the loop the gas does positive work equal to the area under that part of the curve, and on the compressing part, which runs back at lower pressure, work equal to the area under the lower curve is done on the gas. The difference between the two areas is the region between the curves, the enclosed area. If the loop is traced clockwise the gas expands at higher pressure than it is compressed at, so the net work done by the gas is positive (an engine); traced anticlockwise, the net work is done on the gas (a refrigerator, §11.7).
Worked example
A rectangular cycle: isochoric legs, isobaric legs, and the area of the loop
An ideal diatomic gas () is taken around a rectangle on a P-V diagram: from A (100 kPa, 2.0 L) to B (300 kPa, 2.0 L) at constant volume, then to C (300 kPa, 5.0 L) at constant pressure, then to D (100 kPa, 5.0 L) at constant volume, and back to A at constant pressure. Find the work done and heat absorbed on the isochoric leg AB and on the isobaric leg BC, then the net work and net heat for the whole cycle.
Two set-up facts first. Putting into (§11.4) gives and . And since , , so without needing at all. As before, kPa times L gives J directly.
Leg AB (isochoric), so no work is done and all the heat becomes internal energy:
Leg BC (isobaric), so the work is and the heat pays for both work and internal energy:
which agrees with . For the whole cycle, only the two isobaric legs do any work; on DA the gas is compressed at 100 kPa, so , and:
which is exactly the area of the rectangle:
Since around the cycle, . Checking this the long way, the other two legs give and , and , as it must. Notice the gas absorbed 4150 J on the way round but turned only 600 J of it into net work, about 14.5%; this loop is already a crude heat engine, the subject of §11.5.
11.4 Specific Heats Cp and Cv, and Why Cp Exceeds Cv
How much heat raises a gas’s temperature by a fixed amount depends on how it is heated, specifically, whether its volume or its pressure is held fixed while heating. This gives two distinct molar specific heats: , the heat needed per mole per kelvin at constant volume, and , the same thing at constant pressure.
At constant volume (an isochoric process, §11.3.3), the gas cannot expand, so it can do no work at all (), and the first law says every joule of heat supplied goes directly into :
At constant pressure (an isobaric process, §11.3.4), raising the temperature by the same still requires that same (internal energy of an ideal gas depends on alone, regardless of path), but now the gas also expands and does positive work on its surroundings, and that work has to be paid for with additional heat on top of what raised :
so must exceed , for exactly the same , heating at constant pressure costs strictly more heat because some of it leaks out as expansion work rather than staying behind as internal energy. Substituting (from the ideal gas law at constant , §11.3.4) gives the exact gap between them:
independent of the gas, a genuinely universal relation for any ideal gas, monatomic or diatomic.
11.5 Heat Engines and the Second Law of Thermodynamics
A heat engine is any device that absorbs heat from a hot reservoir, converts part of it into work , rejects the rest, , to a cold reservoir, and returns to its starting state so it can repeat the cycle indefinitely. Returning to the starting state matters, it means over one full cycle, so the first law forces:
Its efficiency is the fraction of the absorbed heat that actually becomes useful work:
It is tempting to imagine a sufficiently clever engine with , converting every joule of absorbed heat straight into work, . The second law of thermodynamics forbids this absolutely, not as an engineering shortfall but as a structural limit on what any cyclic process can do:
No process is possible whose sole result is the absorption of heat from a reservoir and its complete conversion into work. (Kelvin-Planck statement)
Every real heat engine must reject some heat to a cold sink; a refrigerator or heat pump (§11.7) is the mirror image, using external work to force heat to flow from cold to hot, which is the direction it never flows on its own, the companion Clausius statement of the same law. Both are experimentally equivalent statements of the same underlying fact: heat engines have a hard ceiling on efficiency, well short of 100%.
11.6 The Carnot Engine and Its Efficiency
If every real engine falls short of , the natural next question is: what is the best possible efficiency between two given temperatures? Sadi Carnot answered this with an idealized engine built from four reversible steps, working between a hot reservoir at and a cold one at , with an ideal gas as the working substance and its volume labelled to at the four corners of the cycle:
- 1 → 2: isothermal expansion at , from to , absorbing heat from the hot reservoir.
- 2 → 3: adiabatic expansion from to , cooling the gas from down to with no heat exchange.
- 3 → 4: isothermal compression at , from to , rejecting heat to the cold reservoir.
- 4 → 1: adiabatic compression from back to , returning the gas from back up to , closing the cycle.
Every one of these four steps is a process already derived in §11.3, the Carnot cycle adds nothing new physically, it simply chains two isothermal and two adiabatic steps together in the most efficient possible sequence. and are both counted as positive amounts, heat taken in and heat thrown out, exactly as in §11.5, where the efficiency of any engine came out as . So everything hinges on one ratio, , and the three steps below find it using nothing but the results of §11.3.
11.6.1 Step 1: the heat exchanged on the two isothermal legs
On leg 1 → 2 the temperature is fixed at , so and (§11.3.1): the heat absorbed equals the work done by the gas, which is the isothermal-work formula of §11.3.1 with the volume going from to :
which is positive, since makes the logarithm positive. On leg 3 → 4 the same formula applies at , with the volume now going from to :
This time , so the logarithm is negative: work is done on the gas and heat flows out of it. The heat rejected, , is the positive size of that outflow, so it carries a minus sign, and flips the ratio inside the logarithm:
Dividing the second result by the first, cancels:
This is not yet. It still contains two volume ratios, from the cold isotherm and from the hot one, and nothing about the isothermal legs on their own says those two ratios have to be equal. The adiabatic legs are what settle it.
11.6.2 Step 2: the two adiabatic legs force V3/V4 = V2/V1
Along any adiabatic process of an ideal gas, stays constant (§11.3.2). Leg 2 → 3 is adiabatic, starting at temperature and volume and ending at and , so:
Leg 4 → 1 is adiabatic too, starting at and and ending at and , so , or, written with the side first to match (i):
Now divide (i) by (ii), left side by left side and right side by right side. cancels on the left and cancels on the right:
Both ratios are positive and is not zero ( always), so taking the th root of both sides is safe:
In plain terms: both adiabatic legs span the same temperature gap, to , so each one stretches (or squeezes) the volume by the same factor, , which can be read straight off (i) and (ii). is times that factor and is times the same factor, so dividing one by the other leaves the ratio unchanged.
11.6.3 Step 3: Q2/Q1 = T2/T1, and the Carnot efficiency
Since , the two logarithms in the step 1 ratio are the same number, , and they cancel:
The heat thrown away and the heat taken in stand in exactly the ratio of the two reservoir temperatures, with every volume, and the amount of gas, gone from the answer. Substituting this into the general engine efficiency from §11.5:
The same answer comes out by a second route, adding up the work done on all four legs directly. The adiabatic work formula of §11.3.2, with at each end, becomes:
so leg 2 → 3 gives and leg 4 → 1 gives : equal and opposite, so the two adiabatic legs cancel exactly. Adding all four legs:
using in the last step. Dividing by :
The working substance here was an ideal gas, chosen because its equations make the algebra short. NCERT goes on to show, by coupling a Carnot engine to any other engine working between the same two reservoirs, that the same efficiency holds whatever the working substance, so the result belongs to the two temperatures alone.
Worked example
Watching the volume ratios line up in an actual Carnot cycle
0.50 mol of an ideal diatomic gas () runs a Carnot cycle between a hot reservoir at and a cold one at , with the isothermal expansion taking it from to . Find and , then and , and check that really comes out as . (Take .)
From (i) and (ii), each adiabatic leg scales the volume by the same factor, with :
so , exactly as step 2 promised. The two heats, from step 1:
and the net work and efficiency follow:
Each adiabatic leg moved of work, out of the gas on the way down in temperature and back into it on the way up, cancelling exactly, which is why the net work is just .
This is the theoretical ceiling: no engine, however cleverly designed, can exceed while operating between the same two temperatures, and a Carnot engine is the only kind that actually reaches it, because every one of its four steps is reversible. Real engines fall short of even this ceiling because real processes involve friction and irreversible heat loss that the idealized Carnot cycle has no room for. Notice, too, that reaches 1 only if , absolute zero, which is itself unreachable, a different, related limit this chapter does not derive but is worth knowing by name (the third law of thermodynamics).
Worked example
How much hotter must the source be to gain 10 percentage points of efficiency?
A Carnot engine rejects heat to a sink at 290 K and currently runs at 35% efficiency. Find its source temperature, then find the new source temperature needed to raise the efficiency to 45%, keeping the same sink.
From , solving for :
and at 45% efficiency, with the same sink:
Gaining ten more percentage points of efficiency needed the source to climb by over 80 K, efficiency gains get steadily more expensive in temperature as approaches 1, since would need to diverge to reach exactly.
Worked example
A steam engine's efficiency, and the heat it wastes every minute
A steam engine delivers 5.4×10⁸ J of work per minute and services a boiler at a temperature of 727°C with the sink at a temperature of 27°C. What is the efficiency of the engine? How much heat is wasted per minute, assuming it is an ideal engine?
Converting both reservoir temperatures to kelvin, and , and treating it as an ideal (Carnot) engine:
With , the heat absorbed per minute follows from :
and the heat wasted (rejected to the sink) per minute is:
Worked example
A Carnot engine's work output, starting from heat measured in calories
A Carnot engine takes 3×10⁶ cal of heat from a reservoir at 627°C and gives it to a sink at 27°C. What is the work done by the engine?
Converting temperatures, and , the Carnot efficiency is:
Converting the absorbed heat to joules first (1 cal = 4.186 J):
and the work done is this fraction of the absorbed heat:
11.7 Refrigerators, Heat Pumps & COP
A refrigerator (or a heat pump) is a Carnot engine run backward: instead of letting heat fall from hot to cold to extract work, external work is spent to force heat to flow the wrong way, from the cold reservoir to the hot one. Every arrow in §11.6’s cycle simply reverses: the engine absorbs from the cold reservoir (inside the fridge), has work done on it, and rejects to the hot reservoir (the room).
What counts as “useful output” depends on which job the device is doing. A refrigerator’s job is to remove heat from the cold space, so its coefficient of performance compares that extracted heat to the work it costs:
Dividing numerator and denominator by brings in §11.6.3’s Carnot result, , directly:
A heat pump runs the identical cycle, but its job is the opposite one: delivering heat into a warm space (heating a room in winter by pumping heat in from the cold outside air), so its COP compares the delivered heat , not the extracted heat, to the work:
Comparing the two formulas directly shows they differ by exactly one:
which makes sense from energy conservation alone: the heat delivered, , is always more than the heat extracted, , so dividing through by must give a ratio exactly 1 larger. Notice too that COP has no upper limit of 1 the way engine efficiency does, can be, and usually is, much larger than 1: a real refrigerator routinely moves several times more heat than the electrical work it consumes, which is why COP, not efficiency, is the number printed on an appliance’s energy label.
Worked example
A kitchen refrigerator's COP, and how much heat it dumps into the room
A refrigerator keeps its interior at −10°C (263 K) while venting heat into a kitchen at 27°C (300 K), and is assumed to behave as a Carnot refrigerator. (a) Find its COP, and the COP it would have as a heat pump instead. (b) If the compressor does 100 J of work per cycle, find the heat extracted from the interior and the heat dumped into the kitchen.
exactly one more than , as it must be. (b) With :
As a check, , matching exactly: every joule of electrical work spent moves over seven joules of heat out of the food compartment, which is exactly why refrigeration is judged by COP rather than by any “efficiency” percentage.
