Energy Changes with Heating
In Methods of Heating and Heating you studied energy transfers for solids and liquids changing temperature and state. Here we study those same ideas — energy in, temperature and state changing — in much more depth, but for one state of matter only: the gas. Gases are the easiest state to model mathematically, and it is historically no accident that the science of thermodynamics itself grew out of trying to understand gases in steam engines. Before we can study how a gas's energy changes as it is heated, we need a model of a gas we can actually calculate with — the ideal gas. We won't derive that model from scratch; we'll take its assumptions and its key equation as given, and use them as the foundation for everything that follows: the first law of thermodynamics, the different ways a gas can be heated or compressed, heat engines, and finally entropy and the second law.
- State the assumptions of the ideal gas model, and use n = N/NA to relate amount of substance, number of particles and the Avogadro constant
- Use the ideal gas law PV = NkBT and PV = nRT, and explain how it follows from the empirical gas laws
- Calculate the internal energy of an ideal monatomic gas from U = 3/2 NkBT = 3/2 nRT
- Apply the first law of thermodynamics, Q = ΔU + W, with the correct sign convention
- Identify and calculate work, heat and internal energy change for isothermal, isovolumetric, adiabatic and isobaric processes
- Interpret PV diagrams for thermodynamic cycles, and calculate the efficiency of a heat engine and of a Carnot cycle
- Explain entropy and the second law of thermodynamics, both in macroscopic and microscopic (microstate) terms
1. A model for a gas
Before we can study how the energy of a gas changes as it is heated, cooled, compressed or expanded, we need a way to describe the physical state of a gas — and a model of what a gas actually is at the particle level. This section sets up both: the measurable quantities pressure and amount of substance, and the kinetic theory model of an ideal gas.
Pressure
A force acting on a surface has an effect that depends not just on its size, but on the area over which it acts. Pressure is defined as the force acting perpendicular (normal) to a surface, per unit area of that surface.
A student of mass 58 kg stands on one foot. The area of contact between her shoe and the floor is 130 cm². Calculate the pressure she exerts on the floor.
Answer:
P = F/A = mg/A = (58 × 9.81) / (130 × 10⁻⁴)
Amount of substance
A gas sample typically contains an enormous number of particles — far too many to count individually. Instead we measure the amount of substance, n, in moles.
If you know the mass of a sample and its molar mass (the mass of one mole, in g mol⁻¹), you can find n directly: n = mass / molar mass. Combined with n = N/NA, this lets you move between mass, moles and number of particles for any sample of gas.
A sample of neon gas (molar mass 20.2 g mol⁻¹) has a mass of 15.0 g. Calculate (a) the number of moles of neon in the sample, (b) the number of neon atoms in the sample.
Answer:
(a) n = mass / molar mass = 15.0 / 20.2
(b) N = n × NA = (15.0 / 20.2) × 6.02 × 10²³
The ideal gas model
To predict how a gas behaves, physicists use a simplified, idealized model: the ideal gas. Real gases only approximate this model, but under most everyday conditions the approximation is excellent — good enough that the equations built on it (which we meet in Section 2) accurately predict how real gases behave.
- it contains a very large number of identical particles;
- the volume of the particles themselves is negligible compared with the volume occupied by the gas;
- the particles move in random directions, with a wide range of speeds;
- there are no forces between particles except during collisions, so an ideal gas has no (electrical) potential energy between its particles;
- the particles obey Newton's laws of motion, and all collisions (between particles, and between particles and the container walls) are perfectly elastic.
Check your understanding
(b) N = n × NA = (3200 / 32.0) × 6.02 × 10²³
2. The ideal gas law
A fixed amount of gas, n, sealed in a container, can be fully described by three measurable quantities: its pressure P, volume V and temperature T. Experiments carried out over the last few centuries — keeping one of these quantities fixed at a time — found simple, direct relationships between the other two. These are the empirical gas laws: "empirical" because they come purely from observation and experiment, not from a theoretical model.
| Law | Held constant | Relationship |
|---|---|---|
| Boyle's law | temperature, T | P ∝ 1/V, i.e. P1V1 = P2V2 |
| Pressure law | volume, V | P ∝ T (K), i.e. P1/T1 = P2/T2 |
| Charles' law | pressure, P | V ∝ T (K), i.e. V1/T1 = V2/T2 |
Explore each gas law
A sample of gas has a volume of 480 cm³ at a pressure of 1.0 × 10⁵ Pa. The gas is compressed at constant temperature until its pressure is 2.4 × 10⁵ Pa. Calculate its new volume.
Answer:
P₁V₁ = P₂V₂
V₂ = P₁V₁ / P₂ = (1.0 × 10⁵ × 480) / (2.4 × 10⁵)
Combining the gas laws
The three empirical laws are all special cases of one more general relationship: for a fixed amount of gas, PV/T is constant.
This tells us how P, V and T are related for a fixed amount of gas — but it says nothing about how much gas there is. Experiments show that, at constant temperature and pressure, volume is directly proportional to the amount of gas, n. Combining this with PV/T = constant gives the full ideal gas law (also called the equation of state for an ideal gas):
An ideal gas is defined as a gas that obeys PV = nRT perfectly, for any P, V, T and n. As you saw in Section 1, real gases obey this equation very closely under most everyday conditions.
A cylinder of volume 8.0 × 10⁻³ m³ contains an ideal gas at a pressure of 3.0 × 10⁵ Pa and a temperature of 290 K. Calculate the amount of gas, in moles, in the cylinder.
Answer:
PV = nRT
n = PV / RT = (3.0 × 10⁵ × 8.0 × 10⁻³) / (8.31 × 290)
Representing the state of a gas: PV diagrams
Because P, V and T are all linked by PV = nRT, a fixed amount of gas can be represented as a single point on a graph of pressure against volume — a PV diagram. A curve of constant temperature on a PV diagram is called an isotherm; every point on it obeys Boyle's law, PV = constant. PV diagrams will become an essential tool from Section 5 onwards, for tracking exactly how a gas's state changes as it is heated, compressed or allowed to expand.
Explore how pressure, volume, temperature and the number of particles are all linked for an ideal gas, using PhET's Gas Properties simulation. Try holding volume constant and heating the gas, or pushing the wall in at constant temperature, and watch the pressure gauge respond.
Launch simulation ↗Simulation: Gas Properties by PhET Interactive Simulations, University of Colorado Boulder.
Check your understanding
P₁/T₁ = P₂/T₂
T₂ = P₂T₁ / P₁ = (1.9 × 10⁵ × 288) / (1.4 × 10⁵)
Then subtract 273 to convert the answer back to °C.
V = nRT / P = (4.5 × 8.31 × 293) / (1.0 × 10⁵)
3. Internal energy of an ideal gas
Recall from Heating that the internal energy of a substance is the sum of the total random kinetic energy and total random potential energy of all its particles. For an ideal gas this simplifies dramatically: because the model assumes there are no forces between particles (Section 1), an ideal gas has no potential energy at all. Its internal energy is purely the total random translational kinetic energy of its particles.
This result follows from combining the ideal gas law PV = NkBT with the kinetic theory relationship between pressure and the particles' average (speed)² (Section 1) — on average, each particle in an ideal gas has translational kinetic energy 3/2 kBT, so N particles together have total internal energy 3/2 NkBT.
Calculate the internal energy of 2.0 mol of a monatomic ideal gas at a temperature of 310 K.
Answer:
U = 3/2 nRT = 1.5 × 2.0 × 8.31 × 310
The temperature of 0.40 mol of a monatomic ideal gas increases from 288 K to 320 K. Calculate the change in internal energy of the gas.
Answer:
ΔU = 3/2 nRΔT = 1.5 × 0.40 × 8.31 × (320 − 288)
Check your understanding
T = 2U / (3NkB) = (2 × 5200) / (3 × 2.5 × 10²⁴ × 1.38 × 10⁻²³)
Since ΔT is negative, ΔU is negative — the internal energy decreased, so energy was transferred out of the gas.
4. The first law of thermodynamics
We now have everything we need to describe how a gas's energy changes as it is heated. There are exactly two ways energy can be transferred into or out of a gas: as heating (thermal energy transfer, Q) and as work (mechanical energy transfer, W, done as the gas expands or is compressed).
Work done when a gas changes volume
Picture a gas trapped in a cylinder by a frictionless, gas-tight piston of area A. If the gas expands, pushing the piston out a small distance Δs at constant pressure P, the gas does work on the piston: W = (force) × (distance) = (PA) × Δs. Since the change in volume ΔV = AΔs, this becomes:
A gas expands from a volume of 0.020 m³ to 0.045 m³ at a constant pressure of 1.4 × 10⁵ Pa. Calculate the work done by the gas.
Answer:
W = PΔV = 1.4 × 10⁵ × (0.045 − 0.020)
The first law of thermodynamics
If an amount of thermal energy Q is transferred into a gas, the principle of conservation of energy tells us that this energy can only do one of two things: increase the gas's internal energy, and/or let the gas do work on its surroundings as it expands. This is the first law of thermodynamics:
80 J of work is done by a gas as it expands, while 150 J of thermal energy is transferred into it. Calculate the change in internal energy of the gas.
Answer:
Q = ΔU + W
(+150) = ΔU + (+80)
ΔU = 150 − 80
Combining the first law with the internal energy equation from Section 3 lets us connect heating, work and temperature change for an ideal monatomic gas:
Check your understanding
(b) Q = ΔU + W, with Q = −3200 J and W as found in (a). ΔU = Q − W = (−3200) − [2.0 × 10⁵ × (0.035 − 0.060)]
ΔU = 3/2 nRΔT, so ΔT = ΔU / (1.5 × n × R) = (940 − 310) / (1.5 × 0.60 × 8.31)
5. Four thermodynamic processes
Among all the possible ways a gas's state could change, it is useful to consider four extreme, special cases — each found by holding one of the four quantities in the first law fixed. In each case, the general equation Q = ΔU + W simplifies.
The prefix "iso-" comes from the Greek for "equal" — so isothermal, isovolumetric and isobaric each describe a process where one particular quantity stays exactly the same (constant) throughout.
- ΔU = 0 — isothermal (constant temperature)
- W = 0 — isovolumetric (constant volume)
- Q = 0 — adiabatic (no thermal energy transfer)
- ΔP = 0 — isobaric (constant pressure)
Isothermal (ΔU = 0)
The temperature — and so the internal energy — of the gas does not change. The first law reduces to Q = W: all the work done by the gas during an isothermal expansion is supplied by thermal energy transferred in; during a compression, the work done on the gas is all transferred away as thermal energy. For a process to genuinely approximate an isothermal change, it must happen slowly enough for the gas to stay in thermal equilibrium with its surroundings throughout. Isothermal changes obey Boyle's law: PV = constant.
Isovolumetric (W = 0)
There is no change in volume, so no work is done by or on the gas. The first law reduces to Q = ΔU: any thermal energy transferred into the gas becomes an increase in internal energy (and temperature); any thermal energy transferred out becomes a decrease.
Adiabatic (Q = 0)
No thermal energy is transferred between the gas and its surroundings at all. The first law reduces to 0 = ΔU + W, so ΔU = −W: in an adiabatic expansion the gas does work using only its own internal energy, so its temperature falls; in an adiabatic compression, all the work done on the gas becomes an increase in internal energy, so its temperature rises. For a process to approximate an adiabatic change, it must happen rapidly, in a well-insulated container, so there is no time for thermal energy to be transferred.
Isobaric (ΔP = 0)
The pressure stays constant as the gas expands or is compressed — this happens whenever a gas is free to change volume while its temperature changes, keeping its pressure equal to that of its surroundings. The general first law equation applies with no simplification, and the work done is simply W = PΔV.
| Process | Held constant | First law reduces to |
|---|---|---|
| Isothermal | temperature (ΔU = 0) | Q = W |
| Isovolumetric | volume (W = 0) | Q = ΔU |
| Adiabatic | — (Q = 0) | ΔU = −W |
| Isobaric | pressure (ΔP = 0) | Q = ΔU + W |
An ideal monatomic gas is compressed adiabatically, reducing its volume by a factor of 6.0. Determine the factor by which its pressure increases.
Answer:
PV5/3 = constant, so P₁V₁5/3 = P₂V₂5/3
P₂/P₁ = (V₁/V₂)5/3 = 6.05/3
A gas is compressed isothermally, so that the work done on it is 640 J. State the thermal energy transferred, and whether it is transferred into or out of the gas.
Answer:
Isothermal: Q = W. Since work is done on the gas, W = −640 J.
Q = W = −640 J: 640 J of thermal energy is transferred out of the gas.
Live simulation: PV diagram explorer
Drive a gas along each process
Check your understanding
P₂ = P₁(V₁/V₂)5/3 = 3.4 × 10⁵ × (2.0 × 10⁻³ / 5.0 × 10⁻³)5/3
Adiabatic compression: Q = 0, W = −, ΔU = +.
Isobaric expansion: ΔP = 0, W = +, ΔU = +, Q = + (from Q = ΔU + W, both positive).
Isovolumetric pressure decrease: W = 0, ΔU = −, Q = − (temperature and pressure fall together at constant volume).
6. Heat engines and the Carnot cycle
A gas doing useful work by expanding — pushing a piston, say — cannot expand forever. To do continuous useful work, it must be compressed back to its starting state and expanded again, over and over: a thermodynamic cycle. A device that does this to convert a flow of thermal energy into useful mechanical work is a heat engine.
Efficiency of a heat engine
By conservation of energy, the thermal energy taken in from the hot reservoir either becomes useful work or is rejected to the cold reservoir: Qh = W + Qc. The efficiency of a heat engine compares the useful work produced with the energy that had to be supplied to produce it:
A heat engine takes in 4.0 × 10⁴ J of thermal energy from its hot reservoir each cycle, and rejects 2.4 × 10⁴ J to its cold reservoir. Calculate (a) the useful work done per cycle, (b) the efficiency of the engine.
Answer:
(a) W = Qh − Qc = 4.0 × 10⁴ − 2.4 × 10⁴
(b) η = W/Qh = (4.0 × 10⁴ − 2.4 × 10⁴) / 4.0 × 10⁴
The Carnot cycle
No real engine can convert 100% of the thermal energy it takes in into useful work — but how efficient could an engine possibly be, in principle, operating between two given reservoir temperatures? The idealized, reversible cycle that achieves the maximum theoretically possible efficiency is called the Carnot cycle, proposed by Sadi Carnot in 1824.
Because it is idealized and fully reversible (every stage happens infinitely slowly, with no friction or other losses), the Carnot cycle achieves the maximum efficiency thermodynamically possible for any heat engine operating between temperatures Th and Tc:
Calculate the maximum theoretical efficiency of a heat engine operating between a hot reservoir at 500 °C and a cold reservoir at 50 °C.
Answer:
ηCarnot = 1 − Tc/Th = 1 − (50 + 273)/(500 + 273)
Live simulation: Carnot efficiency calculator
Vary the reservoir temperatures
Check your understanding
Qc = Qh − W = 8.5 × 10⁵ − (0.35 × 8.5 × 10⁵)
7. Entropy and the second law
Section 6 stated, without proof, that no heat engine can be more efficient than a Carnot cycle operating between the same two temperatures, and that even a Carnot engine can never be 100% efficient. Why not? The answer lies in a quantity called entropy, which turns out to govern which processes can happen at all, and in which direction.
Irreversibility
Watch a video of coffee cooling, an egg breaking, or ice melting in a warm room, played backwards — you would recognize immediately that something is wrong. These processes are irreversible: they happen spontaneously in one direction only. Nothing in the first law of thermodynamics (conservation of energy) forbids a cup of coffee spontaneously drawing thermal energy back out of the room and getting hotter — energy would still be conserved — yet it never happens.
Entropy and disorder
Entropy is best understood not as a measure of "messiness," but as a measure of how many different microscopic arrangements — microstates — of a system's particles all look identical from the outside. The short video below explains this idea clearly, using a simple example of a small number of particles distributed between two halves of a container.
Watch "What is entropy?" — a short video explaining entropy in terms of microstates and disorder, the same idea introduced above.
Watch video ↗"What is entropy?" — lesson by Jeff Phillips, TED-Ed.
where Ω is the number of possible microstates of the system.
Calculate the entropy of a system that has 1 × 10²² possible microstates.
Answer:
S = kB ln Ω = (1.38 × 10⁻²³) × ln(1 × 10²²)
The second law of thermodynamics
Because a random system is overwhelmingly more likely to become more disordered than less, and because everything that happens is ultimately driven by the random behaviour of enormous numbers of particles, the total entropy of an isolated system essentially never decreases. This single statistical fact can be expressed in several equivalent ways:
| Version | Statement |
|---|---|
| General | The total entropy of an isolated system (or the Universe as a whole) always increases. |
| Clausius | Thermal energy cannot spontaneously transfer from a region of lower temperature to a region of higher temperature. |
| Kelvin–Planck | When extracting energy from a heat reservoir, it is impossible to convert all of it into work. |
The second law has consequences far beyond engines and gases. Every living organism maintains a highly ordered, low-entropy internal structure — but the second law still applies to the organism and its surroundings together, so this local decrease in entropy must be paid for by an even greater increase in the entropy of its environment, for example as waste heat and waste products.
"Pollution is not, as we are so often told, a product of moral turpitude. It is an inevitable consequence of life at work. The second law of thermodynamics clearly states that the low entropy and intricate, dynamic organization of a living system can only function through the excretion of low-grade products and low-grade energy to the environment."
— Lovelock, James. Gaia: A New Look at Life on Earth. Oxford University Press, 2009.
Calculating entropy change
For real systems, tracking every microstate is impossible — but changes in entropy can be found much more directly from macroscopic quantities: thermal energy and temperature.
Calculate the entropy change when 5000 J of thermal energy flows out of a cup of coffee at 70 °C into the surrounding room at 25 °C. (Assume both temperatures stay constant.)
Answer:
Entropy decrease of the coffee: ΔS = ΔQ/T = −5000 / (273 + 70)
Entropy increase of the room: ΔS = ΔQ/T = +5000 / (273 + 25)
Because the room is cooler than the coffee, the increase in the room's entropy is larger than the decrease in the coffee's entropy — so the total (coffee + room) entropy increases, consistent with the second law.
Check your understanding
ΔS = ΔQ/T = (0.500 × 3.34 × 10⁵) / (273 + 0)
Glossary
- Pressure, P
- Force acting perpendicular to a surface, per unit area: P = F/A. SI unit: pascal, Pa.
- Amount of substance, n
- A measure of the number of particles in a sample, in moles: n = N/NA.
- Avogadro constant, NA
- The number of particles in one mole of a substance: NA = 6.02 × 10²³ mol⁻¹.
- Ideal gas
- A theoretical model of a gas whose particles have negligible volume, exert no forces on each other except during perfectly elastic collisions, and obey PV = nRT exactly.
- Universal (molar) gas constant, R
- The constant in PV = nRT; R = 8.31 J K⁻¹ mol⁻¹.
- Boltzmann constant, kB
- The "per particle" version of the gas constant, kB = R/NA = 1.38 × 10⁻²³ J K⁻¹.
- Internal energy, U
- The total random kinetic and potential energy of all the particles in a system. For an ideal monatomic gas, U = 3/2 NkBT = 3/2 nRT.
- First law of thermodynamics
- Q = ΔU + W: the thermal energy transferred into a system either increases its internal energy or is used as it does work on its surroundings, or both.
- Work done, W
- The mechanical energy transferred as a system's volume changes; at constant pressure, W = PΔV. Positive when done by the gas (expansion); negative when done on the gas (compression).
- Isothermal process
- A change at constant temperature (ΔU = 0), so Q = W.
- Isovolumetric process
- A change at constant volume (W = 0), so Q = ΔU.
- Adiabatic process
- A change with no thermal energy transfer (Q = 0), so ΔU = −W. For a monatomic ideal gas, PV5/3 = constant.
- Isobaric process
- A change at constant pressure (ΔP = 0).
- Heat engine
- A device that uses a flow of thermal energy from a hot reservoir to a cold reservoir to do useful mechanical work.
- Efficiency, η
- The fraction of the energy supplied to a heat engine that is converted to useful work: η = W/Qh.
- Carnot cycle
- An idealized, reversible four-stage thermodynamic cycle (isothermal expansion, adiabatic expansion, isothermal compression, adiabatic compression) that achieves the maximum theoretically possible efficiency between two given temperatures: ηCarnot = 1 − Tc/Th.
- Reversible process
- A process that could be reversed so that the system and all of its surroundings return exactly to their original states, with no change in total entropy. An idealization — real macroscopic processes are never perfectly reversible.
- Irreversible process
- A process that cannot be undone without leaving some other change in the surroundings; entropy always increases during an irreversible process.
- Entropy, S
- A thermodynamic quantity that relates to the degree of disorder of the particles in a system. Can be found from macroscopic quantities, ΔS = ΔQ/T, or from the number of microstates, S = kB ln Ω.
- Microstate
- One possible detailed arrangement of the particles of a system consistent with its overall (macroscopic) state.
- Second law of thermodynamics
- The total entropy of an isolated system, or of the Universe as a whole, always increases.