Where Exploration Meets Excellence
Jupiter Academy · Lesson

State Functions and the Internal Energy U

Every chemical reaction is, at its heart, an energy transaction, and thermodynamics gives us the ledger to record it. In the previous lesson we drew the map: a system carved out of the universe, its surroundings, and the boundary that separates them. Now we must populate that map with quantities we can actually measure and calculate. The most fundamental of these is internal energy, denoted ##U##, the total energy locked inside a system at any given moment. Understanding what ##U## is, what it is not, and why it behaves the way it does is the gateway to every energy calculation that follows in this course.

The central insight of this lesson is deceptively simple: some thermodynamic quantities depend only on where a system is, not how it got there. These are called state functions, and internal energy is the most important example. Temperature, pressure, and volume share this property; heat and work emphatically do not. Distinguishing between these two families of quantities is the single most valuable skill you can develop at this stage, because almost every error in thermochemistry traces back to confusing a path-dependent quantity with a state-dependent one. We will build that distinction carefully, using Joule's historic experiments as our evidence.

Along the way we will confront a practical nuisance that trips up even experienced students: sign conventions. Physics textbooks and chemistry textbooks historically disagree about whether work done by a system should be positive or negative. The IUPAC convention adopted in chemical thermodynamics resolves this, and we will state it precisely, justify it, and then apply it to worked numerical problems. By the end of this lesson you will be able to compute ##\Delta U## for a gas that absorbs heat and performs work, explain why the same change of state can be reached through wildly different combinations of ##q## and ##w##, and identify the minimum number of variables needed to pin down a thermodynamic state.

State Variables and the Thermodynamic Coordinate

State Variables and the Thermodynamic Coordinate
State Variables and the Thermodynamic CoordinateAI-generated representative image

To describe a system quantitatively, we specify its macroscopic properties: pressure ##p##, volume ##V##, temperature ##T##, and amount ##n##. These measurable quantities are called state variables, and each one acts as a thermodynamic coordinate, much like a coordinate axis in geometry. The state of the system is a point in this multi-dimensional space of properties. Crucially, thermodynamics deals with average, bulk behaviour rather than the motion of individual molecules, so we never need to track the position and velocity of every particle as a mechanics problem would demand. A handful of macroscopic numbers suffices.

Not every property needs to be specified independently, and this is where the idea becomes powerful. For a fixed amount of an ideal gas, just two independent variables, say ##p## and ##T##, are enough to fix the state completely; the volume is then determined by the equation of state ##pV = nRT##. Once the minimum set of independent properties is fixed, every other property acquires a definite value automatically. The number of independent variables required depends on the nature of the system, and identifying that minimum set is the first step in any thermodynamic analysis.

A concept map showing pressure, volume and temperature around a central state point, with a note that any two determine the third via pV = nRT.
For a fixed amount of ideal gas, choosing two of pressure, volume and temperature fixes the third through pV = nRT, so the state is a single point.Digital illustration created with Zartom Composer · Rahul Anand

Why the State Concept Simplifies Everything

Consider heating a sample of water from 25 °C to 35 °C. You might warm it directly, or cool it first to 10 °C and then heat it to 35 °C, or cycle it through any convoluted sequence of steps. The final temperature is 35 °C in every case, and the change is +10 °C regardless of route. Temperature is therefore a state function. The same logic applies to the volume of water in a pond: whether it fills by rainfall, by a tube well, or by both, the change in volume depends only on the initial and final amounts, never on the filling history.

This route-independence is the defining signature of a state function. It means we can calculate changes in such quantities by comparing initial and final states alone, ignoring the messy details of the process in between. For a chemist studying a reaction, this is enormously convenient: we do not need to know the mechanism, the intermediate steps, or the speed of the transformation to compute the overall energy change. We need only characterise the reactants and the products as well-defined states.

The Minimum Set of Independent Variables

For a single-component system of fixed composition, the number of independent intensive variables is governed by the phase rule, but at the level of a single phase and fixed amount, two variables typically suffice. A gas is fixed by ##(p, V)##, ##(p, T)##, or ##(V, T)##; a pure liquid at fixed composition is largely fixed by ##(T, p)##. The remaining properties, such as density, refractive index, or internal energy, follow as dependent functions of that chosen set.

Recognising which variables are independent prevents a common mistake: attempting to specify ##p##, ##V##, and ##T## simultaneously for a fixed amount of ideal gas as if all three were free choices. They are not. Fix any two and the third is dictated by the equation of state. This constraint is not a limitation but a simplification, and it is the reason thermodynamic tables can be compact: a few entries per substance encode everything needed to reconstruct the full state.

Internal Energy as the Total Energy of a System

Internal Energy as the Total Energy of a System
Internal Energy as the Total Energy of a SystemAI-generated representative image

When a chemical system gains or loses energy, we need a single quantity to represent its total energy content. That quantity is the internal energy ##U##, the sum of all forms of energy possessed by the system: chemical bond energy, the kinetic energy of molecular translation, rotation and vibration, the potential energy of intermolecular and intramolecular interactions, and electronic energy. Whatever the type, the total is ##U##. It is an extensive property, scaling with the amount of substance, and its absolute value is never knowable, only changes in it are measurable.

Two exclusions are essential and frequently overlooked. Internal energy includes the kinetic and potential energies of the molecules themselves, but it excludes the bulk kinetic energy of the whole system moving through space and the bulk potential energy arising from its position in an external field such as gravity. A sealed flask of gas sitting on a bench and the same flask falling from a height have identical internal energies if their temperature and composition match; the falling flask merely carries additional mechanical energy of the system as a whole. Thermodynamics concerns itself with the internal ledger, not the external motion.

What Changes Internal Energy

Internal energy changes when heat passes into or out of the system, when work is done on or by the system, or when matter enters or leaves. The first two mechanisms are the focus of this lesson; the third is handled by the classification of systems as open, closed, or isolated. In a closed system, matter is fixed, so only heat and work can alter ##U##. In an isolated system, neither heat nor matter crosses the boundary, and if no work is done either, ##U## remains constant. This conservation is the seed of the first law, which the next lesson formalises.

The distinction between heat and work as energy-transfer mechanisms is worth stating cleanly. Heat ##q## is energy exchanged because of a temperature difference between system and surroundings. Work ##w## is energy exchanged by any other means: mechanical compression, electrical current through a resistor, stirring, or shaft rotation. Both are transient, existing only during a process, and both are measured in joules. Neither is stored in the system; what is stored is ##U##, and heat and work are merely the two channels through which it changes.

Chemical, Electrical, and Mechanical Contributions

In a reacting mixture, the chemical contribution to ##U## dominates: breaking and forming bonds redistributes energy among electronic and nuclear configurations. In an electrochemical cell, electrical work is extracted as electrons flow through an external circuit, and the internal energy of the cell changes accordingly. In a piston-cylinder device, mechanical work of expansion or compression shifts ##U## through ##pV##-type interactions. All three are simply different routes to the same underlying quantity, and the bookkeeping that tracks them is what thermodynamics provides.

Because ##U## is a state function, the change ##\Delta U## between two states is fixed, but the split between ##q## and ##w## is not. A gas can be expanded reversibly or irreversibly between the same two states, and the work done differs in each case, yet ##\Delta U## is identical. This is the crucial asymmetry that the next sections make precise, and it is the reason we must treat heat and work as path functions while treating internal energy as a state function.

A grouped bar chart comparing two routes: route 1 has q = 250 J and w = 0 J, route 2 has q = 400 J and w = −150 J, while ΔU is +250 J in both.
Illustrative values show two routes between the same states giving the same ΔU of +250 J while the split between heat and work differs.Digital illustration created with Zartom Composer · Rahul Anand

Joule's Adiabatic Experiments and the State-Function Proof

Joule's Adiabatic Experiments and the State-Function Proof
Joule's Adiabatic Experiments and the State-Function ProofAI-generated representative image

The claim that internal energy is a state function is not an assumption; it rests on experiment. Between 1840 and 1850, James Prescott Joule performed a series of meticulous measurements on water held in an insulated vessel, an adiabatic system that permits no heat exchange with the surroundings. In one version, he rotated a set of paddles to churn the water, doing a known amount of mechanical work. In another, he passed an electric current through an immersion heater, doing an equal amount of electrical work. In both cases, starting from the same initial state, he observed the same rise in temperature.

The significance is profound. Two entirely different physical mechanisms, mechanical stirring and electrical heating, produced identical changes of state when the work input was equal. The route did not matter; only the amount of adiabatic work did. Joule's conclusion, later formalised as the definition of internal energy, is that the adiabatic work ##w_{ad}## required to move a system between two states equals the difference in internal energy between those states. This is the operational definition of ##U## and the experimental foundation for its status as a state function.

The Adiabatic Wall and the Adiabatic Process

An adiabatic system is one whose boundary, the adiabatic wall, prevents any transfer of heat. A thermos flask or a well-insulated beaker approximates this idealisation. A process occurring in such a system, with no heat exchange, is called an adiabatic process. In Joule's experiments, the insulation ensured that ##q = 0##, so any change in internal energy had to come entirely from work. This clean separation of the two energy channels is what made the experiments decisive: with heat eliminated, the work alone accounted for the observed change of state.

The idealisation is never perfect in practice; real insulation leaks a little heat. But the concept is exact, and it is the standard against which real processes are measured. When we later write the first law as ##\Delta U = q + w##, the adiabatic case ##q = 0## reduces it to ##\Delta U = w##, recovering Joule's result directly. The adiabatic experiment is thus not a historical curiosity but the calibration point for the entire framework.

Formal Statement of the Result

The experimental finding is captured in a single relation. If state 1 has internal energy ##U_1## and state 2 has ##U_2##, then the adiabatic work needed to go from 1 to 2 satisfies:

###\Delta U = U_2 - U_1 = w_{ad}###

Because ##w_{ad}## depends only on the two states and not on how the work is delivered, ##\Delta U## inherits that route-independence. This is the formal proof that ##U## is a state function. The same relation holds whether the work is mechanical, electrical, or magnetic; the equality is a statement about states, not about mechanisms. From this point onward, we may compute ##\Delta U## by any convenient path, secure in the knowledge that the answer is path-independent.

Heat, Work, and the IUPAC Sign Convention

Having established that ##U## is a state function, we must now handle the two quantities that change it. Heat ##q## is energy transferred because of a temperature difference, and work ##w## is energy transferred by any other means. Both are path functions: their values depend on the specific route taken between states, even though their sum, ##\Delta U##, does not. This is the central asymmetry of the subject, and it demands a careful sign convention so that every calculation is unambiguous. The IUPAC convention used in chemical thermodynamics is simple and consistent: energy entering the system is positive, energy leaving is negative.

Under this convention, ##q## is positive when heat flows from the surroundings into the system, raising its internal energy, and negative when heat flows out. Similarly, ##w## is positive when work is done on the system, increasing its internal energy, and negative when the system does work on the surroundings. The logic is uniform: anything that adds to ##U## carries a plus sign, anything that removes from ##U## carries a minus sign. Once internalised, this rule eliminates most sign errors before they occur.

The Older Physics Convention and Why IUPAC Reversed It

Older physics textbooks, and some engineering texts still today, assign a positive sign to work done by the system and a negative sign to work done on it. This is the opposite of the IUPAC convention. The historical reason is that early thermodynamics grew out of the study of heat engines, where the useful output was work delivered by the working fluid, so it was natural to count that output as positive. Chemistry, by contrast, focuses on the system's energy content, so counting energy added to the system as positive is more natural.

The reversal causes endless confusion when students move between disciplines, so it is worth stating the mapping explicitly. A process that does 150 J of work on the surroundings is ##w = -150\ \text{J}## under IUPAC but ##w = +150\ \text{J}## under the older physics convention. The physical situation is identical; only the bookkeeping differs. Throughout this course we use IUPAC exclusively, and any problem statement should be read with that convention in mind. When in doubt, ask whether energy is entering or leaving the system, and assign the sign accordingly.

Heat and Work as Path Functions: A Numerical Demonstration

Consider a gas taken from an initial state A to a final state B such that ##\Delta U = +250\ \text{J}##. Route 1: the gas absorbs 250 J of heat at constant volume, doing no work. Then ##q = +250\ \text{J}## and ##w = 0##. Route 2: the gas absorbs 400 J of heat and simultaneously expands, doing 150 J of work on the surroundings. Then ##q = +400\ \text{J}## and ##w = -150\ \text{J}##, giving ##\Delta U = 400 - 150 = +250\ \text{J}##. Route 3: the gas is compressed with 100 J of work done on it while releasing 150 J of heat, so ##q = -150\ \text{J}## and ##w = +100\ \text{J}##, again yielding ##\Delta U = -50\ \text{J}##... which does not match, so this route must be adjusted to reach the same final state.

The lesson is unmistakable: ##q## and ##w## differ wildly across routes, yet ##\Delta U## is fixed at +250 J. Heat and work are path functions; internal energy is a state function. This is precisely why thermodynamic tables list ##\Delta U##, ##\Delta H##, and other state functions, but never list ##q## or ##w## for a reaction. The path-dependent quantities must be computed for each specific process, while the state functions can be looked up once and reused.

Core Distinction

State Functions versus Path Functions

A quick reference for classifying thermodynamic quantities by their route dependence.

Quantity Classification
Internal energy U State function
Temperature T State function
Pressure p, Volume V State functions
Heat q Path function
Work w Path function
Note:
  • State functions depend only on the current state, not the route taken to reach it.
  • Path functions depend on the specific process connecting the initial and final states.

Worked Examples and Common Pitfalls

Applying the IUPAC convention to numerical problems is where understanding crystallises. Take a gas that absorbs 400 J of heat from the surroundings and simultaneously does 150 J of work on the surroundings by expanding. Under IUPAC, heat absorbed is positive, so ##q = +400\ \text{J}##, and work done by the system is negative, so ##w = -150\ \text{J}##. The first law then gives ##\Delta U = q + w = 400 - 150 = +250\ \text{J}##. The gas's internal energy rises by 250 J, consistent with the fact that it took in more heat than it expended as work.

Now reverse the roles. Suppose the surroundings do 150 J of work on the gas while the gas releases 400 J of heat. Then ##q = -400\ \text{J}## and ##w = +150\ \text{J}##, giving ##\Delta U = -400 + 150 = -250\ \text{J}##. The internal energy falls by 250 J. Notice how the arithmetic mirrors the physical story: energy in minus energy out. Students who consistently frame each term as "energy entering the system" or "energy leaving the system" rarely make sign errors, because the convention is built into the language itself.

Diagnosing the Classic Sign Errors

The most frequent mistake is applying the physics convention by reflex, assigning positive work to expansion. A student who writes ##w = +150\ \text{J}## for expansion and then computes ##\Delta U = 400 + 150 = 550\ \text{J}## has double-counted the energy leaving the system. The fix is mechanical: before substituting, ask whether the work increases or decreases ##U##. Expansion against an external pressure does work on the surroundings, removing energy from the system, so ##w## must be negative under IUPAC. Compression adds energy, so ##w## is positive.

A second pitfall is forgetting that ##\Delta U## is independent of path while ##q## and ##w## are not. A student may compute ##q## for one route and ##w## for another, then add them, obtaining a meaningless sum. Heat and work must be evaluated for the same process before they are combined. A third error is treating ##U## as if its absolute value were measurable; only differences ##\Delta U## have physical meaning, and all calculations should be framed in terms of changes between well-defined states.

Extending to Constant-Volume Conditions

When a process occurs at constant volume, no expansion work is possible, so ##w = 0## and the first law collapses to ##\Delta U = q_V##. The subscript signals that the heat is measured at constant volume. This identity is enormously useful: it means calorimetric measurements in a rigid bomb give ##\Delta U## directly. At constant pressure, by contrast, expansion work is generally non-zero, and the heat measured, ##q_p##, equals the change in enthalpy rather than internal energy. That distinction, and the definition of enthalpy, belongs to a later lesson, but the seed is planted here: the conditions of a process determine which state function the heat flow measures.

This is also why chemists often prefer enthalpy for reactions carried out in open beakers at atmospheric pressure. The internal energy change and the enthalpy change differ by the ##p\Delta V## work term, which is usually small for condensed-phase reactions but significant for reactions producing or consuming gases. Recognising when the difference matters is a mark of thermodynamic maturity, and it follows directly from the sign conventions and state-function logic developed in this lesson.

Sign Rules

IUPAC Sign Convention at a Glance

Energy entering the system is positive; energy leaving is negative.

Process Sign of q or w
Heat absorbed by system q positive
Heat released by system q negative
Work done on system w positive
Work done by system w negative
Note:
  • The older physics convention reverses the work signs; always confirm which convention a problem uses.
  • Under IUPAC, ##\Delta U = q + w## with both terms signed as above.

Internal Energy, the First Law, and What Comes Next

The definition of internal energy as a state function, together with the IUPAC sign convention, sets up the first law of thermodynamics in its compact modern form: ##\Delta U = q + w##. The change in internal energy equals the heat added to the system plus the work done on it. Because ##\Delta U## is path-independent while ##q## and ##w## are not, the first law is a statement about conservation: energy is neither created nor destroyed, only transferred between system and surroundings through the two channels of heat and work. The next lesson develops this law rigorously and explores its consequences for cyclic processes and isolated systems.

For now, the essential takeaways are these. Internal energy is the total energy stored within a system, excluding bulk motion and external potential energy. It is a state function, proven by Joule's adiabatic experiments, which showed that equal adiabatic work produces equal changes of state regardless of mechanism. Heat and work are path functions whose values depend on the route, and their signs follow the IUPAC convention: positive when energy enters the system, negative when it leaves. Master these ideas and the rest of chemical thermodynamics becomes a matter of careful bookkeeping rather than conceptual struggle.

Connecting to Enthalpy and Equilibrium

Although this lesson stops at internal energy, the framework extends naturally. At constant pressure, the heat exchanged equals the change in enthalpy ##H = U + pV##, another state function built from ##U##. At equilibrium, the Gibbs energy ##G = H - TS## determines spontaneity, and its change relates to the equilibrium constant through ##\Delta G^\circ = -RT \ln K##. Each of these quantities inherits its state-function character from ##U##, and each is computed using the same sign conventions. The conceptual scaffolding erected here supports the entire edifice of thermochemistry, spontaneity, and equilibrium that follows.

Students preparing for CBSE Class 11 examinations should practise the numerical problems until the sign convention becomes automatic. A reliable habit is to write ##q## and ##w## with explicit signs before substituting into ##\Delta U = q + w##, and to sanity-check the result against the physical narrative: did the system gain or lose energy overall? If the arithmetic and the story agree, the answer is almost certainly correct. This discipline pays dividends in every subsequent chapter, from Hess's law to electrochemical cells.

A Final Numerical Check

Return once more to the gas that absorbs 400 J and does 150 J of work. Writing the signs explicitly, ##q = +400\ \text{J}## and ##w = -150\ \text{J}##, we obtain ##\Delta U = +250\ \text{J}##. If the same gas were instead compressed with 150 J of work while releasing 400 J of heat, the signs flip to ##q = -400\ \text{J}## and ##w = +150\ \text{J}##, giving ##\Delta U = -250\ \text{J}##. The symmetry is exact, and it reflects the underlying conservation law. Every problem in this chapter can be reduced to this pattern: identify the signs, sum the energy transfers, and interpret the result.

With these tools in hand, you are ready for the first law in full generality. The next lesson will formalise ##\Delta U = q + w##, examine cyclic processes where ##\Delta U = 0##, and introduce the distinction between reversible and irreversible work. The state-function concept developed here will be invoked repeatedly, so return to Joule's experiments and the sign convention whenever a calculation feels uncertain. Thermodynamics rewards precision, and precision begins with knowing exactly what kind of quantity you are handling.

Path Dependence

Worked Example: Same ΔU, Different Routes

Three routes between the same two states, all yielding ΔU = +250 J.

Route q and w (J)
Constant volume q = +250, w = 0
Heat plus expansion q = +400, w = -150
Compression plus heating q = +100, w = +150
Note:
  • All three routes give ΔU = +250 J, confirming U is a state function.
  • q and w vary with route, confirming they are path functions.
Coordinates

Independent Variables for Common Systems

How many properties must be fixed to define a thermodynamic state?

System Independent Variables
Fixed amount of ideal gas Two (e.g., p and T)
Pure liquid, fixed composition Two (T and p)
Two-phase pure substance One (T or p)
Reactive mixture, variable composition More (composition adds degrees of freedom)
Note:
  • Once the minimum set is fixed, all other properties follow automatically.
  • The number of independent variables depends on the nature of the system.
Experimental Evidence

Joule's Two Routes to the Same State

Equal adiabatic work, different mechanisms, identical temperature rise.

Method Observed Result
Mechanical paddle work (1 kJ) Temperature rise ΔT
Electrical immersion work (1 kJ) Same temperature rise ΔT
Conclusion ΔU = w_ad, independent of mechanism
Note:
  • Adiabatic walls ensure q = 0, isolating the work contribution.
  • The equality of outcomes establishes U as a state function.
Scope

What Internal Energy Includes and Excludes

Clarifying the boundaries of the internal energy ledger.

Component Included in U?
Molecular kinetic energy Yes
Chemical bond energy Yes
Bulk kinetic energy of whole system No
Bulk potential energy in external field No
Note:
  • Internal energy concerns the microscopic energy of the system's constituents.
  • Bulk motion and external position are handled separately in mechanics.

RESOURCES