potential well and spin eigenstates