Ok here's a potential I invented and am trying to solve:
$$ V(x) = \begin{cases} -V_0&0<x<b \\ 0&b<x<a \\ \infty&x>a \\ \end{cases}$$
and $V(-x) = V(x)$ (Even potential)
I solved it twice and I got the same nonsensical transcendental equation for the allowed energies:
$$
\frac{-k}{\sqrt{z_0 - k^2}} \frac{e^{2kb} + e^{2ka}}{e^{2kb} - e^{2ka}} = \tan(b \sqrt{z_0-k^2}).
$$
, where $k=\sqrt{-2mE}/\hbar$ and $z_0 = 2mV_0/\hbar^2$
The problem is that when I take the limit as $b→a$ (the ordinary infinite square well) I get a division by 0.
So is there something fundamentally wrong with trying to solve this potential? Is it wrong to have an Infinite potential and bury some of it under the 0 (negative potential) ? Note: I am solving it for negative energies (bound bound states?).
EDIT by CZ, for readability and analytic continuation of l.h.side, cf. Gilbert et al.: $$\frac{-k}{\sqrt{z_0 - k^2}} \coth(k(b-a)) ~. $$