An interactive demo created by Claude Opus 5.5, based on the lecture notes by Sang Hoon Lee (Statistical Physics 1, Chapter 1, Sections 1.4 to 1.6)

Heat and Work

Temperature, energy, and heat are three closely related concepts. Energy can flow into a gas as heat or as work; the first law of thermodynamics keeps the books. Push a piston, light a flame, and watch where the energy goes.

Heat, work, and the first law

Energy is the most fundamental dynamical concept in physics. It takes many forms (kinetic, electrostatic, gravitational, chemical, nuclear) and can be converted from one to another, but the total amount of energy in the universe never changes: the conservation of energy. Thermodynamics tracks two ways energy enters or leaves a system.

Heat is any spontaneous flow of energy from one object to another caused by a difference in temperature, by conduction (molecular contact), convection (bulk motion of a gas or liquid, as warmer material expands and rises), or radiation (electromagnetic waves, mostly infrared at room temperature, visible from a light-bulb filament or the Sun). Traditionally, 1 cal = 4.184 J raises one gram of water by 1 °C, and a food Calorie is a kilocalorie. Work is any other transfer of energy, where some agent actively puts energy into the system. Both are energy in transit. For the total energy content \(U\) of a system,

\( \displaystyle \Delta U = Q + W \)

the first law of thermodynamics, with \(Q\) the heat added to the system and \(W\) the work done on it, all in joules.

Compression work

Push a piston of area \(A\) inward by \(\Delta x\) with force \(F = PA\), and the work done on the gas is \(W = F\Delta x = PA\,\Delta x = -P\,\Delta V\). This requires the pressure to be uniform, so the piston must move slowly enough for the gas to keep equilibrating: a quasistatic process. When the pressure changes along the way,

\[ W = -\int_{V_i}^{V_f} P(V)\,dV \qquad\text{(quasistatic)} \]

which is minus the area under the curve on a \(PV\) diagram. For an ideal gas, \(PV = Nk_{\mathrm{B}}T\) and \(U = \tfrac{f}{2}Nk_{\mathrm{B}}T\), so \(\Delta U = \tfrac{f}{2}\Delta(PV)\). Two special cases stand out: isothermal compression, so slow that the temperature doesn’t change (\(\Delta T = 0\), so \(\Delta U = 0\)), and adiabatic compression, so fast that no heat escapes (\(Q = 0\)):

\( \displaystyle \text{isothermal:}\; W = Nk_{\mathrm{B}}T\ln(V_i/V_f), \)\( \displaystyle Q = -W, \)\( \displaystyle \text{adiabatic: } \Delta U = W \)

Build a process step by step below. One mole of gas; choose a kind of step, set where it ends, and apply it. The shaded area is the work, red when work is done on the gas and blue when the gas does work.

Steps taken Next step (preview) Isotherms
Next step
Preview \(W\)
–
Preview \(Q\)
–
Preview \(\Delta U\)
–
Now: \(P\)
–
\(V\)
–
\(T\)
–
Cycles from Problems 1.33 and 1.34
StepProcessW (J)Q (J)ΔU (J)ΔT (K)
Total0000

Positive \(W\) is work done on the gas, and positive \(Q\) is heat added to it, shown in red; negative values are in blue. In the triangle of Problem 1.33, step A (expansion) has \(W < 0\), step B (constant volume) has \(W = 0\), and step C (compression) has \(W > 0\); \(\Delta U > 0\) in A and B and \(< 0\) in C; and \(Q = \Delta U - W\) is positive in A and B and negative in C. Around any closed cycle, \(\Delta U = 0\), so the net heat and net work cancel.

Adiabats and the lapse rate

Adiabatic compression is so fast that no heat escapes, but not so fast that the process stops being quasistatic. Real compressions lie somewhere between isothermal and adiabatic. With \(Q = 0\), \(dU = \tfrac{f}{2}Nk_{\mathrm{B}}\,dT = -P\,dV = -\tfrac{Nk_{\mathrm{B}}T}{V}\,dV\), and integrating,

\( \displaystyle VT^{f/2} = \text{constant}, \)\( \displaystyle PV^\gamma = \text{constant}, \)\( \displaystyle \gamma = \frac{f+2}{f} \)

The adiabatic exponent \(\gamma > 1\) makes an adiabat steeper than an isotherm: compressing adiabatically connects a low-temperature isotherm to a high-temperature one, as the explorer above shows. In terms of pressure, \(dT/dP = \tfrac{2}{f+2}\,T/P\) (Problem 1.40).

Combine this with the barometric equation \(dP/dz = -(mg/k_{\mathrm{B}}T)P\): air rising adiabatically expands and cools at the dry adiabatic lapse rate,

\[ \frac{dT}{dz} = -\frac{2}{f+2}\,\frac{mg}{k_{\mathrm{B}}} \approx -10\ ^\circ\mathrm{C/km} \]

for nitrogen (\(f = 5\)). Ground heated by sunlight warms the air above it. If the actual temperature falls with height faster than this, a rising parcel of air stays warmer and less dense than its surroundings even after its adiabatic cooling, so it keeps rising: convection, which stirs the lowest 10 to 15 km of the atmosphere, the troposphere.

Surrounding air Parcel rising adiabatically

About 6.5 °C/km is typical of the real troposphere.
Dry adiabatic lapse rate
–

For N2: \(m = 46.5 \times 10^{-27}\) kg, \(f = 5\), \(g = 9.8\ \mathrm{m/s^2}\). Moist air cools more slowly, since condensing water releases heat.

Heat capacities

The heat capacity is the heat needed per degree of temperature rise, an extensive quantity; per unit mass it is the specific heat:

\( \displaystyle C = \frac{Q}{\Delta T} = \frac{\Delta U - W}{\Delta T}, \)\( \displaystyle c \equiv \frac{C}{m} \)

This is ambiguous: it depends on whether work is being done. With no work (constant volume), \(C_V = (\partial U/\partial T)_V\), the “energy capacity”: 1 cal/°C = 4.2 J/°C for a gram of water. At constant pressure, the object also does work as it expands:

\( \displaystyle C_P = \left(\frac{\partial U}{\partial T}\right)_P + P\left(\frac{\partial V}{\partial T}\right)_P, \)\( \displaystyle C_V = \tfrac{f}{2}Nk_{\mathrm{B}}, \)\( \displaystyle C_P = C_V + Nk_{\mathrm{B}} = C_V + nR \)

The last two hold for an ideal gas whose energy is all in quadratic degrees of freedom (with \(f\) independent of temperature, which isn’t true in general). Per mole, a monatomic gas has \(C_V = \tfrac32 R = 12.5\ \mathrm{J/K}\), and a solid at high temperature has \(f = 6\), so \(C_V = 3R\) (the rule of Dulong and Petit). Heat one mole by 10 K both ways and compare:

At constant pressure, part of the heat leaves again as work done pushing back the surroundings, so more heat is needed for the same temperature rise.

\(C_V\) per mole
–
\(C_P\) per mole
–
\(\gamma = C_P/C_V\)
–

Latent heat

During a phase transformation such as melting ice or boiling water, heat goes in without raising the temperature at all, so \(C = Q/\Delta T \to \infty\). What matters instead is the latent heat \(L\) to convert the substance completely, or per unit mass \(\ell = L/m\), by convention at a constant pressure of 1 atm: 333 J/g (about 80 cal/g) to melt ice, and 2260 J/g (about 540 cal/g) to boil water. Compare 100 cal/g to warm water from 0 °C to 100 °C. Add heat to one gram of ice at −20 °C:

Specific heats: ice 2.09, water 4.18, steam 2.01 J/(g K).

Enthalpy

To handle constant-pressure processes conveniently, define the enthalpy

\( \displaystyle H \equiv U + PV \)

the energy needed to create the system out of nothing and put it into its environment, including the work \(PV\) to push the atmosphere out of the way. If the system were annihilated, \(U + PV\) is what you could extract, the atmosphere doing work \(PV\) as it collapses to fill the vacuum. At constant pressure, \(\Delta H = \Delta U + P\,\Delta V\), and the first law \(\Delta U = Q - P\,\Delta V + W_{\text{other}}\) becomes

\( \displaystyle \Delta H = Q + W_{\text{other}} \quad (\text{constant } P), \)\( \displaystyle C_P = \left(\frac{\partial H}{\partial T}\right)_P \)

so compression and expansion work can be forgotten; \(C_P\) is the “enthalpy capacity,” as \(C_V\) is the energy capacity. Enthalpy changes are tabulated for phase changes, chemical reactions, ionization, and dissolving. Forming water, \(\mathrm{H_2} + \tfrac12\mathrm{O_2} \to \mathrm{H_2O}\), has \(\Delta H = -286\ \mathrm{kJ}\) per mole: burning a mole of hydrogen releases 286 kJ. Where does it come from?

From the molecules, \(-\Delta U\)
–
From the atmosphere, \(-P\Delta V\)
–
Total, \(-\Delta H\)
286 kJ

1.5 mol of gas becomes about 18 mL of liquid, so \(P\,\Delta V \approx -1.5RT\). Whether all 286 kJ can be used is a question for Chapter 5.

Negative heat capacity

Problem 1.55. Heat capacities are normally positive, but systems held together by gravity, such as stars and star clusters, are an exception. For two equal masses \(m\) orbiting their center of mass at distance \(r\) each, \(Gm^2/4r^2 = mv^2/r\), so

\( \displaystyle U_{\text{kinetic}} = 2\cdot\tfrac12 mv^2 = \frac{Gm^2}{4r}, \)\( \displaystyle U_{\text{potential}} = -\frac{Gm^2}{2r} = -2U_{\text{kinetic}} \)

This holds on average for any system bound by mutual gravitational attraction: a special case of the virial theorem, \(2\langle U_{\text{kinetic}}\rangle = n\langle U_{\text{potential}}\rangle\) for a potential \(\propto r^n\) (here \(n = -1\); for \(n = 2\), the harmonic potential, it is equipartition again). So \(U_{\text{total}} = -U_{\text{kinetic}}\). Model a star as a gas of particles interacting only gravitationally, with \(U_{\text{kinetic}} = \tfrac32 k_{\mathrm{B}}T\) per particle:

\( \displaystyle U_{\text{total}} = -\tfrac32 k_{\mathrm{B}}T \)\( \displaystyle \Longrightarrow\; C = \frac{\partial U_{\text{total}}}{\partial T} = -\tfrac32 k_{\mathrm{B}} < 0 \)

Add energy, and the system gets colder: the orbit widens, the kinetic energy decreases, and the potential energy rises by even more. Try it with the pair below.

\(U_{\text{total}}\)
–
\(U_{\text{kinetic}}\) (“temperature”)
–
\(U_{\text{potential}}\)
–
Separation \(2r\)
–

Units with \(G = m = 1\). Each change happens gradually, so the orbit stays circular.