- The zeroth and first law of thermodynamics
- Work done by a variable force
- Integrating standard functions · coming soon
The same squeeze, two different gases
Boyle's law says that if you halve the volume of a gas, its pressure doubles. You have used it many times. But Boyle's law has a condition, and it is easy to forget: the temperature must not change. A gas that is squeezed does not always keep its temperature. The last lecture showed why: pushing a piston in does work on the gas, and work raises its internal energy.
So what happens to the pressure depends on how you squeeze. Make a prediction.
Two cylinders each hold 1.0 L of air at 100 kPa and 300 K. Cylinder A stands in a large bath of water at 300 K, and its piston is pushed in very slowly to 0.50 L. Cylinder B is wrapped in insulation, and its piston is pushed in quickly to 0.50 L. What are the final pressures? Choose one.
The two compressions on a graph of pressure against volume. Both start at 1.0 L and 100 kPa, and both end at 0.50 L.
The two gases end at the same volume but at different pressures. So "the gas was compressed to half its volume" is not enough information. You also need to know what happened to energy on the way. This lecture studies four standard ways a gas can change, called processes. Each one holds one thing fixed:
- isothermal: the temperature is constant;
- adiabatic: no heat crosses the boundary, ;
- isobaric: the pressure is constant;
- isochoric: the volume is constant.
The tool for all four is a graph of pressure against volume, a p–V diagram. Every point on it is one state of the gas. A process is a path from one point to another.
Work is the area under the path
The last lecture showed that when a piston moves, the work done on the gas is , if the pressure stays constant. It also promised to handle a pressure that changes, on a p–V diagram. Here it is.
Split the path into many thin strips. In each strip, the volume changes by a small amount , and the pressure hardly changes. So the work done on the gas in that strip is . On the p–V diagram, is the area of a thin rectangle under the path. Add up all the strips and let them become infinitely thin, exactly as for a variable force:
So the size of the work is the area under the path on the p–V diagram. The sign comes from the direction. Moving left (compression) means work is done on the gas, so is positive. Moving right (expansion) means the gas does work on its surroundings, so is negative.
That is it. That is the whole idea. Different paths between the same two states have different areas under them, so the work is different. Since is fixed by the two end states, the first law, , then says the heat is different too. The p–V diagram makes this visible.
The two easy processes: constant volume and constant pressure
Isochoric. The volume does not change, so the path is a vertical line. There is no area under a vertical line, so . The first law gives : all the heat goes into internal energy. Per mole, , where is the molar heat capacity at constant volume: for a monatomic gas and for air near room temperature.
Isobaric. The pressure does not change, so the path is a horizontal line, and the area under it is a rectangle: . For an ideal gas, . So the heat needed is
This means that the molar heat capacity at constant pressure is . The last lecture met this as a result of one example. Now you can see why it is always true for an ideal gas. At constant pressure, each mole must also do joules of work for each kelvin of warming. The ratio of the two heat capacities gets its own letter:
For a monatomic gas, . For air, . The measured heat capacities agree: from J mol⁻¹ K⁻¹ for helium and 20.6 J mol⁻¹ K⁻¹ for nitrogen, and 1.40.
Isothermal: temperature held constant
For a fixed amount of ideal gas at constant , is constant. So , and the path is a curve called an isotherm. Since depends only on , . So : whatever work is done on the gas leaves it again as heat, and the other way round.
Now use the area rule. With and constant:
Check the sign. In an expansion, , so the logarithm is positive and is negative: the gas does work. Heat flows in to keep the temperature up.
How can a real process be isothermal? Heat must flow in or out as fast as the work changes the energy. So the gas must be in good thermal contact with surroundings at a fixed temperature, and the change must be slow. The bath around cylinder A did this. Insulation does the opposite, so an insulated gas cannot be isothermal.
Adiabatic: no heat crosses
In an adiabatic process, . The first law gives . Every joule of work done on the gas raises its internal energy, so compression heats it and expansion cools it. Two situations give : good insulation, or a change so fast that heat has no time to flow.
What path does the gas follow? This is the hard part of the lecture, so go slowly. The answer comes from putting the first law together with the gas law, for one small step.
In a small step, the temperature changes by and the volume by . With , the first law says
The gas law must hold at every step too. Differentiate it:
The first equation gives . Put this into the second:
Divide by and integrate:
In a slow adiabatic change of an ideal gas, , where .
With , the same law can be written .
The work is easy to find without integrating, because :
The last form uses and .
Why is the adiabat steeper than the isotherm? The equation gives the gradient at once: . On an isotherm, is constant, so . At the same point, the adiabat is steeper by the factor . The reason is physical. In an adiabatic compression, the pressure rises for two reasons: the molecules are crowded into less space, and they move faster because the gas is hotter. On an isotherm, only the first reason acts.
Air is compressed adiabatically from 300 K. A student uses with the temperature in °C: 27 °C. Why must the temperature be in kelvin, when the volume can be in litres?
Show the answer
The volume only appears as a ratio, , and a ratio is the same in litres or cubic metres. The temperature is multiplied by that ratio. Doubling a temperature has a physical meaning only on the kelvin scale, where zero is absolute zero. Doubling 27 °C to 54 °C is not doubling anything in the gas. Doubling 300 K to 600 K doubles the average kinetic energy.
All four on one diagram
Start from one state and draw all four processes through it. This picture is worth knowing well.
Now try each process yourself. The graph below starts from the same state. Choose a process and a final state. The shaded area is the size of the work, and the readouts keep the first-law account.
Choose a process and a gas. Then move the slider to choose where the process ends. Watch the shaded area, the final temperature, and how Q, W and ΔU change. The thin grey lines are the isotherm (solid) and the adiabat (dashed) through the start.
Process:
Gas:
The table shows each process for air (), starting from 1.00 L, 100 kPa and 300 K. Compressions end at 0.50 L, and the isochoric change ends at 200 kPa. is the work done on the gas and the heat supplied to it, in joules.
| Process | End | |||
|---|---|---|---|---|
| Isothermal | 200 kPa, 300 K | +69.3 | −69.3 | 0 |
| Adiabatic | 264 kPa, 396 K | +79.9 | 0 | +79.9 |
| Isobaric | 100 kPa, 150 K | +50.0 | −175.0 | −125.0 |
| Isochoric | 1.00 L, 600 K | 0 | +250.0 | +250.0 |
The three compressions start and end at the same volumes, but the areas under their paths differ, so the work differs. In each row, .
Three things should stand out. The isochoric path has no area, so all its energy arrives as heat. In the adiabatic compression, stays at zero, yet is the largest of the three compressions, and the temperature climbs. And the isobaric compression is a surprise: work is done on the gas, yet it cools to 150 K. To keep the pressure constant while the volume halves, the temperature must halve, so a lot of heat must leave.
Worked examples
2.0 mol of an ideal gas expands slowly at a constant 400 K, from 10 L to 25 L. Find the work done by the gas and the heat supplied to it.
So the gas does about 6090 J of work on its surroundings. The volumes appear only as a ratio, so litres are fine here.
The temperature is constant, so , and J. Heat flows in, and all of it leaves again as work.
Check: , and . ✓
A diesel engine draws in air at 300 K and 100 kPa, then compresses it quickly to of its volume. Treat the compression as adiabatic, with . Find the final temperature and pressure.
That is about 680 °C, at about 57 times atmospheric pressure. Fuel sprayed into air this hot ignites by itself. Real diesel engines use compression ratios of about 14 to 22, and some heat does leak to the cylinder walls, so the real air is a little cooler. It is still hot enough, typically above about 530 °C.
Check: should equal . Here , and . ✓
Air starts at 1.00 L, 100 kPa and 300 K, and expands to 2.00 L. Find the work done by the gas if the expansion is isobaric, isothermal, or adiabatic. Rank them, and explain the ranking with the p–V diagram.
Note that J.
Isobaric: work by the gas J.
Isothermal: work by the gas J.
Adiabatic: kPa, so J. Work by the gas J.
Ranking: isobaric (100 J) > isothermal (69.3 J) > adiabatic (60.5 J). On the diagram, the horizontal line stays highest, the isotherm falls, and the adiabat falls fastest. The higher the path, the more area under it, and the more work.
Check: the adiabatic gas does 60.5 J of work with no heat supplied, so J. Its temperature falls to K. ✓
The same air goes round a cycle. A → B: isobaric expansion at 100 kPa from 1.00 L to 2.00 L. B → C: isochoric cooling to 50 kPa. C → A: isothermal compression at 300 K back to 1.00 L. Find , and for each stage and for the whole cycle.
A → B: doubles to 600 K. J, J, so J.
B → C: the pressure halves at constant volume, so falls back to 300 K. , J, so J.
C → A: isothermal at 300 K, so . J, so J.
Whole cycle: , because the gas is back in its starting state. J, so the gas does 30.7 J of net work. J.
This is a heat engine. Each cycle, 30.7 J of heat in total becomes 30.7 J of work. But to get it, 350 J had to be taken in and 319.3 J given out. Why some heat must always be given out is the business of the second law, and the best possible cycle is the Carnot cycle, made of two isotherms and two adiabats.
Check: the net work equals the area of the loop, the rectangle under A → B (100 J) minus the area under the isotherm (69.3 J). ✓
Three traps
holds only at constant temperature. For a quick or insulated change, use . In the opening cylinders, Boyle's law gives 200 kPa, but the insulated gas reaches about 264 kPa.
Insulation stops heat, not temperature change. An insulated gas that is compressed gets hotter, because the work stays inside it. Adiabatic means . Isothermal means , and it needs the opposite: good thermal contact, so that heat can flow.
The adiabatic law was derived assuming the gas has one pressure throughout at every step, which needs a smooth change. Open a valve so that a gas rushes into an empty, insulated container. No heat crosses, so the process is adiabatic. But the gas pushes on nothing, so , and for an ideal gas : the temperature does not change. is not constant. Use the law only when the gas changes smoothly, with no sudden rushes. The change must be quick compared with heat flow, but slow compared with the time sound takes to cross the gas.
Work each one on paper first. Open a hint only when you are stuck. Use J mol⁻¹ K⁻¹.
-
0.50 mol of nitrogen in a rigid steel tank is warmed from 290 K to 350 K. Treat nitrogen as an ideal diatomic gas. How much heat is supplied?
Hint 1
The tank is rigid. Which process is this, and what is ?
Hint 2
Isochoric, so with .
Full answer
, so J.
Check: the measured of nitrogen, 20.6 J mol⁻¹ K⁻¹, gives J, within 1%. ✓
-
0.20 mol of gas in a cylinder standing in a water bath at 300 K is compressed slowly from 5.0 L to 2.0 L. Find the work done on the gas and the heat that flows into the bath.
Hint 1
The bath keeps the temperature fixed. Which formula gives the work?
Hint 2
with . Then .
Full answer
J.
, so J. About 457 J flows out of the gas into the bath.
Check: in a compression, is negative, so is positive. ✓
-
Helium () at 200 kPa, 1.0 L and 300 K expands adiabatically and smoothly to 4.0 L. Find its final temperature, its final pressure, and the work it does.
Hint 1
Use = constant for the temperature and = constant for the pressure.
Hint 2
and . The work done by the gas is , with in kPa and in L giving joules.
Full answer
K.
kPa.
Work done by the gas J.
Check: mol, and J. The work done by the gas equals its loss of internal energy, as it must when . ✓
-
In a classroom demonstration, air in a closed plastic bottle at 25 °C is pumped up to 150 kPa. Then the cap is pulled off and the air rushes out until the pressure inside is 100 kPa. Treat the air that stays in the bottle as expanding adiabatically, with . Find its new temperature. Explain why a fog appears in the bottle.
Hint 1
You know the pressures, not the volumes. Combine = constant with to get a law that links and .
Hint 2
The result is . Use K.
Full answer
From , . Put this into = constant: = constant, so .
K, about −8 °C.
The air that stays in the bottle pushes the escaping air out, so it does work and cools sharply, with no time for heat to flow in. Cold air can hold much less water vapour, so some vapour condenses into tiny droplets: a fog. It clears as heat flows in through the bottle and the air warms again.
Check: the expansion is the reverse of the diesel compression: work done by the gas with lowers , and so . ✓
Isaac Newton calculated the speed of sound in his Principia of 1687. He treated each squeeze of air in a sound wave with Boyle's law, as if it were isothermal. His answer, close to 300 m/s, was about 15% below what experimenters measured, and for more than a century nobody could explain the gap. In 1816, Pierre-Simon Laplace found it. The compressions in a sound wave come and go so fast that heat has no time to flow between them. Each squeeze is adiabatic.
The speed of sound in a gas is , where is the density. An isothermal gas has stiffness . An adiabatic gas is stiffer by the factor , because it heats as it is squeezed: exactly the steeper adiabat. For air at 0 °C, with Pa and kg m⁻³, Newton's method gives m s⁻¹, while m s⁻¹, the measured value.
None of the four processes is exactly real. Some heat always leaks, and no temperature is held perfectly. They are ideal limits, and the skill is to judge which limit a real change is near. Sound, diesel engines and rising air are close to adiabatic. A gas in a slowly moved syringe under water is close to isothermal. A sealed steel tank is isochoric. The Carnot cycle, two lectures from now, joins two isotherms and two adiabats into the best engine that physics allows.
- On a p–V diagram, the work done on a gas is , so the size of the work is the area under the path.
- Isochoric: and ; isobaric: , which is why for an ideal gas.
- Isothermal: , , and , which needs good thermal contact and a slow change.
- Adiabatic: and , and for a smooth change of an ideal gas and are constant, with .
- An adiabat is steeper than an isotherm by the factor , because a compressed adiabatic gas also gets hotter.
- Different paths between the same two states need different work and different heat, but the same .