Sub topic 8
Internal energy of an ideal gas: U = (f/2)nRT
This chapter assumes you know the ideal gas equation, the kinetic interpretation of temperature (mean translational kinetic energy = (3/2)kT), and the idea of degrees of freedom with equipartition from the previous chapter. It also assumes you can handle moles and the gas constant R = 8.314 J/(mol K).
What internal energy means here
Internal energy U is the total energy of the molecules measured in the gas's own rest frame. It includes the kinetic energy of translation, rotation, and (when active) vibration. It also includes the potential energy of interactions between molecules.
For an ideal gas, the model assumes molecules do not interact except during collisions. The interaction potential energy is therefore zero, and U is purely the sum of molecular kinetic energies. This one assumption gives the main result of the chapter.
Deriving U = (f/2)nRT
Equipartition says each quadratic degree of freedom carries a mean energy of (1/2)kT per molecule. If a molecule has f active degrees of freedom, its mean energy is (f/2)kT. For N molecules:
U = N (f/2) kT
Since N = nNA and NA k = R:
U = (f/2) nRT
The standard values of f for JEE, at ordinary temperatures, are:
| Gas type | Example | f | U per mole at temperature T |
|---|---|---|---|
| Monatomic | He, Ne, Ar | 3 (translation) | (3/2)RT |
| Diatomic, rigid | H₂, N₂, O₂ | 5 (3 translation + 2 rotation) | (5/2)RT |
| Nonlinear polyatomic, rigid | H₂O, CH₄ | 6 (3 translation + 3 rotation) | 3RT |
A diatomic molecule has only two rotational degrees of freedom. Rotation about the bond axis stores negligible energy. If a problem says the molecule vibrates, add 2 more degrees of freedom for each vibrational mode, because vibration has both kinetic and potential energy terms. A diatomic gas with vibration then has f = 7.
U depends only on temperature
Look at the formula again. The pressure and volume do not appear. For a fixed amount of an ideal gas, U is a function of T alone. This has three consequences.
- Any process, any path. If the temperature changes from T₁ to T₂, then ΔU = (f/2)nR(T₂ − T₁). This holds for isochoric, isobaric, isothermal, adiabatic and polytropic processes alike.
- Isothermal processes. ΔT = 0 gives ΔU = 0, so Q = W.
- Free expansion. When a gas expands into a vacuum with insulated walls, Q = 0 and W = 0, so ΔU = 0 and the temperature of an ideal gas does not change. A real gas would cool slightly, because it has to do work against intermolecular attraction. That is a non-ideal effect.
The link to Cv
Because ΔU = (f/2)nRΔT for every process, and the molar heat capacity at constant volume is defined through heating at fixed volume (where W = 0, so Q = ΔU), we get Cv = (f/2)R. Then:
ΔU = nCvΔT, always
This holds even when the volume changes during the process. In an isobaric process, the heat absorbed is Q = nCpΔT, but the internal energy change is still nCvΔT. The difference, nRΔT, is the work done by the gas.
Worked example
Take 2 mol of a diatomic gas (f = 5) heated at constant pressure from 300 K to 400 K.
- ΔU = (5/2)(2)(8.314)(100) ≈ 4157 J
- W = PΔV = nRΔT = (2)(8.314)(100) ≈ 1663 J
- Q = ΔU + W ≈ 5820 J
Check this with Q = nCpΔT, where Cp = (7/2)R: Q = 2 × 3.5 × 8.314 × 100 ≈ 5820 J. The two routes agree.
Computing U in code
R = 8.314 # J/(mol K)
def internal_energy(n, T, f):
"""Internal energy (J) of n moles of an ideal gas at T kelvin with f active degrees of freedom."""
return (f / 2) * n * R * T
def delta_u(n, T1, T2, f):
"""Change in internal energy (J). Valid for any process between T1 and T2."""
return (f / 2) * n * R * (T2 - T1)
for name, f in [("monatomic", 3), ("diatomic", 5), ("nonlinear polyatomic", 6)]:
print(f"{name}: U = {internal_energy(1, 300, f):.1f} J per mole at 300 K")
print(f"Delta U = {delta_u(2, 300, 400, 5):.0f} J")The first three lines print 3741.3, 6235.5 and 7482.6 J. The last line prints 4157 J, matching the worked example.
Mixtures and changing gas amounts
Internal energy is additive. For a mixture of non-reacting ideal gases, the total internal energy is the sum of the energies of each component:
U = (f₁/2)n₁RT + (f₂/2)n₂RT + …
The mixture behaves as a single gas with effective Cv = (n₁Cv₁ + n₂Cv₂)/(n₁ + n₂). This matters for problems that mix helium and hydrogen. If gases at different temperatures are mixed in an insulated rigid container, total U is conserved, which fixes the final temperature.
Common errors
- Using f = 3 for a diatomic gas. Check the gas type first. Only monatomic gases have f = 3.
- Using ΔU = Q in a non-isochoric process. ΔU = Q holds only when W = 0. In general ΔU = Q − W.
- Assuming ΔU depends on the path. ΔU depends only on the initial and final temperatures. Q and W depend on the path.
- Using Celsius. The formula needs T in kelvin. For a temperature change, a difference in °C is the same as in K, but U itself needs absolute T.
- Forgetting that f changes with temperature. At very low temperatures, rotation freezes out and a diatomic gas behaves as f = 3. At high temperatures, vibration activates and f approaches 7. JEE problems state the assumption, or default to rigid molecules.
Exercise
One mole of a monatomic ideal gas is taken from P₁ = 2 × 10⁵ Pa, V₁ = 10 L to P₂ = 4 × 10⁵ Pa, V₂ = 20 L along some curved path. Find ΔU.
Show answer
Use ΔU = (f/2)(P₂V₂ − P₁V₁) with f = 3. P₂V₂ = (4 × 10⁵)(20 × 10⁻³) = 8000 J and P₁V₁ = (2 × 10⁵)(10 × 10⁻³) = 2000 J. So ΔU = 1.5 × (8000 − 2000) = 9000 J. The path does not matter because ΔU depends only on the end states.
Exercise
In an insulated rigid container, 1 mol of helium at 300 K is mixed with 1 mol of hydrogen (rigid diatomic) at 400 K. Find the final temperature.
Show answer
Total U is conserved, since Q = 0 and W = 0. Initial U = (3/2)R(300) + (5/2)R(400) = R(450 + 1000) = 1450R. Final U = [(3/2) + (5/2)]R T = 4RT. So T = 1450/4 = 362.5 K.