Skip to content

Commit 3292320

Browse files
committed
Create the-infinite-square-well.md
1 parent 683561d commit 3292320

8 files changed

+1794
-0
lines changed

_posts/de/2024-10-18-the-infinite-square-well.md

Lines changed: 255 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
---
2+
title: "The 1D Infinite Square Well"
3+
description: >-
4+
We examine the simple yet important representative problem of the 1D infinite square well, which well illustrates the basic concepts of quantum mechanics. We find the nth stationary state ψ(x) and energy E of a particle in this ideal situation, and learn four important mathematical properties of ψ(x). From this, we derive the general solution Ψ(x,t).
5+
categories: [Engineering Physics, Modern Physics]
6+
tags: [Quantum Mechanics, Schrödinger Equation, Wave Function, Hamiltonian]
7+
math: true
8+
---
9+
10+
## TL;DR
11+
> - 1D Infinite Square Well Problem:
12+
> $$V(x) = \begin{cases}
13+
> 0, & 0 \leq x \leq a,\\
14+
> \infty, & \text{otherwise}
15+
> \end{cases}$$
16+
> - Boundary conditions: $ \psi(0) = \psi(a) = 0 $
17+
> - Energy levels of the nth stationary state: $E_n = \cfrac{n^2\pi^2\hbar^2}{2ma^2}$
18+
> - Solution of the time-independent Schrödinger equation inside the well:
19+
>
20+
> $$ \psi_n(x) = \sqrt{\frac{2}{a}}\sin\left(\frac{n\pi}{a}x\right) $$
21+
>
22+
> - Physical interpretation of each stationary state $\psi_n$:
23+
> - Form of standing waves on a string of length $a$
24+
> - **Ground state**: The stationary state $\psi_1$ with the lowest energy
25+
> - **Excited states**: The remaining states with $n\geq 2$ where energy increases proportionally to $n^2$
26+
> - Four important mathematical properties of $\psi_n$:
27+
> 1. If the potential $V(x)$ has symmetry, even and odd functions appear alternately about the center of the well
28+
> 2. As energy increases, each consecutive state increases by one **node**
29+
> 3. Possesses **orthonormality**
30+
>
31+
> $$ \begin{gather*}
32+
> \int \psi_m(x)^*\psi_n(x)dx=\delta_{mn} \\
33+
> \delta_{mn} = \begin{cases}
34+
> 0, & m\neq n \\
35+
> 1, & m=n
36+
> \end{cases}
37+
> \end{gather*} $$
38+
>
39+
> 4. Possesses **completeness**
40+
>
41+
> $$ f(x) = \sum_{n=1}^{\infty}c_n\psi_n(x) = \sqrt{\frac{2}{a}}\sum_{n=1}^{\infty} c_n\sin\left(\frac{n\pi}{a}x\right) $$
42+
>
43+
> - General solution of the Schrödinger equation (linear combination of stationary states):
44+
>
45+
> $$ \begin{gather*}
46+
> \Psi(x,t) = \sum_{n=1}^{\infty} c_n\sqrt{\frac{2}{a}}\sin{\left(\frac{n\pi}{a}x \right)}e^{-i(n^2\pi^2\hbar/2ma^2)t}, \\
47+
> \text{where the coefficient }c_n = \sqrt{\frac{2}{a}}\int_0^a \sin{\left(\frac{n\pi}{a}x \right)}\Psi(x,0) dx.
48+
> \end{gather*}$$
49+
{: .prompt-info }
50+
51+
## Prerequisites
52+
- Continuous probability distribution and probability density
53+
- Orthogonality and normalization (Linear Algebra)
54+
- Fourier series and completeness (Linear Algebra)
55+
- [Schrödinger Equation and the Wave Function](/posts/schrodinger-equation-and-the-wave-function/)
56+
- [Ehrenfest Theorem](/posts/ehrenfest-theorem/)
57+
- [Time-Independent Schrödinger Equation](/posts/time-independent-schrodinger-equation/)
58+
59+
## Given Potential Condition
60+
If the potential is
61+
62+
$$ V(x) = \begin{cases}
63+
0, & 0 \leq x \leq a,\\
64+
\infty, & \text{otherwise}
65+
\end{cases} \tag{1}$$
66+
67+
then a particle in this potential is a free particle within the range $0<x<a$ and experiences an infinite force at both ends ($x=0$ and $x=a$), preventing escape. In a classical model, this is interpreted as an infinite back-and-forth motion with perfectly elastic collisions at both ends, without any non-conservative forces acting. Although this potential is highly artificial and simple, it can serve as a useful reference case when studying other physical situations in quantum mechanics, so it needs to be carefully examined.
68+
69+
![Infinite Potential Well](https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Infinite_potential_well-en.svg/615px-Infinite_potential_well-en.svg.png)
70+
> *Image source*
71+
> - Author: Wikimedia user [Benjamin ESHAM](https://commons.wikimedia.org/wiki/User:Bdesham)
72+
> - License: [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
73+
74+
## Model and Boundary Condition Setup
75+
Outside the well, the probability of finding the particle is $0$, so $\psi(x)=0$. Inside the well, $V(x)=0$, so the [time-independent Schrödinger equation](/posts/time-independent-schrodinger-equation/) is
76+
77+
$$ -\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi \label{eqn:t_independent_schrodinger_eqn}\tag{2}$$
78+
79+
that is,
80+
81+
$$ \frac{d^2\psi}{dx^2} = -k^2\psi,\text{ where } k\equiv \frac{\sqrt{2mE}}{\hbar} \tag{3}$$
82+
83+
> Here, we assume $E\geq 0$.
84+
{: .prompt-info }
85+
86+
This is the equation describing a classical **simple harmonic oscillator**, and its general solution is
87+
88+
$$ \psi(x) = A\sin{kx} + B\cos{kx} \label{eqn:psi_general_solution}\tag{4}$$
89+
90+
Here, $A$ and $B$ are arbitrary constants, and when finding a specific solution that fits the problem situation, these constants are typically determined by the **boundary conditions** given in the problem. <u>For $\psi(x)$, the boundary conditions are usually that both $\psi$ and $d\psi/dx$ are continuous, but where the potential becomes infinite, only $\psi$ is continuous.</u>
91+
92+
## Solving the Time-Independent Schrödinger Equation
93+
94+
Since $\psi(x)$ is continuous,
95+
96+
$$ \psi(0) = \psi(a) = 0 \label{eqn:boundary_conditions}\tag{5}$$
97+
98+
must connect with the solution outside the well. From equation ($\ref{eqn:psi_general_solution}$), when $x=0$,
99+
100+
$$ \psi(0) = A\sin{0} + B\cos{0} = B $$
101+
102+
so, substituting ($\ref{eqn:boundary_conditions}$), we must have $B=0$.
103+
104+
$$ \therefore \psi(x)=A\sin{kx} \label{eqn:psi_without_B}. \tag{6}$$
105+
106+
Then, $\psi(a)=A\sin{ka}$, so to satisfy $\psi(a)=0$ from equation ($\ref{eqn:boundary_conditions}$), either $A=0$ (trivial solution) or $\sin{ka}=0$. Therefore,
107+
108+
$$ ka = 0,\, \pm\pi,\, \pm 2\pi,\, \pm 3\pi,\, \dots \tag{7}$$
109+
110+
Here too, $k=0$ is a trivial solution, and since it results in $\psi(x)=0$, which cannot be normalized, it is not the solution we are looking for in this problem. Also, since $\sin(-\theta)=-\sin(\theta)$, the negative sign can be absorbed into $A$ in equation ($\ref{eqn:psi_without_B}$), so considering only the case where $ka>0$ does not lose generality. Therefore, the possible solutions for $k$ are
111+
112+
$$ k_n = \frac{n\pi}{a},\ n\in\mathbb{N} \tag{8}$$
113+
114+
Then, $\psi_n=A\sin{k_n x}$ and $\cfrac{d^2\psi}{dx^2}=-Ak^2\sin{kx}$, so substituting into equation ($\ref{eqn:t_independent_schrodinger_eqn}$), the possible $E$ values are as follows:
115+
116+
$$ A\frac{\hbar^2}{2m}k_n^2\sin{k_n x} = AE_n\sin{k_n x} $$
117+
118+
$$ E_n = \frac{\hbar^2 k_n^2}{2m} = \frac{n^2\pi^2\hbar^2}{2ma^2}. \tag{9}$$
119+
120+
In stark contrast to the classical case, a quantum particle in an infinite square well cannot have arbitrary energy but must have one of the allowed values.
121+
122+
> Energy is quantized by the boundary conditions applied to the solution of the time-independent Schrödinger equation.
123+
{: .prompt-info }
124+
125+
Now we can find $A$ by normalizing $\psi$.
126+
127+
> Originally, we normalize $\Psi(x,t)$, but according to equation (11) in [Time-Independent Schrödinger Equation](/posts/time-independent-schrodinger-equation/#1-they-are-stationary-states), this corresponds to normalizing $\psi(x)$.
128+
{: .prompt-tip }
129+
130+
$$ \int_0^a |A|^2 \sin^2(kx)dx = |A|^2\frac{a}{2} = 1 $$
131+
132+
$$ \therefore |A|^2 = \frac{2}{a}. $$
133+
134+
This strictly determines only the magnitude of $A$, but since the phase of $A$ has no physical meaning, we can just use the positive real square root as $A$. Therefore, the solution inside the well is
135+
136+
$$ \psi_n(x) = \sqrt{\frac{2}{a}}\sin\left(\frac{n\pi}{a}x\right) \label{eqn:psi_n}\tag{10}$$
137+
138+
## Physical Interpretation of Each Stationary State $\psi_n$
139+
As in equation ($\ref{eqn:psi_n}$), we have found an infinite number of solutions for each energy level $n$ from the time-independent Schrödinger equation. If we draw the first few of these in a graph, it looks like the image below.
140+
141+
![Initial wavefunctions for the lowest four quantum states](https://upload.wikimedia.org/wikipedia/commons/4/47/Particle_in_a_box_wavefunctions_2.svg)
142+
> *Image source*
143+
> - Author: Wikimedia user [Papa November](https://commons.wikimedia.org/wiki/User:Papa_November)
144+
> - License: [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
145+
146+
These states take the form of standing waves on a string of length $a$, with $\psi_1$ having the lowest energy called the **ground state**, and the remaining states with $n\geq 2$ where energy increases proportionally to $n^2$ called **excited states**.
147+
148+
## Four Important Mathematical Properties of $\psi_n$
149+
All functions $\psi_n(x)$ have the following four important properties. These four properties are very powerful and are not limited to the infinite square well. The first property always holds if the potential itself is a function with symmetry, and the second, third, and fourth properties are general properties that appear regardless of the shape of the potential.
150+
151+
### 1. Even and odd functions appear alternately about the center of the well.
152+
For positive integers $n$, $\psi_{2n-1}$ is an even function, and $\psi_{2n}$ is an odd function.
153+
154+
### 2. As energy increases, each consecutive state increases by one node.
155+
For positive integers $n$, $\psi_n$ has $(n-1)$ **nodes**.
156+
157+
### 3. These states possess orthogonality.
158+
159+
$$ \int \psi_m(x)^*\psi_n(x)dx=0, \quad (m\neq n) \tag{11}$$
160+
161+
In this sense, they are **orthogonal** to each other.
162+
163+
> In the case of the infinite square well we are looking at now, $\psi$ is real, so we don't need to take the complex conjugate ($^*$) of $\psi_m$, but it's good to get into the habit of always attaching it for cases where it's not.
164+
{: .prompt-tip }
165+
166+
#### Proof
167+
When $m\neq n$,
168+
169+
$$ \begin{align*}
170+
\int \psi_m(x)^*\psi_n(x)dx &= \frac{2}{a}\int_0^a \sin{\left(\frac{m\pi}{a}x\right)}\sin(\frac{n\pi}{a}x)dx \\
171+
&= \frac{1}{a}\int_0^a \left[\cos{\left(\frac{m-n}{a}\pi x\right)-\cos{\left(\frac{m+n}{a}\pi x \right)}} \right]dx \\
172+
&= \left\{\frac{1}{(m-n)\pi}\sin{\left(\frac{m-n}{a}\pi x \right)} - \frac{1}{(m+n)\pi}\sin{\left(\frac{m+n}{a}\pi x \right)} \right\}\Bigg|^a_0 \\
173+
&= \frac{1}{\pi}\left\{\frac{\sin[(m-n)\pi]}{m-n}-\frac{\sin[(m+n)\pi]}{m+n} \right\} \\
174+
&= 0.
175+
\end{align*} $$
176+
177+
When $m=n$, this integral becomes 1 due to normalization, and using the **Kronecker delta** $\delta_{mn}$, we can express orthogonality and normalization together as
178+
179+
$$ \begin{gather*}
180+
\int \psi_m(x)^*\psi_n(x)dx=\delta_{mn} \label{eqn:orthonomality}\tag{12}\\
181+
\delta_{mn} = \begin{cases}
182+
0, & m\neq n \\
183+
1, & m=n
184+
\end{cases} \label{eqn:kronecker_delta}\tag{13}
185+
\end{gather*}$$
186+
187+
In this case, $\psi$ is said to be **orthonormal**.
188+
189+
### 4. These functions possess completeness.
190+
In the sense that any other function $f(x)$ can be written as a linear combination
191+
192+
$$ f(x) = \sum_{n=1}^{\infty}c_n\psi_n(x) = \sqrt{\frac{2}{a}}\sum_{n=1}^{\infty} c_n\sin\left(\frac{n\pi}{a}x\right) \label{eqn:fourier_series}\tag{14}$$
193+
194+
these functions are **complete**. Equation ($\ref{eqn:fourier_series}$) is the **Fourier series** of $f(x)$, and the fact that any function can be expanded in this way is called **Dirichlet's theorem**.
195+
196+
## Finding Coefficients $c_n$ Using Fourier's Trick
197+
When $f(x)$ is given, we can find the coefficients $c_n$ using the following method called **Fourier's trick**, utilizing the completeness and orthonormality of $\psi(x)$. Multiply both sides of equation ($\ref{eqn:fourier_series}$) by $\psi_m(x)^*$ and integrate, then by equations ($\ref{eqn:orthonomality}$) and ($\ref{eqn:kronecker_delta}$),
198+
199+
$$ \int \psi_m(x)^*f(x)dx = \sum_{n=1}^{\infty} c_n\int\psi_m(x)^*\psi_n(x)dx = \sum_{n=1}^{\infty} c_n\delta_{mn} = c_m \tag{15}$$
200+
201+
> Note that all terms in the sum except for $n=m$ disappear due to the Kronecker delta.
202+
{: .prompt_info }
203+
204+
Therefore, the $n$-th coefficient when expanding $f(x)$ is
205+
206+
$$ c_n = \int \psi_n(x)^*f(x)dx \label{eqn:coefficients_n}\tag{16}$$
207+
208+
## Finding the General Solution $\Psi(x,t)$ of the Time-Dependent Schrödinger Equation
209+
Each stationary state of the infinite square well is, according to equation (10) in the ['Time-Independent Schrödinger Equation' post](/posts/time-independent-schrodinger-equation/#1-they-are-stationary-states) and equation ($\ref{eqn:psi_n}$) we found earlier,
210+
211+
$$ \Psi_n(x,t) = \sqrt{\frac{2}{a}}\sin{\left(\frac{n\pi}{a}x \right)}e^{-i(n^2\pi^2\hbar/2ma^2)t} \tag{17}$$
212+
213+
Also, as we saw earlier in the [Time-Independent Schrödinger Equation](/posts/time-independent-schrodinger-equation/#3-the-general-solution-of-the-time-dependent-schrödinger-equation-is-a-linear-combination-of-separated-solutions), the general solution of the Schrödinger equation can be expressed as a linear combination of stationary states. Therefore,
214+
215+
$$ \Psi(x,t) = \sum_{n=1}^{\infty} c_n\sqrt{\frac{2}{a}}\sin{\left(\frac{n\pi}{a}x \right)}e^{-i(n^2\pi^2\hbar/2ma^2)t} \label{eqn:general_solution}\tag{18}$$
216+
217+
Now we just need to find the coefficients $c_n$ that satisfy the following condition:
218+
219+
$$ \Psi(x,0) = \sum_{n=1}^{\infty} c_n\psi_n(x). $$
220+
221+
By the completeness of $\psi$ we examined earlier, $c_n$ that satisfies the above always exists, and can be found by substituting $\Psi(x,0)$ for $f(x)$ in equation ($\ref{eqn:coefficients_n}$).
222+
223+
$$ \begin{align*}
224+
c_n &= \int \psi_n(x)^*\Psi(x,0)dx \\
225+
&= \sqrt{\frac{2}{a}}\int_0^a \sin{\left(\frac{n\pi}{a}x \right)}\Psi(x,0) dx.
226+
\end{align*} \label{eqn:calc_of_cn}\tag{19}$$
227+
228+
If $\Psi(x,0)$ is given as an initial condition, use equation ($\ref{eqn:calc_of_cn}$) to find the expansion coefficients $c_n$, and substitute these into equation ($\ref{eqn:general_solution}$) to find $\Psi(x,t)$. Then, according to the process of the [Ehrenfest theorem](/posts/ehrenfest-theorem/), any physical quantity of interest can be calculated. This method can be applied not only to the infinite square well but also to arbitrary potentials, with only the form of the $\psi$ function and the equation for allowed energy levels changing.
229+
230+
## Derivation of Energy Conservation ($\langle H \rangle=\sum\|c_n\|^2E_n$)
231+
Let's derive the energy conservation that we briefly looked at earlier in the [Time-Independent Schrödinger Equation](/posts/time-independent-schrodinger-equation/#energy-conservation) using the orthonormality of $\psi(x)$ (equations [$\ref{eqn:orthonomality}$]-[$\ref{eqn:kronecker_delta}$]). Since $c_n$ is independent of time, it's sufficient to prove it for the case when $t=0$.
232+
233+
$$ \begin{align*}
234+
\int|\Psi|^2dx &= \int \left(\sum_{m=1}^{\infty}c_m\psi_m(x)\right)^*\left(\sum_{n=1}^{\infty}c_n\psi_n(x)\right)dx \\
235+
&= \sum_{m=1}^{\infty}\sum_{n=1}^{\infty}c_m^*c_n\int\psi_m(x)^*\psi_n(x)dx \\
236+
&= \sum_{n=1}^{\infty}\sum_{m=1}^{\infty}c_m^*c_n\delta_{mn} \\
237+
&= \sum_{n=1}^{\infty}|c_n|^2
238+
\end{align*} $$
239+
240+
$$ \therefore \sum_{n=1}^{\infty}|c_n|^2 = 1. \quad (\because \int|\Psi|^2dx=1) $$
241+
242+
Also, since
243+
244+
$$ \hat{H}\psi_n = E_n\psi_n $$
245+
246+
we get the following:
247+
248+
$$ \begin{align*}
249+
\langle H \rangle &= \int \Psi^*\hat{H}\Psi dx = \int \left(\sum c_m\psi_m \right)^*\hat{H}\left(\sum c_n\psi_n \right) dx \\
250+
&= \sum\sum c_m c_n E_n\int \psi_m^*\psi_n dx \\
251+
&= \sum\sum c_m c_n E_n\delta_{mn} \\
252+
&= \sum|c_n|^2E_n. \ \blacksquare
253+
\end{align*} $$

0 commit comments

Comments
 (0)