Solitary Wave Solution to the Nonlinear Schrodinger Equation