4.3.6. Enthalpy#

Enthalpy, \(H\), is another Thermodynamic energy (and state) function. It is an important quantity in thermochemistry. In these notes, we will see how it is related to internal energy and how it is used in the context of chemical reactions.

4.3.6.1. Learning Goals#

After these notes, you should be able to:

  1. Express Enthalpy as a function of internal energy, pressure, and volume

  2. Compute enthalpy from internal energy, and vice versa, for reactions involving ideal gasses

  3. Define heat capacity at constant pressure

  4. Compute relative enthalpies from heat capacities

  5. Compute enthalpy changes for chemical reactions

4.3.6.2. Coding Concepts#

The following coding concepts are used in this notebook:

  1. Variables

  2. Functions

  3. Plotting with matplotlib

4.3.6.3. Enthalpy and Heat at Constant Pressure#

Heat at constant volume is equal to \(\Delta U\):

(4.236)#\[\begin{eqnarray} \Delta U &=& q + w \\ &=& q - \int_{V_1}^{V_2}P_{ext}dV \\ &=& q_V \end{eqnarray}\]

where the last equality holds for a constant volume process.

At constant pressure, heat is not equal to \(\Delta U\):

(4.237)#\[\begin{eqnarray} \Delta U &=& q_P + w_P \\ &=& q_P - \int_{V_1}^{V_2}P_{ext}dV \\ &=& q_P - P\Delta V \end{eqnarray}\]

where the last equality holds because \(P = P_{ext} = constant\). We can rearrange this equation to solve for \(q_P\)

(4.238)#\[\begin{eqnarray} q_P = \Delta U + P\Delta V \end{eqnarray}\]

We notice that both terms on the right-hand side of this equation only depend on the initial and final state (i.e. \(\Delta U = U_{final} - U_{initial}\) and \(P\Delta V = P(V_{final} - V_{initial})\) and thus \(q_P\) is a state function. We call this state function the change in enthalpy and denote it \(\Delta H\). Enthalpy is thus defined as

(4.239)#\[\begin{equation} H = U + PV \end{equation}\]

4.3.6.4. Legendre Transformation#

Enthalpy and Internal Energy are related by a mathematical manipulation called a Legendre transformation. Legendre transforms are used to determine a new function that depends on the other of a conjugate pair of variables. The transformation specifically swaps the dependence of a function, \(f(x)\), on \(x\) to a new function, \(g\left(\frac{\partial f}{\partial x}\right)\), on the derivative of \(f\) w.r.t \(x\). The transformation is achieved by simply substracting the product of the variable times the derivative. For example

(4.240)#\[\begin{eqnarray} g\left(\frac{\partial f}{\partial x},y\right) = L(f(x,y))_x = f(x,y) - x\frac{\partial f}{\partial x} \end{eqnarray}\]

In the context of Enthalpy and Internal Energy, we say that

(4.241)#\[\begin{eqnarray} H(S,P) = L(U(S,V))_V &=& U(S,V) - V\frac{\partial U}{\partial V}\\ &=& U + PV \end{eqnarray}\]

We have not yet shown that \(\frac{\partial U}{\partial V} = -P\) but it does and we will discuss that later.

4.3.6.5. Example: Computing Internal Energy From Enthalpy#

The value of \(\Delta H\) at 298 K and one bar for the reaction

(4.242)#\[\begin{equation} 2H_2(g) + O_2(g) \rightarrow 2H_2O(l) \end{equation}\]

is -572 kJ. Compute \(\Delta U\) assuming gasses are all ideal.

For this problem we will need to use that, at constant pressure

(4.243)#\[\begin{equation} \Delta H = \Delta U + P\Delta V. \end{equation}\]

We have \(\Delta H\) and that \(P = 1\) bar, so we just need to compute \(\Delta V\). For this problem, \(\Delta V\) is the change in volume for the reaction. So

(4.244)#\[\begin{equation} \Delta V = V_{products} - V_{reactants} \end{equation}\]

For \(V_{reactants}\), we have three moles of ideal gas at \(P = 1\) bar so we can use the ideal gas law to compute

(4.245)#\[\begin{eqnarray} V_{reactants} &=& \frac{nRT}{P} \\ &=& \frac{3\cdot0.08314\cdot298}{1} \\ &=& 74.3 L \end{eqnarray}\]

where I have chosen to use \(R = 0.08314\) \(L\cdot bar\cdot K^{-1}\cdot mol^{-1}\) to cancel the \(P = 1\) bar.

You could compute the volume of \(2\) moles of liquid water but you will find it to be so small that it is negligble compared to \(V_{reactants} = 74.3\) L. Thus we have that

(4.246)#\[\begin{equation} \Delta V = -74.3 L \end{equation}\]

Solving for \(\Delta U\) yields

(4.247)#\[\begin{eqnarray} \Delta U &=& \Delta H - P\Delta V \\ &=& -572 kJ - 1 bar\cdot(-74 L) \cdot\left( \frac{1 kJ}{10 bar\cdot K}\right) \\ &=& -565 kJ \end{eqnarray}\]

In general, for reactions that involve ideal gasses, you get

(4.248)#\[\begin{equation} \Delta H = \Delta U + RT\Delta n_{gas} \end{equation}\]

4.3.6.6. Heat Capacity at Constant Pressure#

Heat capacity for a constant volume process is defined as

(4.249)#\[\begin{equation} C_V = \left( \frac{\partial U}{\partial T}\right)_V \approx \frac{\Delta U}{\Delta T} = \frac{q_V}{\Delta T} \end{equation}\]

This is is not the heat capacity at constant pressure. Thus, heat capacities are path dependent. The heat capacity at constant pressure is the amount of heat it takes to raise a material/substance one Kelvin while the substance is maintained at constant pressure. The amount of heat for a constant pressure is \(q_P = \Delta H\). Thus, by analogy to constant volume, the heat capacity at constant pressure is

(4.250)#\[\begin{equation} C_P = \left( \frac{\partial H}{\partial T}\right)_P \approx \frac{\Delta H}{\Delta T} = \frac{q_P}{\Delta T} \end{equation}\]

4.3.6.7. Relative Enthalpies can be Computed from Heat Capacities#

The definition of heat capacity at constant pressure can be rearranged to give

(4.251)#\[\begin{equation} dH = C_P dT. \end{equation}\]

Integrating both sides of this equation yields

(4.252)#\[\begin{eqnarray} \int_{H_i}^{H_f}dH &=& \int_{T_i}^{T_f}C_PdT \\ \Delta H &=& \int_{T_i}^{T_f}C_PdT \end{eqnarray}\]

If \(C_P\) is constant, it can be taken out of the integral and you get the standard general chemistry expression that \(\Delta H = C_P \Delta T\). Generally, however, \(C_P\) will be a non-constant function of temperature and thus we will not be able to take it out of the integral.

Another difficult situation that arises is at a phase transition (e.g. vaporization or fusion/melting). At this point, the heat capacity is discontinuous and thus you cannot integrate at that temperature. If we have a situation like that, say around fusion/melting, we get that

(4.253)#\[\begin{eqnarray} \Delta H &=& \int_{T_i}^{T_{fusion}}C^s_PdT + \Delta H_{fusion} + \int_{T_{fusion}}^{T_{f}}C^l_PdT \end{eqnarray}\]
Hide code cell source
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

def plot_Cp_v_T(Ts,Cps,Tf,Tl,Cpl,fontsize=16):
    xlabel="T (K)"
    ylabel="C$_P$ (J/mol/K)"
    # setup plot parameters
    fig = plt.figure(figsize=(8,6), dpi= 80, facecolor='w', edgecolor='k')
    ax = plt.subplot(111)
    ax.grid(b=True, which='major', axis='both', color='#808080', linestyle='--')
    ax.set_xlabel(xlabel,size=fontsize)
    ax.set_ylabel(ylabel,size=fontsize)
    plt.tick_params(axis='both',labelsize=fontsize)
    ax.plot(Ts,Cps*np.ones(Ts.size),lw=3,label="Solid")
    ax.plot(Tl,Cpl*np.ones(Tl.size),lw=3,label="Liquid")
    ax.set_ylim(0,31)
    plt.legend(fontsize=fontsize)
plot_Cp_v_T(np.arange(90,100,0.1),30,100,np.arange(100,110,0.1),15)

def plot_q_v_T(Ts,Cps,Tf,dHf,Tl,Cpl,Ti,fontsize=16):
    xlabel="T (K)"
    ylabel="$\Delta H$ (J/mol)"
    # setup plot parameters
    fig = plt.figure(figsize=(8,6), dpi= 80, facecolor='w', edgecolor='k')
    ax = plt.subplot(111)
    ax.grid(b=True, which='major', axis='both', color='#808080', linestyle='--')
    ax.set_xlabel(xlabel,size=fontsize)
    ax.set_ylabel(ylabel,size=fontsize)
    plt.tick_params(axis='both',labelsize=fontsize)
    ax.plot(Ts,Cps*(Ts-Ti),lw=3,label="Solid")
    ax.plot(Tf*np.ones(100),np.arange(Cps*(Tf-Ti),Cps*(Tf-Ti)+dHf,dHf/100.0),lw=3,label="Fusion (Melting)")
    ax.plot(Tl,Cpl*(Tl-Ti)+Cps*(Tf-Ti)+dHf-Cpl*(Tf-Ti),lw=3,label="Liquid")
    plt.legend(fontsize=fontsize)
plot_q_v_T(np.arange(90,100,0.1),30,100,250,np.arange(100,110,0.1),15,90)
../../_images/ccdd0394f2a62d7ba1b953dd4255024b960587b219de7a821862c03c56922aa4.png ../../_images/0e7e0c2179fd36c99bd144afa377cf21738702c571723143a945244c5dcf1916.png

4.3.6.8. Enthalpy Changes for Chemical Reactions#

The enthalpy change for a chemical reaction is an important quantity in particular for thermochemistry. An exothermic reaction is defined as one that has \(\Delta H_{rxn} < 0\) and an endothermic reaction is defined as one that has \(\Delta H_{rxn} > 0\).

Enthalpies of reactions can be estimated in a number of ways. Here we will consider two implementations of Hess’s law:

  1. Calculating enthalpies of reactions by adding enthalpies of known reactions

  2. Calculating enthalpies of reactions from tabulated heats of formation

4.3.6.8.1. Enthalpy of reaction by adding enthalpies of known reactions#

The heat of combustion of isobutane is \(-2869\) kJ/mol and the heat of combustion of n-butane is \(-2877\) kJ/mol. Compute the enthalpy of isomerization from n-butane to isobutane.

Start by writing out the two combustion reactions

(4.254)#\[\begin{equation} i-C_4H_{10}(g) + \frac{13}{2}O_2(g) \rightarrow 4CO_2(g) + 5H_2O(l) \quad \Delta H = -2869\quad kJ\cdot mol^{-1} \end{equation}\]
(4.255)#\[\begin{equation} n-C_4H_{10}(g) + \frac{13}{2}O_2(g) \rightarrow 4CO_2(g) + 5H_2O(l) \quad \Delta H = -2877\quad kJ\cdot mol^{-1} \end{equation}\]

Now we write out the final reaction that we want

(4.256)#\[\begin{equation} n-C_4H_{10}(g) \rightarrow i-C_4H_{10}(g) \quad \Delta H_{isomerization} = ? \end{equation}\]

In order to add the two reactions to net the reaction we want, we need to flip the second reaction and then add

(4.257)#\[\begin{eqnarray} n-C_4H_{10}(g) + \frac{13}{2}O_2(g) &\rightarrow& 4CO_2(g) + 5H_2O(l) \quad \Delta H = -2877\quad kJ\cdot mol^{-1} \\ 4CO_2(g) + 5H_2O(l) &\rightarrow& i-C_4H_{10}(g) + \frac{13}{2}O_2(g) \quad \Delta H = 2869\quad kJ\cdot mol^{-1} \end{eqnarray}\]

The sum of these two nets the exact reaction we want and

(4.258)#\[\begin{equation} \Delta H_{isomerization} = -2877 + 2869 = -8 \quad kJ\cdot mol^{-1} \end{equation}\]
-2877 + 2869
-8

4.3.6.8.2. Enthalpy of Reaction from Heats of Formation#

Estimate the standard heat of combustion, \(\Delta H^0_c\) of glucose (\(C_6H_{12}O_6\)(s)) given the following heats of formation

Substance

\(\Delta H^0_f\) (kJ/mol)

\(C_6H_{12}O_6\)(s)

-1260

\(CO_2\) (g)

-393.509

\(H_2O\) (l)

-285.83

We start by writing out the balanced chemical reaction

(4.259)#\[\begin{equation} C_6H_{12}O_6 (s) + 6O_2(g) \rightarrow 6CO_2(g) + 6H_2O(l) \end{equation}\]

Now we compute \(\Delta H_{rxn}\)

(4.260)#\[\begin{eqnarray} \Delta H_{rxn} &=& 6\cdot\Delta H^0_f(CO_2(g)) + 6\cdot\Delta H^0_f(H_2O(l)) - \Delta H^0_f(C_6H_{12}O_6 (s)) \\ &=& 6(-393.509) + 6(-285.83) - (-1260) \\ &=& -2820 \quad kJ \end{eqnarray}\]

Since the balanced reaction has one mol of \(C_6H_{12}O_6 (s)\) we can say that

(4.261)#\[\begin{eqnarray} \Delta H^0_c &=& -2820 \quad kJ/mol \end{eqnarray}\]
6*(-393.509)+6*(-285.83)+1260
-2816.034