Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 02 / 09Thermodynamics

State Variables, State Functions versus Path Functions, and Thermodynamic Processes

Why internal energy is a state function while heat and work are path functions, what quasi-static and reversible really mean, and how the four standard processes and cyclic processes appear on a P-V indicator diagram.

Figure 1
An equilibrium state of a fixed mass of gas is pinned down by just two numbers, say PP and VV, because the equation of state supplies the third. Every other property is then a function of those two. Quantities like PP, VV, TT, UU and SS that are fixed the instant the state is fixed are called state variables or state functions. Quantities that depend on how you got to the state are called path functions, and there are exactly two of them in thermodynamics: heat and work. Extensive and intensive variables Extensive variables scale with the amount of matter: VV, UU, SS, nn, mass. Intensive variables do not: PP, TT, density, molar volume. Cut a system in equilibrium into two halves and every extensive variable halves while every intensive variable is unchanged. A quick sanity check on any derived formula: the two sides must match in extensivity. State function versus path function: the central idea The cleanest analogy is a mountain. The altitude of a point on a mountain is a property of the point, so the change in altitude between base camp and summit is the same whichever trail you take. The distance you walked is not a property of the summit; it depends entirely on your route. Altitude behaves like UU; distance walked behaves like WW and QQ. Formally, for a state function the infinitesimal change is an exact differential, dUdU, and ∮dU=0\oint dU = 0 around any closed path. For a path function the infinitesimal amount is inexact and is written δQ\delta Q or δW\delta W, and in general ∮δQ≠0\oint \delta Q \neq 0 and ∮δW≠0\oint \delta W \neq 0. This is why you must never say "the heat content of a body" or "the work contained in a gas". A gas contains internal energy; heat and work are the two modes by which energy is transported across the boundary, and they exist only while the transfer is happening. The indicator diagram and work as an area When a gas expands quasi-statically by dVdV against an external pressure equal to its own pressure PP, it does work δW=P dV\delta W = P\,dV, so W=∫V1V2P dVW = \int_{V_1}^{V_2} P\,dV, which is the area under the path on a PP-VV diagram. Two different paths joining the same two points enclose different areas, which is the geometric statement that WW is a path function. Quasi-static processes A quasi-static process is one carried out so slowly that the system is, at every instant, infinitesimally close to equilibrium. Operationally the external pressure must differ from the gas pressure only infinitesimally at every stage, and heat must be exchanged only with reservoirs differing in temperature by an infinitesimal amount. Only a quasi-static process traces a continuous curve on a PP-VV diagram, and only then is the area under the curve equal to the work. Reversible and irreversible processes A reversible process is a quasi-static process with the extra requirement that no dissipative effects are present: no friction, no viscosity, no electrical resistance, no finite temperature difference, no free expansion, no mixing. Reversing every step then restores both the system AND the surroundings exactly to their original states, leaving no trace anywhere in the universe. Every reversible process is quasi-static, but the converse is false, and this is a favourite JEE Advanced trap. Push a piston in infinitely slowly while friction acts between the piston and the cylinder wall. The gas passes through equilibrium states at every instant, so the process is quasi-static, yet heat has been generated by friction and dumped into the surroundings; running the piston back out will not undo that. The process is quasi-static but irreversible. Causes of irreversibility worth memorising: friction and all dissipative work, heat flow across a finite temperature difference, free expansion into vacuum, spontaneous mixing or diffusion, and any finite-rate process that drives the system out of equilibrium. Free expansion: the classic non-drawable process Let a gas occupy one half of a rigid insulated container, with vacuum in the other half, and puncture the partition. Since the gas expands into vacuum there is nothing to push against, so W=0W = 0; note carefully that this is not ∫P dV\int P\,dV evaluated with the gas's own pressure, which would be non-zero. The container is insulated, so Q=0Q = 0, and therefore ΔU=0\Delta U = 0. For an ideal gas UU depends only on TT, so the temperature is unchanged. But the process is violently non-quasi-static, so it cannot be drawn as a curve at all. The endpoints happen to lie on the same isotherm, yet the process is not isothermal. Cyclic processes In a cyclic process the system returns to its initial state, so every state function returns to its initial value: ΔU=0\Delta U = 0, ΔT=0\Delta T = 0, ΔS=0\Delta S = 0 for the working substance. The First Law then reduces to Qnet=WnetQ_{net} = W_{net}, and the magnitude of the net work equals the area enclosed by the loop. A clockwise loop gives Wnet>0W_{net} > 0 and is a heat engine; an anticlockwise loop gives Wnet<0W_{net} < 0 and is a refrigerator or heat pump. The standard processes Isothermal: TT constant, so PV=PV = constant for an ideal gas, a rectangular hyperbola. Isobaric: PP constant, a horizontal line, with VT\frac{V}{T} constant. Isochoric or isovolumetric: VV constant, a vertical line, with PT\frac{P}{T} constant and W=0W = 0. Adiabatic: Q=0Q = 0, with PVγ=PV^{\gamma} = constant for a reversible adiabatic change of an ideal gas. All four are special cases of the polytropic family PVn=PV^{n} = constant, with n=0n = 0 isobaric, n=1n = 1 isothermal, n=γn = \gamma adiabatic and n→∞n \to \infty isochoric. The diagram above shows all four radiating from a common state AA. Key Takeaways: State functions: PP, VV, TT, UU, HH, SS. Path functions: QQ and WW only. Around any cycle ΔU=0\Delta U = 0 but Q≠0Q \neq 0 and W≠0W \neq 0 in general. W=∫P dVW = \int P\,dV and "work equals area under the curve" are valid only for quasi-static processes. For an irreversible expansion against a constant external pressure, use W=Pext ΔVW = P_{ext}\,\Delta V instead. Quasi-static means infinitely slow and always in equilibrium. Reversible means quasi-static AND non-dissipative. Reversible implies quasi-static; quasi-static does not imply reversible. Sign of the loop area: clockwise cycle means net work done by the gas is positive; anticlockwise means negative. Free expansion: W=0W = 0, Q=0Q = 0, ΔU=0\Delta U = 0, and for an ideal gas ΔT=0\Delta T = 0, but the process is irreversible and cannot be drawn on a PP-VV diagram. Common mistake: writing "the process has ΔT=0\Delta T = 0, therefore it is isothermal". A process is isothermal only if TT is constant throughout, not merely equal at the two ends. Brain-Teaser 1: One mole of an ideal gas is taken from state AA at (P0,V0)(P_0, V_0) to state BB at (P02,2V0)(\frac{P_0}{2}, 2V_0) by two different quasi-static routes. Route I: isobaric expansion from V0V_0 to 2V02V_0, then isochoric pressure drop to P02\frac{P_0}{2}. Route II: isochoric pressure drop to P02\frac{P_0}{2} first, then isobaric expansion to 2V02V_0. Find WW, ΔU\Delta U and QQ for each route. Is either route isothermal? Solution: Work is the area under the path. Along route I the expansion happens at the high pressure P0P_0, so WI=P0(2V0−V0)=P0V0W_I = P_0(2V_0 - V_0) = P_0 V_0; the isochoric leg contributes nothing. Along route II the expansion happens at the low pressure P02\frac{P_0}{2}, so WII=P02(2V0−V0)=P0V02W_{II} = \frac{P_0}{2}(2V_0 - V_0) = \frac{P_0 V_0}{2}. The works differ by a factor of two, exactly as a path function must. Now the internal energy. TA=P0V0RT_A = \frac{P_0 V_0}{R} and TB=(P02)(2V0)R=P0V0RT_B = \frac{(\frac{P_0}{2})(2V_0)}{R} = \frac{P_0 V_0}{R}. The two end temperatures are equal, so ΔU=0\Delta U = 0 for both routes, as required of a state function. The First Law then gives QI=ΔU+WI=P0V0Q_I = \Delta U + W_I = P_0 V_0 and QII=P0V02Q_{II} = \frac{P_0 V_0}{2}. Same endpoints, same ΔU\Delta U, different QQ and different WW. Neither route is isothermal. Along route I the gas is heated from TAT_A to 2TA2T_A during the isobaric leg and then cooled back to TAT_A; along route II it is first cooled to TA2\frac{T_A}{2} and then heated back. Equal end temperatures are not isothermality. The genuine isotherm joining AA and BB is the hyperbola PV=P0V0PV = P_0 V_0, whose area gives a third value of work, W=RTln⁡2=P0V0ln⁡2≈0.693P0V0W = RT \ln 2 = P_0 V_0 \ln 2 \approx 0.693 P_0 V_0, comfortably between the other two. Brain-Teaser 2: A rigid, thermally insulated box is divided by a thin partition. One half contains nn moles of an ideal gas, the other half is evacuated. The partition is punctured. Find QQ, WW, ΔU\Delta U and ΔT\Delta T. Then answer three follow-ups: can the process be drawn on a PP-VV diagram, is it reversible, and what changes if the gas is a real van der Waals gas? Solution: The gas expands into vacuum, so there is no external agent to push against and W=0W = 0. The box is insulated and rigid, so Q=0Q = 0. The First Law gives ΔU=Q−W=0\Delta U = Q - W = 0. For an ideal gas U=U(T)U = U(T) alone, so ΔT=0\Delta T = 0: the temperature is unchanged. It cannot be drawn on a PP-VV diagram. During the rush of gas into the empty half there is no uniform pressure or temperature, so the intermediate states are not equilibrium states and do not correspond to points on the diagram. Only the initial and final points exist. A student who draws an isotherm from AA to BB and computes nRTln⁡2nRT \ln 2 as the work has made a serious error: the real work is zero. It is grossly irreversible. The reverse process, in which the gas spontaneously crowds itself back into one half leaving a vacuum, has never been observed. Quantitatively, the entropy increases by ΔS=nRln⁡2>0\Delta S = nR \ln 2 > 0 even though Q=0Q = 0, which is the sharpest possible demonstration that ΔS=QT\Delta S = \frac{Q}{T} holds only for reversible paths. For a real gas, U=U(T,V)U = U(T, V) because the molecules attract one another. Increasing the volume pulls the molecules further apart against their mutual attraction, raising the potential-energy part of UU. Since the total UU is fixed at ΔU=0\Delta U = 0, the kinetic part must fall, so the gas cools. This is the Joule effect, and it is the reason free expansion is a genuine physics experiment rather than a triviality. Brain-Teaser 3: A gas is taken around a closed loop on a PP-VV diagram in the anticlockwise sense, and the loop encloses an area of 200200 J. State ΔU\Delta U, WW and QQ for one complete cycle, and identify what kind of device this is. Solution: The process is cyclic, so the system returns to its initial state and every state function returns to its initial value: ΔU=0\Delta U = 0, and also ΔT=0\Delta T = 0 and ΔSsystem=0\Delta S_{system} = 0. The magnitude of the net work is the enclosed area, 200200 J. The sense fixes the sign. Traversing clockwise means the upper, higher-pressure branch is the expansion, so more work is done by the gas than on it and Wnet>0W_{net} > 0. Here the loop is anticlockwise, so the expansion occurs along the lower-pressure branch and the compression along the higher-pressure branch, giving Wnet=−200W_{net} = -200 J. In words, 200200 J of work is done on the gas. The First Law for a cycle gives Qnet=ΔU+Wnet=0−200=−200Q_{net} = \Delta U + W_{net} = 0 - 200 = -200 J, so the gas rejects 200200 J more heat than it absorbs over the cycle. Work is consumed and heat is pumped: this is a refrigerator or heat pump, not an engine. A useful self-check: an engine must have a clockwise loop, because only then is the enclosed area positive work delivered to the outside world.