The nonlinear Schr¨odinger equation with dual-power law nonlinearity for describing the propagation of pulses through an optical fiber in an optical communication system is studied. The first integral method, which is based on the division theorem, is used for obtaining the exact 1-soliton solution of this equation. The exact 1-soliton solution is constructed through the established first integral.