{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 12 Calculating the energy of a Chemical Bond using Molecular Orbitals"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# import all python add-ons etc that will be needed later on\n",
"%matplotlib inline\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from sympy import *\n",
"init_printing() # allows printing of SymPy results\n",
"plt.rcParams.update({'font.size': 16}) # set font size for plots"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 12.1 Molecular orbitals\n",
"Molecular orbitals (MO) are orbitals that extend over the whole molecule as opposed to being located on or between particular atoms. In $\\mathrm{H_2^+}$, one of the simplest molecules, the MOs are formed by bringing the two lowest energy atomic orbitals (wavefunctions), $\\varphi_{sA}$ and $\\varphi_{sB}$ together. In the situation that the MO is $\\varphi_{sA}+\\varphi_{sB}$, the atomic orbitals are in phase and a bond is formed; constructive interference has occurred between the two wavefunctions. The other simple combination, $\\varphi_{sA}-\\varphi_{sB}$, leads to destructive interference and little electron density between the nuclei. Such a combination is known as an anti-bonding MO. The amplitude of the two MOs are shown in Figure 29.\n",
"\n",
"The geometry of the $\\mathrm{H_2^+}$ molecular ion is defined as a function of the separation $R$ of the protons, $N_1$ and $N_2$, and of the electron $M$ with each proton, Figure 30. One possible separation of the electron from the two protons is shown but the electron can occupy any position in space. The interaction between the electron and the proton is electrostatic and attractive while that between the two protons is repulsive. The electron has kinetic energy as do the nuclei, but to make the calculation easy we assume that the nuclei do not vibrate but have fixed positions on the z-axis and so have no kinetic energy. This approach is called the Born -Oppenheimer approximation and is a good approximation when nuclear motion is far slower than that of electrons. This is due to the difference in their masses; the ratio of mass is at least $m_p /m_e = 1836$.\n",
"\n",
"![Drawing](integration-fig29a-29b.png) \n",
"\n",
"Figure 29 Bonding (left) and anti-bonding combination of orbitals. Note the nodal plane in the anti-bonding orbital where the electron density falls to zero and the also change in sign of the orbital. All of the bonding orbital has the same sign. The dashed line shows what the outline of the orbitals would look like if plotted through a line containing the nuclei. \n",
"\n",
"____\n",
"\n",
"In the Schroedinger equation, $H\\psi = E\\psi$, the Hamiltonian operator $H$ represents the kinetic and potential energy of the nuclei and electron (of mass $m$). The equation is\n",
"\n",
"$$\\displaystyle \\left( \\frac{\\bar P^2}{2m}+V(r) \\right)\\psi(r)=E\\psi(r)$$\n",
"\n",
"The first term in brackets represents the kinetic energy of the electron, where $\\bar P$ is the momentum operator ($\\displaystyle -i\\hbar\\frac{\\partial}{d\\tau}$), the second term the potential energy $V$ between the electron and protons and between the two protons. The coordinates of the electron are written as $\\bar r$ which is a vector defining its position anywhere in space around the two protons. At some juncture, this has to be related to $r_1, r_2$, and $R$. The total potential energy between the electron and the two protons is\n",
"\n",
"$$\\displaystyle \\displaystyle V(r) = -\\frac{e^2}{r_1}-\\frac{e^2}{r_2}+\\frac{e^2}{R}$$\n",
"\n",
"and each term in $V$ represents an electrostatic interaction. For clarity, the scaling term $(1/4\\pi\\epsilon_0$), which would multiply $V$ to convert it into SI units, is ignored. The first term in $V$ is the attractive interaction between the electron and proton one, (at position $N_1$) and which are separated by $r_1$, the second term is the similar interaction between the electron and proton two, and the third, the repulsion between the two protons. The full Schroedinger equation is therefore\n",
"\n",
"$$\\displaystyle \\left(\\frac{\\bar P^2}{2m}+-\\frac{e^2}{r_1}-\\frac{e^2}{r_2}+\\frac{e^2}{R} \\right)\\psi(r)= E\\psi(r)$$\n",
"\n",
"The energy is calculated with the variational principle using a linear combination of atomic orbitals as the basis to form $\\psi$. The orbitals are chosen to be those of the hydrogen atoms based on proton one and two, and are $\\varphi_1$ and $\\varphi_2$ respectively and make the linear combination $\\psi=c_1\\varphi_1+c_2\\varphi_2$. The atomic wavefunction for a hydrogen atom is \n",
"\n",
"$$\\displaystyle \\varphi(r)=\\frac{1}{\\sqrt{\\pi a_0^3}}e^{-r/a_0}$$\n",
"\n",
"where $a_0$ is a constant called the Bohr radius $\\displaystyle a_0=\\frac{4\\pi\\epsilon_0\\hbar^2}{me^2}=52.92$ pm. Substituting $r_1$ and $r_2$ for $r$ produce two atomic orbitals $\\varphi_1$ and $\\varphi_2$.\n",
"\n",
"The energy of the lowest level of the H _atom_ can also be calculated from the Schroedinger equation. The equation is \n",
"\n",
"$$\\displaystyle \\left(\\frac{\\bar P^2}{2m}-\\frac{e^2}{\\bar r} \\right)\\psi(\\bar r)= E\\psi(\\bar r)$$\n",
"\n",
"where $\\bar r$ is the vectorial (radial) distance of the electron from the proton. The lowest energy is $-e^2/2a_0$ and the ionisation energy, being positive is $E_I=e^2/2a_0$. In SI units \n",
"\n",
"$$\\displaystyle E_I = \\frac{1}{hc}\\left( \\frac{1}{4\\pi\\epsilon_0} \\right)\\frac{e^2}{2a_0}\\equiv R_H$$\n",
"\n",
"where $R_H$ is the Rydberg constant in cm$^{-1}$.\n",
"\n",
"To find the energies of the H$_2^+$ ion equation 61 is used. From the variational\n",
"calculation (see Section 9) the bonding $E_+$ and anti-bonding energies $E_-$ are\n",
"\n",
"$$\\displaystyle E_+=\\frac{H_{11}+H_{12}}{1+S}, \\qquad E_- = \\frac{H_{11}-H_{12}}{1-S} \\qquad\\tag{61}$$\n",
"\n",
"where $S$ is the overlap integral, and $H_{11},\\, H_{12}$ are the energy expectation value integrals. These are calculated next. These energies are functions of the internuclear separation. This may seem contradictory, as it was stated that $R$ was constant; however, this is only for the purpose of calculating the energy in the Born -Oppenheimer approximation. In this calculation, the electrons are allowed to move to find their minimum energy at any inter-nuclear separation $R$. This is then changed and the energy recalculated. This makes the energy a function of nuclear position $R$, but not the electron's position $r$, and thereby the potential energy curve is obtained. If the motion of the electrons and nuclei could not be separated then it would not be possible to draw a potential energy curve because the energy would depend on both $r$ and $R$.\n",
"\n",
"In calculating the energy, equation 61, three integrals have to be evaluated. The overlap integral $S$ is easy to understand, its name describes what it is, which is the extent to which the two atomic orbitals occupy the same region of space: In symbolic form this is\n",
"\n",
"$$\\displaystyle S=\\int\\varphi_1^*\\varphi_2d\\tau= \\int\\varphi_2^*\\varphi_1d\\tau \\qquad\\tag{62}$$\n",
"\n",
"and from now on, the complex conjugate will be ignored because the wavefunctions are real. Thinking of the integral in simple terms as an area, the 'area' is that of the product of the two wavefunctions and is obviously large only where they overlap. Integration here is written with symbolic coordinates $d\\tau$ that represents a volume element of three-dimensional space. When the coordinates are included properly, $S$ becomes a triple integral and $d\\tau$ given properly.\n",
"\n",
"![Drawing](integration-fig30.png) \n",
"\n",
"Figure 30. The geometry of the H$_2^+$ calculation and prolate spherical coordinates. The distance between the two protons $(N_1, N_2)$ is $R$, and that between the protons and the electron ($M$) is $r_1 ,r_2$ respectively. The origin of the coordinates is at $R/2$ so that $N_1$ is at position $(x, y, z) = (0, 0, -R/2)$ and $N_2$ at $(0, 0, R/2)$. The electron can take any position in $(x, y, z) = (u, v, \\theta )$ space with a probability determined by the wavefunction. The ellipses and hyperbola show some of the values for the elliptical coordinates used to solve the problem. Specifically these are prolate spheroidal coordinates and are rotationally symmetrical around the z-axis. The hyperbolas are lines in $v$ the ellipses in $u$. The equations are $(x/\\cosh(u))^2 + (y/\\sinh(u))^2 = (R/2)^2$ and $(x/\\cos(v))^2 - (y/\\sin(v))^2 = (R/2)^2$.\n",
"____\n",
"\n",
"The $H_{11}, H_{22}$, and $H_{12}=H_{21}$ integrals are different as they contain the energy (Hamiltonian) operator $H.$ In symbolic form these integrals are\n",
"\n",
"$$\\displaystyle H_{11}=\\int\\varphi_1\\,H\\,\\varphi_1 d\\tau \\qquad\\tag{63}$$\n",
"\n",
"$$\\displaystyle H=\\frac{\\bar p^2}{2m}+V_{en}+V_{nn}=\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_1}-\\frac{q^2}{r_2}+\\frac{q^2}{R}$$\n",
"\n",
"which contains both kinetic ($\\bar P^2/2m$) and potential energy terms which are the electron -\n",
"proton interaction, $V_{en}=-q^2/r_1-q^2/r_2$ and proton - proton interactions $q^2/R$. The electronic charge is $q$ and is used instead of the conventional $e$ because of possible confusion when exponentials are used later on. The other integrals, $H_{22}$ and $H_{12}$ are formed in a similar way.\n",
"\n",
"The calculation now involves evaluating these integrals and to calculate the energies $E_+$ and $E_-$ and plot them vs internuclear separation $R$. To make the equations simpler, two things are done. First, the coordinates are changed to prolate spheroidal ones, second, reduced distances are used, and these are defined in terms of $a_0$ the Bohr radius:\n",
"\n",
"$$\\displaystyle \\rho_1=r_1/a_0,\\qquad \\rho_2=r_2/a_0,\\qquad \\rho=R/a_0 \\qquad\\tag{64}$$\n",
"\n",
"The wavefunctions become \n",
"\n",
"$$\\displaystyle \\varphi_1=\\frac{1}{\\sqrt{\\pi a_0^3}}e^{-\\rho_1}, \\qquad \\varphi_2=\\frac{1}{\\sqrt{\\pi a_0^3}}e^{-\\rho_2} \\qquad\\tag{65}$$\n",
"\n",
"## 12.2 Calculating the overlap integral S\n",
"\n",
"Substituting for the atomic wavefunctions with the reduced distances and simplifying gives\n",
"\n",
"$$\\displaystyle S= \\frac{1}{\\pi a_0^3}\\int e^{-\\rho_1-\\rho_2}d\\tau \\qquad\\tag{66}$$\n",
"\n",
"To integrate over all coordinates $d\\tau$ we must know how this and $\\rho_1$ and $\\rho_2$ are related. The protons and electron are in real space so that $d\\tau$ is a volume element,\n",
"\n",
"$$\\displaystyle d\\tau = dxdydz$$\n",
"\n",
"and therefore the integral is three dimensional; a triple integral. The integral has coordinates in distances $r_1, r_2$ and $R$ which are presently in Cartesian $(x, y, z)$ coordinates which makes the calculation very difficult. Fortunately, in this problem the maths works out far easier if elliptic coordinates are used, which means transforming $(x, y, z) \\to (u, v, \\theta)$. The angle $\\theta$ is that around the z-axis. These new coordinates are used because they have an origin on each atom, see Figure 30. In this new coordinate system the volume element, or the Jacobian is,\n",
"\n",
"$$\\displaystyle d\\tau=dxdydz=\\frac{\\rho^3a_0^3}{8}(u^2-v^2)dudvd\\theta \\qquad\\tag{67}$$\n",
"\n",
"and the distances $\\rho_{1,2}$1 are defined in terms of $u$ and $v$ as,\n",
"\n",
"$$\\displaystyle \\rho_1=\\frac{u+v}{2}\\rho, \\qquad \\rho_2=\\frac{u-v}{2}\\rho \\qquad\\tag{68}$$\n",
"\n",
"All the elements with which to calculate the solution are assembled; To calculate the integral, first substitute for $d\\tau$ into the $S$ integral equation 66 and then substitute for $\\rho_1$ and $\\rho_2$ to give\n",
"\n",
"$$\\displaystyle S=\\frac{1}{\\pi a_0^3}\\int\\int\\int e^{-(u+v)\\rho/2}e^{-(u-v)\\rho/2} \\frac{\\rho^3a_0^3}{8}(u^2-v^2)dudvd\\theta $$\n",
"\n",
"and the limits are $ u =1\\to\\infty, \\quad v=-1 \\to 1, \\quad \\theta=0\\to 2\\pi$ and with some simplification the integral is \n",
"\n",
"$$\\displaystyle S=\\frac{\\rho^3}{8\\pi}\\int_0^{2\\pi}\\int_{-1}^{+1}\\int_1^\\infty e^{u\\rho}(u^2-v^2)dudvd\\theta $$\n",
"\n",
"Note the order of the limits with respect to the order of integration; this is $u, v,\\theta$. The integral in $\\theta$ can be separated out, because there is no term in $\\theta$, giving\n",
"\n",
"$$\\displaystyle S=\\frac{\\rho^3}{4}\\int_{-1}^{+1}\\int_1^\\infty e^{-\\rho} (u^2-v^2)dudv $$\n",
"\n",
"This is a standard integral and using Sympy produces \n",
"\n",
"$$\\displaystyle S=\\left(1+\\rho+ \\frac{\\rho^2}{3} \\right)e^{-\\rho} \\qquad\\tag{68a}$$\n",
"\n",
"where $\\rho = R/a_0$. The result shows that the overlap decreases with separation of the nuclei because the exponential decreases more rapidly than $\\rho^2$ increases."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAKoAAAAZCAYAAAChKLVZAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy89olMNAAAACXBIWXMAABJ0AAASdAHeZh94AAAHDUlEQVR4nO2be4xdVRWHv2mxoJYKUtpaoqQ1oG0xTClYhGK18h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C9LvI4k62+8kzejfRf3Yvol4szNZ0hNl9t0MmmmLVpAOTn9P0rmt1mUg+m0GJD0DbLPdU/KZCryW3CGBkpgH/OZwcNJEM23RCq4iVqZhT6X/mVpOHF79HH052fayB5c0pew+m0zTbDHU2D4ROCBpc6t1qYXCtwqSXiJO+E+ib3JeLVGkEV5NtpgIrGy1ErVS+D9TbdoMN/4PqGyhHmryJiMAAAAASUVORK5CYII=\n",
"text/latex": [
"$\\displaystyle \\left(\\frac{\\rho^{2}}{3} + \\rho + 1\\right) e^{- \\rho}$"
],
"text/plain": [
"⎛ 2 ⎞ \n",
"⎜ρ ⎟ -ρ\n",
"⎜── + ρ + 1⎟⋅ℯ \n",
"⎝3 ⎠ "
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"u, v, rho = symbols('u, v, rho',positive=True) \n",
"eq = (rho**3)* exp(-u*rho)*(u**2 - v**2) /4 # S overlap integral\n",
"simplify(integrate( integrate(eq,(u,1,oo)), (v,-1,1) ) ) # double integral"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 12.3 Calculation of the self-energy integrals $H_{11}$ and $H_{22}$\n",
"\n",
"The self-energy $H_{11}$ or equivalently $H_{22}$ is the energy the electron and proton 1 will have as if they formed an atom whose energy is influenced by a nearby positive charge, which is that of the other proton. Most of the calculation of this energy is done before actually calculating an integral but is complicated by the fact that the momentum $\\bar P$ is included in the Hamiltonian and this has to be dealt with. The equation is\n",
"\n",
"$$\\displaystyle \\qquad\\qquad \\begin{align} \n",
"H_{11} &=\\int\\varphi_iH\\varphi_1d\\tau \\\\\n",
"&=\\int\\varphi_1\\left(\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_1}-\\frac{q^2}{r_2}+\\frac{q^2}{R}\\right) \\varphi_1d\\tau \\\\\n",
"&=\\int\\varphi_1\\frac{\\bar p^2}{2m}\\varphi_1d\\tau -\\int\\varphi_1\\frac{q^2}{r_1}\\varphi_1d\\tau-\\int\\varphi_1\\frac{q^2}{r_2}\\varphi_1d\\tau+\\int\\varphi_1\\frac{q^2}{R} \\varphi_1d\\tau \\\\\n",
"\\end{align} \\qquad\\qquad\\qquad\\text{(69)}$$\n",
"\n",
"Understanding what each integral represents helps in their solution. Remember that as $H_{11}$ is calculated only the electron and proton 1 are involved. The $\\bar P^2/2m$ operator in the first integral represents the electron's kinetic energy and the second integral its potential energy with respect to proton 1. The first two integrals must, therefore, represent the lowest energy of a hydrogen atom, or minus one times the ionization energy, $-E_I$, where $E_I = q^2/2a_0$ or approx $13.6$ eV.\n",
"\n",
"The fourth integral is also easy to solve; the electron's atomic wavefunction $\\varphi$ (equation 65) does not depend upon the separation $R$ of the nuclei, but only on the electron's position $r$. This is because we have defined the nuclei to be fixed in space and so $R$ can be taken out of the integral. Therefore, because the wavefunctions are normalised the integral is,\n",
"\n",
"$$\\displaystyle \\int\\varphi_1\\frac{q^2}{R} \\varphi_1d\\tau= \\frac{q^2}{R}\\int\\varphi_i\\varphi_1 d\\tau =\\frac{q^2}{R}=\\frac{q^2}{\\rho a_0}$$\n",
"\n",
"So far the integral is \n",
"\n",
"$$\\displaystyle H_{11}= -E_I+\\frac{e^2}{R}-C \\qquad\\tag{70}$$\n",
"\n",
"where the third integral $C$ is called the _Coulomb Integral_ and is \n",
"\n",
"$$\\displaystyle C=\\int \\varphi_1 \\frac{q^2}{r_2}\\varphi_2 d\\tau \\qquad\\tag{71}$$\n",
"\n",
"This is calculated in a similar manner to the overlap integral. The Coulomb integral describes the electrostatic potential energy between proton 2 and the charge distribution of the electron when it is associated with the 1s orbital around proton 1. Substituting for the wavefunctions gives\n",
"\n",
"$$\\displaystyle C= \\frac{1}{\\pi a_0^3}\\int e^{-\\rho_1} \\frac{q^2}{\\rho_2a_0}e^{-\\rho_1}d\\tau = \\frac{q^2}{\\pi a_0^4}\\int \\frac{e^{-2\\rho_1} }{\\rho_2}d\\tau$$\n",
"\n",
"There are distances in $\\rho_1$ and $\\rho_2$ so it is necessary now to use the prolate spherical coordinates;\n",
"\n",
"$$\\displaystyle C= \\frac{q^2\\rho^3}{8\\pi a_0}\\int_0^{2\\pi}\\int_{-1}^1\\int_1^\\infty e^{u+v)\\rho} \\frac{u^2-v^2}{(u-v)\\rho/2}dudvd\\theta = \\frac{q^2\\rho^2}{2 a_0}\\int_{-1}^1\\int_1^\\infty e^{(u+v)\\rho} \\frac{u^2-v^2}{(u-v)}dudv $$\n",
"\n",
"where the integral over $\\theta$ was evaluated in the last step. Again using Sympy gives\n",
"\n",
"$$\\displaystyle C= \\frac{q^2}{a_0}\\frac{e^{-2\\rho}(e^{2\\rho}-\\rho-1)}{\\rho} \\qquad\\tag{71a}$$"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAPgAAAAZCAYAAAAcyeMsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy89olMNAAAACXBIWXMAABJ0AAASdAHeZh94AAAJBklEQVR4nO2ce7BVVR3HPxfwagUESTxFB5weIOpFJMbEQASVqOERjciokJgz3MRBDRuq8etPFBMbhEqmyUkgy3SCGkdBxyExbTDCBLXIzIicAkTIHqgoKP3xWwc2m30e+5x9zn10PjPMvqyzXvt3fmuv32Pt03Do0CHq1KnTPunQ0hOoU6dO9ehUSWMzmw9MAT4BvAP8Bpgv6fcltG2QVDcfIlQiz7ZAa/jO27uM41S6g48GlgGfBsYAB4F1ZvaRQo3M7AJgQIVjt0dGU4Y82xCTzKxHC89hNO1bxkfRkKUPbmadgX8DkyQ9nKfOx4DpkiyzgdspheRpZiOAJUATsB9YLGlBreeYBjNrBL4DXCPpYEvPB9qfjONk7YN3CX2+UaDO7cBdGY/bXkmUp5mNBdYAPwTOBBYBt5jZWTWfYQokvQs8Bny5pecSoV3JOE5FPngCS4EtwDNJH5rZucDbkv6T8bjtlWPkGXbBe4B5kpaH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6YHfl76vAqCg2UhKWdircZ3rGvxAxaDcLmWnQdtRTThh05m4EFa8ExLriyfPzsGf0vrKNqQzM7G01D5YlLTcF3vj/vRp+L6uBBfc1H/ew/uHveK9dGLSIwikFrPi74PHnyKV4G1kiYUrFwEM+uDBxMuKlq59D474jnVP0oaVqx+nZbF/AcfHpA0tqXnUi5mthAPfg2U9NcM+tsIPC/p6kjZy8Dq3HmAcvW8lHzi0HCt+EUGSTuB50JUPisGAx+g9i9a1CmPWUBb/7GPyfiCrHhxBxYDM83sKjMbFM7K98WPoOYoS8/TLPBKAmxRbgYuzzDYlnuaZTW/OlXCzE4BDuY5wNFmkDRIUlOG/T0IzMXN7C34K6yflRTN95el56W8LprZDg4g6Z3wqt4A/O2cSsndeH0Hb/30xXerOjEkLaPwbyWUpeeZ/iZbnTp1Whf/A0OU+VFTCalIAAAAAElFTkSuQmCC\n",
"text/latex": [
"$\\displaystyle \\frac{q^{2} \\left(- \\rho + e^{2 \\rho} - 1\\right) e^{- 2 \\rho}}{a_{0} \\rho}$"
],
"text/plain": [
" 2 ⎛ 2⋅ρ ⎞ -2⋅ρ\n",
"q ⋅⎝-ρ + ℯ - 1⎠⋅ℯ \n",
"────────────────────────\n",
" a₀⋅ρ "
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"u, v, rho, q, a0 = symbols('u, v, rho, q, a0',positive=True) \n",
"eq = (q**2*rho**2/(2*a0))* exp(-(u+v)*rho)*(u**2 - v**2)/(u - v) # C Coulomb integral\n",
"simplify(integrate( integrate(eq,(u,1,oo)) ,(v,-1,1) ) ) # Double integral"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The Coulomb Integral $C$ is large at small internuclear separation, where $1/\\rho$ is large, and decreases to zero at large $\\rho$, when $1/\\rho \\to 0$ and the exponential term is small. Plotting the energy $H_{11}$ as a function of $\\rho$ shows that $H_{11}$ is large at small separation because $C$ is large, but constantly decreases and then reaches a constant value of $-E_I$ at large proton separation.\n",
"\n",
"![Drawing](integration-fig30a.png)\n",
"\n",
"Figure 30A. The integrals $S$ overlap, $A$ exchange and coulomb $C$ integrals vs, $\\rho$. The Coulomb integral does eventually become zero but much more slowly than either $S$ or $A$. ($q$ and $a_0$ were each set to unity.)\n",
"_____\n",
"\n",
"## 12.4 Calculation of interaction energy integral $H_{12}$\n",
"\n",
"Integrals such as $H_{12}$ are said to 'cause' the interaction between the electron and each nucleus and lead to the formation of the bond. This is because this integral measures the interaction of the electron on one atom with the other atom and bonds can only be formed if electrons interact between atoms.\n",
"\n",
"Following the procedure for $H_{11}$ the integral to be evaluated is\n",
"\n",
"$$\\displaystyle \\qquad\\begin{align} \n",
"H_{12} &=\\int\\varphi_iH\\varphi_2d\\tau \\\\\n",
"&=\\int\\varphi_1\\left(\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_1}-\\frac{q^2}{r_2}+\\frac{q^2}{R}\\right) \\varphi_2d\\tau \\\\\n",
"&=\\int\\varphi_1\\left(\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_2}\\right)\\varphi_2d\\tau-\\int\\varphi_1\\frac{q^2}{r_1}\\varphi_2d\\tau+\\int\\varphi_1\\frac{q^2}{R} \\varphi_2d\\tau \\\\\n",
"\\end{align} \\qquad\\qquad\\text{(72)}$$\n",
"\n",
"\n",
"Because the atomic orbitals $\\varphi_1$ and $\\varphi_2$ form the basis set for our calculation the first of the three separate integrals is related to the ionization energy of the atom just as in the integral $H_{11}$. However, the calculation is not the same because the second orbital is $\\varphi_2$. To evaluate the integral, it is multiplied by 1 in the form of the wavefunction normalization, $\\int \\varphi_1\\varphi_1d\\tau = 1$. This cunning 'trick' is valid! The integral is rearranged as follows,\n",
"\n",
"$$\\displaystyle \\begin{align}\n",
"I_1&= \\int\\varphi_1\\left(\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_2}\\right)\\varphi_2d\\tau\\int \\varphi_1\\varphi_1d\\tau\\\\ \n",
"&=\\int\\varphi_1\\left(\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_2}\\right)\\varphi_2\\varphi_1\\varphi_1d\\tau \\\\\n",
"&= \\int\\varphi_1\\left(\\frac{\\bar p^2}{2m}-\\frac{q^2}{r_2}\\right)\\varphi_1d\\tau\\int \\varphi_1\\varphi_2d\\tau\\\\\n",
"&=-E_IS\n",
"\\end{align}$$\n",
"\n",
"In the second step, the integrals are merged as the integration is over the same coordinates, represented as $d\\tau$. In the third step, the integrals are separated after rearranging terms and in the last step, they are identified as an integral already calculated. The first integral is the same as in equation 69 and the second is the overlap integral $S$, equation 68a.\n",
"\n",
"The second integral of $H_{12}$ has the form\n",
"\n",
"$$\\displaystyle A=\\int \\varphi_1\\frac{q^2}{r_1}\\varphi_2d\\tau \\qquad\\tag{73}$$\n",
"\n",
"and is called the _resonance_ or _exchange integral_ and is not zero. It expresses the possibility of the electron moving from the neighbourhood of one proton to that of the other and is a purely quantum effect: it has no classical counterpart. The variation of $A$ with separation $\\rho$ is shown in figure 30A. Question 87 suggests how to calculate the exchange integral $A$.\n",
"\n",
"If at some time we could start the electron in orbital $\\varphi_1$ and compel its wavefunction at later times to have the form $c_1\\varphi_1 + c_2\\varphi_2$, so it is 'shared' between two orbitals, then the values of $c_1$ and $c_2$ would oscillate with time. This means that after a certain time interval the wavefunction would be $\\varphi_2$ and shortly after this, it would return to $\\varphi_1$ and so on. This quantum mechanical oscillation is, by analogy with the mechanical oscillation, called resonance. \n",
"\n",
"The total integral is therefore\n",
"\n",
"$$\\displaystyle H_{12} = -E_IS +\\frac{q^2S}{R}-A \\qquad\\tag{74}$$\n",
"\n",
"where $R$ is the internuclear separation. If the energy $H_{12}$ is plotted it has a minimum energy at a distance somewhat shorter than that measured for the chemical bond, and is zero at large internuclear separation. It is zero because the overlap integral is zero at large $\\rho$ as is the resonance integral, see Q 87 for further calculations.\n",
"\n",
"Plotting the energies $E_+$ and $E_-$ vs $\\rho$ produces Figure 31. It is clear from the shape of the curves that a minimum in the energy exists for the $E_+$ and not for the energy $E_-$. The minimum energy calculated and hence bond length occurs at $\\approx 2.5a_0$ or $130$ pm. The experimental value is $106$ pm (Herzberg 1950), so this simple model produces a reasonably good result.\n",
"\n",
"![Drawing](integration-fig31.png) \n",
"\n",
"Figure 31. Energies $E_+ , E_-$ (dashed green line) vs reduced internuclear separation $\\rho = a_0R$ and energy in units of ionization energy $E_I$. (In this plot $q=1, a_0=1$)\n",
"_____\n",
"\n",
"## 12.5 The origin of the Chemical Bond and the Virial Theorem.\n",
"\n",
"### **The chemical bond forms due to a lowering of the electronic potential energy.**\n",
"\n",
"When the separation between the protons is reduced from a large value, the energy of their mutual (electrostatic) repulsion increases. The fact that the total energy of H$_2^+$ passes through a minimum as a bond forms means that the electronic energy decreases faster than the repulsion $q^2/R$ increases but at very short distances $R\\to 0$ the nuclear repulsion dominates. At any bond length, the total energy $E$ has to be the sum of the electron's kinetic and potential energies, $E=\\langle T\\rangle + \\langle V\\rangle$, hence the question is: does the lowering of the electronic energy arise from a reduction in the electronic potential energy or a lowering of the kinetic energy or from both?\n",
"\n",
"To answer this question, the Virial Theorem can be used. This is a theorem from the study of mechanics and is extremely powerful as it can be applied to any (bounded, conservative) mechanical system (Goldstein 1980, Hamill 2014) such as a planet orbiting its sun. The theorem is statistical in nature because it calculates the average kinetic energy $\\langle T\\rangle$ (over time) and shows that this is proportional to the average potential energy $\\langle V\\rangle$, i.e. $\\langle T\\rangle \\propto \\langle V\\rangle$. In the case that the potential is a power law $V(r)\\propto r^{n+1}$ the relationship becomes \n",
"\n",
"$$\\displaystyle \\langle T\\rangle = \\frac{(n+1)}{2}\\langle V\\rangle$$\n",
"\n",
"In the H$_2^+$ molecule the kinetic and potential energy can be determined rigorously. To do this the variation of the total energy $E$, with respect to the positions of the nuclei must be known. In the special case of a diatomic molecule the kinetic energy of the electron $\\langle T_e\\rangle$ and the potential energy $\\langle V\\rangle$ are given by (C. Cohen-Tannoudji, B. Du, F. Laloe, 'Quantum Mechanics' vol 2) \n",
"\n",
"$$\\displaystyle \\langle T_e\\rangle = -E - R\\frac{dE}{dR} \\qquad\\tag{75}$$\n",
"\n",
"$$\\displaystyle \\langle V\\rangle = 2E + R\\frac{dE}{dR} \\qquad\\tag{76}$$\n",
"\n",
"Using results already calculated, Figure 32 shows that both the kinetic and potential energy have a minimum in the region of the bond but that the decrease in kinetic energy is very small compared to that in the potential energy. The minimum in total energy when the bond is formed is at $\\rho \\approx 2.5$, see dotted line in Figure 32, and is $E_+$, see Figure 31. The decrease in potential energy when the two nuclei come together therefore dominates the stabilization of the chemical bond because the kinetic energy is rising slightly at the bond minimum but the potential energy is falling rapidly. If the kinetic and potential contributions to the energy of the anti-bonding orbital $E_-$ are calculated, the potential energy still shows a small minimum but this is dominated by a large positive kinetic energy contribution, leading to no overall minimum in the energy.\n",
"\n",
"![Drawing](integration-fig32.png)\n",
"\n",
"Figure 32. The kinetic energy $T_e$ of the electron and the potential energy $V$ in H$_2^+$ vs reduced internuclear separation $\\rho$. The total energy $E_+$ is the dotted curve and the dot shows the minimum energy.\n",
"_____\n",
"\n",
"At the minimum energy the gradient $dE/dR=0$ and then $\\langle T_e\\rangle_0 = -E_0;\\langle V \\rangle_0 = 2E_0 $, where the zero subscripts indicate the minimum energy. When the nuclear are far distant from one another only atoms exist and again $dE/dR=0$ and in this case similarly $\\langle T_e\\rangle_\\infty = -E_\\infty;\\langle V \\rangle_\\infty= 2E_\\infty $. Subtracting these pairs of equations gives\n",
"\n",
"$$\\displaystyle \\begin{array}{ll} \\\\ \n",
" \\langle T_e\\rangle_0 -\\langle T_e\\rangle_\\infty & = E_\\infty - E_0&\\gt 0 \\\\\n",
" \\langle V\\rangle_0 -\\langle V \\rangle_\\infty & = -2(E_\\infty- E_0)&\\lt 0\n",
"\\end{array} $$\n",
"\n",
"which shows that the formation of a chemical bond always involves an increase in the kinetic energy of all electrons and a decrease in potential energy.\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 12.6 Footnote: The Viral Theorem\n",
"\n",
"The general motion of a cloud of particles can be studied with the Virial Theorem. These 'particles' may be gaseous molecules, or dust or even stars, but in each case the whole assembly must not be subject to any external forces. Our derivation follows Chandrasekhar (1968) and Jeans (1982). Newton's equation, force equals mass times acceleration, is a starting point,\n",
"\n",
"$$\\displaystyle X=m\\frac{d^2x}{dt^2}, \\quad Y=m\\frac{d^2y}{dt^2},\\quad Z=m\\frac{d^2z}{dt^2}$$\n",
"\n",
"where $x,y,x$ are the particle's position, which is a function of time, $t$ and $X,Y,Z$ are component forces along directions $x,y,z$. The kinetic and potential energy can be calculated by multiplying the force in each direction by $x,y,z$ as appropriate, viz,\n",
"\n",
"$$\\displaystyle xX+yY+zZ = m\\left( x\\frac{d^2x}{dt^2}+y\\frac{d^2y}{dt^2}+z\\frac{d^2z}{dt^2} \\right)$$\n",
"\n",
"Using the identity\n",
"\n",
"$$\\displaystyle \\frac{d}{dt}\\left( x\\frac{dx}{dt} \\right) = x\\frac{d^2x}{dt^2}+\\left( \\frac{dx}{dt}\\right)^2$$\n",
"\n",
"the total expression becomes\n",
"\n",
"$$\\displaystyle \\begin{align}xX+yY+zZ &=m\\frac{d}{dt}\\left( x\\frac{dx}{dt}+y\\frac{dy}{dt}+z\\frac{dz}{dt} \\right)-m\\left( \\left( \\frac{dx}{dt}\\right)^2+\\left( \\frac{dy}{dt}\\right)^2+ \\left( \\frac{dz}{dt}\\right)^2\\right)\\\\\n",
"&= \\frac{m}{2}\\frac{d}{dt}\\left( \\frac{d}{dt}(x^2+y^2+z^2) \\right)- mv^2 \\end{align}$$\n",
"\n",
"and as $dx/dt$ is the velocity component along the $x$ axis, and similarly for $y$ and $z$, the second term on the right hand side is twice the total kinetic energy. As time progresses the term $\\frac{d}{dt}(x^2+y^2+z^2)$ fluctuates in value but has no tendency to increase or decrease, because no external forces act, thus the time average is zero and this term disappears. As $mx^2$ represents the component of angular momentum along the $x$ axis, if we define the distance from the origin as $r^2= x^2+y^2+z^2$ then $mr^2$ represents the angular momentum and if this does not change with time this term is zero. \n",
"\n",
"Summing over all the molecules gives, \n",
"\n",
"$$ \\sum m v^2 = -\\sum (xX+yY+zZ) $$\n",
"\n",
"and the right hand term is called the 'Virial of Clausius' and represents the potential energy since $X,Y,Z$ are forces. The left hand term is twice the kinetic energy. This equation is sometimes written as, for example,\n",
"\n",
"$$\\displaystyle 2\\text{T}+\\Omega =0$$\n",
"\n",
"where $\\text{T}$ is the kinetic energy and $\\Omega$ the potential energy.\n",
"\n",
"What form the Virial takes depends on the particular situation. If dealing with dust particles in space where the density is minute, gravity between particles is important because this is the only long range force, but if dealing with molecules intermolecular forces will dominate, or if an ideal gas is in a vessel then wall collisions define the Virial since for an ideal gas intermolecular forces are absent.\n",
"\n",
"If the force between two molecules is of the form $\\varphi(r)$ at distance apart $r$, where $r^2=(x-x')^2+(y-y')^2+(z-z')^2$ and the particles centres are at $x,y,z$ and $x',y',z'$ and $X,Y,Z$ and $X',Y',Z'$ components of the forces acting on them, then, \n",
"\n",
"$$\\displaystyle X=\\varphi(r)\\frac{x-x'}{r},\\quad X'=-X,\\quad \\text{etc.}$$\n",
"\n",
"and the force between them is\n",
"\n",
"$$\\displaystyle xX+x'X'=\\frac{\\varphi(r)}{r}(x-x')^2$$\n",
"\n",
"giving in total,\n",
"\n",
"$$\\displaystyle \\frac{\\varphi(r)}{r}\\left((x-x')^2+(y-y')^2+(z-z')^2\\right)=r\\varphi(r)$$\n",
"\n",
"In this case the virial is\n",
"\n",
"$$\\displaystyle \\sum (xX+yY+zZ)=\\sum\\sum r\\varphi(r)$$\n",
"\n",
"where the sum is double and is now over all particles and $N(N-1)/2$ pairs pairs of particles. If the interaction is due to gravity then $\\varphi(r)=-Gmm'/r^2$ for two masses $m,m'$ and $G$ is the gravitational constant. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}