  In this work we develop an approach to obtain analytical expressions for
potentials in an impenetrable box. It is illustrated through the particular
cases of the harmonic oscillator and the Coulomb potential. In this kind of
system the energy expression respect the correct quantum limits, which is a
very important quality. The similarity of this kind of problem with the quasi
exactly solvable potentials is explored in order to accomplish our goals.
