Pump up a bicycle tyre and feel the end of the pump: it is warm. Let air hiss out of a tyre valve and the valve turns cold. Air rising up a mountain cools so much that clouds form. Nothing hot touched the pump and nothing cold touched the valve. In all three cases a gas has had work done on it, or has done work itself, and its temperature changed as a result. This lesson puts heat (lesson 4.5) and work (lesson 3.1) into one rule, the first law of thermodynamics: energy is conserved, also when heat is involved.
Internal energy#
Lesson 4.2 called the total energy of all the particles of an object its thermal energy, or internal energy: the kinetic energy of their random motion plus the potential energy of the forces between them. Physicists write it as , measured in joules.
For an ideal gas the particles do not attract each other (lesson 4.3), so there is no potential energy between them. If the gas is monatomic, made of single atoms such as helium, neon or argon, the atoms cannot spin or vibrate either, and all of is the kinetic energy of their motion from place to place. Lesson 4.4 showed that each atom has on average of kinetic energy. For atoms, or moles, that gives
In words
U equals three halves capital N k B T equals three halves n R T
The MIT 8.21 course writes the same result (Lecture 4, slide 4). Two consequences matter for the rest of the lesson:
- depends only on the temperature, not on the volume or the pressure. Squeeze an ideal gas while keeping its temperature fixed, and its internal energy does not change (8.044 Lecture 6, slides 16 and 17, which also show this in an experiment).
- Because , the internal energy can also be written as .
For a gas of molecules that can also spin and vibrate, such as the nitrogen and oxygen of air, is larger (lesson 4.4) but still depends only on as long as the gas is ideal.
The internal energy is a property of the state of the gas: once you know its pressure, volume and temperature, is fixed, however the gas got there (8.044 Lecture 6, slide 6). Heat and work are different: they are amounts of energy on the move, and how much of each flows depends on the way the gas is changed.
A helium balloon
A balloon holds of helium at . What is the internal energy of the helium? How much does it change when the sun warms the balloon to ?
Internal energy
, so .
The change
Only the temperature matters, and it rises by : . The balloon also swells, but that does not change directly.
Heat and work: the first law#
There are two ways to change the internal energy of a gas.
- Heat (lesson 4.5): energy flows in because the surroundings are hotter, or out because they are colder.
- Work (lesson 3.1): a force moves something. Push a piston into a cylinder and you do work on the gas; the molecules bounce off the moving piston faster than they hit it, so they gain kinetic energy.
Energy is never created or destroyed (lesson 3.4), so the change in internal energy is exactly what flows in as heat plus what is put in as work:
In words
capital delta U equals Q plus W
Here is the heat added to the gas and is the work done on the gas. Each can be positive or negative:
| positive | negative | |
|---|---|---|
| heat flows into the gas | heat flows out of the gas | |
| work is done on the gas (it is compressed) | the gas does work (it expands and pushes its surroundings away) |
This is how the MIT course 8.044 writes the law (Lecture 6, slide 8). The 8.044 course in fact turns it round and uses it to define heat: is the part of the change in that is not work (slide 7). Lesson 4.5 already used the idea that heat lost by one object is heat gained by another; the first law adds work to that bookkeeping.
Keeping the books
(a) A gas in a cylinder takes in of heat from a flame and at the same time pushes the piston out, doing of work. What is ? (b) Later the piston is pushed in, doing of work on the gas, while of heat leaks out through the walls. What is now?
(a) Signs first
Heat flows in: . The gas does the work: . So : the gas ends up warmer.
Work done by a gas#
Take a gas in a cylinder closed by a piston of area . The gas pushes on the piston with a force (lesson 4.1). If the piston moves out by a small distance while the pressure stays the same, the gas does work (lesson 3.1). But is just the increase in volume , so
In words
W by equals p capital delta V, W equals minus p capital delta V
When the gas expands, is positive: the gas does work and (the work done on it) is negative. When it is compressed, is negative and is positive. If the volume does not change, no work is done at all, however large the pressure. Units: pascal times cubic metre is newton per square metre times cubic metre, a newton metre, a joule.
Work as an area
On a graph of pressure against volume, a – diagram, every state of the gas is a point and every change is a path between two points. At constant pressure the path is a horizontal line, and is the area of the rectangle under it. When the pressure changes along the way, the work is still the area under the path (for a slow change, in which the gas has one pressure throughout; MIT 8.044 Lecture 5, slide 18), just as the work of a changing force is the area under a force–displacement graph (lessons 0.10 and 3.1). NASA's guide to thermodynamics explains it in the same way.
So the work depends on the path, not only on where the gas starts and ends (8.044 Lecture 5, slides 18 to 20). Two different paths between the same two points enclose different areas, so the gas does different amounts of work, and by the first law it must also take in different amounts of heat. Only is the same for both, because belongs to the state.
Heating helium under a piston
Helium sits in a cylinder under a piston that moves freely, so its pressure stays at . It is heated, and its volume grows from to ; it started at . Find the work done by the gas, the change in internal energy, the heat added and the final temperature.
Work
, so , and .
Internal energy
and is fixed, so .
Temperature
At constant pressure stays the same (Charles's law, lesson 4.3): .
Four simple processes#
Most changes of a gas are mixtures, but four simple kinds, each keeping one thing fixed, show the first law at work. The 8.044 course lists the same four, with the experiment that keeps each one fixed: a closed rigid container, a freely floating piston, a large bath at one temperature, and thermal insulation (Lecture 6, slide 14).
Constant volume
In a rigid closed container the volume cannot change, so and
In words
capital delta U equals Q
All the heat goes into internal energy. Heat the helium of the last example at constant volume from to : is again (the same gas and the same temperature rise), so only of heat is needed instead of . For a monatomic gas, warming at constant pressure takes times as much heat as warming at constant volume (8.044 Lecture 6, slide 19). The extra heat is the work the gas does on the piston. This process is also called isochoric.
Constant pressure
With a freely moving piston, the pressure stays the same and the gas does work when it expands, as in the example above:
In words
Q equals capital delta U plus p capital delta V
The heat that goes in is split: part raises the internal energy and part leaves as work. This process is called isobaric.
Constant temperature
Let a gas expand slowly while it touches something large at a fixed temperature, such as a big water bath. Its temperature stays the same, and for an ideal gas so does its internal energy:
In words
capital delta U equals 0 which gives Q equals minus W equals W by
Every joule of heat that flows in from the bath leaves again as work done by the gas. Pushed in slowly instead, the gas gives the work done on it back to the bath as heat. On a – diagram the path is an isotherm, the curve of Boyle's law (lesson 4.3). The area under it is not a rectangle; the university course works it out with a logarithm (lesson 0.9):
In words
W by equals n R T log V two over V one
You do not need to remember this formula; the worked example below uses it once.
No heat: adiabatic
Wrap a gas in insulation, or change it so fast that heat has no time to flow, and . A change without heat is called adiabatic:
In words
Q equals 0 which gives capital delta U equals W
Now the work alone decides what happens to the internal energy, and so to the temperature:
- Compressing a gas adiabatically does work on it (), so and the temperature rise. This is why a bicycle pump gets warm: each stroke is quick, little heat escapes, and the air in the pump heats up. Diesel engines use the same effect: they squeeze the air in the cylinder so quickly and so far that it becomes hot enough to light the fuel without a spark.
- Expanding a gas adiabatically makes it do work on its surroundings (), so and the temperature fall. The gas pays for its work out of its own internal energy. Air rushing out of a tyre valve pushes the outside air aside and cools. (A spray can also turns cold when you use it, but mainly for another reason: the liquid inside it evaporates, which takes heat, lesson 4.6.)
An adiabatic path on a – diagram is steeper than an isotherm through the same point: when the gas expands, its pressure falls both because the volume grows and because the gas cools. For a monatomic ideal gas the university course finds
In words
p V to the power five thirds equals constant, T V to the power two thirds equals constant
You will not need these formulas at school; the graph below and the worked example use them to draw the curve and to find the final temperature.
A quick squeeze
A sealed syringe holds of helium at . You push the plunger in so quickly that no heat can flow, doing of work on the gas. How hot does the helium get?
First law
, so .
Temperature
, so . The helium goes from to about , well above the boiling point of water.
Rising air cools
The air pressure falls with height (lesson 4.1). A bubble of warm air that rises therefore expands, and because it is large, heat flows into or out of it far too slowly to matter: the expansion is close to adiabatic. The rising air does work on the air around it and cools. A rising bubble of dry air cools by close to for every kilometre it climbs (the university course derives this from the heat capacity of air, about 1.01 J/(g K), MIT 8.21 Lecture 4, slide 6). The air around it is on average less cold higher up: NASA's standard model of the atmosphere has its temperature falling by about for every kilometre of height. When the rising air has cooled enough, the water vapour in it condenses into droplets: a cloud. That condensation gives off latent heat (lesson 4.6), which is one reason why the average fall is less steep than that of a dry bubble.
Comparing the paths on a graph#
The graph shows three ways to change one mole of helium that starts at and , so at : at constant pressure (a horizontal line), at constant temperature (an isotherm) and without heat (an adiabat). Move the slider to choose the final volume and compare the three end points. To the right of the start the gas expands; to the left it is compressed. The adiabat is the steepest: expanding without heat ends at the lowest pressure, because the gas has also cooled.
Three ways to double the volume
One mole of helium starts at and . It expands to (a) at constant pressure, (b) at constant temperature, (c) without heat. Find for each the work done by the gas, the change in internal energy and the heat added.
The start
, or .
(a) Constant pressure
. The volume doubles, so the temperature doubles too, to : . Heat: .
(b) Constant temperature
. , and the same amount of heat flows in from the bath: .
(c) No heat
stays the same, so . and , so the gas does of work, all paid for by its internal energy.
Engines: heat into work#
A heat engine, such as a car engine or a steam turbine, takes in heat, lets a hot gas expand and do work, and then returns to its starting state to do it again. Over one full cycle , so by the first law the work it delivers can never be more than the heat it takes in. On a – diagram a cycle is a closed loop: the gas does work while it expands along the upper part and has work done on it while it is compressed along the lower part, so the net work of one cycle is the area enclosed by the loop. Lesson 4.9 shows that it is always less: part of the heat must be given off to something colder.
Try it#
On the "Ideal" screen, pump some gas into the box. Under "Hold Constant" choose "Volume (V)" and add heat with the bucket: the pressure and the temperature rise, but the box stays the same size. Then choose "Pressure ↕V" and heat again: now the box grows, so the gas pushes its wall out and does work.
Summary#
- The internal energy is the total energy of all the particles. For a monatomic ideal gas : it depends only on the temperature.
- The first law of thermodynamics: , with the heat added to the gas and the work done on it. Some books use the work done by the gas instead and write .
- A gas expanding at constant pressure does work . In general the work is the area under the path on a – diagram, so it depends on the path; does not.
- Constant volume: , so . Constant pressure: ; a monatomic gas then needs times as much heat for the same warming.
- Constant temperature (ideal gas): , so the heat in equals the work done by the gas.
- Adiabatic (): . Compressing a gas warms it (bicycle pump, diesel engine); expanding a gas cools it (rising air, and the expanding universe of lesson 4.10).