Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

3.1. Conservation of Energy

See also: Course-wide Conventions & Notation

Run the code: Notebook for Section 3.1, in which you can change and rerun the Python cells of this section in your browser.

The course map shows where this module sits in the course and which relations connect the microscopic and macroscopic descriptions. Select a module to unfold its sections.

Overview and Learning Objectives

Every chemical reaction either absorbs or releases energy—but where does that energy go, and how do we keep track of it? The First Law of Thermodynamics provides the bookkeeping framework. Its origins lie in 19th-century efforts to understand the relationship between mechanical work and heat, and its consequences reach into every area of chemistry: reaction energetics, calorimetry, materials processing, and beyond.

This section motivates the First Law from historical measurements, introduces sign conventions, and catalogs common forms of work as generalized force–displacement pairs.

Learning objectives:

Core Ideas and Derivations

Conservation of Mechanical Energy

Between 1732 and 1736, Bernoulli and Euler combined the discoveries of Newton (laws of motion) and Leibniz (the connection between weight × vertical displacement and weight × velocity squared) into an early form of the law of conservation of mechanical energy. A simple example is the interchange between potential and kinetic energy:

12mv2=mgh.\frac{1}{2} m v^2 = m g h.

When an object of mass mm is dropped from a height hh, its gravitational potential energy mghmgh is converted into kinetic energy 12mv2\tfrac{1}{2}mv^2, assuming negligible air resistance.

Mechanical Equivalent of Heat

Joule’s apparatus for measuring the mechanical equivalent of heat. The falling weights turn a paddle wheel immersed in water, converting a known amount of mechanical work into a measurable temperature rise. Modern calorimeters (Section 3.3) use the same principle—measuring temperature changes to quantify energy transfers—but with electrical heating in place of falling weights. Engraving from Harper’s New Monthly Magazine (1869), via Wikimedia Commons (public domain).

Figure 3.1.2:Joule’s apparatus for measuring the mechanical equivalent of heat. The falling weights turn a paddle wheel immersed in water, converting a known amount of mechanical work into a measurable temperature rise. Modern calorimeters (Section 3.3) use the same principle—measuring temperature changes to quantify energy transfers—but with electrical heating in place of falling weights. Engraving from Harper’s New Monthly Magazine (1869), via Wikimedia Commons (public domain).

In the 1840s, James Prescott Joule measured how mechanical work converts into heat. In the paper that reports his final experiments, he concluded that 772 ft⋅lbf772\,\mathrm{ft}\cdot\mathrm{lbf} of mechanical work (done by falling weights that turn a paddle in water) raises the temperature of 1 lb of water by 1 °F1\,\text{°F} Joule, 1850. The modern value is 778 ft⋅lbf778\,\mathrm{ft}\cdot\mathrm{lbf}, which is 0.8%0.8\% above Joule’s. Converting the modern value to SI units:

MEH=778  ft⋅lbf1  lb °F≈1,055  J(453.6  g)⋅(5/9 °C)≈4.19  J g−1 °C−1.\mathrm{MEH} = \frac{778 \;\mathrm{ft}\cdot\mathrm{lbf}}{1\;\mathrm{lb}\,\text{°F}} \approx \frac{1{,}055 \;\mathrm{J}}{(453.6 \;\mathrm{g}) \cdot (5/9\,\text{°C})} \approx 4.19 \;\mathrm{J}\,\mathrm{g}^{-1}\,\text{°C}^{-1}.

Here, 4.19 J g−1 °C−14.19\,\mathrm{J}\,\mathrm{g}^{-1}\,\text{°C}^{-1} is the specific heat of water—i.e., the heat capacity per gram. The specific heat of water varies slightly with temperature; at 25 °C25\,\text{°C} it is 4.18 J g−1 °C−14.18\,\mathrm{J}\,\mathrm{g}^{-1}\,\text{°C}^{-1}, the value used in Section 3.3.

First Law of Thermodynamics

Joule’s result showed that a definite quantity of mechanical work always produces the same quantity of heat. This interconvertibility means we need a single energy-conservation statement that accounts for both. To include heat (qq) and work (ww) in one statement of energy conservation for a closed system (one that exchanges energy but not matter with its surroundings), we write

ΔU=q+w,\Delta U = q + w,

where

Some textbooks instead define ww as the work done by the system, so the sign convention of a source should be checked before one of its formulas is used.

Differential Form

In differential form,

dU=δq+δw.dU = \delta q + \delta w.

Rearranging,

δq=dU−δw.\boxed{\delta q = dU - \delta w.}

This rearranged form is useful because we often want to find the heat exchanged in a process. Since UU is a state function (calculable from state variables alone) and we can often evaluate ww from the process path, we can determine qq by difference.

Types of Work

In Section 1.1, we defined work as “energy transferred when a force acts over a distance.” Mathematically:

δw=F⃗⋅dr⃗=(Fx, Fy, Fz)⋅(dx, dy, dz)=Fx dx+Fy dy+Fz dz.\delta w = \vec{F}\cdot d\vec{r} = (F_x,\,F_y,\,F_z)\cdot(dx,\,dy,\,dz) = F_x\,dx + F_y\,dy + F_z\,dz.

Many physical processes fit a “generalized force” ×\times “generalized displacement” pattern:

Table 3.1.1:Common forms of work as generalized force–displacement pairs

Generalized “Force”

Generalized “Displacement”

δw\delta w

Example

Mechanical FF

xx

F dxF \,dx

Lifting a weight

Tension ff

Extension l=x−x0l = x - x_0

f dlf \,dl

Stretching a spring (f=klf = kl for a Hookean spring)

Surface tension γ\gamma

AA

γ dA\gamma \, dA

Blowing a soap bubble

Pressure PextP_{\mathrm{ext}}

VV

−Pext dV-P_{\mathrm{ext}}\,dV

Compressing a gas

Chemical potential μ\mu (Section 6.1)

Number of molecules NN

μ dN\mu\,dN

Adding molecules to the system

Electrical E\mathcal{E}

Charge qelq_{\text{el}}

E dqel\mathcal{E}\,dq_{\text{el}}

Moving an electric charge

In this course, PVPV work will be our workhorse, but the generalized structure shows up again when we discuss surface phenomena, electrochemistry, and chemical potentials. The chemical term applies when molecules enter or leave the system, which is then open rather than closed.

The expression for PVPV work follows from the definition of work. Consider a gas in a cylinder that is closed by a piston of area AA. The surroundings exert the external pressure PextP_{\mathrm{ext}} on the piston, which is a force F=PextAF = P_{\mathrm{ext}}A directed into the gas. When the piston moves inward by a distance dxdx, the surroundings do the work δw=F dx=PextA dx\delta w = F\,dx = P_{\mathrm{ext}}A\,dx on the gas. The volume of the gas changes by dV=−A dxdV = -A\,dx, so

δw=−Pext dV.\delta w = -P_{\mathrm{ext}}\,dV.

The external pressure equals the pressure PP of the gas only when the gas remains in mechanical equilibrium with its surroundings throughout the process. This is the case for the reversible processes defined in Section 3.2, for which δw=−P dV\delta w = -P\,dV.


Calculating Work

The examples below apply the generalized force–displacement framework from Table 3.1.1 to three different work modes: PVPV work, surface-tension work, and elastic (spring) work.

Example 1. Expanding Against Constant Pressure

Calculate the work when an ideal gas expands from 20 L20\,\mathrm{L} to 85 L85\,\mathrm{L} against a constant external pressure of 2.5 bar2.5\,\mathrm{bar}.

Figure 3.1.3 shows this process on a PP–VV diagram. The magnitude of the work ∣w∣|w| equals the shaded area under the constant-pressure line.

Source
Loading...

Figure 3.1.3:Expansion of a gas from Vi=20 LV_i = 20\,\mathrm{L} to Vf=85 LV_f = 85\,\mathrm{L} against a constant external pressure Pext=2.5 barP_{\mathrm{ext}} = 2.5\,\mathrm{bar} (Example 1). The magnitude of the work, ∣w∣=Pext ΔV|w| = P_{\mathrm{ext}}\,\Delta V, is the shaded area under the line.

Figure 3.1.2 showed how Joule connected mechanical work to heat. Here, the PP–VV diagram provides the geometric interpretation of work that we will use throughout this chapter: work equals the area under the pressure curve on a PP–VV diagram. Different paths between the same initial and final volumes can enclose different areas, which is precisely why work is path-dependent.


Example 2. Expanding a Soap Bubble

Calculate the work necessary to expand a soap bubble (two surfaces) from a radius of 1 cm1\,\mathrm{cm} to 3.25 cm3.25\,\mathrm{cm}. Treat the film as pure water, with surface tension γ=0.072 J/m2\gamma = 0.072\,\mathrm{J/m^2} (=72 mN/m= 72\,\mathrm{mN/m}, the value for a water–air interface at room temperature). Soap lowers the surface tension of water, so the work for a real soap film is smaller.

Source
Loading...

Figure 3.1.4:Cross-section of a soap bubble showing the inner and outer surfaces. Because a bubble is a thin film enclosing air, its total surface area is 2×4πr2=8πr22 \times 4\pi r^2 = 8\pi r^2, and the differential area change upon inflation is dA=16πr drdA = 16\pi r\,dr. The thickness of the film is exaggerated.


Example 3. Stretching a Hookean Fiber

Calculate the work required to stretch a fiber obeying Hooke’s law, with k=100 N/cmk=100\,\mathrm{N/cm}, by 0.15 cm0.15\,\mathrm{cm}.

Worked Example

Free Expansion of an Ideal Gas

A rigid, insulated container is divided in half by a membrane. One side contains nn moles of an ideal gas at temperature TT; the other side is evacuated. The membrane is punctured. Determine ww, qq, and ΔU\Delta U.

  1. Work

    The gas expands into vacuum, so Pext=0P_{\mathrm{ext}} = 0:

    w=−∫ViVfPext dV=0.w = -\int_{V_i}^{V_f} P_{\mathrm{ext}}\,dV = 0.
  2. Heat

    The container is insulated (adiabatic walls), so q=0q = 0.

  3. Internal energy change

    From the First Law:

    ΔU=q+w=0+0=0.\Delta U = q + w = 0 + 0 = 0.

Result. In free expansion, w=0w = 0, q=0q = 0, and ΔU=0\Delta U = 0. For an ideal gas (where UU depends only on TT; see Section 2.5), this means the temperature does not change either. Free expansion is the extreme case of an irreversible process (Section 3.2): the gas does no work and exchanges no heat, yet it undergoes a dramatic change of state (its volume doubles).

Concept Checks

  1. Why are qq and ww called path functions while UU is a state function?

  2. In which sign convention does expansion work appear as positive? How would the First Law be written then?

  3. Why does PVPV work depend on the external pressure for irreversible expansions?

  4. What is the physical meaning of the chemical work term μ dN\mu\,dN?

  5. Two processes connect the same initial and final states. Process A involves more work than Process B. Which process involves more heat? (Assume only PVPV work.)

Key Takeaways

References
  1. Joule, J. P. (1850). On the Mechanical Equivalent of Heat. Philosophical Transactions of the Royal Society of London, 140, 61–82. 10.1098/rstl.1850.0004