Schrödinger equation#
Time dependent equation#
Time independent equation#
Weak form with test function \(v\):
Potential well#
With
we assemble a solution composed of
let
Inside the potential well#
For inside the potential well this leads to
which can be solved using
Outside the potential well#
and outside the potential well for unbound solutions, i.e. \(E>V_0\)
which can similary be solved using
and bound solutions, i.e. \(E<V_0\)
solved by
Bound states#
We find for the bound states, i.e. states where we assume that \(\lim_{x\to\pm\inf}\varphi(x)=0\), that the complete wavefunction simplifies to
as the solutions need to be continous and differentiable, i.e.
and
which leads to \(A=0\) and \(G=H\) for the symmetric case and \(B=0\) and \(G=-H\) for the assymetric case.
this leads for the symmetric case to the conditions
and for the assymetric case to
with \(u=\alpha L/2\) and \(v=kL/2\) and using \(u^2=u_0^2-v^2\) with \(u_0^2=mL^2V_0/2\hbar^2\) we can simplify both to
Show code cell source
import numpy as np
import matplotlib.pyplot as plt
u0 = np.sqrt(20)
v = np.linspace(0,5,10000)
yc = np.sqrt(u0**2-v**2)
plt.ylim(0,u0+1)
plt.plot(v, yc)
y = v*np.tan(v)
y = np.where(y>-10,y,np.nan)
plt.plot(v, y, label='symmetric')
idx_s = np.argwhere(np.nan_to_num(np.diff(np.sign(y - yc)),-1))[:,0]
plt.plot(v[idx_s], y[idx_s], 'ro')
print(v[idx_s])
y = -v*1/np.tan(v)
plt.plot(v, np.where(y>-10,y,np.nan), label='asymmetric')
idx_a = np.argwhere(np.nan_to_num(np.diff(np.sign(y - yc)),-1))[:,0]
plt.plot(v[idx_a], y[idx_a], 'ro')
print(v[idx_a])
plt.legend()
plt.show()
[1.28012801 3.72687269]
[2.53775378 3.14131413]