To clarify the question, let's consider the particle in a box (infinite potential $V$ outside [0,1], potential 0 inside [0,1]). (But the problems illustrated here also apply to particles in a non-infinite well.)
The differential equation for the time-independent Schrödinger equation is then: $$ H\psi = E\psi, \quad\text{where}\quad H\psi := -i\psi'' + V\psi $$ (I am omitting constants like $\hbar$ and $m$, and $\psi''$ is the twice-derivative on the position $x$.) Here $\psi$ is supposed to be an element of $L^2([0,1])$. ($L^2(\mathbb R)$ for non-infinite wells.)
In other words, we are looking for eigenvectors of $H$.
Then all accounts I read solve this differential equation / eigenvalue problem, get solutions $$\psi(x) = A\sin(k\pi x)+B\cos(k\pi x).$$ Then they argue that $\psi(0)=\psi(1)=0$ (typically referring to continuity, this part seems vague to me). Hence $B=0$ and $k\in\mathbb N$. So all solutions / eigenvectors are $\psi(x) = \sin(k\pi x)$ for $k\in\mathbb N$. The corresponding eigenvalues are $\pi^2k^2$.
However, I would claim that there are additional solutions: For example, $\psi(x) := \sin(2\pi x)$ on $[0,1/2]$ and $:=0$ outside. (I.e., we take the solution for $k:=2$, and set it to $0$ on $[1/2,1]$. This still is a $\pi^2k^2$-eigenvalue of $H$.
Note: one might complain that $H$ is not defined on this $\psi$ because $\psi$ is not differentiable at $1/2$. But since we are in $L^2([0,1])$, countably many undefined points don't matter, so $H$ is well-defined on $\psi$.
We can even have non-continuous $\psi$ that are additional eigenvalues of $H$. (E.g., $\psi(x) := \sin(\pi x)$ on $[0,1/2]$ with eigenvalue $\pi^2$.) Or we can piece together several shifted solutions $\sin(k\pi x + \delta)$. Even worse, we now have (even continuous) solutions for any real eigenvalue $E\geq \pi^2$, namely $\sin(\sqrt E x)$ on $[0,\pi/\sqrt E]$.
Now something is definitely wrong. Not only does this contradict all accounts I have read, but it is also mathematically inconsistent: If we have eigenvectors for all $E\geq \pi^2$, we get an uncountably large set of mutually orthogonal vectors. That in turns implies that the Hilbert space we are in ($L^2([0,1])$) is not separable. But $L^2([0,1])$ is known to be separable.
Question: Where is the flaw in my reasoning? Can we discount all non-differentiable solutions? Why? Or if not, how is the mathematical contradiction resolved, at least?
Answers I thought of:
- One can argue physically and say that we are simply not interested in non-differentiable solutions to the Schrödinger equation. (I.e., add this as an additional assumption in the physical model.) This is unsatisfactory to me because:
- There remains the contradiction of purely mathematical nature. I.e., even if we say the I solved something different from what the physics wants, I still have solved a mathematically well-defined eigenvector problem and gotten a contradiction to the separability of $L^2$.