{
"cells": [
{
"cell_type": "markdown",
"id": "sonic-authority",
"metadata": {
"toc": true
},
"source": [
"# Table of Contents

\n",
""
]
},
{
"cell_type": "markdown",
"id": "decreased-status",
"metadata": {},
"source": [
"# Multi-dimensional Particle-in-a-Box\n",
"![Particles in 2D confinement](https://github.com/PaulWAyers/IntroQChem/blob/main/linkedFiles/MVZL4.jpg?raw=true \"Particles in various types of 2-dimensional confinement\")\n",
"\n",
"## 🥅 Learning Objectives\n",
"- Hamiltonian for a two-dimensional particle-in-a-box\n",
"- Hamiltonian for a three-dimensional particle-in-a-box\n",
"- Hamiltonian for a 3-dimensional spherical box\n",
"- Separation of variables\n",
"- Solutions for the 2- and 3- dimensional particle-in-a-box (rectangular)\n",
"- Solutions for the 3-dimensional particle in a box (spherical)\n",
"- Expectation values"
]
},
{
"cell_type": "markdown",
"id": "perceived-plenty",
"metadata": {},
"source": [
"## The 2-Dimensional Particle-in-a-Box\n",
"![Particles in a 2-dimensional box](https://github.com/PaulWAyers/IntroQChem/blob/main/linkedFiles/1024px-Particle2D.svg.png?raw=true \"Particles in 2-dimensional box with nx=ny=2; image from wikipedia courtesy of Keenan Pepper\")\n",
"We have treated the particle in a one-dimensional box, where the (time-independent) Schrödinger equation was:\n",
"$$ \n",
"\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dx^2} + V(x) \\right)\\psi_n(x) = E_n \\psi_n(x)\n",
"$$\n",
"where \n",
"$$\n",
"V(x) = \n",
"\\begin{cases}\n",
" +\\infty & x\\leq 0\\\\\n",
" 0 & 0\\lt x \\lt a\\\\\n",
" +\\infty & a \\leq x\n",
"\\end{cases}\n",
"$$\n",
"\n",
"However, electrons really move in three dimensions. However, just as sometimes electrons are (essentially) confined to one dimension, sometimes they are effectively confined to two dimensions. If the confinement is to a rectangle with side-widths $a_x$ and $a_y$, then the Schrödinger equation is:\n",
"$$ \n",
"\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dx^2} -\\frac{\\hbar^2}{2m} \\frac{d^2}{dy^2} + V(x,y) \\right)\\psi_{n_x,n_y}(x,y) = E_{n_x,n_y} \\psi_{n_x,n_y}(x,y)\n",
"$$\n",
"where \n",
"$$\n",
"V(x,y) = \n",
"\\begin{cases}\n",
" +\\infty & x\\leq 0 \\text{ or }y\\leq 0 \\\\\n",
" 0 & 0\\lt x \\lt a_x \\text{ and } 0 \\lt y \\lt a_y \\\\\n",
" +\\infty & a_x \\leq x \\text{ or } a_y \\leq y\n",
"\\end{cases}\n",
"$$\n",
"The first thing to notice is that there are now two quantum numbers, $n_x$ and $n_y$. \n",
"> The number of quantum numbers that are needed to label the state of a system is equal to its dimensionality.\n",
"\n",
"The second thing to notice is that the Hamiltonian in this Schrödinger equation can be written as the sum of two Hamiltonians,\n",
"$$ \n",
"\\left[\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dx^2} + V_x(x) \\right)\n",
"+\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dy^2} + V_y(y) \\right) \\right]\\psi_{n_x,n_y}(x,y) = E_{n_x,n_y} \\psi_{n_x,n_y}(x,y)\n",
"$$\n",
"where \n",
"$$\n",
"V_x(x) = \n",
"\\begin{cases}\n",
" +\\infty & x\\leq 0\\\\\n",
" 0 & 0\\lt x \\lt a_x\\\\\n",
" +\\infty & a_x \\leq x\n",
"\\end{cases} \\\\\n",
"V_y(y) = \n",
"\\begin{cases}\n",
" +\\infty & y\\leq 0\\\\\n",
" 0 & 0\\lt y \\lt a_y\\\\\n",
" +\\infty & a_y \\leq y\n",
"\\end{cases}\n",
"$$\n",
"By the same logic as we used for the 1-dimensional particle in a box, we can deduce that the ground-state wavefunction for an electron in a rectangular box is:\n",
"$$\n",
"\\psi_{n_x n_y}(x,y) = \\frac{2}{\\sqrt{a_x a_y}} \\sin\\left(\\tfrac{n_x \\pi x}{a_x}\\right) \\sin\\left(\\tfrac{n_y \\pi y}{a_y}\\right) \\qquad \\qquad n_x=1,2,3,\\ldots;n_y=1,2,3,\\ldots\n",
"$$\n",
"The corresponding energy is thus:\n",
"$$\n",
"E_{n_x n_y} = \\frac{h^2}{8m}\\left(\\frac{n_x^2}{a_x^2}+\\frac{n_y^2}{a_y^2}\\right)\\qquad \\qquad n_x,n_y=1,2,3,\\ldots\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "mechanical-welsh",
"metadata": {},
"source": [
"## 📝 Exercise: Verify the above equation for the energy eigenvalues of a particle confined to a rectangular box."
]
},
{
"cell_type": "markdown",
"id": "answering-findings",
"metadata": {},
"source": [
"## Separation of Variables\n",
"The preceding solution is a very special case of a general approach called separation of variables. \n",
"> Given a $D$-dimensional Hamiltonian that is a sum of independent terms, \n",
"$$\n",
"\\hat{H}(x_1,x_2,\\ldots,x_D) = \\sum_{d=1}^D\\hat{H}_d(x_d)\n",
"$$\n",
"where the solutions to the individual Schrödinger equations are known:\n",
"$$\n",
"\\hat{H}_d \\psi_{d;n_d}(x_d) = E_{d;n_d} \\psi_{d;n_d}(x_d)\n",
"$$\n",
"the solution to the $D$-dimensional Schrödinger equation is\n",
"$$\n",
"\\hat{H}(x_1,x_2,\\ldots,x_D) \\Psi_{n_1,n_2,\\ldots,n_D}(x_1,x_2,\\ldots,x_D) = E_{n_1,n_2,\\ldots,n_D}\\Psi_{n_1,n_2,\\ldots,n_D}(x_1,x_2,\\ldots,x_D)\n",
"$$\n",
"where the $D$-dimensional eigenfunctions are products of the Schrödinger equations of the individual terms\n",
"$$\n",
"\\Psi_{n_1,n_2,\\ldots,n_D}(x_1,x_2,\\ldots,x_D) = \\prod_{d=1}^D\\psi_{d;n_d}(x_d)\n",
"$$\n",
"and the $D$-dimensional eigenvalues are sums of the eigenvalues of the individual terms,\n",
"$$\n",
"E_{n_1,n_2,\\ldots,n_D} = \\sum_{d=1}^D E_{d;n_d}\n",
"$$\n",
"\n",
"This expression can be verified by direct substitution. Interpretatively, in a Hamiltonian with the form \n",
"$$\n",
"\\hat{H}(x_1,x_2,\\ldots,x_D) = \\sum_{d=1}^D\\hat{H}_d(x_d)\n",
"$$\n",
"the coordinates $x_1,x_2,\\ldots,x_D$ are all independent, because there are no terms that couple them together in the Hamiltonian. This means that the probability of observing a particle with values $x_1,x_2,\\ldots,x_D$ are all independent. Recall that when probabilities are independent, they are multiplied together. E.g., if the probability that your impoverished professor will be paid today is independent of the probability that will rain today, then \n",
"$$\n",
"p_{\\text{paycheck + rain}} = p_{\\text{paycheck}} p_{\\text{rain}}\n",
"$$\n",
"Similarly, because $x_1,x_2,\\ldots,x_D$ are all independent,\n",
"$$\n",
"p(x_1,x_2,\\ldots,x_D) = p_1(x_1) p_2(x_2) \\ldots p_D(x_D)\n",
"$$\n",
"Owing to the Born postulate, the probability distribution function for observing a particle at $x_1,x_2,\\ldots,x_D$ is the wavefunction squared, so \n",
"$$\n",
"\\left| \\Psi_{n_1,n_2,\\ldots,n_D}(x_1,x_2,\\ldots,x_D)\\right|^2 = \\prod_{d=1}^D \\left| \\psi_{d;n_d}(x_d) \\right|^2\n",
"$$\n",
"It is reassuring that the separation-of-independent-variables solution to the $D$-dimensional Schrödinger equation reproduces this intuitive conclusion."
]
},
{
"cell_type": "markdown",
"id": "terminal-creator",
"metadata": {},
"source": [
"## 📝 Exercise: By direct substitution, verify that the above expressions for the eigenvalues and eigenvectors of a Hamiltonian-sum are correct."
]
},
{
"cell_type": "markdown",
"id": "guilty-transportation",
"metadata": {},
"source": [
"## Degenerate States\n",
"When two quantum states have the same energy, they are said to be degenerate. For example, for a square box, where $a_x = a_y = a$, the states with $n_x=1; n_y=2$ and $n_x=2;n_y=1$ are degenerate because:\n",
"$$\n",
"E_{1,2} = \\frac{h^2}{8ma^2}\\left(1+4\\right) = \\frac{h^2}{8ma^2}\\left(4+1\\right) = E_{2,1}\n",
"$$\n",
"This symmetry reflects physical symmetry, whereby the $x$ and $y$ coordinates are equivalent. The state with energy $E=\\frac{5h^2}{8ma^2}$ is said to be two-fold degenerate, or to have degeneracy of two. \n",
"\n",
"For the particle in a square box, degeneracies of all levels exist. An example of a three-fold degeneracy is:\n",
"$$\n",
"E_{1,7} = E_{7,1} = E_{5,5} = \\frac{50h^2}{8ma^2}\n",
"$$\n",
"and an example of a four-fold degeneracy is: \n",
"$$\n",
"E_{1,8} = E_{8,1} = E_{7,4} = E_{4,7} = \\frac{65h^2}{8ma^2}\n",
"$$\n",
"It isn't trivial to show that degeneracies of all orders are possible (it's tied up in the theory of [Diophantine equations](https://en.wikipedia.org/wiki/Diophantine_equation)), but perhaps it becomes plausible by giving an example with an eight-fold degeneracy:\n",
"$$\n",
"E_{8,49} = E_{49,8} = E_{16,47} = E_{47,16} = E_{23,44} = E_{44,23} = E_{28,41} = E_{41,28} = \\frac{2465 h^2}{8ma^2}\n",
"$$\n",
"\n",
"Notice that all of these degeneracies are removed if the symmetry of the box is broken. For example, if a slight change of the box changes it from square to rectangulary, $a_x \\rightarrow a_x + \\delta x$, then the aforementioned states have different energies. This doesn't mean, however, that rectangular boxes do not have degeneracies. If $\\tfrac{a_x}{a_y}$ is a rational number, $\\tfrac{p}{q}$, then there will be an *accidental* degeneracies when $n_x$ is divisible by $p$ and $n_y$ is divisible by $q$. For example, if $a_x = 2a$ and $a_y = 3a$ (so $p=2$ and $q=3$), there is a degeneracy associated with \n",
"$$\n",
"E_{4,3} = \\frac{h^2}{8m}\\left(\\frac{4^2}{(2a)^2}+\\frac{3^2}{(3a)^2}\\right) \n",
"= \\frac{h^2}{8m}\\left(\\frac{2^2}{(2a)^2}+\\frac{6^2}{(3a)^2}\\right) = \\frac{5h^2}{8ma^2}= E_{2,6}\n",
"$$\n",
"This is called an *accidental* degeneracy because it is not related to a symmetry of the system, like the $x \\sim y$ symmetry that induces the degeneracy in the case of particles in a square box. "
]
},
{
"cell_type": "markdown",
"id": "cloudy-rocket",
"metadata": {},
"source": [
"## Electrons in a 3-dimensional box (cuboid)\n",
"![Particles in a 3-dimensional box](https://github.com/PaulWAyers/IntroQChem/blob/main/linkedFiles/Particle3Dbox.png?raw=true \"Particles in 3-dimensional box; image from Gary Drobny's online notes at Univ. of Washington\")\n",
"\n",
"Suppose that particles are confined to a [cuboid](https://en.wikipedia.org/wiki/Cuboid) (or rectangular prism) with side-lengths $a_x$, $a_y$, and $a_z$. Then the Schrödinger equation is:\n",
"$$ \n",
"\\left[-\\frac{\\hbar^2}{2m}\\left( \\frac{d^2}{dx^2} + \\frac{d^2}{dy^2} + \\frac{d^2}{dz^2} \\right) + V(x,y,z) \\right]\\psi_{n_x,n_y,n_z}(x,y,z) = E_{n_x,n_y,n_z} \\psi_{n_x,n_y,n_z}(x,y,z)\n",
"$$\n",
"where \n",
"$$\n",
"V(x,y,z) = \n",
"\\begin{cases}\n",
" +\\infty & x\\leq 0 \\text{ or }y\\leq 0 \\text{ or }z\\leq 0 \\\\\n",
" 0 & 0\\lt x \\lt a_x \\text{ and } 0 \\lt y \\lt a_y \\text{ and } 0 \\lt z \\lt a_z \\\\\n",
" +\\infty & a_x \\leq x \\text{ or } a_y \\leq y \\text{ or } a_z \\leq z\n",
"\\end{cases}\n",
"$$\n",
"There are three quantum numbers because the system is three-dimensional. \n",
"\n",
"The three-dimensional second derivative is called the Laplacian, and is denoted \n",
"$$\n",
"\\nabla^2 = \\frac{d^2}{dx^2} + \\frac{d^2}{dy^2} + \\frac{d^2}{dz^2} = \\nabla \\cdot \\nabla\n",
"$$\n",
"where \n",
"$$\n",
"\\nabla = \\left[ \\frac{d}{dx}, \\frac{d}{dy}, \\frac{d}{dz} \\right]^T\n",
"$$\n",
"is the operator that defines the gradient vector. The 3-dimensional momentum operator is \n",
"$$\n",
"\\hat{\\mathbf{p}} = i \\hbar \\nabla\n",
"$$\n",
"which explains why the kinetic energy is given by\n",
"$$\n",
"\\hat{T} = \\frac{\\hat{\\mathbf{p}} \\cdot \\hat{\\mathbf{p}}}{2m} = \\frac{\\hbar^2}{2m} \\nabla^2\n",
"$$\n",
"\n",
"As with the 2-dimensional particle-in-a-rectangle, the 3-dimensional particle-in-a-cuboid can be solved by separation of variables. Rewriting the Schrödinger equation as:\n",
"$$ \n",
"\\left[\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dx^2} + V_x(x) \\right)\n",
"+\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dy^2} + V_y(y) \\right) \n",
"+\\left(-\\frac{\\hbar^2}{2m} \\frac{d^2}{dz^2} + V_z(z) \\right) \\right]\\psi_{n_x,n_y,n_z}(x,y,z) = E_{n_x,n_y,n_z} \\psi_{n_x,n_y,n_z}(x,y,z)\n",
"$$\n",
"where \n",
"$$\n",
"V_x(x) = \n",
"\\begin{cases}\n",
" +\\infty & x\\leq 0\\\\\n",
" 0 & 0\\lt x \\lt a_x\\\\\n",
" +\\infty & a_x \\leq x\n",
"\\end{cases} \\\\\n",
"V_y(y) = \n",
"\\begin{cases}\n",
" +\\infty & y\\leq 0\\\\\n",
" 0 & 0\\lt y \\lt a_y\\\\\n",
" +\\infty & a_y \\leq y\n",
"\\end{cases} \\\\\n",
"V_z(z) = \n",
"\\begin{cases}\n",
" +\\infty & z\\leq 0\\\\\n",
" 0 & 0\\lt z \\lt a_z\\\\\n",
" +\\infty & a_z \\leq z\n",
"\\end{cases} \n",
"$$\n",
"By the same logic as we used for the 1-dimensional particle in a box, we can deduce that the ground-state wavefunction for an electron in a cuboid is:\n",
"$$\n",
"\\psi_{n_x n_y n_z}(x,y,z) = \\frac{2\\sqrt{2}}{\\sqrt{a_x a_y z_z}} \\\n",
"\\sin\\left(\\tfrac{n_x \\pi x}{a_x}\\right) \\sin\\left(\\tfrac{n_y \\pi y}{a_y}\\right)\\sin\\left(\\tfrac{n_z \\pi z}{a_z}\\right) \\qquad \\qquad n_x=1,2,3,\\ldots;n_y=1,2,3,\\ldots;n_z=1,2,3,\\ldots\n",
"$$\n",
"The corresponding energy is thus:\n",
"$$\n",
"E_{n_x n_y n_z} = \\frac{h^2}{8m}\\left(\\frac{n_x^2}{a_x^2}+\\frac{n_y^2}{a_y^2}+\\frac{n_z^2}{a_z^2}\\right)\\qquad \\qquad n_x,n_y,n_z=1,2,3,\\ldots\n",
"$$\n",
"\n",
"As before, especially when there is symmetry, there are many degenerate states. For example, for a particle-in-a-cube, where $a_x = a_y = a_z = a$, the first excited state is three-fold degenerate since:\n",
"$$\n",
"E_{2,1,1} = E_{1,2,1} = E_{1,1,2} = \\frac{6h^2}{8ma^2}\n",
"$$\n",
"There are other states of even higher degeneracy. For example, there is a twelve-fold degenerate state:\n",
"$$\n",
"E_{5,8,15} = E_{5,15,8} = E_{8,5,15} = E_{8,15,5} = E_{15,5,8} = E_{15,8,5} = E_{3,4,17} = E_{3,17,4} = E_{4,3,17} = E_{4,17,3} = E_{17,3,4} = E_{17,4,3} = \\frac{314 h^2}{8ma^2}\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "recovered-despite",
"metadata": {},
"source": [
"## 📝 Exercise: Verify the expressions for the eigenvalues and eigenvectors of a particle in a cuboid."
]
},
{
"cell_type": "markdown",
"id": "macro-alexandria",
"metadata": {},
"source": [
"## 📝 Exercise: Construct an accidentally degenerate state for the particle-in-a-cuboid. \n",
"(Hint: this is a lot easier than you may think.)"
]
},
{
"cell_type": "markdown",
"id": "present-distribution",
"metadata": {},
"source": [
"## Particle-in-a-circle\n",
"### The Schrödinger equation for a particle confined to a circular disk.\n",
"![Particle in a Ring](https://github.com/PaulWAyers/IntroQChem/blob/main/linkedFiles/The_Well_(Quantum_Corral).jpg?raw=true \"The states of particle confined by a ring of atoms (a quantum corral) is similar to a particle-in-acircle. Image licensed CC-SA by Julian Voss-Andreae\")\n",
"\n",
"What happens if instead of being confined to a rectangle or a cuboid, the electrons were confined to some other shape? For example, it is not uncommon to have electrons confined in a circular disk ([quantum corral](https://en.wikipedia.org/wiki/Quantum_mirage)) or a sphere ([quantum dot](https://en.wikipedia.org/wiki/Quantum_dot)). It is relatively easy to write the Hamiltonian in these cases, but less easy to solve it because Cartesian (i.e., $x,y,z$) coordinates are less natural for these geometries. \n",
"\n",
"The Schrödinger equation for a particle confined to a circular disk of radius $a$ is:\n",
"$$ \n",
"\\left(-\\frac{\\hbar^2}{2m} \\nabla^2 + V(x,y) \\right)\\psi(x,y) = E \\psi(x,y)\n",
"$$\n",
"where \n",
"$$\n",
"V(x,y) = \n",
"\\begin{cases}\n",
" 0 & \\sqrt{x^2 + y^2} \\lt a\\\\\n",
" +\\infty & a \\leq \\sqrt{x^2 + y^2}\n",
"\\end{cases}\n",
"$$\n",
"However, it is more useful to write this in polar coordinates (i.e., $r,\\theta$): \n",
"\\begin{align}\n",
"x &= r \\cos \\theta \\\\\n",
"y &= r \\sin \\theta \\\\\n",
"\\\\\n",
"r &= \\sqrt{x^2 + y^2} \\\\\n",
"\\theta &= \\arctan{\\tfrac{y}{x}}\n",
"\\end{align}\n",
"because the potential depends only on the distance from the center of the system, \n",
"$$ \n",
"\\left(-\\frac{\\hbar^2}{2m} \\nabla^2 + V(r) \\right)\\psi(r,\\theta) = E \\psi(r,\\theta)\n",
"$$\n",
"where \n",
"$$\n",
"V(r) = \n",
"\\begin{cases}\n",
" 0 & r \\lt a\\\\\n",
" +\\infty & a \\leq r\n",
"\\end{cases}\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "editorial-packaging",
"metadata": {},
"source": [
"### The Schrödinger Equation in Polar Coordinates\n",
"In order to solve this Schrödinger equation, we need to rewrite the Laplacian, $\\nabla^2 = \\frac{d^2}{dx^2} + \\frac{d^2}{dy^2}$ in polar coordinates. Deriving the Laplacian in alternative coordinate systems is a standard (and tedious) exercise that you hopefully saw in your calculus class. (If not, cf. [wikipedia](https://en.wikipedia.org/wiki/Laplace_operator) or this [meticulous derivation](https://www.math.ucdavis.edu/~saito/courses/21C.w11/polar-lap.pdf).) The result is that: \n",
"$$\n",
"\\nabla^2 = \\frac{d^2}{dr^2} + \\frac{1}{r} \\frac{d}{dr} + \\frac{1}{r^2}\\frac{d^2}{d\\theta^2}\n",
"$$\n",
"The resulting Schrödinger equation is,\n",
"$$\n",
"\\left[-\\frac{\\hbar^2}{2m} \\left(\\frac{d^2}{dr^2} + \\frac{1}{r} \\frac{d}{dr} + \\frac{1}{r^2}\\frac{d^2}{d\\theta^2} \\right)+ V(r) \\right] \\psi(r,\\theta) = E \\psi(r,\\theta)\n",
"$$\n",
"\n",
"This looks like it might be amenable to solution by separation of variables insofar as the potential doesn't compute the radial and angular positions of the particles, and the kinetic energy doesn't couple the particles angular and radial momenta (i.e., the derivatives). So we propose the solution $\\psi(r,\\theta) = R(r) \\Theta(\\theta)$. Substituting this into the Schrödinger equation, we obtain:\n",
"\\begin{align}\n",
"\\left[-\\frac{\\hbar^2}{2m} \\left(\\frac{d^2}{dr^2} + \\frac{1}{r} \\frac{d}{dr} + \\frac{1}{r^2}\\frac{d^2}{d\\theta^2} \\right)+ V(r) \\right] R(r) \\Theta(\\theta) &= E R(r) \\Theta(\\theta) \\\\\n",
"\\left[-\\Theta(\\theta)\\frac{\\hbar^2}{2m} \\left(\\frac{d^2 R(r)}{dr^2} + \\frac{1}{r} \\frac{d R(r)}{dr} \\right) -\\frac{\\hbar^2}{2m} \\frac{R(r)}{r^2}\\left(\\frac{d^2 \\Theta(\\theta)}{d \\theta^2} \\right) + V(r) R(r) \\Theta(\\theta) \\right] &= E R(r)\\Theta(\\theta)\n",
"\\end{align}\n",
"Dividing both sides by $R(r) \\Theta(\\theta)$ and multiplying both sides by $r^2$ we obtain:\n",
"$$\n",
"E r^2 +\\frac{\\hbar^2}{2m}\\frac{r^2}{R(r)} \\left(\\frac{d^2 R(r)}{dr^2} + \\frac{1}{r} \\frac{d R(r)}{dr} \\right) - r^2 V(r)=-\\frac{\\hbar^2}{2m} \\frac{1}{\\Theta(\\theta)}\\left(\\frac{d^2 \\Theta(\\theta)}{d \\theta^2} \\right) \n",
"$$\n",
"The right-hand-side depends only on $r$ and the left-hand-side depends only on $\\theta$; this can only be true for all $r$ and all $\\theta$ if both sides are equal to the same constant. This problem can therefore be solved by separation of variables, though it is a slightly different form from the one we considered previously."
]
},
{
"cell_type": "markdown",
"id": "weekly-viking",
"metadata": {},
"source": [
"### The Angular Schrödinger equation in Polar Coordinates\n",
"To find the solution, we first solve the set the left-hand-side equal to a constant, which gives a 1-dimensional Schrödinger equations for the angular motion of the particle around the circle,\n",
"$$\n",
"-\\frac{\\hbar^2}{2m} \\frac{d^2 \\Theta_l(\\theta)}{d \\theta^2} = E_{\\theta;l} \\Theta_l(\\theta)\n",
"$$\n",
"This equation is identical to the particle-in-a-box, and has (unnormalized) solutions\n",
"$$\n",
"\\Theta_l(\\theta) = e^{i l \\theta} \\qquad \\qquad l = 0, \\pm 1, \\pm 2, \\ldots\n",
"$$\n",
"where $l$ must be an integer because otherwise the fact the periodicity of the wavefunction (i.e., that $\\Theta_l(\\theta) = \\Theta_l(\\theta + 2 k \\pi)$ for any integer $k$) is not achieved. Using the expression for $\\Theta_l(\\theta)$, the angular kinetic energy of the particle in a circle is seen to be:\n",
"$$\n",
"E_{\\theta,l} = \\tfrac{\\hbar^2 l^2}{2m}\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "italian-biodiversity",
"metadata": {},
"source": [
"### The Radial Schrödinger equation in Polar Coordinates\n",
"Inserting the results for the angular wavefunction into the Schrödinger equation, we obtain\n",
"$$\n",
"E r^2 +\\frac{\\hbar^2}{2m}\\frac{r^2}{R(r)} \\left(\\frac{d^2 R(r)}{dr^2} + \\frac{1}{r} \\frac{d R(r)}{dr} \\right) - r^2 V(r)=-\\frac{\\hbar^2}{2m} \\frac{1}{\\Theta_l(\\theta)}\\left(\\frac{d^2 \\Theta_l(\\theta)}{d \\theta^2} \\right) = \\frac{\\hbar^2 l^2}{2m}\n",
"$$\n",
"which can be rearranged into the radial Schrödinger equation,\n",
"$$\n",
"-\\frac{\\hbar^2}{2m} \\left(\\frac{1}{r^2} \\frac{d^2}{dr^2} + \\frac{1}{r} \\frac{d}{dr} - \\frac{l^2}{r^2} \\right)R_{n,l}(r) + V(r) R_{n,l}(r) = E_{n,l} R_{n,l}(r)\n",
"$$\n",
"Notice that the radial eigenfunctions, $R_{n,l}(r)$, and the energy eigenvalues, $E_{n,l}$, depend on the angular motion of the particle, as quantized by $l$. The term $\\frac{\\hbar^2 l^2}{2mr^2}$ is exactly the centrifugal potential, indicating that it takes energy to hold a rotating particle in an orbit with radius $r$, and that the potential energy that is required grows with $r^{-2}$. Notice also that no assumptions have been made about the nature of the circular potential, $V(r)$. The preceding analysis holds for *any* circular-symmetric potential."
]
},
{
"cell_type": "markdown",
"id": "plain-philosophy",
"metadata": {},
"source": [
"### The Radial Schrödinger Equation for a Particle Confined to a Circular Disk\n",
"For the circular disk, where\n",
"$$\n",
"V(r) = \n",
"\\begin{cases}\n",
" 0 & r \\lt a\\\\\n",
" +\\infty & a \\leq r\n",
"\\end{cases}\n",
"$$\n",
"it is somewhat more convenient to rewrite the radial Schrödinger equation as a [homogeneous linear differential equation](https://en.wikipedia.org/wiki/Homogeneous_differential_equation)\n",
"$$\n",
"-\\frac{\\hbar^2}{2m} \\left(r^2 \\frac{d^2 R_{n,l}(r)}{dr^2} + r \\frac{d R_{n,l}(r)}{dr} + \\left[\\left(\\frac{2m E_{n,l}}{\\hbar^2} \\right) r^2 - l^2\\right]R_{n,l}(r) \\right) + r^2 V(r) R_{n,l}(r) = 0\n",
"$$\n",
"Using the specific form of the equation, we have that, for $0 \\lt r \\lt a$, \n",
"$$\n",
"-\\frac{\\hbar^2}{2m} \\left(r^2 \\frac{d^2 R_{n,l}(r)}{dr^2} + r \\frac{d R_{n,l}(r)}{dr} + \\left[\\left(\\frac{2m E_{n,l}}{\\hbar^2} \\right) r^2 - l^2\\right]R_{n,l}(r) \\right) = 0\n",
"$$\n",
"While this equation can be solved by the usual methods, that is [beyond the scope of this course](https://opencommons.uconn.edu/cgi/viewcontent.cgi?article=1013&context=chem_educ). However, we recognize that this equation is strongly resembles [Bessel's differential equation](https://en.wikipedia.org/wiki/Bessel_function),\n",
"$$\n",
"x^2 \\frac{d^2 f}{dx^2} + x \\frac{df}{dx} + \\left(x^2 - \\alpha^2 \\right) f(x) = 0\n",
"$$\n",
"The solutions to Bessel's equation are called the *Bessel functions of the first kind* and denoted, $J_{\\alpha}(r)$. However, the radial wavefunction must vanish at the edge of the disk, $R_{n,l}(a) = 0$, and the Bessel functions generally do not satisfy this requirement. Recall that the boundary condition in the 1-dimensional particle in a box was satisfied by moving from the generic solution, $\\psi(x) \\propto \\sin(x)$ to the scaled solution, $\\psi(x) \\propto \\sin(k x)$, where $k=\\tfrac{2 \\pi}{a}$ was chosen to satisfy the boundary condition. Similarly, we write the solutions as $R_{n,l}(r) \\propto J_l(kr)$. Substituting this form into the Schrödinger equation and using the fact that:\n",
"$$\n",
"(kr)^n \\frac{d^n}{d(kr)^n} = r^n \\frac{d^n}{dr^n} \\qquad \\qquad n=1,2,\\ldots \n",
"$$\n",
"we have\n",
"$$\n",
"-\\frac{\\hbar^2}{2m} \\left((kr)^2 \\frac{d^2 J_{l}(kr)}{d(kr)^2} + (kr) \\frac{d J_{l}(kr)}{d(kr)} + \\left[\\left(\\frac{2m E_{n,l}}{k^2 \\hbar^2} \\right) (kr)^2 - l^2\\right]J_{l}(kr) \\right) = 0\n",
"$$\n",
"Referring back to the Bessel equation, it is clear that this equation is satisfied when \n",
"$$\n",
"\\frac{2m E_{n,l}}{k^2 \\hbar^2} = 1\n",
"$$\n",
"or, equivalently,\n",
"$$\n",
"E_{n,l} = \\frac{\\hbar^2 k^2}{2m}\n",
"$$\n",
"where $k$ is chosen so that $J_l(ka) = 0$. If we label the zeros of the Bessel functions,\n",
"$$\n",
"J_l(x_{n,l}) = 0 \\qquad \\qquad n=1,2,3,\\ldots \\\\\n",
"x_{1,l} \\lt x_{2,l} \\lt x_{3,l} \\lt \\cdots\n",
"$$\n",
"then \n",
"$$\n",
"k_{n,l} = \\frac{x_{n,l}}{a}\n",
"$$\n",
"and the energies of the particle-in-a-disk are\n",
"$$\n",
"E_{n,l} = \\frac{\\hbar^2 x_{n,l}^2}{2ma^2} = \\frac{h^2 x_{n,l}^2}{8 m \\pi^2 a^2}\n",
"$$\n",
"and the eigenfunctions of the particle-in-a-disk are:\n",
"$$\n",
"\\psi_{n,l}(r,\\theta) \\propto J_{l}\\left(\\frac{x_{n,l}r}{a} \\right) e^{i l \\theta}\n",
"$$\n"
]
},
{
"cell_type": "markdown",
"id": "reflected-constraint",
"metadata": {},
"source": [
"### Eigenvalues and Eigenfunctions for a Particle Confined to a Circular Disk\n",
"![Vibrations of a Circular Drum-Head](https://upload.wikimedia.org/wikipedia/commons/b/bc/Vibrating_drum_Bessel_function.gif \"An eigenfunction of the Particle-in-a-Circle. CC-SA4 license by Sławomir Biały at English Wikipedia\")\n",
"The energies of a particle confined to a circular disk of radius $a$ are:\n",
"$$\n",
"E_{n,l} = \\frac{\\hbar^2 x_{n,l}^2}{2ma^2} = \\frac{h^2 x_{n,l}^2}{8 m \\pi^2 a^2} \\qquad \\qquad n=1,2,\\ldots; \\quad l=0,\\pm 1,\\pm 2, \\ldots\n",
"$$\n",
"and its eigenfunctions are:\n",
"$$\n",
"\\psi_{n,l}(r,\\theta) \\propto J_{l}\\left(\\frac{x_{n,l}r}{a} \\right) e^{i l \\theta}\n",
"$$\n",
"where $x_{n,l}$ are the zeros of the Bessel function, $J_l(x_{n,l}) = 0$. The first zero is $x_{1,0} = 2.4048$. These solutions are exactly the resonant energies and modes that are associated with the vibration of a circular drum whose membrane has uniform thickness/density. \n",
"\n",
"You can find elegant video animations of the eigenvectors of the particle-in-a-circle at the following links:\n",
"- [Interactive Demonstration of the States of a Particle-in-a-Circular-Disk](https://demonstrations.wolfram.com/ParticleInAnInfiniteCircularWell/)\n",
"- [Movie animation of the quantum states of a particle-in-a-circular-disk](https://www.reddit.com/r/dataisbeautiful/comments/mfx5og/first_70_states_of_a_particle_trapped_in_a/?utm_source=share&utm_medium=web2x&context=3)\n",
"\n",
"A subtle result, [originally proposed by Bourget](https://en.wikipedia.org/wiki/Bessel_function#Bourget's_hypothesis), is that no two Bessel functions ever have the same zeros, which means that the values of $\\{x_{n,l} \\}$ are all distinct. A corollary of this is that eigenvalues of the particle confined to a circular disk are either nondegenerate ($l=0$) or doubly degenerate ($|l| /ge 1$). There are no accidental degeneracies for a particle in a circular disk. \n",
"\n",
"The energies of an electron confined to a circular disk with radius $a$ Bohr are: \n",
"$$\n",
"E_{n,l} = \\tfrac{x_{n,l}^2}{2a^2}\n",
"$$\n",
"The following code block computes these energies. "
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "neutral-height",
"metadata": {},
"outputs": [],
"source": [
"\n",
"from scipy import constants\n",
"from scipy import special\n",
"import ipywidgets as widgets\n",
"import mpmath"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "persistent-grace",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b82fa6b5957e4bfbab0dbb6309392740",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(VBox(children=(FloatSlider(value=1.0, description='a (length):', max=10.0, min=0.01, step=0.01)…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#The next few lines just set up the sliders for setting parameters.\n",
"#Principle quantum number slider:\n",
"n = widgets.IntSlider(\n",
" value=1,\n",
" min=1,\n",
" max=10,\n",
" step=1,\n",
" description='n (princ. #):',\n",
" disabled=False,\n",
" continuous_update=True,\n",
" orientation='horizontal',\n",
" readout=True,\n",
" readout_format='d')\n",
"\n",
"#Angular quantum number slider:\n",
"l = widgets.IntSlider(\n",
" value=0,\n",
" min=-10,\n",
" max=10,\n",
" step=1,\n",
" description='l (ang. #):',\n",
" disabled=False,\n",
" continuous_update=True,\n",
" orientation='horizontal',\n",
" readout=True,\n",
" readout_format='d')\n",
"\n",
"#Box length slider:\n",
"a = widgets.FloatSlider(\n",
" value=1,\n",
" min=.01,\n",
" max=10.0,\n",
" step=0.01,\n",
" description='a (length):',\n",
" disabled=False,\n",
" continuous_update=True,\n",
" orientation='horizontal',\n",
" readout=True,\n",
" readout_format='.2f',\n",
")\n",
"\n",
"# Define a function for the energy (in a.u.) of a particle in a circular disk\n",
"# with length a, principle quantum number n, and angular quantum number l\n",
"# The length is input in Bohr (atomic units).\n",
"def compute_energy_disk(n, l, a):\n",
" \"Compute 1-dimensional particle-in-a-spherical-ball energy.\"\n",
" #Compute the first n zeros of the Bessel function\n",
" zeros = special.jn_zeros(l,n)\n",
" #Compute the energy from the n-th zero.\n",
" return (zeros[-1])**2/ (2 * a**2)\n",
"\n",
"#This next bit of code just prints out the energy in atomic units\n",
"def print_energy_disk(a, n, l):\n",
" print(f'The energy of an electron confined to a disk with radius {a:.2f} a.u.,'\n",
" f' principle quantum number {n}, and angular quantum number {l}'\n",
" f' is {compute_energy_disk(n, l, a):.3f} a.u..')\n",
"\n",
"out = widgets.interactive_output(print_energy_disk, {'a': a, 'n': n, 'l': l})\n",
"\n",
"widgets.VBox([widgets.VBox([a, n, l]),out]) "
]
},
{
"cell_type": "markdown",
"id": "great-identity",
"metadata": {},
"source": [
"## Particle-in-a-Spherical Ball\n",
"\n",
"### The Schrödinger equation for a particle confined to a spherical ball\n",
"![Quantum Dot](https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Colloidal_nanoparticle_of_lead_sulfide_%28selenide%29_with_complete_passivation.png/842px-Colloidal_nanoparticle_of_lead_sulfide_%28selenide%29_with_complete_passivation.png \"A quantum dot is a model for a particle spherically confined. CC-SA3 licensed by Zherebetskyy\")\n",
"\n",
"The final model we will consider for now is a particle confined to a spherical ball with radius $a$,\n",
"$$ \n",
"\\left(-\\frac{\\hbar^2}{2m} \\nabla^2 + V(x,y,z) \\right)\\psi(x,y,z) = E \\psi(x,y,z)\n",
"$$\n",
"where \n",
"$$\n",
"V(x,y,z) = \n",
"\\begin{cases}\n",
" 0 & \\sqrt{x^2 + y^2 + z^2} \\lt a\\\\\n",
" +\\infty & a \\leq \\sqrt{x^2 + y^2 + z^2}\n",
"\\end{cases}\n",
"$$\n",
"However, it is more useful to write this in spherical polar coordinates (i.e., $r,\\theta, \\phi$): \n",
"\\begin{align}\n",
"x &= r \\sin \\theta \\cos \\phi\\\\\n",
"y &= r \\sin \\theta \\sin \\phi\\\\\n",
"z &= r cos \\theta \\\\\n",
"\\\\\n",
"r &= \\sqrt{x^2 + y^2 + z^2} \\\\\n",
"\\theta &= \\arccos{\\tfrac{z}{r}} \\\\\n",
"\\phi &= \\arctan{\\tfrac{y}{x}}\n",
"\\end{align}\n",
"because the potential depends only on the distance from the center of the system, \n",
"$$ \n",
"\\left(-\\frac{\\hbar^2}{2m} \\nabla^2 + V(r) \\right)\\psi(r,\\theta, \\phi) = E \\psi(r,\\theta, \\phi)\n",
"$$\n",
"where \n",
"$$\n",
"V(r) = \n",
"\\begin{cases}\n",
" 0 & r \\lt a\\\\\n",
" +\\infty & a \\leq r\n",
"\\end{cases}\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "junior-accountability",
"metadata": {},
"source": [
"### The Schrödinger Equation in Spherical Coordinates\n",
"In order to solve the Schrödinger equation for a particle in a spherical ball, we need to rewrite the Laplacian, $\\nabla^2 = \\frac{d^2}{dx^2} + \\frac{d^2}{dy^2} + \\frac{d^2}{dz^2}$ in polar coordinates. A meticulous derivation of the [Laplacian](https://en.wikipedia.org/wiki/Laplace_operator) and its [eigenfunctions](http://galileo.phys.virginia.edu/classes/252/Classical_Waves/Classical_Waves.html) The result is that: \n",
"$$\n",
"\\nabla^2 = \\frac{1}{r^2}\\frac{d}{dr}r^2\\frac{d}{dr} + \\frac{1}{r^2 \\sin \\theta}\\frac{d}{d\\theta}\\sin\\theta\\frac{d}{d\\theta} + \\frac{1}{r^2 \\sin^2 \\theta} \\frac{d^2}{d\\phi^2}\n",
"$$\n",
"which can be rewritten in a more familiar form as:\n",
"$$\n",
"\\nabla^2 = \\frac{d^2}{dr^2}+ \\frac{2}{r}\\frac{d}{dr} + \\frac{1}{r^2}\\left[\\frac{1}{\\sin \\theta}\\frac{d}{d\\theta}\\sin\\theta\\frac{d}{d\\theta} + \\frac{1}{\\sin^2 \\theta} \\frac{d^2}{d\\phi^2}\\right]\n",
"$$\n",
"Inserting this into the Schrödinger equation for a particle confined to a spherical potential, $V(r)$, one has:\n",
"$$\n",
"\\left({} -\\frac{\\hbar^2}{2m} \\left( \\frac{d^2}{dr^2}\n",
"+ \\frac{2}{r} \\frac{d}{dr}\\right) \n",
" - \\frac{\\hbar^2}{2mr^2}\\left[\\frac{1}{\\sin \\theta}\\frac{d}{d\\theta}\\sin\\theta\\frac{d}{d\\theta} \n",
"+ \\frac{1}{\\sin^2 \\theta} \\frac{d^2}{d\\phi^2}\\right] \\\\ \n",
" + V(r) \\right)\\psi_{n,l,m_l}(r,\\theta,\\phi) \n",
"= E_{n,l,m_l}\\psi_{n,l,m_l}(r,\\theta,\\phi)\n",
"$$\n",
"The solutions of the Schrödinger equation are characterized by three quantum numbers because this equation is 3-dimensional.\n",
"\n",
"Recall that the classical equation for the kinetic energy of a set of points rotating around the origin, in spherical coordinates, is:\n",
"$$\n",
"T = \\sum_{i=1}^{N_{\\text{particles}}} \\frac{p_{r;i}^2}{2m_i} + \\frac{\\mathbf{L}_i \\cdot \\mathbf{L}_i}{2m_i r_i^2} \n",
"$$\n",
"where $p_{r,i}$ and $\\mathbf{L}_i$ are the radial and [angular momenta](https://en.wikipedia.org/wiki/Angular_momentum#In_Hamiltonian_formalism) of the $i^{\\text{th}}$ particle, respectively. It's apparent, then, that the quantum-mechanical operator for the square of the angular momentum is:\n",
"$$\n",
"\\hat{L}^2 = - \\hbar^2 \\left[\\frac{1}{\\sin \\theta}\\frac{d}{d\\theta}\\sin\\theta\\frac{d}{d\\theta} \n",
"+ \\frac{1}{\\sin^2 \\theta} \\frac{d^2}{d\\phi^2}\\right]\n",
"$$\n",
"\n",
"The Schrödinger equation for a spherically-symmetric system is thus,\n",
"$$\n",
"\\left(-\\frac{\\hbar^2}{2m} \\left( \\frac{d^2}{dr^2}\n",
"+ \\frac{2}{r} \\frac{d}{dr}\\right) \n",
" + \\frac{\\hat{L}^2}{2mr^2} + V(r) \\right)\n",
" \\psi_{n,l,m_l}(r,\\theta,\\phi) \n",
"= E_{n,l,m_l}\\psi_{n,l,m_l}(r,\\theta,\\phi)\n",
"$$\n"
]
},
{
"cell_type": "markdown",
"id": "increased-brass",
"metadata": {},
"source": [
"### The Angular Wavefunction in Spherical Coordinates\n",
"![Spherical Harmonics](https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Spherical_Harmonics.png/1024px-Spherical_Harmonics.png \"Representation of the real spherical harmonics, licensed CC-SA3 by Inigo.quilez\")\n",
"\n",
"The Schrödinger equation for a spherically-symmetric system can be solved by separation of variables. If one compares to the result in polar coordinates, it is already clear that the angular wavefunction has the form $\\Theta{\\theta,\\phi} = P(\\theta)e^{im_l\\phi}$. From this starting point we could deduce the eigenfunctions of $\\hat{L}^2$, but instead we will just present the eigenfunctions and eigenvalues,\n",
"$$\n",
"\\hat{L}^2 Y_l^{m_l} (\\theta, \\phi) = \\hbar^2 l(l+1)Y_l^{m_l} (\\theta, \\phi) \\qquad l=0,1,2,\\ldots m_l=0, \\pm 1, \\ldots, \\pm l\n",
"$$\n",
"The functions [$Y_l^{m_l} (\\theta, \\phi)$](https://en.wikipedia.org/wiki/Spherical_harmonics) are called [spherical harmonics](https://mathworld.wolfram.com/SphericalHarmonic.html), and they are the fundamental vibrational modes of the surface of a spherical membrane. Note that these functions resemble s-orbitals ($l=0$), p-orbitals ($l=1$), d-orbitals ($l=2$), etc., and that the number of choices for $m_l$, $2l+1$, is equal to the number of $l$-type orbitals.\n"
]
},
{
"cell_type": "markdown",
"id": "enclosed-northeast",
"metadata": {},
"source": [
"### The Radial Schrödinger equation in Spherical Coordinates\n",
"Using separation of variables, we write the wavefunction as:\n",
"$$\n",
"\\psi_{n,l,m_l}(r,\\theta,\\phi) = R_{n,l}(r) Y_l^{m_l}(\\theta,\\phi) \n",
"$$\n",
"Inserting this expression into the Schrödinger equation, and exploiting the fact that the spherical harmonics are eigenfunctions of $\\hat{L}^2$, one obtains the radial Schrödinger equation:\n",
"$$\n",
"\\left(-\\frac{\\hbar^2}{2m} \\left( \\frac{d^2}{dr^2}\n",
"+ \\frac{2}{r} \\frac{d}{dr}\\right) \n",
" + \\frac{\\hbar^2 l(l+1)}{2mr^2} + V(r) \\right)\n",
" R_{n,l}(r) \n",
"= E_{n,l}R_{n,l}(r)\n",
"$$\n",
"\n",
"Inside the sphere, $V(r) = 0$. Rearranging the radial Schrödinger equation for the interior of the sphere as a homogeneous linear differential equation,\n",
"$$\n",
"r^2 \\frac{d^2R_{n,l}}{dr^2}\n",
"+ 2r \\frac{dR_{n,l}}{dr}\n",
"+ \\left( \\frac{2mr^2E_{n,l}}{\\hbar^2} - l(l+1) \\right)\n",
" R_{n,l}(r) = 0\n",
"$$\n",
"This equation strongly resembles the differential equations satisfied by the [spherical Bessel functions](https://en.wikipedia.org/wiki/Bessel_function#Spherical_Bessel_functions:_jn,_yn), $j_l(x)$\n",
"$$\n",
"x^2 \\frac{d^2 j_l}{dx^2} + 2x \\frac{dj_l}{dx} + \\left(x^2 - l(l+1) \\right)j_l(x) = 0\n",
"$$\n",
"\n",
"The spherical Bessel functions are eigenfunctions for the particle-in-a-spherical-ball, but do not satisfy the boundary condition that the wavefunction be zero on the sphere, $R_{n,l}(a) = 0$. To satisfy this constraint, we propose\n",
"$$\n",
"R_{n,l}(r) = j_l(k r)\n",
"$$\n",
"Using this form in the radial Schrödinger equation, we have\n",
"$$\n",
"(kr)^2 \\frac{d^2 j_l(kr)}{d(kr)^2}\n",
"+ 2kr \\frac{d j_l(kr)}{d(kr)}\n",
"+ \\left( \\frac{2m(kr)^2E_{n,l}}{\\hbar^2k^2} - l(l+1) \\right)\n",
" j_l(kr) = 0\n",
"$$\n",
"Referring back to the differential equation satisfied by the spherical Bessel functions, it is clear that this equation is satisfied when \n",
"$$\n",
"\\frac{2m E_{n,l}}{k^2 \\hbar^2} = 1\n",
"$$\n",
"or, equivalently,\n",
"$$\n",
"E_{n,l} = \\frac{\\hbar^2 k^2}{2m}\n",
"$$\n",
"where $k$ is chosen so that $j_l(ka) = 0$. If we label the zeros of the spherical Bessel functions,\n",
"$$\n",
"j_l(y_{n,l}) = 0 \\qquad \\qquad n=1,2,3,\\ldots \\\\\n",
"y_{1,l} \\lt y_{2,l} \\lt y_{3,l} \\lt \\cdots\n",
"$$\n",
"then \n",
"$$\n",
"k_{n,l} = \\frac{y_{n,l}}{a}\n",
"$$\n",
"and the energies of the particle-in-a-ball are\n",
"$$\n",
"E_{n,l} = \\frac{\\hbar^2 y_{n,l}^2}{2ma^2} = \\frac{h^2 y_{n,l}^2}{8 m \\pi^2 a^2}\n",
"$$\n",
"and the eigenfunctions of the particle-in-a-ball are:\n",
"$$\n",
"\\psi_{n,l,m}(r,\\theta,\\phi) \\propto j_l\\left(\\frac{y_{n,l}r}{a} \\right) Y_l^{m_l}(\\theta, \\phi)\n",
"$$\n",
"Notice that the eigenenergies have the same form as those in the particle-in-a-disk and even the same as those for a particle-in-a-one-dimensional-box; the only difference is the identity of the function whose zeros we are considering."
]
},
{
"cell_type": "markdown",
"id": "invisible-florence",
"metadata": {},
"source": [
"## 📝 Exercise: Use the equation for the zeros of $\\sin x$ to write the wavefunction and energy for the one-dimensional particle-in-a-box in a form similar to the expressions for the particle-in-a-disk and the particle-in-a-sphere."
]
},
{
"cell_type": "markdown",
"id": "adjustable-infrared",
"metadata": {},
"source": [
"### Solutions to the Schrödinger Equation for a Particle Confined to a Spherical Ball\n",
"![Eigenfunction Animation](https://upload.wikimedia.org/wikipedia/commons/8/86/Hydrogen_Wave.gif \"Schematic of an eigenfunction of a spherically-confined particle, with the n, l, and m quantum numbers specified\")\n",
"The energies of a particle confined to a spherical ball of radius $a$ are:\n",
"$$\n",
"E_{n,l} = \\frac{\\hbar^2 y_{n,l}^2}{2ma^2} \\qquad n=1,2,\\ldots; \\quad l=0,1,\\ldots; \\quad m=0, \\pm1, \\ldots, \\pm l\n",
"$$\n",
"and its eigenfunctions are:\n",
"$$\n",
"\\psi_{n,l,m}(r,\\theta,\\phi) \\propto j_l\\left(\\frac{y_{n,l}r}{a} \\right) Y_l^{m_l}(\\theta, \\phi)\n",
"$$\n",
"where $y_{n,l}$ are the zeros of the spherical Bessel function, $j_l(y_{n,l}) = 0$. The first spherical Bessel function, which corresponds to s-like solutions ($l=0$), is \n",
"$$\n",
"j_l(y) = \\frac{\\sin y}{y}\n",
"$$\n",
"and so \n",
"$$\n",
"y_{n,0} = n \\pi\n",
"$$\n",
"This gives explicit and useful expressions for the $l=0$ wavefunctions and energies,\n",
"$$\n",
"E_{n,0} = \\frac{h^2 n^2}{8 m a^2}\n",
"$$\n",
"and its eigenfunctions are:\n",
"$$\n",
"\\psi_{n,0,0}(r,\\theta,\\phi) \\propto \\frac{a}{n \\pi r} \\sin \\left( \\frac{n \\pi r}{a} \\right)\n",
"$$\n",
"Notice that the $l=0$ energies are the same as in the one-dimensional particle-in-a-box and the eigenfunctions are very similar. \n",
"\n",
"In atomic units, the energies of an electron confined to a spherical ball with radius $a$ Bohr are: \n",
"$$\n",
"E_{n,l} = \\tfrac{y_{n,l}^2}{2a^2}\n",
"$$\n",
"The following code block computes these energies. It uses the relationship between the spherical Bessel functions and the ordinary Bessel functions,\n",
"$$\n",
"j_l(x) = \\sqrt{\\frac{\\pi}{2x}} J_{l+\\tfrac{1}{2}}(x)\n",
"$$\n",
"which indicates that the zeros of $j_l(x)$ and $J_{l+\\tfrac{1}{2}}(x)$ occur the same places."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "broadband-soviet",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e87fcf21372b43ceb834c2efbb8e7ec7",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(VBox(children=(FloatSlider(value=1.0, description='a (length):', max=10.0, min=0.01, step=0.01)…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#The next few lines just set up the sliders for setting parameters.\n",
"#Principle quantum number slider:\n",
"n = widgets.IntSlider(\n",
" value=1,\n",
" min=1,\n",
" max=10,\n",
" step=1,\n",
" description='n (princ. #):',\n",
" disabled=False,\n",
" continuous_update=True,\n",
" orientation='horizontal',\n",
" readout=True,\n",
" readout_format='d')\n",
"\n",
"#Angular quantum number slider:\n",
"l = widgets.IntSlider(\n",
" value=0,\n",
" min=-10,\n",
" max=10,\n",
" step=1,\n",
" description='l (ang. #):',\n",
" disabled=False,\n",
" continuous_update=True,\n",
" orientation='horizontal',\n",
" readout=True,\n",
" readout_format='d')\n",
"\n",
"#Box length slider:\n",
"a = widgets.FloatSlider(\n",
" value=1,\n",
" min=.01,\n",
" max=10.0,\n",
" step=0.01,\n",
" description='a (length):',\n",
" disabled=False,\n",
" continuous_update=True,\n",
" orientation='horizontal',\n",
" readout=True,\n",
" readout_format='.2f',\n",
")\n",
"\n",
"# Define a function for the energy (in a.u.) of a particle in a spherical ball\n",
"# with length a, principle quantum number n, and angular quantum number l\n",
"# The length is input in Bohr (atomic units).\n",
"def compute_energy_ball(n, l, a):\n",
" \"Compute 1-dimensional particle-in-a-spherical-ball energy.\"\n",
" #Compute the energy from the n-th zero.\n",
" return float((mpmath.besseljzero(l+0.5,n))**2/ (2 * a**2))\n",
"\n",
"#This next bit of code just prints out the energy in atomic units\n",
"def print_energy_ball(a, n, l):\n",
" print(f'The energy of an electron confined to a ball with radius {a:.2f} a.u.,'\n",
" f' principle quantum number {n}, and angular quantum number {l}'\n",
" f' is {compute_energy_ball(n, l, a):5.2f} a.u..')\n",
" \n",
"out = widgets.interactive_output(print_energy_ball, {'a': a, 'n': n, 'l': l})\n",
"\n",
"widgets.VBox([widgets.VBox([a, n, l]),out]) "
]
},
{
"cell_type": "markdown",
"id": "outside-thread",
"metadata": {},
"source": [
"## 📝 Exercise: For the hydrogen atom, the 2s orbital ($n=2$, $l=0$) and 2p orbitals ($n=2$,$l=1$,$m_l=-1,0,1$) have the same energy. Is this true for the particle-in-a-ball?"
]
},
{
"cell_type": "markdown",
"id": "verbal-capitol",
"metadata": {},
"source": [
"## 🪞 Self-Reflection\n",
"- Can you think of other physical or chemical systems where a multi-dimensional particle-in-a-box Hamiltonian would be appropriate? What shape would the box be? \n",
"- Can you think of another chemical system where separation of variables would be useful?\n",
"- Explain why separation of variables is consistent with the Born Postulate that the square-magnitude of a particle's wavefunction is the probability distribution function for the particle.\n",
"- What is the expression for the zero-point energy and ground-state wavefunction of an electron in a 4-dimensional box? Can you identify some states of the 4-dimensional box with especially high degeneracy?\n",
"- What is the degeneracy of the k-th excited state of a particle confined to a circular disk? What is the degeneracy of the k-th excited state of a particle confined in a spherical ball?\n",
"- Write a Python function that computes the normalization constant for the particle-in-a-disk and the particle-in-a-sphere.\n",
"\n",
"## 🤔 Thought-Provoking Questions\n",
"- How would you write the Hamiltonian for two electrons confined to a box? Could you solve this system with separation of variables? Why or why not? \n",
"- Write the time-independent Schrödinger equation for an electron in an cylindrical box. What are its eigenfunctions and eigenvalues? \n",
"- What would the time-independent Schrödinger equation for electrons in an elliptical box look like? (You may find it useful to reference [elliptical](https://en.wikipedia.org/wiki/Elliptic_coordinate_system) and [ellipsoidal](https://en.wikipedia.org/wiki/Ellipsoidal_coordinates) coordinates.\n",
"- Construct an example of a four-fold *accidental* degeneracy for a particle in a 2-dimensional rectangular (not square!) box. \n",
"- If there is any degenerate state (either accidental or due to symmetry) for the multi-dimensional particle-in-a-box, then there are always an infinite number of other degenerate states. Why?\n",
"- Consider an electron confined to a circular harmonic well, $V(r) = k r^2$. What is the angular kinetic energy and angular wavefunction for this system? \n",
"\n",
"## 🔁 Recapitulation\n",
"- Write the Hamiltonian, time-independent Schrödinger equation, eigenfunctions, and eigenvalues for two-dimensional and three-dimensional particles in a box.\n",
"- What is the definition of degeneracy? How does an \"accidental\" degeneracy differ from an ordinary degeneracy? \n",
"- What is the zero-point energy for an electron in a circle and an electron in a sphere? \n",
"- What are the spherical harmonics? \n",
"- Describe the technique of separation of variables? When can it be applied?\n",
"- What is the Laplacian operator in Cartesian coordinates? In spherical coordinates?\n",
"- What are *boundary conditions* and how are they important in quantum mechanics?\n",
"\n",
"## 🔮 Next Up...\n",
"- 1-electron atoms\n",
"- Approximate methods for quantum mechanics\n",
"- Multielectron particle-in-a-box\n",
"- Postulates of Quantum Mechanics\n",
"\n",
"## 📚 References\n",
"My favorite sources for this material are:\n",
"- [Randy's book](https://github.com/PaulWAyers/IntroQChem/blob/main/documents/DumontBook.pdf?raw=true) (See Chapter 3)\n",
"- Also see my (pdf) class [notes]\n",
"(https://github.com/PaulWAyers/IntroQChem/blob/main/documents/PinBox.pdf?raw=true).\n",
"- [McQuarrie and Simon summary](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Map%3A_Physical_Chemistry_(McQuarrie_and_Simon)/03%3A_The_Schrodinger_Equation_and_a_Particle_in_a_Box)\n",
"- [Wolfram solutions for particle in a circle](https://demonstrations.wolfram.com/ParticleInAnInfiniteCircularWell/)\n",
"- [Meticulous solution for a particle confined to a circular disk](https://opencommons.uconn.edu/cgi/viewcontent.cgi?article=1013&context=chem_educ)\n",
"- [General discussion of the particle-in-a-region, which is the same as the classical wave equation](http://galileo.phys.virginia.edu/classes/252/Classical_Waves/Classical_Waves.html)\n",
"- [More on the radial Schrödinger equation](https://quantummechanics.ucsd.edu/ph130a/130_notes/node222.html)\n",
"- Python tutorial ([part 1](https://physicspython.wordpress.com/2020/05/28/the-problem-of-the-hydrogen-atom-part-1/) and [part 2](https://physicspython.wordpress.com/2020/06/04/the-problem-of-the-hydrogen-atom-part-2/)) on the Hydrogen atom.\n",
"\n",
"There are also some excellent wikipedia articles:\n",
"- [Particle in a Sphere](https://en.wikipedia.org/wiki/Particle_in_a_spherically_symmetric_potential)\n",
"- [Other exactly solvable models](https://en.wikipedia.org/wiki/List_of_quantum-mechanical_systems_with_analytical_solutions)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "combined-trance",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.8.3"
},
"toc": {
"base_numbering": "4",
"nav_menu": {},
"number_sections": true,
"sideBar": false,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": true,
"toc_position": {},
"toc_section_display": false,
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 5
}