In this thesis, we would like to find out the stability of the solution which linearized around the special solution of the nonlinear Schrodinger equation. Here, we consider nonlinear Schrodinger equations with the potential part, optical lattices form and elliptic form. In the first part of the thesis, we introduce roughly the nonlinear Schrodinger equation and two kinds of trap potentials. Then, we show the mathematical analysis of the numerical method that we used. At the end, we give some numerical results of our numerical experience.