We study a nonlinear elliptic equation with a harmonic potential which is related to standing waves for a nonlinear Schrödinger equation. The existence of positive solution for (E) in some energy space can be shown by the standard variational method under n 1, λ>−n and 1