State Functions and Path Functions
Climb a mountain by the steep north face or the gentle switchback trail. Either way, you end at the same summit, and your net change in altitude is identical. But your legs know the difference: the sweat and fatigue depend entirely on the path you took. This simple contrast — altitude versus exertion — is the heart of one of thermodynamics' most powerful ideas. Chemists need this distinction constantly. It tells us why internal energy and enthalpy can be tabulated in reference books, while heat and work cannot. It explains why chemists invent clever indirect routes, like Hess's law cycles, to calculate reaction enthalpies without ever running the reaction directly. This article defines state functions and path functions precisely. It introduces the mathematical tool that separates them: exact versus inexact differentials. You will see the physical picture, the core relations, and two fully worked examples. The ideas here set up everything that follows on work, heat, and internal energy.
- A state function depends only on the current state of a system, not on how that state was reached.
- A path function depends on the specific route taken between two states.
- Pressure, temperature, volume, internal energy, and enthalpy are state functions.
- Heat and work are path functions; they are not properties of a state at all.
- Exact differentials integrate to a state-function difference; inexact differentials do not.
- Key idea: if a quantity's change is the same for every path between two fixed endpoints, it is a state function, and its infinitesimal change is an exact differential.
A state function is a property whose value is fixed once the state of the system is fixed, so its change between two states is path-independent and given by simple subtraction of endpoint values, whereas quantities like heat and work depend on the process itself and must be calculated by integrating along the actual path taken.
The physical picture
Consider one mole of an ideal gas that starts at bar, L, K, and ends at bar, L, K (an isothermal compression). There are infinitely many ways to get from state 1 to state 2: a single-step compression against constant external pressure, a slow reversible compression, or a two-step process that first cools then reheats. The temperature, pressure, and volume at the end are identical in every case, so quantities built from them — internal energy , enthalpy , entropy — end up with the same total change no matter which route was used. Contrast this with the work done on the gas. Squeezing it in one abrupt step against a large constant external pressure does more work on the surroundings' account books than compressing it slowly and reversibly in tiny increments (this is developed quantitatively in the discussion of reversible versus irreversible work). The heat exchanged along the way differs correspondingly, because the First Law ties them together. Neither heat nor work has a "value" that belongs to state 1 or state 2 alone — they are properties of the journey, not the destination. A useful way to think about this: state functions are like altitude on a mountain — a single number attached to each location. Path functions are like the distance walked or the calories burned — they depend on the trail chosen, even between the same two endpoints. Systems, surroundings, and boundaries (covered earlier) define what we track; state versus path functions tell us how the properties of that system behave.
The core relations
where: stands for any state function such as , , , , , or ; the change depends only on endpoints 1 and 2.
where: the cyclic integral of an exact differential vanishes because the system returns to its starting state.
where: and denote inexact differentials of heat and work; the notation (rather than ) flags that these are not exact differentials of any state function.
where: this is the First Law; is path-independent even though and individually are not.
where: this is the Euler reciprocity (mixed second-derivative) test for exactness, applicable to any state function .
Goal. Show that if is an exact differential, the integral of between two fixed states is identical for every path connecting them, while an inexact differential generally is not.
Step 1. Suppose is a well-defined function of two independent variables, say , describing the state of a closed system with fixed composition. Its total differential is by definition
Because is a genuine mathematical function of and , this differential automatically satisfies Euler's reciprocity relation: the mixed partial derivatives are equal regardless of order of differentiation. This is a property of any well-behaved function, not an extra assumption.
Step 2. Integrate along an arbitrary path from state 1 to state 2 :
This follows directly from the fundamental theorem of calculus for line integrals: because is the differential of an actual scalar function , the integral telescopes to the difference of the function's values at the endpoints. The specific route taken by never enters the right-hand side.
Step 3. Therefore, for two different paths and joining the same states 1 and 2,
so the change in is identical for both paths. Equivalently, going around any closed loop (state 1 back to state 1) gives .
Step 4. Now consider heat, . There is no function whose differential reproduces in general — heat is defined operationally as energy transferred by virtue of a temperature difference, and its magnitude depends on how the process is carried out (reversibly or irreversibly, at constant or constant , and so on). No reciprocity relation of the form in Step 1 holds for written as a combination of and ; the "mixed partial derivative" test fails. Consequently
even though both integrals start and end at the same states 1 and 2. The same argument applies to .
Step 5. Combine with the First Law, . Experiment (Joule's and later, more precise, calorimetric work) shows that is exact — the sum always integrates to the same for a given pair of states, even though the two pieces individually vary path by path. This is the deep empirical content of the First Law: heat and work are individually path functions, but a specific linear combination of them is not.
Worked examples
Example 1 — Confirming path independence of for an ideal gas, two different routes. Take 1.00 mol of an ideal monatomic gas () at K, L. It is taken to K, L (isothermal expansion, so ) by two different routes. Route A: reversible isothermal expansion. For an ideal gas, depends only on , so
The reversible work is
From the First Law, J. Route B: free expansion (against zero external pressure) then isothermal. Suppose instead the gas first expands freely (irreversibly) from 10.0 L to 20.0 L doing no work (, and for an ideal gas too, since is unchanged and there's no restoring pressure), landing at the same final state.
Check: J — identical, confirming is a state function. But J while J, and J while J — completely different. This is exactly the behavior expected: the state function's change is route-independent; the path functions are not.
Example 2 — Using path independence to find an unmeasurable ΔH via a Hess's-law cycle. Suppose we want for the direct reaction
which cannot be measured cleanly by direct combustion (some CO always further oxidizes to CO₂ in a bomb calorimeter). Because is a state function, we may instead combine two measurable reactions that connect the same overall reactants and products, regardless of the mechanistic path. Given (standard enthalpies of combustion/formation, 298 K):
Reverse reaction (ii) to put CO₂ on the left and CO on the right (reversing flips the sign):
Add this to reaction (i). The CO₂ produced in (i) is exactly consumed here, and the partially cancels ( mol O₂ net), leaving
Sanity check: the accepted literature value for is kJ mol⁻¹, matching perfectly. This works only because is a state function: the enthalpy change for going from graphite plus oxygen to CO is the same whether the reaction proceeds directly (impossible to measure) or via the two-step cycle through CO₂ (both steps independently measurable). If were a path function like alone, this substitution trick would be mathematically illegitimate.
Limiting cases & common traps
| Situation | Correct view |
|---|---|
| Ideal gas, isothermal process | always, but and are generally nonzero and route-dependent |
| Cyclic process (system returns to start) | , but net and net need not be zero |
| Constant-pressure process | only under these specific conditions — this makes look state-function-like, but it is a special-case equality, not a general one |
| Constant-volume process | , again only under these specific conditions, with no non-expansion work |
| Reversible vs irreversible between same states | , , identical; and |
The chemist behind it
The formal separation of state functions from path functions grew out of nineteenth-century arguments about heat engines and the nature of heat itself, but it was Rudolf Clausius who gave the concept its sharpest mathematical form. Building on Sadi Carnot's engine analysis and James Joule's mechanical-equivalent-of-heat experiments, Clausius recognized that while heat and work individually depend on process details, their sum — internal energy — behaves as a true function of state. He pushed the idea further by identifying an inexact differential, , that becomes exact when divided by temperature along a reversible path, defining what he named entropy. That later development builds directly on the exact/inexact distinction introduced here.
Origins · 1 minRudolf Clausius and how this was discovered
Ask the tutor: Can you show me how reversible versus irreversible compression of the same gas gives different work values, even though ΔU is identical?
What exactly makes a differential "exact"?
A differential is exact if it is the total differential of some genuine function of the state variables — meaning its line integral between two points is path-independent and depends only on the endpoints. Mathematically, this is tested via Euler reciprocity: mixed second partial derivatives of must be equal regardless of the order of differentiation. If no such underlying function exists, the differential is "inexact," written with instead of , and its integral genuinely depends on the path chosen, as is the case for heat and work.
Is enthalpy always a state function, even for irreversible processes?
Yes. Enthalpy is defined as , and since , , and are all state functions, any combination of them is also a state function, regardless of whether the process connecting two states is reversible or irreversible. The change between two equilibrium states is fixed by those states alone. What changes with reversibility is whether (heat at constant pressure) numerically equals , which requires no non-expansion work being done.
Why can't we just define a "state function" version of heat?
Heat is fundamentally a mode of energy transfer across a boundary, not a property possessed by a system in a given state. A system does not "contain" heat; it contains internal energy. Asking how much heat a system "has" is like asking how much distance a mountain "has" rather than how much distance a hiker walked to reach its summit. Only under the special lens of reversible transfer divided by temperature does a path-dependent quantity like become the exact differential of a new state function, entropy.
How does this connect to Hess's law?
Hess's law is simply the statement that enthalpy (and internal energy) are state functions, applied to chemical reactions. Because for going from reactants to products depends only on the identities and states of reactants and products, not on the reaction mechanism, chemists can add up enthalpies of intermediate steps — even hypothetical ones — to get the enthalpy of an overall reaction. This is exactly the calculation used in Example 2 to find of carbon monoxide.
Does path independence mean the process itself doesn't matter physically?
Not at all. The process matters enormously for heat, work, entropy production, and efficiency — reversible and irreversible paths between the same two states can have wildly different and , and only reversible paths achieve the maximum possible work extraction. Path independence applies strictly to state functions like , , and . The physical journey is still where all the interesting engineering and chemistry happens; it just doesn't affect the endpoint values of state properties.