In the first problem, we solve the problem in an infinite potential box. That is not very realistic. In reality, the potential well has a finite depth. What difference does it make to the solution of the problem?
(Insert figure)
In this case, the potential energy V(x) of the system has the form:
The general solution to the Schrödinger equation for this system in each region is