Our theoretical study on UH2+X4$\varSigma$) using a density functional method shows that its potential energy curve has both minimum and maximum, which is the so-called "energy trapped" molecules. This sort of potential maximum is mainly caused by Coulomb repulsion. We have proposed the perturbation effect of ionic charges to explain the existence of the potential maximum for diatomic ions, and derived an analytic potential energy function has been derived, and the force constants and spectroscopic data are obtained. Finally, the vertical ionization potential for UH^{2+} has been calculated as well.