Eigenvalues and eigenfunctions for the ground state of polynomial potentials