Consider a particle of mass $m$ subject to a one-dimensional potential $V(x)$ that is given by
$$
V=\infty, \quad x<0 ; \quad V=0, \quad 0 \leqslant x \leqslant a ; \quad V=V_{0}, \quad x>a
$$
Show that bound $\left(E<V_{0}\right)$ states of this system exist only if $k \cot k a=-\kappa$ where $k^{2}=2 m E / \hbar^{2}$ and $\kappa^{2}=2 m\left(V_{0}-E\right) / \hbar^{2}$