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.2. Applications of the First Law

See also: Course-wide Conventions & Notation

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

Overview and Learning Objectives

If you heat a gas in a sealed rigid container versus a piston open to the atmosphere, the temperature changes will differ—even for the same amount of heat. Why? The answer lies in how constraints (constant VV vs. constant PP) redirect energy between heat and work. This section develops a systematic workflow for applying the First Law under different process constraints, then illustrates it with common ideal-gas cases and a microscopic interpretation.

We begin by clarifying the definitions of quasi-static, reversible, and irreversible processes. We then outline a step-by-step method for using the First Law under different constraints, derive results for isochoric, isothermal, and adiabatic ideal-gas processes, and end with a microscopic interpretation that connects probability distributions of microstates with heat and work. Processes at constant pressure are taken up in Section 3.3.


Learning objectives:

Core Ideas and Derivations

Thermodynamic Processes

Quasi-static process
A process carried out infinitesimally slowly so that the system remains nearly in equilibrium at all times. Each intermediate state is well-defined thermodynamically.
Reversible process
An idealized process that is (1) quasi-static and (2) free of dissipative effects, meaning it can be reversed with no net change to the system or surroundings.
Irreversible process
Any process that violates one or more of the conditions for reversibility (e.g., too rapid, frictional, or dissipative).
Dissipative effects
Processes that convert ordered energy into disordered (thermal) energy in a way that cannot be undone spontaneously. Common examples include friction, viscous drag, turbulence, electrical resistance, and heat flow across a finite temperature difference.

How to Apply the First Law of Thermodynamics

The First Law states (Section 3.1, Eq. (3.1.5)):

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

where dUdU is the change in internal energy, δq\delta q is the heat added to the system, and δw\delta w is the work done on the system. To make this law useful for specific processes, follow the five-step workflow below.

Workflow overview: (1) Choose independent variables → (2) Rewrite the First Law → (3) Apply constraints → (4) Define the system/EOS → (5) Integrate. Click each step for details.

Figure 3.2.1 shows the four constraints as paths of an ideal gas on a PP–VV diagram. All four paths start from the same state.

Source
Loading...

Figure 3.2.1:Four reversible paths of one mole of a monatomic ideal gas from the same initial state, (V1,T1)=(5 L,300 K)(V_1, T_1) = (5\,\mathrm{L}, 300\,\mathrm{K}): isochoric heating, and isobaric, isothermal, and adiabatic expansion to V2=20 LV_2 = 20\,\mathrm{L}. The area between a path and the volume axis is ∣w∣|w| for that path. The areas overlap: the area under the isobaric path includes the blue and orange areas, and the area under the isothermal path includes the orange area. The isochoric path has no area under it, so w=0w = 0.


Applying the Workflow: VV and TT as Independent Variables

For many systems—especially gases—choosing VV and TT as independent variables simplifies calculations. Let us walk through the five-step workflow for a monatomic ideal gas. Steps 3 and 4 can be taken in either order. Here the ideal gas is specified first (Step 4), because this simplifies the expression to which the constraints are then applied (Step 3).

Step 1–2: First Law in Terms of VV and TT

Starting from the First Law for a reversible process with only PVPV work,

δq=dU+P dV,\delta q = dU + P\,dV,

we rewrite dUdU as a total differential in VV and TT:

dU=(∂U∂T)VdT  +  (∂U∂V)TdV.dU = \left(\frac{\partial U}{\partial T}\right)_V dT \;+\; \left(\frac{\partial U}{\partial V}\right)_T dV.

Substituting:

δq=(∂U∂T)V⏟CVdT  +  [(∂U∂V)T+P]dV.\delta q = \underbrace{\left(\frac{\partial U}{\partial T}\right)_V}_{C_V} dT \;+\; \left[\left(\frac{\partial U}{\partial V}\right)_T + P\right] dV.

Step 4: Ideal-Gas Simplification

For an ideal gas, UU depends only on TT (Section 2.5), so (∂U∂V)T=0\left(\frac{\partial U}{\partial V}\right)_T = 0. For a monatomic ideal gas specifically,

U=32NkBT,P=NkBTV,CV=(∂U∂T)V=32NkB.U = \frac{3}{2} N k_{\mathrm{B}} T, \quad P = \frac{N k_{\mathrm{B}} T}{V}, \quad C_V = \left(\frac{\partial U}{\partial T}\right)_V = \frac{3}{2} N k_{\mathrm{B}}.

Equation (3.2.7) then simplifies to

δq=CV dT+P dV(ideal gas, reversible process, PV-only work).\delta q = C_V \, dT + P \, dV \qquad\text{(ideal gas, reversible process, $PV$-only work).}

Step 3: Process Constraints

Applying these constraints to Equation (3.2.9):

Table 3.2.1:Processes for an Ideal Gas (VV and TT as Independents)

Constraint

Condition

Resulting δq\delta q

Isochoric

dV=0dV = 0

δq=CV dT\delta q = C_V\, dT

Isothermal

dT=0dT = 0

δq=P dV\delta q = P\, dV

Adiabatic

δq=0\delta q = 0

CV dT=−P dVC_V\, dT = -P\, dV

Step 5: Integrations Under Specific Constraints

  1. Isochoric (dV=0dV = 0)

    With no volume change, there is no PVPV work (w=0w = 0). All energy enters as heat:

    δq=CV dT⟹q=∫T1T2CV dT=32NkB ΔT.\delta q = C_V\, dT \quad \Longrightarrow \quad q = \int_{T_1}^{T_2} C_V \, dT = \frac{3}{2} N k_{\mathrm{B}} \,\Delta T.

    Since w=0w = 0, we also have ΔU=q=CVΔT\Delta U = q = C_V \Delta T.

  2. Isothermal (dT=0dT = 0)

    For an ideal gas, ΔU=0\Delta U = 0 (because UU depends only on TT). The system absorbs heat to offset the work it does:

    q=∫V1V2NkBTV dV=NkBTln⁡ ⁣(V2V1).q = \int_{V_1}^{V_2} \frac{N k_{\mathrm{B}} T}{V} \, dV = N k_{\mathrm{B}} T \ln\!\bigl(\tfrac{V_2}{V_1}\bigr).

    And w=−q=−NkBTln⁡(V2/V1)w = -q = -N k_{\mathrm{B}} T \ln(V_2/V_1).

  3. Adiabatic (δq=0\delta q = 0)

    Setting δq=0\delta q = 0 in Equation (3.2.9):

    CV dT=−P dV=−NkBTV dV.C_V\, dT = -P\, dV = -\frac{N k_{\mathrm{B}} T}{V}\, dV.

    Separating variables:

    CVT dT=−NkBV dV⟹∫T1T2CVT dT=−∫V1V2NkBV dV.\frac{C_V}{T}\, dT = -\frac{N k_{\mathrm{B}}}{V}\, dV \quad \Longrightarrow \quad \int_{T_1}^{T_2} \frac{C_V}{T}\, dT = - \int_{V_1}^{V_2} \frac{N k_{\mathrm{B}}}{V}\, dV.

    Integrating both sides:

    32NkBln⁡T2T1=−NkBln⁡V2V1.\frac{3}{2} N k_{\mathrm{B}} \ln\frac{T_2}{T_1} = -N k_{\mathrm{B}} \ln\frac{V_2}{V_1}.

    Dividing through by NkBN k_{\mathrm{B}}:

    ln⁡T2T1=−23ln⁡V2V1=ln⁡ ⁣(V1V2)2/3.\ln\frac{T_2}{T_1} = -\frac{2}{3}\ln\frac{V_2}{V_1} = \ln\!\left(\frac{V_1}{V_2}\right)^{2/3}.

    Exponentiating:

    T1V12/3=T2V22/3(monatomic ideal gas).\boxed{T_1 V_1^{2/3} = T_2 V_2^{2/3}} \qquad\text{(monatomic ideal gas).}

Comparing Isothermal and Adiabatic Expansions

How does the path affect the work? Figure 3.2.2 compares a reversible isothermal expansion with a reversible adiabatic expansion from the same initial state. The area under each curve is ∣w∣|w| for that process.

Source
Loading...

Figure 3.2.2:Reversible isothermal and adiabatic expansions of one mole of a monatomic ideal gas from (V1,T1)=(5 L,300 K)(V_1, T_1) = (5\,\mathrm{L}, 300\,\mathrm{K}) to V2=20 LV_2 = 20\,\mathrm{L}. The area under each curve is ∣w∣|w| for that path, and the labels give ww. The orange area lies under both curves.


Microscopic Interpretation of the First Law

As developed in Section 2.1, macroscopic thermodynamic properties are ensemble averages over microstates. This perspective gives a powerful physical picture of heat and work at the molecular level.

From a statistical mechanics perspective, the internal energy is

U=∑i=1MpiEi,U = \sum_{i=1}^M p_i E_i,

where pip_i is the probability of occupying the ii-th microstate with energy EiE_i, and MM is the total number of accessible microstates. The total differential can be written as

dU=∑i=1MEi dpi⏟changing which states are occupied+∑i=1Mpi dEi⏟changing the energies of the states.dU = \underbrace{\sum_{i=1}^M E_i\, dp_i}_{\text{changing which states are occupied}} + \underbrace{\sum_{i=1}^M p_i \, dE_i}_{\text{changing the energies of the states}}.

For a closed system (constant NN) with only PVPV work, the microstate energies depend on the volume, so dEi=(∂Ei∂V)NdVdE_i = \left(\frac{\partial E_i}{\partial V}\right)_N dV. Noting that

∑i=1Mpi(∂Ei∂V)N=⟨(∂E∂V)N⟩,\sum_{i=1}^M p_i \left(\frac{\partial E_i}{\partial V}\right)_N = \Bigl\langle \bigl(\tfrac{\partial E}{\partial V}\bigr)_N \Bigr\rangle,

we identify pressure as

P=−⟨(∂E∂V)N⟩.P = - \Bigl\langle \bigl(\tfrac{\partial E}{\partial V}\bigr)_N \Bigr\rangle.

Hence,

dU=∑i=1MEi dpi  −  P dV.dU = \sum_{i=1}^M E_i\, dp_i \;-\; P\, dV.

Comparing term by term with dU=δq+δw=δq−P dVdU = \delta q + \delta w = \delta q - P\,dV, which holds for a reversible process, we identify:

δq=∑i=1MEi dpiandδw=−P dV=∑i=1Mpi dEi.\delta q = \sum_{i=1}^M E_i\, dp_i \qquad\text{and}\qquad \delta w = -P\,dV = \sum_{i=1}^M p_i\, dE_i.

Figure 3.2.3 illustrates these two mechanisms. Panel (a) shows the initial state, panel (b) the result of adding heat (the probabilities change, and the energy levels stay), and panel (c) the result of doing work by compression (the energy levels shift, and the probabilities stay).

Source
Loading...

Figure 3.2.3:Microstate energies (horizontal lines) and occupation probabilities (bars, with the value of pip_i beside each bar). (a) Initial state. (b) After heating: the energy levels are unchanged, and the distribution shifts toward higher-energy states (∑Ei dpi>0\sum E_i\,dp_i > 0). The dashed outlines are the initial probabilities. (c) After compression: the probabilities are unchanged, and every energy level shifts upward (∑pi dEi>0\sum p_i\,dE_i > 0). The dashed lines are the initial levels, and each arrow joins a level before and after the compression. The probabilities in each panel are Boltzmann probabilities (Section 2.2): heating doubles TT at fixed levels, and the compression doubles the level spacing and TT together, which leaves every pip_i unchanged.

In Figure 3.2.4, a particle in a one-dimensional box (Section 2.5) takes the place of the schematic levels. Choose a process, move its slider, and follow the heat, the work, and the change in internal energy.

Figure 3.2.4:Heat and work for a particle in a one-dimensional box. Panel (a) shows the energy levels EiE_i with a bar for each probability pip_i, and panel (b) shows the heat qq, the work ww, and the change in internal energy ΔU\Delta U since the starting state. Energies are in units of ε=h2/(8mL02)\varepsilon = h^2/(8mL_0^2), the energy of the lowest level at the starting length L0L_0.

Two things to try:

  1. Heat the particle at fixed length, and then compress the box without heat. For each step, say which of qq and ww changes and why.

  2. Go from the starting state to L=0.8 L0L = 0.8\,L_0 and kBT=10 εk_{\mathrm{B}}T = 10\,\varepsilon along two routes. On the first route, heat to 6.4 ε6.4\,\varepsilon and then compress. On the second route, compress and then heat. Compare qq, ww, and ΔU\Delta U for the two routes.

Worked Example

Isothermal Reversible Expansion of an Ideal Gas

One mole of an ideal gas expands reversibly and isothermally at T=300 KT=300\ \mathrm{K} from V1=5.0 LV_1=5.0\ \mathrm{L} to V2=20.0 LV_2=20.0\ \mathrm{L}. Compute ww, qq, and ΔU\Delta U.

Assumptions. Ideal gas, reversible process, isothermal; for an ideal gas U=U(T)U=U(T).

  1. Work

    For a reversible process, Pext=P=nRT/VP_{\mathrm{ext}} = P = nRT/V at every step:

    w=−∫V1V2P dV=−∫V1V2nRTV dV=−nRTln⁡(V2V1).w = -\int_{V_1}^{V_2} P\,dV = -\int_{V_1}^{V_2}\frac{nRT}{V}\,dV = -nRT\ln\left(\frac{V_2}{V_1}\right).

    With n=1 moln=1\,\mathrm{mol}, R=8.314 J mol−1 K−1R=8.314\ \mathrm{J\,mol^{-1}\,K^{-1}}, T=300 KT=300\ \mathrm{K}, and V2/V1=4V_2/V_1=4:

    w=−(1)(8.314)(300)ln⁡4=−3.46×103 J=−3.46 kJ.w = -(1)(8.314)(300)\ln 4 = -3.46\times10^{3}\ \mathrm{J}=-3.46\ \mathrm{kJ}.
  2. Internal energy

    ΔU=0(isothermal ideal gas: U=U(T) and ΔT=0).\Delta U = 0 \quad (\text{isothermal ideal gas: } U = U(T) \text{ and } \Delta T = 0).
  3. Heat from the First Law

    ΔU=q+w  ⇒  0=q+w  ⇒  q=−w=+3.46 kJ.\Delta U = q + w \;\Rightarrow\; 0 = q + w \;\Rightarrow\; q = -w = +3.46\ \mathrm{kJ}.

Result. w=−3.46 kJw=-3.46\ \mathrm{kJ}, q=+3.46 kJq=+3.46\ \mathrm{kJ}, and ΔU=0\Delta U=0. The gas does work on the surroundings, and an equal amount of heat flows in from the thermal reservoir to maintain the temperature.

Concept Checks

  1. Why is reversibility useful even when real processes are irreversible?

  2. What distinguishes an isothermal process from an adiabatic process in terms of energy transfer mechanisms?

  3. For an ideal gas, why does (∂U/∂V)T=0\left(\partial U/\partial V\right)_T=0?

  4. In the microscopic expression dU=∑iEi dpi+∑ipi dEidU=\sum_i E_i\,dp_i+\sum_i p_i\,dE_i, which term corresponds to heat and which to work (under the stated conditions)?

  5. An isothermal expansion and an adiabatic expansion start from the same initial state and end at the same final volume. Which produces more work? Which produces a larger temperature change?

Key Takeaways