{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Solutions Q1 - 7"
]
},
{
"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",
"from numpy import linalg as LA\n",
"import matplotlib.pyplot as plt\n",
"from sympy import *\n",
"init_printing() # allows printing of SymPy results in typeset maths format\n",
"plt.rcParams.update({'font.size': 16}) # set font size for plots"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Q1 answer\n",
"There is no linearly polarized light present so none can cause transitions. If it were present, however, the $μ\\mu_z$ components of the dipole operator would be used and have the selection rules $\\Delta s=0, \\Delta m=0$ or $s_1 =s_2$ and $m_1 =m_2$. However, all of these terms will be zero because $m$ must change in any transition to conserve angular momentum. Therefore, all parts of the transition matrix containing $\\mu_z$ are zero. In other words, electric dipole transitions do not couple to spin angular momentum.\n",
"\n",
"The magnetic dipole transitions have the $\\Delta m = \\pm 1$ selection rule. To find out what transitions are to be expected start with the ordering of quantum numbers $m_a, m_b$ in the $sm$ basis chosen. This ordering is\n",
"$(m_a, m_b) = (1/2, 1/2), (1/2, -1/2), (-1/2, 1/2), (-1/2, -1/2)$ and transitions are allowed only between states with $\\Delta m = \\pm 1$ and these are\n",
"\n",
"$$\\displaystyle \\begin{array}{rrrrrrr}\n",
"\\hline\n",
"m_a & m_b & & m_a & m_b & \\text{matrix position} \\\\\n",
"\\hline\n",
"1/2 & 1/2 & \\to & 1/2 & -1/2 & 1-2, 2-1 \\\\\n",
"1/2 & 1/2 & \\to & -1/2 & 1/2 & 1-3, 3-1 \\\\ \n",
"1/2 & -1/2 & \\to & -1/2 & -1/2 & 2-4, 4-2 \\\\ \n",
"-1/2 & 1/2 & \\to & -1/2 & -1/2 & 3-4, 4-3 \\\\\n",
"\\hline\\end{array}$$\n",
"\n",
"which are the four transitions shown in figure 2. In each case only one spin quantum number changes by one unit of angular momentum in each transition.\n",
"\n",
"The effect of the $x$ and $y$ components is always zero on the diagonal of the transition matrix because here $\\Delta m = 0$ for both spin quantum numbers $m_a$ and $m_b$,\n",
"\n",
"$$\\displaystyle T_{ii}=\\langle sm_{ai}sm_{bi}|\\gamma_a\\pmb{\\mu}_{a\\pm}+\\gamma_b\\pmb{\\mu}_{b\\pm}|sm_{ai}sm_{bi}\\rangle = 0$$\n",
"\n",
"and to conserve angular momentum $\\Delta m = \\pm 1$. The off- diagonal terms are not zero if the transition is such that $m_j = m_i \\pm 1$ for either nucleus $a$ or $b$. As an example, the 1, 2 element of the basis set with quantum numbers in the first row $m_{a1} = 1/2, m_{b1} = 1/2$ and in the second column, $m_{a2} = 1/2\n",
", m_{b2} =-1/2$ ,therefore, $m_{a1} =m_{a2}$ and $m_{b2} =m_{b1} -1$. \n",
"\n",
"In calculating the $T_{+12}$ term with $\\Delta m = 1$ and the operator $\\pmb{\\mu}_+$, recall that a spin (angular momentum) operator only acts on wavefunctions with the same subscript, $a$ or $b$.\n",
"\n",
"$$\\displaystyle \\begin{align}T_{+12}&=\\langle sm_{a1}sm_{b1}|\\gamma_a\\pmb{\\mu}_{a+}+\\gamma_b\\pmb{\\mu}_{b+}|sm_{a2}sm_{b2}\\rangle\\\\&=\n",
"\\gamma_a \\langle sm_{a1}|\\pmb{\\mu}_{a+}|sm_{a2}\\rangle \\langle sm_{b1}|sm_{b2}\\rangle + \\gamma_b \\langle sm_{b1}|\\pmb{\\mu}_{b+}|sm_{b2}\\rangle \\langle sm_{a2}|sm_{a2}\\rangle \\\\ &= \\gamma_b\\sqrt{\\frac{1}{2}\\frac{3}{2}-m_{b1}(m_{b1}+1)}\\end{align} $$\n",
"\n",
"The $\\gamma_a$ term in the middle equation is zero because $m_{b1} \\ne m_{b2}$, and the wavefunctions are orthogonal\n",
"\n",
"$$\\displaystyle \\langle sm_{b1}|sm_{b2}\\rangle = \\left\\langle s\\frac{1}{2}\\;\\bigg|\\;s\\frac{-1}{2}\\right\\rangle =0$$\n",
"\n",
"The second term is not necessarily zero because $m_{a1} = m_{a2}$. However, $m_{b1} = 1/2$, therefore\n",
"\n",
"$$\\displaystyle T_{+12}= \\gamma_b\\sqrt{\\frac{1}{2}\\frac{3}{2}-\\frac{1}{2}\\left(\\frac{1}{2}+1\\right)}=0 $$\n",
"\n",
"and this transition is not allowed. \n",
"\n",
"When $\\Delta m = -1$ for one of the pair of nuclei, and the other m values are the same, in this case ma, the operator is $\\pmb{\\mu}_-$. The expression for $T_{-12}$ is similar but not the same as that for $T_{+12}$\n",
"\n",
"$$\\displaystyle \\begin{align}T_{+12}&=\\langle sm_{a1}sm_{b1}|\\gamma_a\\pmb{\\mu}_{a-}+\\gamma_b\\pmb{\\mu}_{b-}|sm_{a2}sm_{b2}\\rangle\\\\&=\n",
" \\gamma_b\\sqrt{\\frac{1}{2}\\frac{3}{2}-m_{b1}(m_{b1}-1)} \\\\&=\\gamma_b\\sqrt{\\frac{1}{2}\\frac{3}{2}-\\frac{1}{2}\\left(\\frac{1}{2}-1\\right)}\\\\&=\\gamma_b\\end{align}$$ \n",
" \n",
"Repeating similar calculations for other matrix elements generates the complete magnetic transition dipole matrix as\n",
"\n",
"$$\\displaystyle \\pmb{\\mu} = \\begin{bmatrix} 0 & \\gamma_b & \\gamma_a & 0\\\\\\gamma_b & 0 & 0 & \\gamma_a\\\\ \\gamma_a & 0 & 0 & \\gamma_b\\\\ 0 & \\gamma_a & \\gamma_b & 0\\end{bmatrix}$$\n",
"\n",
"therefore, the strength of the transition is determined by the size of the magnetogyric ratio. As with any type of 'optical' transition, the strength of the transition also depends upon the population difference between the two states involved and this is determined by the Boltzmann distribution. The greater the population difference is the greater the signal is, therefore, a lower temperature and/or a bigger energy gap, which is proportional to the magnetogyric ratio and the applied field, produces larger NMR signals.\n",
"\n",
"**Exercise:** Write some Python/Sympy code to do this calculation.\n",
"\n",
"## Q2 answer\n",
"By analogy with equation 22,the Hamiltonian is \n",
"\n",
"$$\\displaystyle H = g \\beta S_zB − g_Nβ_NI_zB + a(S_xI_x + S_yI_y + S_zI_z)$$\n",
"\n",
"where $S$ refers to the electron and $I$ to the proton spin. Using a basis set notation as $|\\alpha\\alpha\\rangle = (1/2, 1/2)(1/2, 1/2), |\\alpha\\beta\\rangle = (1/2, 1/2)(1/2, -1/2)$, and so forth, which is in the same ordering as in the text, if the first letter refers to electron spin and the second to nuclear spin, the Hamiltonian matrix can be written down as\n",
"\n",
"$$\\displaystyle \\begin{align}&\\qquad\\qquad\\qquad\\begin{matrix} \\quad|\\alpha\\alpha\\rangle \\qquad &\\qquad\\quad|\\alpha\\beta\\rangle \\qquad&\\qquad \\quad|\\beta\\alpha\\rangle \\qquad& \\qquad\\qquad\\quad|\\beta\\beta\\rangle \\end{matrix}\\\\ &\\begin{matrix} |\\alpha\\alpha\\rangle \\\\|\\alpha\\beta\\rangle \\\\ |\\beta\\alpha\\rangle \\\\ |\\beta\\beta\\rangle \\end{matrix} \n",
"\\begin{bmatrix} (G-G_N)/2+a/4 & 0 & 0 & 0\\\\ 0 & (G+G_N)/2-a/4 & a/2 & 0\\\\0 & a/2 & -(G+G_N)/2-a/4 &0\\\\ 0 & 0 & 0 & -(G-G_N)/2+a/4 \\end{bmatrix} \\end{align}$$\n",
"\n",
"with the abbreviations $G = g\\beta B, G_N = g_N\\beta_NB$. (Do not confuse $\\beta$ in the equation for $G$ with $\\beta$ used in the basis set). The matrix shows how the states $| \\alpha\\beta \\rangle$ and $| \\beta\\alpha \\rangle$ are mixed by the electron and nuclear spin interaction because these are the only states with off-diagonal terms. The matrix can be diagonalized by blocking it into two $1 \\times 1$ matrices and a $2 \\times 2$ matrix, therefore two of the energies can be read directly from the matrix. The states that mix have different energies at zero $B$ and move apart as they all do as $B$ is increased.\n",
"\n",
"Calculating the eigenvalues can be done using Python/Sympy, although the $2 \\times 2$ matrix can be diagonalized by hand. The result is\n",
"\n",
"$$\\displaystyle\\begin{align} E_{\\alpha\\alpha}&=\\frac{a}{4}+\\frac{g\\beta-g_N\\beta_N}{2}B \\\\\n",
"E_{\\alpha\\beta+\\beta\\alpha}&=-\\frac{a}{4}+\\frac{\\sqrt{a^2+(g\\beta+g_N\\beta_N)B^2}}{2}\\\\\n",
"E_{\\alpha\\beta-\\beta\\alpha}&=-\\frac{a}{4}-\\frac{\\sqrt{a^2+(g\\beta+g_N\\beta_N)B^2}}{2}\\\\\n",
"E_{\\beta\\beta}&=\\frac{a}{4}-\\frac{g\\beta-g_N\\beta_N}{2}B \\end{align}$$\n",
"\n",
"The energy levels vs B are shown in Figure 6. The separation of levels at zero field is $a$, as may be confirmed from the energy levels; the lowest level is at $-3a/4$ and the other three at $a/4$. By inspecting the eigenvalues with basis-set ordering, the composition of the levels can be determined. At high field, the states with the same electron spin ms quantum number $1/2$, which are the two lower and two upper states, are separated by a constant amount a/2, irrespective of the magnetic field B. Also at high field, (Fig. 6) the states can be labelled with the basis set values because mixing between states is small; the off-diagonal terms are small because $B$ is large. At small or zero $B$, the states $|\\alpha\\beta\\rangle$ and $|\\beta\\alpha\\rangle$ are mixed and it is better to describe them as a symmetric and symmetric pair, $(|\\alpha\\beta\\rangle\\pm|\\beta\\alpha\\rangle)\\sqrt{2}$. \n",
"\n",
"The three levels at zero field form a triplet \n",
"\n",
"$$|\\alpha\\alpha \\rangle,|\\beta\\beta \\rangle,(|\\alpha\\beta\\rangle+|\\beta\\alpha\\rangle)/\\sqrt{2}$$\n",
"\n",
"with energy $a/4$, and the other state is a singlet, \n",
"\n",
"$$(|\\alpha\\beta\\rangle-|\\beta\\alpha\\rangle)/\\sqrt{2}$$\n",
"\n",
"with energy $-3a/4$. This latter case has total nuclear and electron spin $F = I + S$ of zero, the former a total of $1$ with components in a Clebsch-Gordon series of \n",
"\n",
"$$|I+S|,|I+S-1|\\cdots |I-S|\\quad \\text{or}\\quad 1/2+1/2,1/2+1/2-1,-1/2-1/2$$\n",
"\n",
"or of $1,0,-1$.\n",
"\n",
"![Drawing](matricesQM-fig6.png)\n",
"\n",
"Figure 6. The Zeeman effect on the hyperfine structure ground state of hydrogen atoms, (1s $^2\\mathrm{S_{1/2}}$ state) vs field strength $B$ in Tesla.\n",
"______\n",
"\n",
"## Q3 answer\n",
"Because the nuclei interact pair-wise the Hamiltonian has the form \n",
"\n",
"$$\\displaystyle H_S=-q_aI_{az}-q_bI_{bz}-q_cI_{cz}-J_{ab}\\pmb{I}_a\\cdot\\pmb{I}_b +J_{ac}\\pmb{I}_a\\cdot\\pmb{I}_c+ J_{bc}\\pmb{I}_b\\cdot\\pmb{I}_c $$\n",
"\n",
"If the basis set is constructed in terms of $\\alpha$ and $\\beta$ for simplicity rather than $1/2, -1/2$, then the ordering below gives a block diagonal matrix.\n",
"\n",
"$$\\displaystyle \\begin{matrix}1&2&3&4&5&6&7&8\\\\\n",
"\\alpha & \\alpha & \\beta & \\alpha & \\beta & \\alpha & \\beta & \\beta \\\\ \n",
"\\alpha & \\beta & \\alpha &\\alpha & \\beta & \\beta& \\alpha & \\beta \\\\ \n",
"\\alpha &\\alpha &\\alpha & \\beta& \\alpha & \\beta & \\beta & \\beta \\end{matrix}$$\n",
"\n",
"The matrix elements are constructed using equations 19 $\\to$ 21. The matrix has the form shown below where the symbol QJ means a sum of terms in chemical shift and J means terms in spin-spin ($J$) coupling alone. Each of the $QJ$ and most of the $J$ terms are different from one another. The blocking into smaller matrices is clear.\n",
"\n",
"$$\\displaystyle \\begin{bmatrix}\n",
"QJ& 0 & 0& 0& 0& 0& 0& 0\\\\\n",
"0 & QJ & J& J& 0& 0& 0& 0\\\\\n",
"0 & J & QJ & J & 0& 0& 0& 0\\\\\n",
"0 & J & J & QJ & 0& 0& 0& 0\\\\\n",
"0 & 0 & 0& 0 & QJ & J & J & 0\\\\\n",
"0 &0 &0 &0 & J & QJ & J & 0\\\\ \n",
"0 &0 &0 &0 & J & J & QJ & 0\\\\\n",
"0 &0 &0 &0 &0 &0 &0 & QJ\\end{bmatrix}$$\n",
"\n",
"The Python/Sympy code is modified from that in the text is shown below. The result is large so is not included, remove # before $H$ in the last line to see it when doing the calculation."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$\\displaystyle \\left[\\begin{matrix}0.25 Jab + 0.25 Jac + 0.25 Jbc - 0.5 \\hbar^{2} qa - 0.5 \\hbar^{2} qb - 0.5 \\hbar^{2} qc & 0 & 0 & 0 & 0 & 0 & 0 & 0\\\\0 & - 0.25 Jab + 0.25 Jac - 0.25 Jbc - 0.5 \\hbar^{2} qa + 0.5 \\hbar^{2} qb - 0.5 \\hbar^{2} qc & 0.5 Jab & 0.5 Jbc & 0 & 0 & 0 & 0\\\\0 & 0.5 Jab & - 0.25 Jab - 0.25 Jac + 0.25 Jbc + 0.5 \\hbar^{2} qa - 0.5 \\hbar^{2} qb - 0.5 \\hbar^{2} qc & 0.5 Jac & 0 & 0 & 0 & 0\\\\0 & 0.5 Jbc & 0.5 Jac & 0.25 Jab - 0.25 Jac - 0.25 Jbc - 0.5 \\hbar^{2} qa - 0.5 \\hbar^{2} qb + 0.5 \\hbar^{2} qc & 0 & 0 & 0 & 0\\\\0 & 0 & 0 & 0 & 0.25 Jab - 0.25 Jac - 0.25 Jbc + 0.5 \\hbar^{2} qa + 0.5 \\hbar^{2} qb - 0.5 \\hbar^{2} qc & 0.5 Jac & 0.5 Jbc & 0\\\\0 & 0 & 0 & 0 & 0.5 Jac & - 0.25 Jab - 0.25 Jac + 0.25 Jbc - 0.5 \\hbar^{2} qa + 0.5 \\hbar^{2} qb + 0.5 \\hbar^{2} qc & 0.5 Jab & 0\\\\0 & 0 & 0 & 0 & 0.5 Jbc & 0.5 Jab & - 0.25 Jab + 0.25 Jac - 0.25 Jbc + 0.5 \\hbar^{2} qa - 0.5 \\hbar^{2} qb + 0.5 \\hbar^{2} qc & 0\\\\0 & 0 & 0 & 0 & 0 & 0 & 0 & 0.25 Jab + 0.25 Jac + 0.25 Jbc + 0.5 \\hbar^{2} qa + 0.5 \\hbar^{2} qb + 0.5 \\hbar^{2} qc\\end{matrix}\\right]$"
],
"text/plain": [
"⎡ 2 2 2 \n",
"⎢0.25⋅Jab + 0.25⋅Jac + 0.25⋅Jbc - 0.5⋅h̅ ⋅qa - 0.5⋅h̅ ⋅qb - 0.5⋅h̅ ⋅qc \n",
"⎢ \n",
"⎢ \n",
"⎢ 0 -0.25⋅Jab\n",
"⎢ \n",
"⎢ \n",
"⎢ 0 \n",
"⎢ \n",
"⎢ \n",
"⎢ 0 \n",
"⎢ \n",
"⎢ \n",
"⎢ 0 \n",
"⎢ \n",
"⎢ \n",
"⎢ 0 \n",
"⎢ \n",
"⎢ \n",
"⎢ 0 \n",
"⎢ \n",
"⎢ \n",
"⎣ 0 \n",
"\n",
" \n",
" 0 \n",
" \n",
" 2 2 2 \n",
" + 0.25⋅Jac - 0.25⋅Jbc - 0.5⋅h̅ ⋅qa + 0.5⋅h̅ ⋅qb - 0.5⋅h̅ ⋅qc \n",
" \n",
" \n",
" 0.5⋅Jab -0.25⋅Jab - 0.25⋅J\n",
" \n",
" \n",
" 0.5⋅Jbc \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
"\n",
" \n",
" 0 \n",
" \n",
" \n",
" 0.5⋅Jab \n",
" \n",
" 2 2 2 \n",
"ac + 0.25⋅Jbc + 0.5⋅h̅ ⋅qa - 0.5⋅h̅ ⋅qb - 0.5⋅h̅ ⋅qc \n",
" \n",
" \n",
" 0.5⋅Jac 0.25⋅Jab - 0.25⋅Jac - 0.25⋅\n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
"\n",
" \n",
" 0 0 \n",
" \n",
" \n",
" 0.5⋅Jbc 0 \n",
" \n",
" \n",
" 0.5⋅Jac 0 \n",
" \n",
" 2 2 2 \n",
"Jbc - 0.5⋅h̅ ⋅qa - 0.5⋅h̅ ⋅qb + 0.5⋅h̅ ⋅qc 0 \n",
" \n",
" \n",
" 0 0.25⋅Jab - 0.25⋅Jac - 0.25⋅Jbc + 0.5⋅\n",
" \n",
" \n",
" 0 0.5⋅Jac \n",
" \n",
" \n",
" 0 0.5⋅Jbc \n",
" \n",
" \n",
" 0 0 \n",
"\n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" 2 2 2 \n",
"h̅ ⋅qa + 0.5⋅h̅ ⋅qb - 0.5⋅h̅ ⋅qc 0.5⋅Jac \n",
" \n",
" 2 \n",
" -0.25⋅Jab - 0.25⋅Jac + 0.25⋅Jbc - 0.5⋅h̅ ⋅qa + \n",
" \n",
" \n",
" 0.5⋅Jab \n",
" \n",
" \n",
" 0 \n",
"\n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0.5⋅Jbc \n",
" \n",
" 2 2 \n",
"0.5⋅h̅ ⋅qb + 0.5⋅h̅ ⋅qc 0.5⋅Jab \n",
" \n",
" 2 2 \n",
" -0.25⋅Jab + 0.25⋅Jac - 0.25⋅Jbc + 0.5⋅h̅ ⋅qa - 0.5⋅h̅ ⋅q\n",
" \n",
" \n",
" 0 \n",
"\n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" \n",
" 0 \n",
" \n",
" 2 \n",
"b + 0.5⋅h̅ ⋅qc 0 \n",
" \n",
" 2 2 2 \n",
" 0.25⋅Jab + 0.25⋅Jac + 0.25⋅Jbc + 0.5⋅h̅ ⋅qa + 0.5⋅h̅ ⋅qb + 0.5⋅h̅\n",
"\n",
" ⎤\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⎥\n",
" ⋅qc⎦"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"i,k,ma,mb,n,Ix,Iy,Iz,qa,qb,qc,hbar,Jab,Jbc,Jac\\\n",
" = symbols('i,k,ma,mb,n,Ix,Iy,Iz,qa,qb,qc,hbar,Jab,Jbc,Jac')\n",
"\n",
"#------------------------------\n",
"def Iz(sa, ma, sb, mb):\n",
" if ma == mb: return hbar*ma # \n",
" else: return 0\n",
"#------------------------------\n",
"def Iy(sa, ma, sb, mb): # -i\n",
" if mb == ma+1: return ( 1j*hbar/2)*sqrt(sa*(sa+1)-ma*(ma+1) )\n",
" elif mb == ma-1: return (-1j*hbar/2)*sqrt(sa*(sa+1)-ma*(ma-1) )\n",
" else: return 0\n",
"#------------------------------ \n",
"def Ix(sa, ma, sb, mb): # \n",
" if mb == ma+1: return ( hbar/2)*sqrt(sa*(sa+1)-ma*(ma+1) )\n",
" elif mb == ma-1: return ( hbar/2)*sqrt(sa*(sa+1)-ma*(ma-1) )\n",
" else: return 0\n",
"#-------------------------------\n",
"def delta(p, q):\n",
" if p == q: return 1\n",
" else: return 0\n",
"#-------------------------------- \n",
"n = 8\n",
"H = zeros(n,n) # matrix of zeros\n",
"ma = Matrix([1/2,1/2,-1/2,1/2,-1/2,1/2,-1/2,-1/2])\n",
"mb = Matrix([1/2,-1/2,1/2,1/2,-1/2,-1/2,1/2,-1/2])\n",
"mc = Matrix([1/2,1/2,1/2,-1/2,1/2,-1/2,-1/2,-1/2])\n",
"\n",
"for i in range(n):\n",
" for k in range(n):\n",
" m1 = ma[i]\n",
" m11= ma[k]\n",
" m2 = mb[i]\n",
" m22= mb[k]\n",
" m3 = mc[i]\n",
" m33= mc[k]\n",
" Iaz=-qa*hbar*Iz(1/2,m1,1/2,m11)*delta(m2,m22)*delta(m3,m33)\n",
" Ibz=-qb*hbar*Iz(1/2,m2,1/2,m22)*delta(m1,m11)*delta(m3,m33) \n",
" Icz=-qc*hbar*Iz(1/2,m3,1/2,m33)*delta(m1,m11)*delta(m2,m22)\n",
" \n",
" Iabxyz=(Jab/hbar**2)*( Ix(1/2,m1,1/2,m11)*Ix(1/2,m2,1/2,m22)\\\n",
" +Iy(1/2,m1,1/2,m11)*Iy(1/2,m2,1/2,m22)\\\n",
" +Iz(1/2,m1,1/2,m11)*Iz(1/2,m2,1/2,m22) )*delta(m3,m33)\n",
" \n",
" Iacxyz=(Jac/hbar**2)*(Ix(1/2,m1,1/2,m11)*Ix(1/2,m3,1/2,m33)\\\n",
" +Iy(1/2,m1,1/2,m11)*Iy(1/2,m3,1/2,m33)\\\n",
" +Iz(1/2,m1,1/2,m11)*Iz(1/2,m3,1/2,m33) )*delta(m2,m22)\n",
" \n",
" Ibcxyz=(Jbc/hbar**2)*(Ix(1/2,m2,1/2,m22)*Ix(1/2,m3,1/2,m33)\\\n",
" +Iy(1/2,m2,1/2,m22)*Iy(1/2,m3,1/2,m33)\\\n",
" +Iz(1/2,m2,1/2,m22)*Iz(1/2,m3,1/2,m33) )*delta(m1,m11)\n",
" \n",
" H[i,k]=Iaz+Ibz+Icz+Iabxyz+Iacxyz+Ibcxyz\n",
" pass\n",
" pass\n",
"H"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Q4 answer\n",
"(a) Differentiating $\\varphi$ twice and forming the Schroedinger equation gives after some simplification\n",
"\n",
"$$\\displaystyle -\\frac{\\hbar^2}{2I}\\frac{d^2\\varphi_m}{d\\theta^2}=\\frac{\\hbar^2}{2I}m^2\\varphi_m$$\n",
"\n",
"therefore the energy is $\\displaystyle E_m=\\frac{\\hbar^2}{2I}m^2$.\n",
"\n",
"Starting with $H^0\\varphi_m=E_m\\varphi_m$ the expectation value of operator $H^0$ between levels with quantum numbers $m = m'$, which is the diagonal or self-energy, is\n",
"\n",
"$$\\displaystyle H^0_{m,m}=\\frac{\\int\\varphi^*_mH^0\\varphi_md\\theta}{\\int\\varphi^*_m\\varphi_md\\theta}=\\frac{\\int\\varphi^*_mE_m\\varphi_md\\theta}{\\int\\varphi^*_m\\varphi_md\\theta}=E_m$$\n",
"\n",
"when the wavefunction is normalized,$\\int\\varphi^*_m\\varphi_md\\theta = 1$ with $\\theta = 0\n",
"\\to 2\\pi$. \n",
"\n",
"Using the definition of $\\varphi$ in the question the expectation value for the changed potential $V$ between levels $m$ and $m'$ is\n",
"\n",
"$$\\displaystyle \\begin{align} H^1_{mm'}&=\\frac{V_3}{2}\\int\\varphi^*_m\\left(1-\\cos(3\\theta)\\right)\\varphi_{m'}d\\theta\\\\\n",
"&=\\frac{V_3}{2}\\int\\varphi^*_m\\varphi_{m'}d\\theta - \\frac{V_3}{2}\\int\\varphi^*_m\\cos(3\\theta)\\varphi_{m'}d\\theta\\\\\n",
"&=\\frac{V_3}{2}\\delta_{mm'}-\\frac{V_3}{4\\pi}\\int_0^{2\\pi} e^{i\\theta (m-m')}\\cos(3\\theta)d\\theta \\end{align}$$\n",
"\n",
"The cosine integral may surprise us at first since it appears to be imaginary whereas the matrix element has to be real because it represents energy. "
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAHMAAAAkCAYAAAC6yAWpAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy89olMNAAAACXBIWXMAABJ0AAASdAHeZh94AAAG0UlEQVR4nO2bfYxVxRnGf8hWBW0MSERFNGqtCtLF2JBowdamgp9xW5JSEo2aqBEramo1Kd3k8YGmrW0xmNTERlSUNo0xfoREqMSq9dsl6ArS0g9NREFIoRTtCgKW/jFz3dnj3b3n3nsud3vdX7K558y8M/edO2dm3pnz7LB9+/YxRH5sjweWAkcAe4EFkh4uY3cRsBA4ALhd0uIk75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n",
"text/latex": [
"$\\displaystyle \\frac{1.0 i a \\left(1 - e^{2.0 i \\pi a}\\right)}{1.0 a^{2} - 9.0}$"
],
"text/plain": [
" ⎛ 2.0⋅ⅈ⋅π⋅a⎞\n",
"1.0⋅ⅈ⋅a⋅⎝1 - ℯ ⎠\n",
"────────────────────────\n",
" 2 \n",
" 1.0⋅a - 9.0 "
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# let m-m'=a\n",
"a, theta = symbols('a, theta',real=True)\n",
"\n",
"ans = integrate( exp(1j*a*theta)*cos(3*theta),(theta,0,2*pi), conds='none')\n",
"simplify(ans)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Simplifying the result gives $\\displaystyle \\frac{ia(1-e^{2i\\pi a})}{a^2-3^2}$ which is zero when $a=m-m'=0$ but real when $a=3$ or $m-m'=3$ this is not so obvious because the real part when $a = 3$ has a numerator and denominator that are both zero; however, the limit is $\\pi$; The real part is $\\displaystyle \\frac{a\\sin(2\\pi a)}{a^2-3^2}$ Plotting the function clarifies this. \n",
"\n",
"![Drawing](matricesQM-fig7.png)\n",
"\n",
"Figure 7 Real and imaginary part of the integration. Only integer values of $a$ are valid are valid because the quantum numbers are integers. Only at integer $a = 3$ is the real result not zero.\n",
"__________\n",
"\n",
"The result for the $m, m'$ expectation value is\n",
"\n",
"$$\\displaystyle H^1_{m,m'}= \\frac{V_3}{2}\\delta_{m,m}-\\frac{V_3}{4}\\delta_{m,m\\pm3} \\tag{35}$$\n",
"\n",
"\n",
"where $m'$ can only take values $m$ and $m \\pm 3$. Now all the matrix elements are calculated they can be put into a matrix, equation 12, provided the ordering of the m values is decided upon. The basis set can be ordered in groups of m values as,\n",
"\n",
"$$\\displaystyle m = 0, 1, -1, 2, -2 \\cdots$$ \n",
"\n",
"which pairs $m$ values; it could also be done as $m = \\cdots -3, -2, -1, 0, 1, 2, \\cdots$ or in a random order; there are many choices. The diagonal terms all contain $H^0$ and some also contain part of $H^1$ and are $\\displaystyle {\\hbar^2}{2I}m^2+\\frac{V_3}{2}$ because on the diagonal $m = m'$. The off-diagonal terms are only non-zero when $m' = m \\pm 3$ and each have the value $-V_3/4$. The matrix for $m$ up to $\\pm 3$ is with substitutions $V \\equiv V_3/2$ and $\\displaystyle A\\equiv \\frac{\\hbar^2}{2I}$\n",
"\n",
"$$\\displaystyle \\begin{align}&\\begin{matrix}m\\to &\\quad 0 \\qquad & 1 \\qquad & -1\\qquad & 2\\qquad & -2 &\\qquad 3 &\\qquad -3\\end{matrix}\\\\\n",
"&\\begin{matrix}\\;0\\\\ \\;1\\\\-1\\\\ \\;2\\\\-2\\\\ \\;3\\\\-3\\end{matrix}\n",
"\\begin{bmatrix}0A+V&0&0&0&0 &-V/2 &-V/2\\\\\n",
"0 & A+V & 0 & 0 &-V/2& 0 & 0\\\\\n",
"0 & 0 & A+V & -V/2& 0 & 0 & 0\\\\\n",
"0 & 0 & -V/2 & 4A+V & 0 & 0 & 0\\\\\n",
"0 & -V/2 & 0 & 0 & 4A+V& 0 & 0\\\\\n",
"-V/2 & 0 & 0 & 0 & 0 &9A+V & 0\\\\\n",
"-V/2 & 0 & 0 & 0 & 0& 0 & 9A+V\\end{bmatrix} \\end{align}$$\n",
"\n",
"The same calculation can easily be put into Python/Sympy and its size increased to make the answer more accurate. The expectation values are defined first with $m$ and $m1$ as the two quantum numbers and the abbreviation $A = \\hbar^2/2I$ is used for simplicity. The eigenvalues need to be sorted because the order in which the computation returns them will not necessarily be in order of increasing energy. As a check, when the applied potential is zero, the normal rigid rotor energies are returned."
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"# Hindered Rigin Rotor Algorithm\n",
"#--------------------------------\n",
"def Hnm(m, m1):\n",
" if m == m1 : \n",
" return A*m**2 + V3/2\n",
" elif (m1 == m + 3) or (m1 == m - 3): \n",
" return -V3/4\n",
" else: \n",
" return 0.0\n",
"#---------------------------------\n",
"A = 17.0\n",
"V3= 200.0\n",
"n = 20 # matrix size 2*n+1 \n",
"H = np.zeros((2*n + 1, 2*n + 1),dtype=float) # matrix initiall zero\n",
"\n",
"Bset = np.zeros(2*n+1,dtype=int) # basis set\n",
"\n",
"Bset[0] = 0\n",
"k = 1\n",
"for i in range(1,2*n+1,2): # make basis set\n",
" Bset[i] = k\n",
" Bset[i+1] = -k\n",
" k = k + 1\n",
" \n",
"for i in range(2*n+1): # fill matrix \n",
" for k in range(2*n+1):\n",
" m = Bset[i]\n",
" m1= Bset[k]\n",
" H[i,k] = Hnm(m,m1)\n",
" pass\n",
" pass\n",
"\n",
"vals,vecs = LA.eigh(H) "
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0 71.79714\n",
" 1 78.56406\n",
" -1 78.56406\n",
" 2 189.434\n",
" -2 189.434\n",
" 3 247.5931\n",
" -3 275.7001\n",
" 4 377.5059\n",
" -4 377.5059\n",
" 5 528.2649\n",
" -5 528.2649\n",
" 6 714.1384\n",
" -6 714.2342\n"
]
}
],
"source": [
"for i in range(13):\n",
" print('{:4d} {:12.7g}'.format(Bset[i],vals[i]) )"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Notice that the degeneracy of the initial levels is broken only in the $\\pm 3$ levels all other levels are doubly degenerate except $m = 0$. There are five levels below the barrier when $V_3 =200 \\,\\mathrm{cm^{-1}}$ and $A=17 \\,\\mathrm{cm^{-1}}$.\n",
"\n",
"![Drawing](matricesQm-fig8.png)\n",
"________\n",
"\n",
"$$\\displaystyle \\begin{array}{lcr}\n",
"\\hline\n",
"\\text{m} & H^0\\,\\text{(free rotor)/cm}^{-1}&\\quad H^0+H^1\\, /\\mathrm{cm^{-1}} \\\\\n",
"\\hline \n",
" 0& 0 & 71.79\\text{ single}\\\\\n",
"\\pm 1 & 17 & 78.56 \\text{ double}\\\\\n",
"\\pm 2 & 68 & 189.43 \\text{ double}\\\\\n",
"\\pm 3 & 153 & 247.59,\\; 275.70 \\\\\n",
"\\pm 4 & 272 & 377.5 \\text{ double}\\\\\n",
"\\pm 5 & 425 & 528.6 \\text{ double} \\\\ \\hline \\end{array}$$\n",
"\n",
"\n",
"## Q5 answer\n",
"The recommended values in the question do produce quite a good fit to the data; the lowest transition is about 1 wavenumber out as is the second but the third and fourth by $2-3$ wavenumbers. Still a small error , less that 1%. The calculation is very sensitive the the value of $A$ and it seems that a better fit will be hard to obtain, primarily because the assumed potential is not exactly correct. Other sinusoidal functions could be tried but would then have to be justified by some physical explanation as to why they are used. With some arbitrary function, with many parameters a better fit could certainly be found, but this would have no physical meaning and would not explain the spectrum. \n",
"\n",
"## Q6 answer\n",
"The free rotor and $3\\theta$ terms are given in the previous question and are \n",
"\n",
"$$\\displaystyle H^0_{m,m}=\\frac{\\hbar^2}{2I}m^2; H^1_{m,m'}=\\frac{V_3}{2}\\delta_{m,m'}-\\frac{V_3}{4}\\delta_{m,m\\pm 3}$$\n",
"\n",
"To calculate the others,\n",
"\n",
"$$\\displaystyle (H^1V_1)_{m,m'}=\\frac{V_1}{2}\\int\\varphi^*_m(1-\\cos(\\theta))\\varphi_m d\\theta =\\frac{V_1}{2}\\delta_{m,m'}-\\frac{V_1}{4\\pi}\\int e^{i\\theta (m-m')}\\cos(\\theta)d\\theta$$\n",
"\n",
"Substituting $a=m-m'$ simplifies the integral which is $\\displaystyle \\frac{ia(1-e^{2\\pi ia})}{a^2-1} $ and is calculated in the same way to the similar integral in question 4. This integral has the limit $\\pi$ when $m'=m\\pm 1$. The expectation value for $V_1$ is $\\displaystyle H^1_{mm'}=\\frac{V_1}{2}\\delta_{mm'}-\\frac{V_1}{4}\\delta_{mm\\pm 1}$ and for the $6\\theta$ potential is $\\frac{V_6}{2}\\delta_{mm'}-\\frac{V_6}{4}\\delta_{mm\\pm 6}$.\n",
"\n",
"There are therefore four terms on the diagonal; the free rotor and one from each of the potentials. We expect off- diagonal terms when $m' = m \\pm 1, m' = m \\pm 3$ and $m' = m\\pm 6$. The basis set is still that of the free rotor in $m = 0, 1, -1, 2, -2 \\cdots$ with $V_{136} =V_1 +V_3 +V_6$, and the matrix must be Hermitian: real and symmetrical. The entries are added according to the changes in $m$. For clarity the notation is similar to that in question 3; but with $V\\equiv V_{136}/2$\n",
"\n",
"\n",
"$$\\displaystyle \\begin{align}&\\begin{matrix}m\\to &\\quad 0 \\qquad & 1 \\qquad & -1\\qquad & 2\\qquad & -2 &\\qquad 3 &\\qquad -3\\end{matrix}\\\\\n",
"&\\begin{matrix}\\;0\\\\ \\;1\\\\-1\\\\ \\;2\\\\-2\\\\ \\;3\\\\-3\\end{matrix}\\begin{bmatrix}0A+V&-V_1/4&V_1/4&0&0 &-V_3/4 &-V_3/4\\\\\n",
"-V_1/4 & A+V & 0 & -V_1/4 &-V_3/4& 0 & 0\\\\\n",
"-V_1/4 & 0 & A+V & 0& -V_1/4 & 0 & 0\\\\\n",
"0 & -V_1/4 & 0 & 4A+V & 0 & -V_1/4 & 0\\\\\n",
"0 & -V_3/4 & -V_1/4 & 0 & 4A+V& 0 & -V_1/4\\\\\n",
"-V_3/4 & 0 & 0 & -V_1/4 & 0 &9A+V & -V_6/4\\\\\n",
"-V_3/4 & 0 & 0 & 0 & -V_1/4& -V_6/4 & 9A+V\\end{bmatrix}\\end{align} $$\n",
"\n",
"With three parameters $V_1, V_3$ and $V_6$ as variables, it should be possible to fit the most complicated restricted rotor spectra.\n",
"\n",
"## Q7 answer\n",
"The radial parts of the wavefunction can be ignored because $r$ factors out of the equation and will integrate to a constant. \n",
"\n",
"Changing to spherical polar coordinates, the potential becomes\n",
"\n",
"$$\\displaystyle V = \\left(A \\cos^2(\\varphi) + B \\sin^2(\\varphi)\\right)\\sin^2(\\theta) - (A + B)\\cos^2(\\theta)$$ \n",
"\n",
"The Hamilton matrix has nine elements of the form $\\langle Y_{1j} | V |Y_{1k}\\rangle$ where $j, k = 0, 1, -1$. In spherical polar coordinates \n",
"\n",
"$$\\displaystyle \\langle Y_{1j} | V |Y_{1k}\\rangle= \\int_0^{2\\pi}\\int_0^\\pi Y^*_{1j}VY_{1k}\\sin(\\theta) d\\theta d\\varphi$$ \n",
"\n",
"To calculate element $\\langle Y_{11} | V |Y_{11}\\rangle$, the wavefunction $Y_{11} =-n\\sin(\\theta)e^{+i\\varphi}$ is used and the integral is \n",
"\n",
"$$\\displaystyle n^2\\int_0^{2\\pi}\\int_0^\\pi V\\sin^3(\\theta) d\\theta d\\varphi$$\n",
"\n",
"The integral in $\\varphi$ is evaluated first and results in\n",
"\n",
"$$\\displaystyle \\langle Y_{11} | V |Y_{11}\\rangle =n^2(A+B)\\pi\\int_0^\\pi \\sin^5(\\theta)-2\\sin^3(\\theta)\\cos^2(\\theta)d\\theta=\\gamma(A+B)$$\n",
"\n",
"where $\\gamma$ combines the result of the integration and constants. The other diagonal element $\\langle Y_{1-1} | V |Y_{1-1}\\rangle$ produces the same result.\n",
"\n",
"The off diagonal term $\\langle Y_{1-1} | V |Y_{11}\\rangle$ has a term in $e^{2i\\varphi}$ in the $\\varphi$ integral and the result of this is to produce \n",
"\n",
"$$\\displaystyle \\langle Y_{1-1} | V |Y_{11}\\rangle=\\gamma(-A+B)$$\n",
"\n",
"The diagonal term $ \\langle Y_{10} | V |Y_{10}\\rangle $ produces \n",
"\n",
"$$2n^2\\int_0^{2\\pi}\\int_0^\\pi V\\cos^2(\\theta)\\sin(\\theta) d\\theta d\\varphi= -2n^2(A+B)\\pi\\int_0^\\pi\\sin^3(\\theta)\\cos^2(\\theta)-2\\sin(\\theta)\\cos^4(\\theta)d\\theta$$\n",
"\n",
"which evaluates to $ \\langle Y_{10} | V |Y_{10}\\rangle =-2\\gamma(A+B)$.\n",
"\n",
"The remaining (off-diagonal) matrix elements are between terms with $m$ values $(0 1), (0 -1$). These integrals are zero because there is a product of sine and cosine making the product in the integral an odd function in $\\cos(\\theta)$ over the range $0 \\to \\pi$.\n",
"\n",
"If the basis set is in the order of quantum number $m = 0, 1, -1$ the matrix of expectation values is\n",
"\n",
"$$\\displaystyle \\begin{bmatrix}\\langle Y_{10} | V |Y_{10}\\rangle & 0 & 0 \\\\\n",
"0 & \\langle Y_{10} | V |Y_{11}\\rangle & \\langle Y_{11} | V |Y_{1-1}\\rangle \\\\\n",
"0 & \\langle Y_{1-1} | V |Y_{11}\\rangle & \\langle Y_{1-1} | V |Y_{1-1}\\rangle \\end{bmatrix}=\\gamma \\begin{bmatrix}-2(A+B) & 0 & 0 \\\\ 0 & (A+B) & (-A+B) \\\\ 0 & (-A+B) & (A+B)\\end{bmatrix}$$\n",
"\n",
"One eigenvalue is $\\lambda = -2\\gamma (A + B)$ and the other two obtained from $(\\gamma(A+B)-\\lambda)^2 -\\gamma^2(-A+B)2 =0$, which produces $\\lambda = 2\\gamma A, \\lambda = 2\\gamma B$. The effect of the field is seen to raise the two $Y_{1\\pm1}$ orbitals and to lower $Y_{10}$.\n",
"\n",
"A calculation using Python/Sympy is shown below. It may be necessary to integrate the functions in $\\theta$ first, without using the complex exponential part at all, then add this in in the second integration."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAIUAAAASCAYAAAB1uR3HAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy89olMNAAAACXBIWXMAABJ0AAASdAHeZh94AAAE/klEQVR4nO2Za4hVVRiGn1EpwRtloBWVKZFlMs0oJGSWDUaSlWNIRGYYBP0wswysIN55hTQy6F4WkYLVry74w0sTKFoRFYZp2g1z8oeXytRUkrxMP9Y+eVyz95l9TntMYd4/i/Otb317fy/v+da31q5rb2+nG90oR6+iAtkeCDQDtwAjgQuBv4FNwGJgsaTjOeL0Bb5P1i+TNLkT/0HADuBVSQ/abgMuyXDfLWlwroQKRK3c2G4FJkTm48Be4GtggaQ1Gc88iZfE1kYObgoTBTAVeA3YCawBtgODgCnAm8BE21MldVaaRCCtH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TrcnNT5LePewlJHwM+AWalbAdtkpbYHgnMJFz3zqsQdnMSb7jt3pIOJ535ZOBzSbsj/zuBObbXAb8AB4BhhG8OvYEVhKPvKUU13ADDCY3ifuCxMr9zgBGEynkYmCGpdGynE16gCm6KrBSXJmNPYHaGz1pgCSeay9mxcssh6S/bPxGIqidc5IwGLiL9/n4N4RzfAFxL2CP3AZ8StqilOb69dAWq4aa0dQwgHENLOARsIzSoL0naGq2vxAtUwU3dmfbp3PZ8whX4UEnb/u/3OV1QJC+n4vKqaDQD33QLogMK4+WMqxTd6Hr8A/+3PXJcTrW6AAAAAElFTkSuQmCC\n",
"text/latex": [
"$\\displaystyle - \\frac{2 A}{5} - \\frac{2 B}{5}$"
],
"text/plain": [
" 2⋅A 2⋅B\n",
"- ─── - ───\n",
" 5 5 "
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"n, theta, phi, A, B, V, X = symbols('n, theta, phi, A, B, V, X',real = True, positive = True )\n",
"n = sqrt(3/(8*pi)) # normalisation for sph harmonics\n",
" \n",
"Y1p1= lambda theta,phi: -n*sin(theta)*exp( 1j*phi) # Y(1,+1)\n",
"Y1m1= lambda theta,phi: n*sin(theta)*exp(-1j*phi) # Y(1,-1)\n",
"Y10 = lambda theta,phi: n*sqrt(2)*cos(theta) # Y(1,0)\n",
"V = lambda theta,phi: (A*cos(phi)**2 + B*sin(phi)**2)*sin(theta)**2 - (A+B)*cos(theta)**2\n",
"\n",
"# \n",
"X = integrate( Y10(theta,-phi) *V(theta,phi) * Y10(theta,phi)*sin(theta),(theta,0,pi) )\n",
"ans10 = integrate( X ,(phi,0,2*pi) )\n",
"\n",
"simplify(ans10)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The other integrals may be calculated similarly. \n",
"\n",
"(b) The px, py, pz orbitals point along the $x$-, $y$-, and $z$-axes. As the potential has no terms in $xy, xz$ or $yz$ the field it produces is only along the axes. The matrix will therefore be diagonal. The matrix elements are calculated in the same manner as in (a) the eigenvalues can be read from the matrix, because it is diagonal.\n",
"\n",
"**Exercise:** Calculate the splitting the field $V$ produces in the five d orbitals."
]
}
],
"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
}