Thermodynamics

Thermodynamics describes systems of particles with a handful of macroscopic variables: pressure, volume, temperature, particle number, internal energy, and entropy. The subject rests on two ideas. Temperature is a measure of the average energy per particle. That idea is the content of section 2.1, of the ideal gas law in section 2.2, and of the kinetic theory behind it in section 2.3. Energy is conserved, which becomes the first law once heat and internal energy are defined in section 2.4 and work is added in section 2.5. Section 2.6 describes how heat moves by conduction, convection, and radiation.

The second law in section 2.7 adds a direction to the bookkeeping. Heat flows from hot to cold on its own and never the reverse, no engine turns heat entirely into work, and the entropy of a system together with its surroundings never decreases. The Carnot efficiency is the ceiling on every engine, and entropy is the state function that enforces it.

These notes follow PHYS 7B at Berkeley, lectures 1 to 11 of Fall 2026, and Giancoli chapters 17 to 20. They write rather than , count accessible degrees of freedom with , and write internal energy as . Pressure is capital . Each note lists the lectures that covered it in its lectures property. A warning titled Not Taught in Lecture flags each part that lecture skipped. The coverage audit maps every lecture to its notes.

The diagram maps the central equations of thermodynamics and what each one leads to.

\usepackage{tikz}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{grn}{HTML}{2F9E44}
\begin{tikzpicture}[x=1cm,y=1cm,>=latex,
box/.style={draw,very thick,rounded corners=3pt,align=center,inner sep=5pt,fill=white},
lab/.style={fill=white,inner sep=1.5pt,font=\small}]
% kinetic theory
\node[box,draw=cold] (root) at (9.6,0) {temperature measures energy per particle\\ equal $T$ means equilibrium, bare $T$ in kelvins};
\node[box,draw=cold] (boltz) at (2.0,0) {Boltzmann factor\\ $e^{-E/kT}$};
\node[box,draw=cold] (maxwell) at (2.0,-2.8) {$f(v) \propto v^2 e^{-mv^2/2kT}$\\[2pt] $v_{\mathrm{rms}} = \sqrt{3kT/m}$};
\node[box,draw=cold] (ke) at (7.4,-2.8) {$\frac{1}{2} m \overline{v^2} = \frac{3}{2} kT$};
\node[box,draw=cold] (expand) at (16.6,-2.8) {$\Delta L = \alpha L_0\, \Delta T$\\ $\beta = 3\alpha$};
\node[box,draw=cold] (pv) at (7.4,-5.6) {$PV = NkT$};
\node[box,draw=cold] (equi) at (12.4,-5.6) {$E_{\mathrm{int}} = \frac{d}{2} NkT$};
% first law
\node[box,draw=grn] (work) at (2.0,-8.4) {$W = \int P\, dV$\\ area under the path};
\node[box,draw=grn] (first) at (7.4,-8.4) {$\Delta E_{\mathrm{int}} = Q - W$};
\node[box,draw=grn] (heat) at (12.4,-8.4) {$Q = mc\, \Delta T$\\ $Q = mL$};
\node[box,draw=grn] (transfer) at (16.6,-8.4) {conduction\\ $\frac{dQ}{dt} = kA \frac{\Delta T}{L}$\\[5pt] radiation\\ $\frac{dQ}{dt} = \varepsilon \sigma A T^4$};
\node[box,draw=grn] (caps) at (2.0,-11.6) {$C_V = \frac{d}{2} R$\\ $C_P = C_V + R$\\ $\gamma = \frac{C_P}{C_V} = 1 + \frac{2}{d}$};
\node[box,draw=grn,align=left] (proc) at (7.4,-11.6) {isovolumetric: $W = 0$\\ isobaric: $W = P\, \Delta V$\\ isothermal: $Q = W = NkT \ln \frac{V_2}{V_1}$\\ adiabatic: $Q = 0$, $PV^{\gamma} = \mathrm{const}$};
\node[box,draw=grn] (calor) at (12.4,-11.6) {$\sum_i Q_i = 0$};
\node[box,draw=grn] (cycle) at (7.4,-15.0) {$\Delta E_{\mathrm{cycle}} = 0$\\ $W = Q_H - Q_L$, $e = 1 - \frac{Q_L}{Q_H}$};
% second law
\node[box,draw=hot] (entropy) at (12.4,-15.0) {$dS = \frac{dQ}{T}$\\ on a reversible path};
\node[box,draw=hot] (dsgas) at (16.6,-15.0) {ideal gas\\ $\Delta S = \frac{d}{2} Nk \ln \frac{T_2}{T_1}$\\[2pt] $+\, Nk \ln \frac{V_2}{V_1}$};
\node[box,draw=hot] (otto) at (2.0,-18.2) {Otto\\ $e = 1 - r^{1 - \gamma}$\\ $r = V_{\max}/V_{\min}$};
\node[box,draw=hot] (carnot) at (7.4,-18.2) {Carnot (reversible)\\ $e_C = 1 - \frac{T_L}{T_H}$\\ every engine: $e \leq e_C$};
\node[box,draw=hot] (total) at (12.4,-18.2) {$\Delta S_{\mathrm{sys}} + \Delta S_{\mathrm{env}} \geq 0$\\ $= 0$ only if reversible};
\node[box,draw=hot] (cop) at (7.4,-21.5) {refrigerator: $\mathrm{COP} = \frac{Q_L}{W} \leq \frac{T_L}{T_H - T_L}$\\[4pt] heat pump: $\mathrm{COP}_{\mathrm{hp}} = \frac{Q_H}{W}$};
\node[box,draw=hot] (claus) at (12.4,-21.5) {heat flows hot to cold\\ no engine has $e = 1$};
% arrows
\draw[->,thick] (root) -- (ke);
\draw[->,thick] (root) -- node[lab] {atoms on springs} (expand);
\draw[->,thick] (boltz) -- node[lab] {shell $4\pi v^2\, dv$} (maxwell);
\draw[->,thick] (maxwell) -- node[above,font=\small] {$\overline{v^2} = 3kT/m$} (ke);
\draw[->,thick] (ke) -- node[lab] {wall collisions} (pv);
\draw[->,thick] (ke) -- node[lab] {$\frac{1}{2} kT$ per mode} (equi);
\draw[->,thick] (pv) -- node[lab] {$P$-$V$ diagram} (work);
\draw[->,thick] (equi) -- node[lab] {$\Delta E_{\mathrm{int}} = \frac{d}{2} Nk\, \Delta T$} (first);
\draw[->,thick] (work) -- (first);
\draw[->,thick] (heat) -- node[lab] {$Q$} (first);
\draw[->,thick] (heat) -- node[lab] {rates} (transfer);
\draw[->,thick] (heat) -- node[lab] {isolated} (calor);
\draw[->,thick] (first) -- node[lab] {fix $V$, $P$, $T$, or $Q = 0$} (proc);
\draw[->,thick] (proc) -- (caps);
\draw[->,thick] (proc) -- node[lab] {closed path} (cycle);
\draw[->,thick] (proc) -- node[lab] {reversible $dQ$} (entropy);
\draw[->,thick] (calor) -- node[lab] {mixing} (entropy);
\draw[->,thick] (entropy) -- (dsgas);
\draw[->,thick] (entropy) -- node[lab] {add environment} (total);
\draw[->,thick] (caps) -- node[lab] {$\gamma$} (otto);
\draw[->,thick] (cycle) -- node[lab,pos=0.72] {2 adiabats, 2 at fixed $V$} (otto);
\draw[->,thick] (cycle) -- node[right,font=\small,align=left] {2 isotherms,\\ 2 adiabats} (carnot);
\draw[->,thick] (carnot) -- node[lab] {run backward} (cop);
\draw[-,thick,dashed] (total) -- node[lab] {same law} (claus);
% legend
\draw[cold,very thick] (13.7,0.55) -- (14.5,0.55); \node[right] at (14.6,0.55) {kinetic theory, 2.1 to 2.3};
\draw[grn,very thick] (13.7,-0.05) -- (14.5,-0.05); \node[right] at (14.6,-0.05) {first law, 2.4 to 2.6};
\draw[hot,very thick] (13.7,-0.65) -- (14.5,-0.65); \node[right] at (14.6,-0.65) {second law, 2.7};
\end{tikzpicture}
\end{document}

Prerequisites

Contents

Recommended Path

Read the sections in order, and the notes within each section in order. The numbering is a reading order: no note uses a result that a later note introduces. Sections 2.1 to 2.3 build the molecular picture of temperature and can be read quickly by anyone who has seen the ideal gas law. Sections 2.4 and 2.5 are the core of the course and carry most of the problem types. Section 2.6 stands on its own. Section 2.7 uses the processes of 2.5 on every page and should be read last.