Sub topic 14
First law of thermodynamics
This chapter assumes you know the ideal gas equation PV = nRT and the result U = (f/2)nRT for the internal energy of an ideal gas. It also assumes you can compute the work done by a constant force. The chapter states the law, fixes the sign convention, and applies the law to NEET-style situations.
The statement
The first law is conservation of energy applied to a gas. Heat given to a gas either raises its internal energy or leaves as work done by the gas:
Q = ΔU + W, which is the same as ΔU = Q − W
- Q is the heat absorbed by the gas.
- W is the work done by the gas on its surroundings.
- ΔU is the change in internal energy.
The three quantities are not equal in kind. U is a state function: it depends only on the current state (P, V, T) of the gas, so ΔU depends only on the initial and final states. Q and W are path functions: they depend on how the gas went from one state to the other. Two different paths between the same states have the same ΔU but can have different Q and W.
Sign convention
NEET uses the "work done by the gas" convention. Some textbooks write ΔU = Q + W with W as work done on the gas. Check which one a question uses.
| Quantity | Positive when | Negative when |
|---|---|---|
| Q | gas absorbs heat | gas releases heat |
| W | gas expands (does work) | gas is compressed (work done on it) |
| ΔU | temperature rises | temperature falls |
For an ideal gas, ΔU = nC_vΔT for every process, not only constant-volume ones. This holds because U depends only on temperature. It lets you find ΔU from ΔT even when the path is complicated.
How the first law behaves in each process
The next chapters treat each process in detail. These are the special cases of the first law you will use:
| Process | Condition | Result |
|---|---|---|
| Isothermal | ΔT = 0, so ΔU = 0 | Q = W |
| Isochoric | ΔV = 0, so W = 0 | Q = ΔU |
| Adiabatic | Q = 0 | ΔU = −W |
| Isobaric | P constant | W = PΔV, Q = ΔU + PΔV |
| Cyclic | back to start, ΔU = 0 | Q_net = W_net |
| Free expansion | Q = 0 and W = 0 | ΔU = 0, so an ideal gas keeps its temperature |
Worked examples in code
The code below covers three cases. The first is direct substitution. The second is a reversible isothermal expansion, where ΔU = 0 so the heat absorbed equals the work done. The third finds ΔU for a monatomic gas from ΔT alone.
import math
R = 8.314 # J/(mol K)
def delta_U(Q, W):
"""First law: dU = Q - W, with W the work done BY the gas."""
return Q - W
# 1. Gas absorbs 500 J and does 200 J of work
print(delta_U(500, 200)) # 300
# 2. Isothermal expansion of 1 mol at 300 K to twice the volume
n = 1.0
T = 300.0
W = n * R * T * math.log(2.0)
Q = W # because dU = 0 for an ideal gas at constant T
print(round(W), round(Q), round(delta_U(Q, W))) # 1729 1729 0
# 3. 1 mol of monatomic gas heated from 300 K to 400 K (any path)
Cv = 1.5 * R
dU = n * Cv * (400 - 300)
print(round(dU)) # 1247In example 3, ΔU is 1247 J whether the heating happens at constant volume or constant pressure. What changes between paths is the work, and therefore the heat Q that must be supplied.
Reading signs from a situation
Convert each statement into numbers with the correct sign before substituting.
- "Gas is compressed" means W is negative.
- "Gas is compressed by 300 J of work" means W = −300 J.
- "Gas loses 100 J of heat" means Q = −100 J.
- "Thermally insulated" or "rapid" means Q = 0.
- "Rigid container" means W = 0.
- "Temperature unchanged" means ΔU = 0 for an ideal gas.
Common errors
- Using ΔU = Q − W for the wrong W. If a problem says work is done on the gas, W in this equation is negative.
- Treating ΔU = 0 as the same as Q = 0. For an isothermal process, ΔU = 0 but Q = W is nonzero. For an adiabatic process, Q = 0 but ΔU is not zero.
- Assuming Q is a property of the state. Only ΔU is path independent, so Q and W cannot be found from the endpoints alone.
- Using nC_vΔT only for constant volume. For an ideal gas, ΔU = nC_vΔT holds on every path. This does not apply to real gases.
- Forgetting that "heat" is energy in transit. A gas does not "contain" heat. It contains internal energy.
Exercise
A gas in a cylinder is compressed by a piston, which does 300 J of work on it. During this the gas loses 100 J of heat to the surroundings. Find the change in internal energy of the gas and say whether its temperature rises or falls.
Show answer
Work is done on the gas, so the work done by the gas is W = −300 J. Heat is lost, so Q = −100 J. Then ΔU = Q − W = −100 − (−300) = +200 J. The internal energy increases, so for an ideal gas the temperature rises.
Exercise
One mole of an ideal monatomic gas is taken from 300 K to 500 K by a path on which it does 400 J of work. How much heat does it absorb? Use R = 8.314 J/(mol K).
Show answer
ΔU = nC_vΔT = 1 × 1.5 × 8.314 × 200 ≈ 2494 J. Then Q = ΔU + W = 2494 + 400 ≈ 2894 J.