Chemistry‹›⌂ 0:00 studied

Module 5 · 12 min read · Free chapter

Work, heat, internal energy and the first law of thermodynamics

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: energy that moves

Rub your hands and they warm up. Pump a bicycle tyre and the pump barrel gets hot. Burn petrol in an engine and the car moves. In each case energy moves from one place to another, either as heat or as work.

Thermodynamics is the bookkeeping of these energy movements. It does not ask what the molecules are doing one by one. It asks what goes in, what comes out, and what is stored.

This chapter builds the first law, which says energy is never created or destroyed. It shows how to calculate work for gases, why enthalpy is defined, how heat capacity and adiabatic changes work, and why the air in a rising cloud cools.

System, surroundings and state functions

The system is the part of the universe we study, such as a gas in a cylinder or a reaction in a flask. Everything else is the surroundings. An open system exchanges both matter and energy; a closed system exchanges only energy; an isolated system exchanges neither.

A state function depends only on the present state, not on how the system got there. Pressure, volume, temperature, internal energy U, enthalpy H, entropy S and Gibbs energy G are state functions. Climbing a hill gives a good picture: your height gain depends only on start and finish, but the distance walked depends on the route.

Heat q and work w are not state functions. They are energy in transit and describe the route, not the destination. Mathematically, dU is an exact differential, so ∮dU=0\oint dU = 0 round any cycle, while the small amounts δq and δw are inexact.

Properties are also extensive (proportional to amount: V, U, H, mass) or intensive (independent of amount: T, p, density, molar quantities). The ratio of two extensive properties is intensive.

Process What is held fixed
Isothermal temperature (ΔT = 0)
Isobaric pressure (Δp = 0)
Isochoric volume (ΔV = 0)
Adiabatic no heat exchange (q = 0)
Cyclic returns to the start (ΔU = 0)

The first law and the work of expansion

Internal energy U is the total energy stored in the system: molecular motion, vibrations, rotations, electronic and nuclear energy, and intermolecular potential energy. Its absolute value cannot be measured, but its change can. The first law says energy is conserved:

ΔU=q+w\Delta U = q + w

We use the IUPAC convention: q and w are positive when energy enters the system. Heat absorbed (q > 0) and work done on the system (w > 0) both raise U. A system that absorbs 50 kJ of heat and does 30 kJ of work has ΔU = +50 − 30 = +20 kJ. Older physics books write ΔU = q − w with w as work done by the system; the physics is the same.

Work against a constant external pressure. When a gas pushes a piston against an external pressure p_ext, the work done on the gas is

w=−pext ΔVw = -p_{ext}\,\Delta V

Expansion (ΔV > 0) gives negative w, because the gas loses energy. Expansion into a vacuum (p_ext = 0) does no work at all.

Reversible isothermal work. If the external pressure is always only infinitesimally less than the gas pressure, the expansion is reversible. For an ideal gas at constant T, p=nRTVp = \dfrac{nRT}{V}, and

wrev=−∫V1V2p dV=−nRTln⁡V2V1=−nRTln⁡p1p2w_{rev} = -\int_{V_1}^{V_2} p\,dV = -nRT\ln\frac{V_2}{V_1} = -nRT\ln\frac{p_1}{p_2}

The reversible path gives the maximum work by the gas, because at every step the gas pushes against the largest pressure it can still overcome. On a p-V diagram the work is the area under the path, so different paths between the same two states give different work.

Worked example 1 (UPSC 2019). One mole of an ideal gas at 273.15 K expands from 2.24 L to 22.4 L against a constant 1 atm. Find w, ΔU, ΔH and ΔS. The initial pressure is about 10 atm and the final 1 atm at the same temperature, so the change is isothermal. Then w = −1 atm × 20.16 L = −20.16 L atm = −2043 J. Since T is unchanged, ΔU = 0 and ΔH = 0 for an ideal gas, so q = +2043 J. Entropy is a state function, so use a reversible path: ΔS=Rln⁡V2V1=8.314×ln⁡10\Delta S = R\ln\dfrac{V_2}{V_1} = 8.314 \times \ln 10 = +19.1 J K⁻¹.

Worked example 2 (UPSC 2020). One mole of a monatomic ideal gas at 300 K doubles its volume against a constant pressure equal to the final pressure. The final pressure is p2=RTV2p_2 = \dfrac{RT}{V_2}, so w=−p2(V2−V1)=−p2⋅V22=−RT2w = -p_2(V_2 - V_1) = -p_2 \cdot \dfrac{V_2}{2} = -\dfrac{RT}{2} = −1247 J. ΔU = 0 (isothermal ideal gas), so the heat absorbed is q = +1247 J. A reversible expansion would have absorbed RT ln 2 = 1729 J, which is more.

Worked example 3 (UPSC 2023). An ideal gas expands reversibly and isothermally at 25 °C from 0.05 L and 8 atm to 0.40 L and 1 atm. Here nRT = pV = 0.40 L atm, so w=−0.40ln⁡8w = -0.40 \ln 8 = −0.832 L atm = −84.3 J. ΔU = ΔH = 0 and q = +84.3 J. ΔS = qrevT=84.3298.15\dfrac{q_{rev}}{T} = \dfrac{84.3}{298.15} = 0.283 J K⁻¹. Here q ≠ ΔH, because ΔH = q only at constant pressure, and the pressure fell from 8 atm to 1 atm.

Worked example 4 (UPSC 2018). A gas goes from 3.00 atm, 500 cm³ to 1.00 atm, 2000 cm³ by two two-step paths. Path (a): expand at 3.00 atm to 2000 cm³, then cool at constant volume to 1.00 atm; w = −3.00 × 1.50 L = −4.50 L atm = −456 J. Path (b): cool at constant volume to 1.00 atm, then expand at 1.00 atm; w = −1.00 × 1.50 = −1.50 L atm = −152 J. The constant-volume steps do no work. The end states are the same, yet the work differs threefold: work is a path function.

Enthalpy, ΔU versus ΔH, and calorimetry

At constant volume no expansion work is done, so ΔU = q_V. A bomb calorimeter, a sealed steel vessel, therefore measures ΔU. Most chemistry happens in open vessels at constant pressure, so we define enthalpy:

H=U+pV,ΔH=qp at constant pressureH = U + pV, \qquad \Delta H = q_p \text{ at constant pressure}

For solids and liquids pV is tiny, so ΔH ≈ ΔU. For reactions involving gases, treat the gases as ideal: ΔH=ΔU+ΔngRT\Delta H = \Delta U + \Delta n_g RT, where Δn_g is moles of gaseous products minus moles of gaseous reactants. Burning a hydrocarbon to liquid water usually has Δn_g < 0, so ΔH is slightly more negative than ΔU.

Worked example 5 (UPSC 2025). Burning 0.500 g of benzoic acid (Δ_cU = −3227 kJ mol⁻¹) raises a bomb calorimeter's temperature by 1.236 K; 0.300 g of naphthalene raises it by 1.128 K. Find naphthalene's heat of combustion. Heat from benzoic acid = 0.500122.12×3227\dfrac{0.500}{122.12} \times 3227 = 13.21 kJ, so the calorimeter constant is 13.211.236\dfrac{13.21}{1.236} = 10.69 kJ K⁻¹. Naphthalene releases 10.69 × 1.128 = 12.06 kJ from 0.300128.17\dfrac{0.300}{128.17} = 2.341 × 10⁻³ mol, so Δ_cU = −5152 kJ mol⁻¹. For C₁₀H₈(s) + 12O₂ → 10CO₂ + 4H₂O(l), Δn_g = −2, so Δ_cH = −5152 − 2 × 2.48 = −5157 kJ mol⁻¹.

Worked example 6 (UPSC 2018). Find ΔU when 1.00 mol of water is warmed from 25.0 °C to 30.0 °C at 1 atm (C_p,m = 75.3 J K⁻¹ mol⁻¹). ΔH = q_p = 75.3 × 5.0 = 376.5 J. Taking the given densities 0.9970 and 0.9956 g cm⁻³ for the two temperatures, the molar volume changes from 18.069 to 18.095 cm³, so pΔV = 101325 × 2.5 × 10⁻⁸ m³ = 0.0026 J. Thus ΔU = 376.5 − 0.003 ≈ 376 J: for liquids ΔU and ΔH are practically equal.

Worked example 7 (UPSC 2025). 100 g of ice at 0 °C sits in a humid room at 40 °C, and all the heat comes from vapour condensing into the container. How much water condenses by the time the ice has melted and reached 40 °C? Heat needed = 100 × 334 + 100 × 4.184 × 40 = 33 400 + 16 736 = 50 136 J. The condensing water releases 2260 J g⁻¹ and stays at 40 °C, so mass = 50 1362260\dfrac{50\,136}{2260} = 22.2 g.

Heat capacity, adiabatic changes and free expansion

Heat capacity is the heat needed per kelvin. Because heat depends on the path, there are two:

CV=(∂U∂T)V,Cp=(∂H∂T)pC_V = \left(\frac{\partial U}{\partial T}\right)_V, \qquad C_p = \left(\frac{\partial H}{\partial T}\right)_p

C_p is larger, because at constant pressure part of the heat goes into expansion work. For an ideal gas, H = U + nRT, which gives Cp,m−CV,m=RC_{p,m} - C_{V,m} = R. A monatomic gas has CV,m=32RC_{V,m} = \dfrac{3}{2}R and γ = 53\dfrac{5}{3}; a diatomic gas near room temperature has CV,m=52RC_{V,m} = \dfrac{5}{2}R and γ = 75\dfrac{7}{5}.

Adiabatic changes. With q = 0, ΔU = w: any work done by the gas comes out of its own internal energy, so it cools. For a reversible adiabatic change of an ideal gas, CVdT=−p dVC_V dT = -p\,dV integrates to

pVγ=constant,TVγ−1=constantpV^{\gamma} = \text{constant}, \qquad TV^{\gamma - 1} = \text{constant}

An isothermal curve obeys pV = constant because heat flows in to keep T fixed. On an adiabat the gas also cools, so its pressure falls faster; adiabats are steeper than isotherms by the factor γ. For a reversible adiabatic change, w = ΔU = nCV,m(T2−T1)nC_{V,m}(T_2 - T_1).

Irreversible adiabatic expansion against constant p_ext. Here nCV,m(T2−T1)=−pext(V2−V1)nC_{V,m}(T_2 - T_1) = -p_{ext}(V_2 - V_1), with V=nRTpV = \dfrac{nRT}{p}. The gas cools less than in the reversible case, because it does less work.

Worked example 8 (UPSC 2022). A tyre holds air at 320 kPa and 20 °C. The valve is removed and the air expands adiabatically against 100 kPa until its pressure equals 100 kPa (CV,m=52RC_{V,m} = \dfrac{5}{2}R). Per mole, 52R(T2−T1)=−p2(RT2p2−RT1p1)\dfrac{5}{2}R(T_2 - T_1) = -p_2\left(\dfrac{RT_2}{p_2} - \dfrac{RT_1}{p_1}\right). Solving, T2=T1⋅52+p2p172=293.15×2.81253.5T_2 = T_1 \cdot \dfrac{\frac{5}{2} + \frac{p_2}{p_1}}{\frac{7}{2}} = 293.15 \times \dfrac{2.8125}{3.5} = 235.6 K (about −38 °C). A reversible adiabatic path would give 293.15 × (0.3125)0.286(0.3125)^{0.286} = 210 K, colder still.

Physical meaning (UPSC 2018). Rising air meets lower outside pressure, expands, and does work with almost no heat exchange, so it cools by about 10 K per km. When it cools to the dew point, vapour condenses and a cloud forms; the released latent heat then slows the cooling. Cold air sinking from mountain tops into a valley is compressed adiabatically and warms, which is why valley winds such as the föhn and chinook are warm and dry. Pumping a tyre warms the air for the same reason.

Joule's free expansion. A gas expands from one bulb into an evacuated bulb inside an insulated bath. Nothing pushes back, so w = 0, and the bath shows no change, so q = 0; hence ΔU = 0. For an ideal gas the temperature also stays the same, so U depends only on T: (∂U∂V)T=0\left(\dfrac{\partial U}{\partial V}\right)_T = 0. The process is still irreversible: the gas never returns to one bulb by itself, and its entropy rises by nRln⁡V2V1nR\ln\dfrac{V_2}{V_1}.

Mains lens: how UPSC asks this

The first law appears almost every year, usually as a 10-mark numerical. Recent examples: a bomb calorimeter with benzoic acid and naphthalene (2025); ice melting by condensation (2025); isothermal reversible expansion with q versus ΔH (2023); an adiabatic tyre (2022); expansion against constant pressure (2020, 2019); rising clouds, two p-V paths, adiabats and valley winds (2018).

Expect:

  • Numericals (5 to 20 marks): w, q, ΔU, ΔH for isothermal, isobaric and adiabatic changes; calorimeter constants; ΔH from ΔU.
  • Explanations (5 marks): why work depends on path, why adiabats are steeper, rising air and valley winds.
  • Derivations (10 marks): C_p − C_V = R, pVγpV^{\gamma} = constant.

Model answer plan: "Derive pVγpV^{\gamma} = constant for a reversible adiabatic expansion of an ideal gas" (10 marks).

  1. First law with q = 0: dU = δw = −p dV.
  2. Ideal gas: dU = nCV,mdTnC_{V,m}dT and p=nRTVp = \dfrac{nRT}{V}, so CV,mdTT=−RdVVC_{V,m}\dfrac{dT}{T} = -R\dfrac{dV}{V}.
  3. Integrate: ln⁡T2T1=−RCV,mln⁡V2V1\ln\dfrac{T_2}{T_1} = -\dfrac{R}{C_{V,m}}\ln\dfrac{V_2}{V_1}; with RCV,m=γ−1\dfrac{R}{C_{V,m}} = \gamma - 1, TVγ−1TV^{\gamma-1} = constant.
  4. Substitute T=pVnRT = \dfrac{pV}{nR} to get pVγpV^{\gamma} = constant.
  5. Interpret: the gas pays for work from U, so it cools; sketch the steeper adiabat beside an isotherm.

Quick revision

  • State functions (U, H, S, G, p, V, T) depend only on state; q and w depend on path.
  • First law: ΔU = q + w; q, w positive when energy enters.
  • Work: w = −p_ext ΔV; reversible isothermal w=−nRTln⁡V2V1w = -nRT\ln\dfrac{V_2}{V_1} (maximum work).
  • ΔU = q_V (bomb); ΔH = q_p; ΔH=ΔU+ΔngRT\Delta H = \Delta U + \Delta n_g RT.
  • Cp,m−CV,m=RC_{p,m} - C_{V,m} = R; γ = 1.67 (monatomic), 1.40 (diatomic).
  • Reversible adiabatic: pVγpV^{\gamma} and TVγ−1TV^{\gamma-1} constant; against constant p_ext use nCV,mΔT=−pextΔVnC_{V,m}\Delta T = -p_{ext}\Delta V.
  • Free expansion: q = w = ΔU = 0; ideal gas ΔT = 0 so (∂U∂V)T=0\left(\dfrac{\partial U}{\partial V}\right)_T = 0.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Distinguish between state functions and path functions with two examples of each. Why is ∮dU = 0 for a cycle?

    Show answer points
    • State function: depends only on state (U, H, S, p, V, T)
    • Path function: depends on route (q, w)
    • dU exact differential; returns to same value round a cycle
    • Hill analogy: height gain vs distance walked
  2. One mole of an ideal gas at 273.15 K expands from 2.24 L to 22.4 L against a constant pressure of 1 atm. Calculate w, q, ΔU, ΔH and ΔS. How would w change if the expansion were reversible?

    Show answer points
    • Isothermal: p falls 10 atm to 1 atm at same T
    • w = −1 × 20.16 L atm = −2043 J; q = +2043 J
    • ΔU = ΔH = 0; ΔS = R ln 10 = 19.1 J K⁻¹
    • Reversible: w = −RT ln 10 = −5229 J (more work)
  3. An ideal gas (0.05 L, 8 atm) expands reversibly and isothermally at 25 °C to 0.40 L and 1 atm. Find w, ΔU, ΔH and ΔS. Is q equal to ΔH? Explain.

    Show answer points
    • nRT = pV = 0.40 L atm
    • w = −0.40 ln 8 L atm = −84.3 J; q = +84.3 J
    • ΔU = ΔH = 0; ΔS = 84.3/298 = 0.283 J K⁻¹
    • q ≠ ΔH: ΔH = q only at constant p; here p falls
  4. A gas goes from 3.00 atm, 500 cm³ to 1.00 atm, 2000 cm³ by (a) expansion at 3.00 atm then cooling at constant volume, and (b) cooling at constant volume then expansion at 1.00 atm. Calculate the work in each case and comment.

    Show answer points
    • Constant-volume steps: w = 0
    • (a) w = −3.00 × 1.50 L atm = −456 J
    • (b) w = −1.00 × 1.50 L atm = −152 J
    • Same end states, different w: work is a path function
  5. 0.500 g benzoic acid (Δ_cU = −3227 kJ mol⁻¹) raises a bomb calorimeter by 1.236 K, and 0.300 g naphthalene raises it by 1.128 K. Find Δ_cU and Δ_cH of naphthalene at 298 K.

    Show answer points
    • Calorimeter constant = 13.21 kJ / 1.236 K = 10.69 kJ K⁻¹
    • q = 12.06 kJ for 2.341 × 10⁻³ mol
    • Δ_cU = −5152 kJ mol⁻¹
    • Δn_g = −2; Δ_cH = −5152 − 4.96 = −5157 kJ mol⁻¹
  6. Why is ΔH ≈ ΔU for liquids? Calculate ΔU when 1.00 mol water is heated from 25 °C to 30 °C at 1 atm (C_p,m = 75.3 J K⁻¹ mol⁻¹; densities 0.9970 and 0.9956 g cm⁻³).

    Show answer points
    • ΔH = q_p = 75.3 × 5 = 376.5 J
    • V_m: 18.069 → 18.095 cm³; ΔV = 0.025 cm³
    • pΔV = 0.0026 J
    • ΔU ≈ 376 J: pV term negligible for condensed phases
  7. Show that C_p,m − C_V,m = R for an ideal gas. Why is C_p greater than C_V? Give γ for He and N₂.

    Show answer points
    • H = U + pV = U + nRT for ideal gas
    • dH/dT = dU/dT + nR, so C_p − C_V = nR
    • Extra heat at constant p goes into expansion work
    • He: γ = 5/3; N₂: γ = 7/5
  8. Air in a tyre at 320 kPa and 20 °C expands adiabatically against a constant 100 kPa until p = 100 kPa (C_V,m = 5/2 R). Find the final temperature. Would a reversible adiabatic expansion give a higher or lower temperature?

    Show answer points
    • q = 0: C_V(T₂ − T₁) = −p₂(RT₂/p₂ − RT₁/p₁)
    • T₂ = T₁(2.5 + p₂/p₁)/3.5 = 235.6 K
    • Reversible: T₂ = 293(0.3125)^0.286 = 210 K
    • Reversible does more work, so cools more
  9. Derive pV^γ = constant for a reversible adiabatic change of an ideal gas and explain physically why the adiabat is steeper than the isotherm. Use it to explain cloud formation in rising air and warm valley winds.

    Show answer points
    • dU = −p dV; C_V dT/T = −R dV/V
    • TV^(γ−1) and pV^γ constant
    • Isotherm: heat flows in to hold T; adiabat: gas also cools, p falls faster
    • Rising air expands and cools to dew point; sinking air compressed and warmed (föhn)
  10. An insulated box has an ideal gas at T in one compartment and vacuum in the other. The membrane is removed. Find the final temperature and show that the process is irreversible.

    Show answer points
    • w = 0 (no opposing pressure), q = 0 (insulated)
    • ΔU = 0; ideal gas U depends only on T, so T_final = T
    • ΔS_sys = nR ln((V₁ + V₂)/V₁) > 0, ΔS_surr = 0
    • ΔS_univ > 0: irreversible; gas never re-collects by itself

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Thermodynamics

Official sources

Facts in this chapter were checked against these official sources.

  1. NIOS Senior Secondary Chemistry (313), Lesson 9: Chemical thermodynamics
  2. LibreTexts Chemistry, Physical and Theoretical Chemistry: adiabatic expansion and the Joule free expansion