Sub topic 10
The first law: Q = ΔU + W and its sign conventions
Prerequisites
This chapter assumes you know the ideal gas equation PV = nRT, the internal energy of an ideal gas U = (f/2)nRT, and that the work done by a gas is the area under its P-V curve. It uses no new equations beyond these. Its aim is to make you use the first law without sign errors.
The statement
The first law of thermodynamics is conservation of energy applied to a gas. Heat added to the gas either raises its internal energy or is spent as work done by the gas on its surroundings:
Q = ΔU + W
Each symbol has a fixed meaning in this chapter:
- Q is the heat absorbed by the gas.
- ΔU is the change in internal energy of the gas, Ufinal − Uinitial.
- W is the work done by the gas on its surroundings.
This is the convention most JEE problems use. Some textbooks define W as work done on the gas and write ΔU = Q + W. Both forms are correct, but you must not mix them. Read the problem's wording, such as "work done by the gas", before you assign a sign.
Sign conventions
| Quantity | Positive when | Negative when |
|---|---|---|
| Q | Gas absorbs heat | Gas releases heat |
| W | Gas expands (V increases) | Gas is compressed (V decreases) |
| ΔU | Temperature rises | Temperature falls |
For an ideal gas, ΔU depends only on the temperature change:
ΔU = n Cv ΔT = (f/2) nR ΔT
This holds for every process, not only constant-volume ones. U is a state function, so ΔU depends only on the initial and final temperatures. Q and W are path-dependent, so you cannot assign them to a state, only to a process.
Computing W
For a process on a P-V diagram, W is the area under the curve:
W = ∫ P dV
- Expansion (dV > 0) gives W > 0.
- Compression (dV < 0) gives W < 0.
- Constant volume gives W = 0, since there is no area.
- Constant pressure gives W = PΔV.
The first law in each basic process
The first law becomes simple once you note which term vanishes or which is fixed by the process.
| Process | Condition | W | ΔU | Q |
|---|---|---|---|---|
| Isochoric | ΔV = 0 | 0 | n Cv ΔT | n Cv ΔT |
| Isobaric | ΔP = 0 | PΔV = nRΔT | n Cv ΔT | n Cp ΔT |
| Isothermal | ΔT = 0 | nRT ln(V₂/V₁) | 0 | equals W |
| Adiabatic | Q = 0 | −ΔU = n Cv (T₁ − T₂) | n Cv ΔT | 0 |
Two points deserve attention.
- In an isobaric process, Q = n Cp ΔT splits as n Cv ΔT + nRΔT. For a monatomic gas (Cv = 3R/2, Cp = 5R/2), the fractions of Q going to ΔU and W are 3/5 and 2/5. For a diatomic gas (Cv = 5R/2, Cp = 7R/2), they are 5/7 and 2/7. These fractions appear often in JEE questions.
- In an adiabatic process, Q = 0 does not mean ΔT = 0. The gas changes temperature because the work comes from or goes into its internal energy. An adiabatic expansion cools the gas, and an adiabatic compression heats it.
Worked example: isothermal and adiabatic expansion
Take 1 mol of a monatomic ideal gas at 300 K, expanding to twice its volume. In the isothermal case, ΔU = 0, so Q = W. In the adiabatic case, Q = 0, so W = −ΔU. The final temperature uses T V^(γ−1) = constant with γ = 5/3.
import math
R = 8.314
n, T1, f = 1.0, 300.0, 3 # 1 mol of a monatomic ideal gas at 300 K
Cv = f / 2 * R
gamma = 1 + 2 / f
ratio = 2.0 # V2 / V1 (expansion to double the volume)
# Isothermal expansion: W = nRT ln(V2/V1), and Q = W because dU = 0
W_iso = n * R * T1 * math.log(ratio)
# Adiabatic expansion: T V^(gamma-1) = constant, Q = 0, so W = -dU = n Cv (T1 - T2)
T2 = T1 * ratio ** (1 - gamma)
W_adi = n * Cv * (T1 - T2)
print(f"Isothermal work: {W_iso:.0f} J")
print(f"Adiabatic final T: {T2:.1f} K, work: {W_adi:.0f} J")The script prints about 1729 J for the isothermal work. For the adiabatic case it gives a final temperature of about 189.0 K and a work of about 1380 J. The adiabatic work is smaller because the gas cools as it expands. The pressure drops faster along the adiabat, so the area under it is smaller.
Checking signs on a cycle
Over a complete cycle the gas returns to its initial state, so ΔU = 0 and Qnet = Wnet. A clockwise loop on a P-V diagram has positive net work, so the gas absorbs more heat than it releases. A counterclockwise loop has negative net work, which is the case for a refrigerator.
Common errors
- Using ΔU = n Cp ΔT in an isobaric process. ΔU is always n Cv ΔT for an ideal gas.
- Writing Q = 0 for a process that is merely fast or insulated at the walls, then forgetting that "isothermal" and "adiabatic" are different. Isothermal needs heat exchange to hold T constant.
- Giving W a positive sign for a compression. Compression has negative W in the "by the gas" convention.
- Mixing conventions. If a problem says "work done on the gas is 200 J", then W = −200 J in Q = ΔU + W.
- Treating Q as zero because "no heat was supplied" in a free expansion. In a free expansion into a vacuum, Q = 0 and W = 0, so ΔU = 0 and an ideal gas keeps the same temperature.
A problem-solving routine
- Identify the process and write down which of Q, W or ΔU is fixed by it.
- Compute ΔU from the temperature change using n Cv ΔT.
- Compute W from the area under the curve or from the process formula.
- Find the remaining quantity from Q = ΔU + W.
- Check each sign against the sign table before you give the answer.
Exercise
Two moles of a diatomic ideal gas (f = 5) are heated at constant pressure so that the temperature rises by 40 K. Take R = 8.314 J/(mol K). Find ΔU, W and Q, and state what fraction of Q becomes work.
Show answer
ΔU = n Cv ΔT = 2 × (5/2)(8.314) × 40 = 1662.8 J. W = nRΔT = 2 × 8.314 × 40 = 665.1 J. Q = ΔU + W = 2327.9 J, which equals n Cp ΔT = 2 × (7/2)(8.314) × 40. The fraction going to work is W/Q = 2/7, about 0.286.
Exercise
A gas absorbs 500 J of heat while it is compressed, and 200 J of work is done on it. Find ΔU.
Show answer
Work done on the gas means W = −200 J in the "by the gas" convention. Then ΔU = Q − W = 500 − (−200) = 700 J. The internal energy rises by 700 J, so the temperature rises.
Exercise
One mole of a monatomic ideal gas goes around a clockwise cycle in which it does 300 J of net work. How much net heat does it absorb? What is ΔU over the cycle?
Show answer
ΔU = 0 over a full cycle, because U is a state function. So Qnet = Wnet = 300 J. The gas absorbs a net 300 J of heat.