Exercises#

We will skip the simple BODMAS exercises and look first at the chemical calculations.

Calculate the energy, in Joules, of radiation with a particular wavenumber,

\[ E = hc\bar{\nu}, \]

where, \(c\) is the speed of light, \(h\) is Planck’s constant, and \(\bar{\nu}\) is \(1700\) cm-1.

c = 3e10 #cm/s
h = 6.626e-34 #Js
wavenumber = 1700 # /cm

energy = h * c * wavenumber
print(energy)
3.37926e-20

Evaluate the \(\text{pH}\) when the concentration of hydronium ions is \(1.524\times 10^{-5}\) M,

\[ \text{pH} = -\log_{10}[\text{H}_3\text{O}^+] \]
from math import log10

concentration = 1.524e-5

pH = - log10(concentration)
print(pH)
4.8170150329964185

Find the potential energy, in Joules, between two atoms at a distance of \(2\) Å, modelled with the Lennard-Jones potential model,

\[ E = \frac{A}{r^{12}} - \frac{B}{r^6},\]

where \(r\) is the interatomic distances and \(A\) and \(B\) are interaction specific constants for the Argon-Argon interaction these are \(1.36 \times 10^{-134}\) Jm12 and \(9.27 \times 10^{-78}\) Jm6 respectively.

r = 2e-10
A = 1.36e-134
B = 9.27e-78

energy = A / (r ** 12) - B / (r ** 6)
print(energy)
3.175468749999998e-18

The next question is a longer form question.

The standard Gibbs free energy for a reaction at a particular temperature is related to the equilibrium constant at that temperature via,

\[ \Delta G = -RT\ln{K}. \]

For the reaction:

PCl3 (g) + Cl2 (g) → PCl5 (g)

The standard free energies of formation \(\Delta G_f^\circ\) for each reactant and product are given below,

  • PCl3: \(-267.8\) kJmol-1

  • PCl5: \(-305.0\) kJmol-1

  • Cl2: \(0\) kJmol-1 Write a Jupyter Notebook cell to achieve the following:

  • Using Hess’s law, find the equilibrium constant \(K\), for the above reaction.

  • Then assuming that \(\Delta H\) and \(\Delta S\) are independent of temperature between \(298\) K and \(350\) K, calculate \(\Delta H^\circ\) (e.g. at \(298\) K), given that \(\Delta G_r = -20.2\) kJmol-1 at \(350\) K. The following relation will help,

\[ \Delta G = \Delta H - T\Delta S \]

The first step is to use Hess’s law to find the free energy change for the reaction, this is the difference between the sum of the free energies of formation for the products and the reactants.

dg_products = -305.0 #kJ/mol
dg_reactants = -267.8 + 0 #kJ/mol

dg_298 = dg_products - dg_reactants
print(dg_298)
-37.19999999999999

This is then put into the first equation.

from math import exp

R = 8.314e-3 #kJ/molK
T = 298 #K

K = exp(-dg_298 / (R * T))
print(K)
3317426.4529509316

We can then use simultaneous equations to rearrange the second equation.

\[ \Delta G_1 = \Delta H - T_1\Delta S \]
\[ \Delta G_2 = \Delta H - T_2\Delta S \]
\[ \Delta G_1 - \Delta G_2 = T_2\Delta S - T_1\Delta S \]
\[ \Delta S = \frac{\Delta G_1 - \Delta G_2}{T_2 - T_1}\]
\[ \frac{\Delta H - \Delta G_1}{T_1} = \frac{\Delta G_1 - \Delta G_2}{T_2 - T_1}\]
\[ \Delta H = \frac{T_1(\Delta G_1 - \Delta G_2)}{T_2 - T_1} + \Delta G_1\]
dg_350 = -20.2 #kJ/mol
T_350 = 350 #K
T_298 = 298 #K

d_H = (T_298 * (dg_298 - dg_350) / (T_350 - T_298)) + dg_298
print(d_H)
-134.62307692307687