3 First Law of Thermodynamics

3.1 Calculation of Internal Energy Changes

Energy is a property of a system that can be either transferred or converted. The internal energy (\(U\)) of a system is a thermodynamic state function defined as:

Definition 3.1 Internal Energy: The energy contained within the system, excluding kinetic energy and potential energy of motion and position of the system as a whole.

In the absence of chemical transformations, heat and work are the only two forms of energy that thermodynamics is concerned with. Keeping in mind Definition 1.1, which gives the convention for the signs of heat and work, the internal energy of a system can be written as:

\[\begin{equation} U = Q + W, \tag{3.1} \end{equation}\]

which we can write in differential form by considering that the internal energy is a state function, as: \[\begin{equation} dU = đ Q + đ W, \tag{3.2} \end{equation}\]

which, using eq. (2.9) becomes:

\[\begin{equation} dU = đ Q - PdV. \tag{3.3} \end{equation}\]

3.1.1 Internal energy in isothermal processes

To study the behavior of the internal energy in a process at constant temperature (\(dT=0\)), James Prescott Joule (1818–1889) created the apparatus depicted in Figure 3.1.

The Joule Expansion Experiment.

Figure 3.1: The Joule Expansion Experiment.

The left side of the Joule apparatus’s inner chamber is filled with an ideal gas, while a vacuum is created in the right chamber. Both chambers are immersed in a water bath, to guarantee isolation from the environment. When the communication channel between the chambers is open, the gas expands and equilibrates. The work associated with the transformation is:

\[\begin{equation} đ W=-P_{\text{ext}}dV = 0, \tag{3.4} \end{equation}\]

since the chambers are not in communication with the environment, \(P_{\text{ext}}=0\). Thus, changes in internal energy are associated with the heat transfer of the process, which can be measured by monitoring the temperature of the gas at the beginning, \(T_i\), and at the end of the experiment \(T_f\). Joule noticed experimentally that if he used an ideal gas for this experiment, the temperature would not change \(T_i = T_f\). Since the temperature doesn’t change, there is no heat transfer, and therefore the internal energy stays constant:

\[\begin{equation} dU = đ Q = 0. \tag{3.5} \end{equation}\]

Notice that Joule’s conclusion is valid only for an ideal gas. If we expand a real gas, we do notice a change in temperature associated with the expansion. A typical example of this behavior is when you use a pressurized spray bottle and release its content for an extended time in the air. The container will typically get colder. We will discuss this behavior in chapter 11 when we will study non-ideal gases.

From this simple experiment, we can conclude that the internal energy of an ideal gas depends only on its temperature.

3.1.2 Internal energy in adiabatic processes

An adiabatic process is defined as a process that happens without the exchange of heat. As such, \(đ Q=0\), and the work associated with an adiabatic process becomes a state function:

\[\begin{equation} dU=đ W=-PdV, \tag{3.6} \end{equation}\]

which can then be calculated using the formulas that we derived in section 2.4. Notice that isothermal and adiabatic are two very different processes. While an adiabatic process happens without the exchange of heat across the system’s boundaries, this does not mean that the system’s temperature does not change. Isothermal processes are usually associated with a heat transfer across the boundaries to maintain the temperature of the system constant. For adiabatic processes, it is quite the opposite since they are usually associated with a change in temperature.

3.1.3 Internal energy in isochoric processes

An isochoric process is a process in which the volume does not change. Therefore, \(đ W=0\), and \(dU = đ Q_V\), which using eq. (2.1), becomes:

\[\begin{equation} dU = đ Q_V = n C_V dT. \tag{3.7} \end{equation}\]

Since no work is performed at these conditions, the heat becomes a state function. Eq. (3.7) also gives a mathematical justification of the concept of heat capacity at constant volume. \(C_V\) can now be interpreted as the partial derivative (a coefficient) of a state function (the internal energy):

\[\begin{equation} C_V = \left( \frac{\partial U} {\partial T} \right)_{V,n=1}, \tag{3.8} \end{equation}\]

where we have replaced the total derivative \(d\) with a partial one \(\partial\), and we have specified that the derivation happens at constant volume and number of moles. Eq. (3.8) equation brings a rigorous definition of heat capacity at constant volume for 1 mol of substance:

Definition 3.2 The heat capacity of a substance, \(C_V\), represents its ability to absorb energy at constant volume.

3.1.4 Internal energy in isobaric processes

In an isobaric process, the pressure does not change, hence \(dP=0\). Unfortunately, eq. (3.2) for this case does not simplify further, as happened in the two previous cases. However, in section 2.3.2, we have introduced the useful concept of heat capacity at constant \(P\). \(C_P\) was used in an adiabatic process in the same manner as \(C_V\) was used in the isochoric case. That is, as a coefficient to measure the amount of heat absorbed at constant pressure. Eq. (3.8) gave a mathematical definition of \(C_V\) as the partial derivative of a state function (the internal energy). But if heat capacities are coefficients, and coefficients are partial derivatives of state functions, how do we explain \(C_P\)? In order to do so, we can introduce a new state function, called the enthalpy (\(H\)), as:

\[\begin{equation} H = U + PV, \tag{3.9} \end{equation}\]

and its differential, calculated as:

\[\begin{equation} dH = dU + d(PV) = dU + PdV + \overbrace{VdP}^{0}, \tag{3.10} \end{equation}\]

which can be rearranged as:

\[\begin{equation} dU = dH -PdV, \tag{3.11} \end{equation}\]

Replacing eq. (3.11) into eq. (3.3):

\[\begin{equation} dH -PdV = đ Q_P - PdV, \tag{3.12} \end{equation}\]

which simplifies to:

\[\begin{equation} dH = đ Q_P = n C_P dT. \tag{3.13} \end{equation}\]

Eq. (3.13) establishes that the heat exchanged at constant pressure is equal to a new state function called the enthalpy, defined by eq. (3.9). It also establishes a mathematical justification of the concept of heat capacity at constant pressure. Similarly to \(C_V\), \(C_P\) can now be interpreted as the partial derivative (a coefficient) of the new state function (the enthalpy):

\[\begin{equation} C_P = \left( \frac{\partial H} {\partial T} \right)_{P,n=1}, \tag{3.14} \end{equation}\]

Eq. (3.14) brings also a rigorous definition of heat capacity at constant pressure for 1 mol of substance:

Definition 3.3 The heat capacity of a substance, \(C_P\), represents its ability to absorb enthalpy at constant pressure.

3.2 The First Law of Thermodynamics

We finally come to a working definition of the first law. If we take an isolated system—i.e., a system that does not exchange heat nor mass with its surroundings—its internal energy is conserved. If the internal energy is conserved, \(dU=0\). Therefore, for an isolated system:

\[\begin{equation} đ Q = -đ W, \tag{3.15} \end{equation}\]

and heat and work can be easily calculated using any of the appropriate formulas introduced in either section 2.4 or 2.3.

The first law is a conservation law. It is intuitive since it comes directly from Lavoisier’s principle of “nothing is lost, nothing is created, everything is transformed.” Considering that the only system that is truly isolated is the universe, we can condense the first law in one simple sentence:

Definition 3.4 First Law of Thermodynamics: The energy of the universe is conserved.

3.3 Reversible and Irreversible processes

Let’s now consider the cycle in Figure 3.2. The process in this case starts from state 1 (system at \(P_1V_1\)), expands to state 2 (system at \(P_2V_2\)), and compresses back to state 1 (system back to \(P_1V_1\)).

Expansion/Compression Cycle of an Ideal Gas.

Figure 3.2: Expansion/Compression Cycle of an Ideal Gas.

Since the process starts and finishes at the same state, the value of the internal energy at the end of the process will be the same as its value at the beginning, regardless of the path:14

\[\begin{equation} \oint dU=0, \tag{3.16} \end{equation}\]

where the symbol \(\oint\) indicates an integral around a cycle. Considering the work associated with the cycle, however, the situation is radically different because it depends on the path that the system is taking, and in general \[\begin{equation} \oint_{\text{path}} đW \neq 0. \tag{3.17} \end{equation}\]

For instance, if we perform the expansion in one step, the work associated with it will be (using eq. (2.13)):15

\[\begin{equation} W^{\text{expansion}}_{\text{1-step}}=-P_2(\underbrace{V_2-V_1}_{>0})<0, \tag{3.18} \end{equation}\]

and if we also perform the compression in 1-step:16

\[\begin{equation} W^{\text{compression}}_{\text{1-step}}=-P_1(\underbrace{V_1-V_2}_{<0})>0. \tag{3.19} \end{equation}\]

With a little bit of math, it is easy to prove that the total work for the entire cycle is:

\[\begin{equation} \begin{aligned} W^{\text{cycle}}_{\text{1-step}} {} & = W^{\text{expansion}}_{\text{1-step}}+W^{\text{compression}}_{\text{1-step}} \\ & = -P_2(V_2-V_1)-P_1(V_1-V_2) \\ & = -P_2(V_2-V_1)+P_1(V_2-V_1) \\ & = (\underbrace{V_2-V_1}_{>0})(\underbrace{P_1-P_2}_{>0}) > 0, \end{aligned} \tag{3.20} \end{equation}\]

or, in other words, net work is destroyed.

In practice, if we want to manually perform this cycle by pushing on the piston by hand, we will notice that it requires more energy to push down than the amount it gives back when we release it, and it moves back up.

In contrast, if both the expansion and the compression happen in a slow \(\infty\)-step manner, the work associated with them will be \(W_{\text{max}}\) and \(W_{\text{min}}\), respectively, which are calculated using eq. (2.19). The total work related with the cycle will be in this case:

\[\begin{equation} \begin{aligned} W^{\text{cycle}}_{\infty\text{-step}} {} & = W^{\text{expansion}}_{\text{max}}+W^{\text{compression}}_{\text{min}} \\ & = -nRT \ln \frac{V_f}{V_i}-nRT \ln \frac{V_i}{V_f} \\ & = -nRT \underbrace{\left( \ln \frac{V_f}{V_i} - \ln \frac{V_f}{V_i} \right) }_{=0} = 0, \end{aligned} \tag{3.21} \end{equation}\]

which means that, in this case, work is not destroyed nor created.

In practice, if we were able to perform this cycle manually by pushing on the piston down by hand, we will notice that it requires the same amount of energy to push down than the amount it gives back when it moves up.

This process can happen both ways without losses, and is called reversible:

Definition 3.5 Reversible process: a process whose direction can be returned to its original position by inducing infinitesimal changes to some property of the system via its surroundings.17

Reversible processes are ideal processes that are hard to realize in practice since they require transformations that happen in an infinite amount of steps (infinitely slowly).

3.4 Chapter Review

3.4.1 Practice Problems

Problem 1: Work Done in Isothermal Expansion

An ideal gas expands isothermally and reversibly at a temperature of \(300. \, \text{K}\) from a volume of \(2.0 \, \text{L}\) to \(5.0 \, \text{L}\). Calculate the work done by the gas during the expansion. The amount of gas is \(1.0 \, \text{mol}\).

Solution: The work done in an isothermal reversible expansion of an ideal gas is given by:

\[ W = -nRT \ln \left(\frac{V_f}{V_i}\right) \]

Given:

\(n = 1.0 \, \text{mol}\)

\(R = 8.3 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\)

\(T = 300. \, \text{K}\)

\(V_i = 2.0 \, \text{L}\)

\(V_f = 5.0 \, \text{L}\)

Substituting the values:

\[ W = - (1.0\, \text{mol}) (8.3 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}) (300. \, \text{K}) \ln \left(\frac{5.0\, \text{L}}{2.0\, \text{L}}\right) \]

\[ W = -2500.\, \text{J} \cdot \ln \left(2.5\right) \]

\[ W = -2500.\, \text{J} \cdot 0.92 \]

\[ W \approx -2300 \, \text{J} \]

Now we just need to adjust the significant digits.

Answer: The work done by the gas is \(-2.3 \, \text{kJ}\).


Problem 2: Internal Energy Change in an Isochoric Process

Calculate the change in internal energy, \(\Delta U\), for \(2.0 \, \text{mol}\) of an ideal gas undergoing an isochoric heating process from \(250. \, \text{K}\) to \(350. \, \text{K}\). The molar heat capacity at constant volume, \(C_V\), is \(12.5 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\).

Solution: For an isochoric process, the change in internal energy is given by:

\[ \Delta U = n C_V \Delta T \]

Given:

\(n = 2.0 \, \text{mol}\)

\(C_V = 12.5 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\)

\(\Delta T = (350. - 250.) \, \text{K} = 100. \, \text{K}\)

Substituting the values:

\[ \Delta U = (2.0\, \text{mol})(12.5\, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}) (100.\,\text{K}) \]

\[ \Delta U = 2500. \, \text{J} \]

Finally, again we need to just adjust the significant digits.

Answer: The change in internal energy, \(\Delta U\), is \(2.5 \, \text{kJ}\).


Problem 3: Heat Required for an Isobaric Process

Determine the heat required to raise the temperature of \(3.0 \, \text{mol}\) of an ideal gas from \(200. \, \text{K}\) to \(400. \, \text{K}\) in an isobaric process. The molar heat capacity at constant pressure, \(C_P\), is \(21. \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\).

Solution: The heat required for an isobaric process is given by:

\[ Q_P = n C_P \Delta T \]

Given:

\(n = 3.0 \, \text{mol}\)

\(C_P = 21. \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\)

\(\Delta T = (400. - 200.) \, \text{K} = 200. \, \text{K}\)

Substituting the values:

\[ Q_P = (3.0 \, \text{mol})(21 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1})(200. \, \text{K}) \]

\[ Q_P = 12600. \, \text{J} \]

Adjusting the significant digits we get the final answer.

Answer: The heat required is \(13. \, \text{kJ}\).


Problem 4: Final Temperature in an Isochoric Heating Process

A \(2.00 \, \text{mol}\) sample of an ideal gas is heated isochorically (at constant volume) from an initial temperature of \(300. \, \text{K}\). If the gas absorbs \(5000. \, \text{J}\) of heat during the process, what is the final temperature of the gas? The molar heat capacity at constant volume, \(C_V\), is \(20.0 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\).

Solution: The heat absorbed in an isochoric process is given by:

\[ Q = n C_V \Delta T \]

Given:

\(n = 2.00 \, \text{mol}\)

\(C_V = 20.0 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\)

\(Q = 5000. \, \text{J}\)

\(T_i = 300. \, \text{K}\)

Rearranging to solve for \(\Delta T\):

\[ \Delta T = \frac{Q}{n C_V} \]

Substituting the values:

\[ \Delta T = \frac{5000. \, \text{J}}{(2.00\,\text{mol}) (20.0 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1})},\]

\[ \Delta T = \frac{5000.}{40.} = 125. \, \text{K} \]

The final temperature is:

\[ T_f = T_i + \Delta T \]

\[ T_f = 300. \, \text{K} + 125. \, \text{K} = 425. \, \text{K} \]

Answer: The final temperature, \(T_f\), is \(425. \, \text{K}\).


Problem 5: Enthalpy Change During Heating

Calculate the enthalpy change, \(\Delta H\), when \(4.00 \, \text{mol}\) of an ideal gas is heated from \(250. \, \text{K}\) to \(450. \, \text{K}\) at constant pressure. The molar heat capacity at constant pressure, \(C_P\), is \(29.0 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\).

Solution: The enthalpy change in an isobaric process is given by:

\[ \Delta H = n C_P \Delta T \]

Given:

\(n = 4.00 \, \text{mol}\)

\(C_P = 29.0 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}\)

\(\Delta T = (450. - 250.) \, \text{K} = 200. \, \text{K}\)

Substituting the values:

\[ \Delta H = (4.00\, \text{mol}) (29.0 \, \text{J} \, \text{mol}^{-1} \, \text{K}^{-1}) (200.\,\text{K}),\]

\[ \Delta H = 23200 \, \text{J} \]

As usual, the final answer requires just an adjustment for the significant digits.

Answer: The enthalpy change, \(\Delta H\), is \(23.2 \, \text{kJ}\).

3.4.2 Study Questions

1. What is the First Law of Thermodynamics?

  1. The energy of an isolated system is constant.
  2. The entropy of the universe always increases.
  3. Heat flows naturally from a hot to a cold object.
  4. The energy of the universe is conserved.
  5. Work done on a system is always zero.

2. In an isothermal process involving an ideal gas, the internal energy:

  1. Increases with volume.
  2. Decreases with pressure.
  3. Stays constant.
  4. Increases with temperature.
  5. Becomes zero.

3. What is the correct equation for the change in internal energy (\(dU\)) in an isochoric process?

  1. \(dU = -P dV\).
  2. \(dU = đQ_P\).
  3. \(dU = đQ_V = nC_V dT\).
  4. \(dU = -P \Delta V\).
  5. \(dU = W = -P dV\).

4. What does the heat capacity at constant volume (\(C_V\)) represent?

  1. The ability to absorb heat at constant pressure.
  2. The ability to absorb energy at constant volume.
  3. The change in temperature per unit volume.
  4. The ability to absorb energy at constant temperature.
  5. The total energy change in an isochoric process.

5. During an adiabatic process, what is the relationship between work and internal energy?

  1. \(dU = đQ\).
  2. \(dU = đW\).
  3. \(dU = -P \Delta V\).
  4. \(dU = 0\).
  5. \(dU = -đQ\).

6. Which of the following best describes an adiabatic process?

  1. A process with constant pressure.
  2. A process with constant temperature.
  3. A process with no heat exchange.
  4. A process with constant volume.
  5. A process where heat exchange is maximum.

7. What is the internal energy change (\(\Delta U\)) for an ideal gas undergoing a reversible isothermal expansion?

  1. It increases.
  2. It decreases.
  3. It becomes zero.
  4. It is undefined.
  5. It depends on volume.

8. In an isobaric process, the heat capacity (\(C_P\)) can be interpreted as:

  1. The partial derivative of enthalpy with respect to pressure.
  2. The partial derivative of internal energy with respect to volume.
  3. The partial derivative of internal energy with respect to temperature.
  4. The partial derivative of enthalpy with respect to temperature.
  5. The partial derivative of pressure with respect to volume.

9. Which statement is true for an isolated system?

  1. The internal energy decreases.
  2. The system can exchange mass but not energy.
  3. The internal energy remains constant.
  4. The system can exchange heat but not work.
  5. The internal energy increases.

10. What is the equation that defines enthalpy (\(H\))?

  1. \(H = U + PV\).
  2. \(H = Q_P + W\).
  3. \(H = C_P dT\).
  4. \(H = T \Delta S\).
  5. \(H = U - PV\).

Answers: Click to reveal


  1. recall that the internal energy is a state function, so its value depends exclusively from the conditions at the beginning and at the end. In a cycle, we’re going back to the same point, so the conditions at the beginning and at the end are equal by definition.↩︎

  2. notice that the work for the expansion is negative, as it should be.↩︎

  3. notice that the work for the compression is positive, as it should be.↩︎

  4. Definition from: Sears, F.W. and Salinger, G.L. (1986), Thermodynamics, Kinetic Theory, and Statistical Thermodynamics, 3rd edition (Addison-Wesley.)↩︎