Schrodinger's equation
The wavefunction $\hat\psi(x,t)$ satisfies the time-dependent Schrodinger's equation $$ \begin{align*} i\hbar \pdfd{\hat\psi}{t} = -\frac{\hbar^2}{2m}\pdfd[2]{\hat\psi}{x} + V(x,t)\hat\psi \end{align*} $$ where $V(x,t)$ is the potential energy.
If $V$ and total energy are constant, we have the time-independent Schrodinger's equation $$ \begin{align*} E\hat\psi = -\frac{\hbar^2}{2m}\pdfd[2]{\hat\psi}{x} + V(x)\hat\psi \iff \pdfd[2]{\hat\psi}{x} + \frac{2m}{\hbar^2}(E-V(x))\hat\psi = 0. \end{align*} $$
In higher dimensions, $$ \begin{align*} \nabla^2\hat\psi + \frac{2m}{\hbar^2}\left(E-V(x)\right)\hat\psi = 0. \end{align*} $$
Multiply by $e^{-i\omega t}$ to get the time-dependent solution.
Boundary conditions:
-
$V=\infty\implies\hat\psi = 0$.
-
$\hat\psi$ is continuous, since otherwise $p\propto ik\hat\psi = \partial\hat\psi/\partial x = \pm\infty$.
-
$\partial\hat\psi/\partial x$ is continuous, since otherwise $E\propto \partial^2\hat\psi/\partial x^2 = \pm\infty$.