State Functions and Path Functions
Why internal energy is state-dependent while heat and work depend on a route
Lesson 1719 of 4,500 · Thermodynamics
Learning objectives
- Distinguish state functions from path-dependent transfers
- Use a cycle to test whether a quantity can be a state function
Introduction
Two routes can bring a system from the same initial state to the same final state while transferring different amounts of heat and work. Internal energy and enthalpy changes are the same for both routes because they depend only on the states. This distinction is the foundation of Hess's law and of correct thermodynamic bookkeeping.
Core explanation
A state function has a value determined by the system's equilibrium state. Internal energy U, enthalpy H, entropy S and Gibbs energy G are state functions. If the initial and final states are fixed, ΔU, ΔH, ΔS and ΔG are fixed, regardless of the path. A state specification may include temperature, pressure, composition and phase. Changing a phase changes the state, even if the chemical formula remains the same.
Heat q and work w describe energy transfers during a process. They are not properties stored in a system as separate inventories. A gas cannot be said to “contain 5 kJ of heat” in the same sense that it has internal energy. It can receive 5 kJ of heat along a particular route. Different routes may exchange different q and w while maintaining the same sum ΔU = q + w under the chemistry sign convention.
Consider an ideal gas going from an initial to a final temperature. Its ΔU depends on temperature change, but the path could involve heating at constant volume, where no pressure-volume work is done, or heating at constant pressure, where expansion does work. The heat required differs because some transferred energy goes into work in the constant-pressure route. The initial and final states must match exactly for a strict same-ΔU comparison; if final pressures or volumes differ, the states may not be the same even if temperature matches for a nonideal system.
A cycle returns to the starting state. The net change of every state function over a complete cycle is zero: ΔU cycle = 0 and ΔH cycle = 0. Net heat and net work over the cycle need not individually be zero; the first law requires q cycle + w cycle = 0 for a closed system, so they can offset. Heat engines exploit cycles with nonzero heat and work transfers while the working substance returns to its starting state.
Hess's law follows from enthalpy's state-function character. If a reaction can be represented as several balanced steps, the sum of their enthalpy changes equals the enthalpy difference between the same overall reactant and product states. Reversing a step reverses its ΔH, and scaling a reaction scales its ΔH. These operations are valid because the endpoint difference is preserved.
Path independence does not mean conditions are irrelevant. ΔH for making liquid water differs from ΔH for making gaseous water because the final states differ. Standard-state and temperature labels must match when adding reactions. A state function is only path-independent for the same specified endpoints.
Step-by-step reasoning
1. Identify the initial and final equilibrium states completely. 2. Ask whether the quantity is a property of each state or a transfer along a route. 3. For U, H, S or G, use final minus initial values. 4. For q or w, describe the process conditions before calculating. 5. Test a claimed state function by considering a complete cycle.
Visual explanation
Draw two points A and B on a pressure-volume diagram with two distinct curves joining them. Put equal ΔU labels beside both endpoints. Write different q and w values along the curves, chosen so their sums match. Close one route back to A and label the net state-function change zero.
Real-world analogy
Your elevation depends on your start and finish locations, while the walking distance depends on the trail taken. State-function changes resemble elevation differences; heat and work resemble route-dependent distances. The analogy should not be used to decide thermodynamic signs without equations.
Real-world example
A calorimeter can measure heat released by a reaction along one practical route. Hess's law can instead calculate the same standard reaction enthalpy by combining measured formation reactions, provided all chemical and physical endpoint states match.
Why?
Why can q and w change while ΔU remains fixed? Heat and work are two channels of energy transfer. One route can supply more heat and produce more work; another can supply less of both, yet the net energy change between the same states is unchanged.
Common misconception
“Heat is a state function because a hot object has heat.” Temperature and internal energy are state properties; heat names energy transferred because of a temperature difference during a process. It is not a stored property.
Worked example
For a closed system moving from A to B, route 1 has q = +100 J and w = −30 J, giving ΔU = +70 J. Route 2 has q = +80 J and w = −10 J, also giving ΔU = +70 J. The endpoints can be the same because ΔU agrees, even though the heat and work transfers differ. If a purported third route gave ΔU = +90 J for exactly the same endpoints, at least one measurement or assumption would be inconsistent.
Quick check
1. What is ΔH over a complete cycle returning to the same state? Answer: Zero, because enthalpy is a state function.
Exam focus
Name U, H, S and G as state functions and q and w as path-dependent transfers. For a cycle, set state-function changes to zero but do not force q or w individually to zero.
Advanced insight
In differential notation, exact differentials such as dU integrate to endpoint differences, while heat and work are often written δq and δw to mark path dependence. The notation is a reminder of physical meaning, not a replacement for defining the process and signs.
Summary
State functions depend only on specified states; heat and work depend on the path. Different q and w can sum to the same ΔU. Every state-function change vanishes over a complete cycle, a fact that supports thermochemical cycle calculations.
Practice questions
1. A closed system completes a cycle with net q = +40 J. What is net w? Answer: −40 J, because ΔU cycle = 0 and q + w = 0. 2. Does the heat transferred between fixed endpoints have to be the same for every path? Answer: No. Heat is path-dependent; work can change correspondingly while ΔU stays fixed. 3. Why must product phases match when applying Hess's law? Answer: Different phases are different final states and can have different enthalpies, so the endpoint difference would not be the same.