COLLEGE PHYSICS • THERMODYNAMICS

The First Law of Thermodynamics

Energy is neither created nor destroyed—it transforms, and this principle governs every physical process in the universe.

Historical Context & Motivation

The quest to understand heat, work, and energy stretches back to the early days of the Industrial Revolution, when engineers sought to maximize the efficiency of steam engines. At the heart of this endeavor lay a deceptively simple question: what exactly is heat, and how does it relate to mechanical work? For much of the eighteenth century, scientists subscribed to the caloric theory, which treated heat as a weightless, invisible fluid that flowed from hot bodies to cold ones. While this model explained many everyday observations—metal bars cooling to the touch, ice melting near a fire—it could not account for the seemingly inexhaustible generation of heat through friction, as Count Rumford dramatically demonstrated while boring cannon barrels in Munich.

Over the following decades, a series of pivotal experiments and theoretical insights dismantled the caloric picture and replaced it with the modern concept of energy conservation. The key figures in this transformation spanned disciplines and nationalities, reflecting the universal nature of the principle they would establish. From the brewery-funded experiments of James Prescott Joule in Manchester to the theoretical formulations of Hermann von Helmholtz in Berlin, the First Law of Thermodynamics coalesced as the recognition that energy, in all its forms, is a conserved quantity. This section traces that intellectual journey through its most significant milestones.

1798
Rumford's Cannon-Boring Experiment
Count Rumford (Benjamin Thompson) observed that boring cannon barrels produced seemingly unlimited heat from friction, directly contradicting the caloric theory's claim that heat was a conserved fluid. His work planted the seed that heat and mechanical work are interconvertible.
1842
Mayer's Energy Conservation Hypothesis
German physician Julius Robert von Mayer proposed that heat and work are equivalent forms of a single conserved quantity. Though his arguments were largely theoretical and lacked rigorous experimental support, he was among the first to articulate the principle of energy conservation in a general form.
1845
Joule's Paddle-Wheel Experiment
James Prescott Joule used a falling weight to drive a paddle wheel immersed in water, meticulously measuring the temperature rise. He established the mechanical equivalent of heat—approximately 4.186 J per calorie—providing the quantitative foundation for the First Law.
1847
Helmholtz's Conservation of Force
Hermann von Helmholtz published Über die Erhaltung der Kraft, providing a rigorous mathematical framework that unified mechanics, heat, electricity, and magnetism under a single conservation principle, elevating energy conservation to the status of a fundamental law of physics.
1850
Clausius's Formal Statement
Rudolf Clausius synthesized the work of his predecessors into a precise thermodynamic statement, distinguishing clearly between internal energy, heat, and work. His formulation became the canonical expression of the First Law that we use today.

The central question that the First Law answers is both profound and practical: when energy enters or leaves a system—whether as heat flowing across a boundary or as work performed by or on the system—where does it go? The answer, codified over five decades of investigation, is that the total energy of an isolated system is constant. Energy may change form, transferring between kinetic, potential, thermal, and other reservoirs, but the ledger always balances. This principle not only underpins all of thermodynamics but also serves as a bridge connecting mechanics, chemistry, and engineering.

Core Principles & Definitions

Before stating the First Law precisely, it is essential to establish a shared vocabulary. Thermodynamics operates on a carefully defined set of concepts that, when used loosely, can lead to significant confusion. The following foundational ideas form the conceptual scaffolding on which the First Law rests. Each of these terms has a precise meaning that may differ subtly from everyday usage, and mastering these distinctions is a prerequisite for applying the law correctly to physical systems.

1

System & Surroundings

A system is the specific region of the universe under study—a gas in a cylinder, a chemical reaction in a beaker, or a turbine in a power plant. Everything outside the system is the surroundings. The boundary separates them and determines what can cross: energy, matter, or both.
2

Internal Energy (U)

Internal energy is the total microscopic energy of a system—the sum of all kinetic energies of molecular translation, rotation, and vibration, plus the potential energies of intermolecular interactions. It is a state function, meaning its value depends only on the current thermodynamic state, not on the path taken to reach it.
3

Heat (Q)

Heat is energy transferred between a system and its surroundings due to a temperature difference. It is a path-dependent (process) quantity—not a property stored in the system. By convention, Q > 0 when heat flows into the system.
4

Work (W)

Work is energy transferred when a force acts through a displacement—most commonly, a gas expanding against an external pressure. Like heat, work is a process quantity. In the physics convention, W > 0 when work is done by the system on its surroundings.
5

State vs. Process Functions

A state function (like U, T, P, V) depends only on the current equilibrium state, so its change ΔU between two states is path-independent. In contrast, process functions (Q and W) depend on how the system transitions. This distinction is central to thermodynamic reasoning.
⚠️ Sign Convention Warning
Two sign conventions coexist in textbooks. The physics convention writes ΔU = Q − W, where W > 0 for work done by the system. The chemistry convention writes ΔU = Q + W, where W > 0 for work done on the system. Both are correct—just be consistent. This lesson adopts the physics convention throughout.
KEY TAKEAWAY
Think of internal energy as your bank account balance: it is a definite number at any moment (a state function). Heat and work are like deposits and withdrawals—they represent transfers of energy that change the balance, but they are not themselves stored in the account. You can reach the same balance through many different sequences of transactions; what matters is the net change, not the path.

Visual Explanation — Energy Flow Diagram

The First Law is fundamentally an energy bookkeeping statement. The following diagram illustrates the energy flows into and out of a thermodynamic system—such as a gas confined in a piston–cylinder assembly—and shows how these flows relate to changes in the system's internal energy. Pay particular attention to the sign conventions: arrows pointing into the system represent positive heat transfer, while arrows pointing outward represent positive work done by the system.

Energy flow diagram for a thermodynamic system. The pink arrow (Q) represents heat flowing into the system from the surroundings. The amber arrow (W) represents work done by the system on its surroundings. The green result shows that the net change in internal energy ΔU equals the difference Q − W.

The diagram above encapsulates the entire First Law in a single visual. Notice that the system boundary (the dashed rectangle) is crucial: it defines what we mean by "system" and "surroundings." If more heat enters than work leaves (Q > W), the internal energy increases and the system's temperature generally rises. Conversely, if the system does more work than the heat it absorbs (W > Q), its internal energy decreases. The special case where Q = W yields ΔU = 0, meaning the system's internal energy remains unchanged—a situation characteristic of certain isothermal processes in ideal gases, where temperature and hence internal energy remain constant throughout the process.

Mathematical Framework

The First Law of Thermodynamics can be expressed in several equivalent mathematical forms, each suited to different types of problems. We begin with the most general statement and then specialize to the important case of pressure–volume work, which dominates introductory thermodynamics applications. Throughout, we adopt the physics sign convention: heat into the system is positive, and work done by the system is positive.

FIRST LAW — FINITE PROCESS
ΔU = Q − W
Where ΔU is the change in internal energy (J), Q is the net heat added to the system (J), and W is the net work done by the system on the surroundings (J). Because U is a state function, ΔU depends only on the initial and final states, even though Q and W individually depend on the process path.
FIRST LAW — DIFFERENTIAL FORM
dU = δQ − δW
The differential form uses dU (an exact differential, since U is a state function) and δQ and δW (inexact differentials, since heat and work are path-dependent). The distinction between d and δ is not merely notational—it reflects the fundamentally different mathematical properties of state and process functions.
PRESSURE–VOLUME WORK
W = ∫(V₁ to V₂) P dV
For a quasi-static (reversible) expansion or compression, the work done by the system equals the integral of pressure P with respect to volume V. When the gas expands (V₂ > V₁), W > 0; when it is compressed (V₂ < V₁), W < 0. For irreversible processes, the external pressure Pext replaces P in the integrand.
IDEAL GAS INTERNAL ENERGY
ΔU = nC_v ΔT
For an ideal gas, the internal energy depends only on temperature. Here n is the number of moles, Cv is the molar heat capacity at constant volume (J·mol⁻¹·K⁻¹), and ΔT is the temperature change. This result holds for any process involving an ideal gas—not just constant-volume ones—because U for an ideal gas is a function of T alone.

These equations form a powerful toolkit. Given any two of the three quantities ΔU, Q, and W, the First Law immediately yields the third. In practice, the strategy for solving thermodynamics problems involves identifying the process type (isothermal, isobaric, isochoric, or adiabatic), using the process constraints to determine one or two of the quantities, and then applying ΔU = Q − W to close the energy balance. The next section explores how each of these process types constrains the problem and simplifies the mathematics.

Thermodynamic Processes — A Detailed Breakdown

The First Law takes on a particularly clean form when applied to four canonical thermodynamic processes, each defined by holding one state variable constant. Understanding these special cases is essential because real-world systems can often be modeled as sequences of these idealized processes—most famously in the Carnot cycle and the Otto cycle. The following diagram and table summarize these processes on a pressure–volume (P–V) diagram, which is the natural arena for visualizing thermodynamic work.

P–V diagrams for four canonical processes. The isochoric process (pink) is a vertical line at constant volume. The isobaric process (cyan) is a horizontal line at constant pressure, with shaded area representing work. The isothermal curve (amber) follows a hyperbola (PV = const). The adiabatic curve (green, dashed) falls more steeply than the isothermal curve because the gas cools as it expands without heat input.
Summary of the four canonical thermodynamic processes for an ideal gas
ProcessConstraintFirst Law SimplificationWork Expression
IsochoricΔV = 0 (constant volume)ΔU = QvW = 0
IsobaricΔP = 0 (constant pressure)ΔU = Qp − PΔVW = PΔV
IsothermalΔT = 0 (constant temperature)ΔU = 0, so Q = WW = nRT ln(V₂/V₁)
AdiabaticQ = 0 (no heat transfer)ΔU = −WW = nCv(T₁ − T₂)

Several important observations emerge from this classification. First, notice that the isochoric process is the simplest to analyze: since no work is done (the volume is fixed), all heat added goes directly into changing the internal energy. This is why constant-volume calorimetry provides a direct measurement of ΔU. Second, the isothermal process for an ideal gas reveals a beautiful result: because the internal energy of an ideal gas depends only on temperature, ΔU = 0 for any isothermal change, and the heat absorbed exactly equals the work done by the gas. Third, the adiabatic process—where the system is thermally insulated from its surroundings—demonstrates that work can be done at the expense of internal energy, causing the gas temperature to drop during expansion. This is the principle behind adiabatic cooling in atmospheric science and refrigeration cycles.

Worked Example — Isothermal Expansion of an Ideal Gas

Consider 2.00 mol of an ideal monatomic gas initially at a temperature of 400 K and a volume of 10.0 L. The gas undergoes a quasi-static isothermal expansion to a final volume of 30.0 L. Determine the work done by the gas, the heat absorbed, and the change in internal energy.

Isothermal Expansion of an Ideal Gas
1
Step 1 — Identify Given Values and Process TypeWe are given n = 2.00 mol, T = 400 K (constant, since the process is isothermal), V₁ = 10.0 L = 0.0100 m³, and V₂ = 30.0 L = 0.0300 m³. The gas constant R = 8.314 J·mol⁻¹·K⁻¹. Because the process is isothermal and the gas is ideal, we know immediately that ΔU = 0 (internal energy of an ideal gas depends only on temperature).
ΔU = 0
2
Step 2 — Calculate the Work Done by the GasFor a quasi-static isothermal expansion of an ideal gas, the work is given by W = nRT ln(V₂/V₁). Substituting: W = (2.00 mol)(8.314 J·mol⁻¹·K⁻¹)(400 K) × ln(0.0300/0.0100). We first compute nRT = 2.00 × 8.314 × 400 = 6651.2 J. Then ln(3.00) ≈ 1.0986. Therefore W = 6651.2 × 1.0986.
W ≈ 7,307 J ≈ 7.31 kJ
3
Step 3 — Apply the First Law to Find QFrom the First Law, ΔU = Q − W. Since ΔU = 0, we have Q = W. The gas absorbs exactly as much heat from the surroundings as it does work expanding against the external pressure. This is a hallmark of isothermal processes in ideal gases: every joule of work output is matched by a joule of heat input.
Q ≈ 7,307 J ≈ 7.31 kJ
4
Step 4 — Verify and InterpretAs a consistency check: ΔU = Q − W = 7,307 − 7,307 = 0 J. ✓ The result confirms that no net energy is stored or released from the gas's internal energy reservoir. Physically, the gas draws thermal energy from its surroundings (perhaps a heat reservoir at 400 K) and converts it entirely into mechanical work. This does not violate the Second Law because the entropy of the universe increases—a topic for the next chapter.
ΔU = 0, Q = W ≈ 7.31 kJ ✓

Strengths, Limitations & Common Misconceptions

The First Law of Thermodynamics is extraordinarily general—it applies to every system in the known universe, from black holes to biological cells. Yet its very generality also means it has important limitations: it tells us whether a process conserves energy, but it says nothing about whether that process will actually occur. Understanding both the power and the boundaries of the First Law is critical for using it correctly and for appreciating why the Second Law exists.

Strengths and limitations of the First Law of Thermodynamics
StrengthsLimitations
Universally valid—applies to all systems (ideal gas, real gas, solid, liquid, plasma, reacting mixtures) without exception.Does not predict directionality: it permits a cup of coffee spontaneously freezing and heating the room, which never occurs.
Provides a rigorous energy accounting framework: given any two of ΔU, Q, W, the third follows immediately.Gives no information about the rate of a process—thermodynamics is silent on kinetics and time scales.
Establishes internal energy as a state function, enabling path-independent energy analysis across complex multi-step cycles.Cannot determine maximum efficiency of heat engines; this requires the Second Law and the concept of entropy.
Provides the foundation for enthalpy (H = U + PV), Helmholtz free energy (F = U − TS), and other thermodynamic potentials.For non-equilibrium or open systems (mass crossing the boundary), the basic form must be extended to include flow terms and mass transfer.

Common Misconceptions

  • "Heat is stored in a body." Heat is not a property of a system—it is a mode of energy transfer. A system possesses internal energy; heat exists only during the transfer process across a boundary driven by a temperature gradient.
  • "Temperature is the same as internal energy." Temperature is an intensive property (independent of system size), while internal energy is extensive (scales with the amount of matter). Two systems at the same temperature can have vastly different internal energies.
  • "If ΔU = 0, nothing happened." In an isothermal expansion, ΔU = 0 even though the gas absorbed heat and performed significant work. The system's state changed (V and P differ), but U returned to its original value because T remained constant.
  • "Work is always PΔV." PΔV work applies only to quasi-static volume changes. In general, work can include electrical, magnetic, surface tension, and shaft work. The First Law accommodates all forms through W = Σ all work modes.
KEY TAKEAWAY
The First Law is like the conservation law that ensures your financial ledger balances: every dollar in must equal the sum of dollars spent and dollars saved. But it cannot tell you whether a particular transaction is a wise investment—that judgment requires additional information, analogous to the Second Law's entropy criterion. The First Law is necessary but not sufficient for determining whether a process will spontaneously occur.

Connection to Advanced Theory

The First Law provides the starting point for a web of interconnected thermodynamic concepts. As one advances from introductory physics into engineering thermodynamics, statistical mechanics, and physical chemistry, the same energy conservation principle takes on increasingly sophisticated mathematical clothing. The table below maps the concepts introduced in this lesson to their more advanced counterparts, offering a roadmap for future study.

Mapping First Law concepts to their advanced extensions
This Lesson (First Law)Advanced ExtensionWhere You'll Encounter It
ΔU = Q − W (closed system)Open system: dU/dt = Q̇ − Ẇ + Σ ṁᵢhᵢ (includes mass flow and enthalpy flux)Engineering Thermodynamics, fluid mechanics
Internal energy U as a state functionThermodynamic potentials: H (enthalpy), F (Helmholtz), G (Gibbs), connected via Legendre transformsPhysical chemistry, chemical thermodynamics
Ideal gas: U depends only on TReal gases: U = U(T, V) with corrections from van der Waals or virial equations of stateAdvanced thermodynamics, gas dynamics
Macroscopic energy conservationStatistical mechanics: U = ⟨E⟩ = Σ Eᵢ e^(−βEᵢ) / Z, connecting macroscopic U to microscopic partition function ZStatistical mechanics, quantum thermodynamics
Direction of processes is undeterminedSecond Law introduces entropy (S): dS ≥ δQ/T, establishing irreversibility and the arrow of timeThermodynamics II, cosmology, information theory

One of the most profound extensions occurs in statistical mechanics, where the macroscopic internal energy U is revealed to be the ensemble average of microscopic energy levels weighted by the Boltzmann distribution. This connection provides deep physical insight into why U is a state function: it depends on the probability distribution over microstates, which is fully determined by the macroscopic constraints (T, V, N). The First Law, viewed from this statistical vantage point, is not a postulate but a consequence of the law of large numbers applied to ~10²³ particles—an extraordinarily robust averaging that makes macroscopic thermodynamics work with remarkable precision.

🔭 Looking Ahead: The Second Law
The First Law guarantees energy conservation but permits processes that never happen in nature, such as heat spontaneously flowing from cold to hot. The Second Law of Thermodynamics introduces entropy as the quantity that determines the direction of spontaneous change. Together, the First and Second Laws form the twin pillars of classical thermodynamics—energy conservation and entropy increase—upon which all of thermal physics rests.

Practice Problems

The following five problems escalate in difficulty from conceptual reasoning to critical analysis. Work through each one carefully, paying attention to sign conventions and process constraints. Detailed solutions are provided after each problem.

PROBLEM 1CONCEPTUAL
A sealed, rigid container of gas is placed on a hot plate. The gas absorbs 500 J of heat. Determine ΔU and W for this process, and explain your reasoning by identifying the process type and the relevant simplification of the First Law.
PROBLEM 2BASIC CALCULATION
An ideal gas undergoes an isobaric expansion at P = 1.50 × 10⁵ Pa. Its volume increases from 0.020 m³ to 0.050 m³, and 8,000 J of heat is added. Calculate the work done by the gas and the change in internal energy.
PROBLEM 3INTERMEDIATE
3.00 mol of an ideal monatomic gas (Cv = (3/2)R) at T₁ = 300 K undergoes an adiabatic compression to a final temperature T₂ = 500 K. Calculate ΔU, Q, and W for this process. Interpret the sign of W.
PROBLEM 4APPLIED
A gas turbine operates in a cycle. In one complete cycle, the working fluid absorbs Qin = 25,000 J of heat from the combustion chamber and rejects Qout = 17,000 J to the exhaust. (a) What is the net work output per cycle? (b) What is the thermal efficiency of this engine? (c) How does this compare to a Carnot engine operating between 1200 K and 400 K?
PROBLEM 5CRITICAL THINKING
A student claims: 'I have designed a cyclic heat engine that absorbs 1,000 J of heat from a reservoir and converts all of it into work with no heat rejected.' Evaluate this claim using both the First and Second Laws of Thermodynamics. Is the device consistent with the First Law? Is it consistent with the Second Law? Explain the distinction and its physical significance.

Summary — The First Law of Thermodynamics

The First Law of Thermodynamics is the principle of energy conservation applied to thermodynamic systems. It states that the change in internal energy (ΔU) of a system equals the heat (Q) added to the system minus the work (W) done by the system: ΔU = Q − W. Internal energy is a state function (path-independent), while heat and work are process functions (path-dependent). This distinction is fundamental to thermodynamic reasoning.

The law simplifies elegantly for four canonical processes: isochoric (W = 0, ΔU = Q), isobaric (W = PΔV), isothermal (ΔU = 0, Q = W), and adiabatic (Q = 0, ΔU = −W). For cyclic processes, ΔU = 0 and the net work equals the net heat. While the First Law enforces energy conservation, it cannot determine process directionality or maximum efficiency—those questions require the Second Law and the concept of entropy, which together with the First Law form the foundation of all classical thermodynamics.

Varsity Tutors • College Physics • The First Law of Thermodynamics