Derivation (stationary state in 1D finite potential well)

Schrodinger's equation is $$ \begin{align*} -\frac{\hbar^2}{2m} \dfd[2]{\chi}{x} + U(x) \chi = E\chi. \end{align*} $$

Inside the well ($-a\leq x\leq a$), since $U(x) = 0$, we have solutions $$ \begin{align*} \chi(x) = A\cos(kx) + B\sin kx, \qquad k=\frac{\sqrt{2mE}}{\hbar}. \end{align*} $$

Outside the well ($x<-a$ or $x>a$), we have $U(x) = U_0 > E$ so $$ \begin{align*} \chi(x) = C \exp(\kappa x) + D\exp(-\kappa x), \qquad \kappa = \frac{\sqrt{2m(U_0 - E)}}{\hbar}. \end{align*} $$ To have a normalisable solution, require $$ \begin{align*} \chi(x) &= C\exp(\kappa x), && x<-a, \\ \chi(x) &= D\exp(-\kappa x), && x>a. \end{align*} $$

Now we require continuity of $\chi$ and $\chi'$ at $x=a$ and $x=-a$: $$ \begin{align*} \begin{cases} A\cos(ka) + B\sin(ka) &= D\exp(-\kappa a), \\ -Ak\sin(ka) + Bk\cos(ka) &= -\kappa D\exp(-\kappa a), \\ A\cos(ka) - B\sin(ka) &= C\exp(-\kappa a), \\ Ak\sin(ka) + Bk\cos(ka) &= \kappa C\exp(-\kappa a). \end{cases} \end{align*} $$ which is equivalent to $$ \begin{align*} \begin{cases} A\cos(ka) &= \frac{C+D}{2} \exp(-\kappa a), \\ Ak\sin(ka) &= \frac{C+D}{2} \kappa \exp(-\kappa a), \end{cases} \quad \begin{cases} B\sin(ka) &= \frac{D-C}{2} \exp(-\kappa a), \\ Bk\cos(ka) &= -\frac{D-C}{2} \kappa\exp(-\kappa a). \end{cases} \end{align*} $$

$k$ and $\kappa$ depend on $E$, and they satisfy $$ \begin{align*} k^2 + \kappa^2 = \frac{2mU_0}{\hbar^2}. \end{align*} $$

For $A$ and $(C+D)/2$ non-zero, we can divide the two equations to obtain $$ \begin{align*} k \tan(ka) = \kappa. \end{align*} $$ This means $B = \frac{D-C}{2} = 0$ since otherwise we obtain $k\cot(ka) = -\kappa < 0$. Changing variables to $\xi = ka$ and $\eta = \kappa a$, we obtain $$ \begin{align*} \begin{cases} \xi^2 + \eta^2 = 2mU_0a^2/\hbar^2, \\ \xi \tan \xi = \eta. \end{cases} \end{align*} $$ This is a transcendental equation. Let $\xi_n$ be the solutions.

For any $U_0>0$, there is at least one solutions. And as $U_0\to \infty$, $\xi_n \to (n-\frac{1}{2})\pi$. In this limit, the energy levels are $$ \begin{align*} E_n = \frac{\hbar^2\xi_n^2}{2ma^2} \to \frac{\hbar^2(2n-1)^2 \pi^2}{8ma^2} \end{align*} $$ which agrees with the result for the infinite potential well.

Now for odd solutions i.e. $B$ and $(C-D)/2$ non-zero, we obtain $$ \begin{align*} k \cot(ka) = -\kappa \end{align*} $$ and so as before $$ \begin{align*} \begin{cases} \xi^2 + \eta^2 = 2mU_0 a^2/\hbar^2, \\ -\xi \cot \xi = \eta. \end{cases} \end{align*} $$

For small $U_0$, there is no solution.