Infinitely Deep Potential Well as a Generalised Eigenproblem