The solution must satisfy the Schrödinger equation for every $x$. The equation after the ansatz follows the shape\begin{align}(-\alpha+\alpha^2 x^2) f(x) = (b x^2 +c)f(x)\end{align}Now in order to be true for every $x$ the polynomial function prefactors of $f(x)$ must be the same.
↧