#### Abstract

A perturbing nonlinear Schrodinger equation is studied under general complex nonhomogeneities and complex initial conditions for zero boundary conditions. The perturbation method together with the eigenfunction expansion and variational parameters methods are used to introduce an approximate solution for the perturbative nonlinear case for which a power series solution is proved to exist. Using Mathematica, the symbolic solution algorithm is tested through computing the possible approximations under truncation procedures. The method of solution is illustrated through case studies and figures.

#### 1. Introduction

The nonlinear Schrodinger (NLS) equation is the principal equation to be analyzed and solved in many fields, see [1–5], for examples. In the last two decades, there are a lot of NLS problems depending on additive or multiplicative noise in the random case [6, 7] or a lot of solution methodologies in the deterministic case.

Wang et al. [8] obtained the exact solutions to NLS using what they called the subequation method. They got four kinds of exact solutions of for which no sign to the initial or boundary conditions type is made. Xu and Zhang [9] followed the same previous technique in solving the higher-order NLS: Sweilam [10] solved

with initial condition and boundary conditions , which gives rise to solitary solutions using variational iteration method. Zhu [11] used the extended hyperbolic auxiliary equation method in getting the exact explicit solutions to the higher-order NLS: without any conditions. Sun et al. [12] solved the NLS: with the initial condition using Lie group method. By using coupled amplitude phase formulation, Porsezian and Kalithasan [13] constructed the quartic anharmonic oscillator equation from the coupled higher-order NLS. Two-dimensional grey solitons to the NLS were numerically analyzed by Sakaguchi and Higashiuchi [14]. The generalized derivative NLS was studied by Huang et al. [15] introducing a new auxiliary equation expansion method. Abou Salem and Sulem [16] studied the effective dynamics of solitons for the generalized Schrodinger equation in a random potential. El-Tawil [17] considered a nonlinear Schrodinger equation with random complex input and complex initial conditions. Colin et al. [18] considered three components of nonlinear Schrodinger equations related to the Raman amplification in a plasma. In [19], Jia-Min and Yu-Lu constructed an appropriate transformations and an extended elliptic subequation approach to find some exact solutions for variable coefficient cubic-quintic nonlinear Schrodinger equation with an external potential.

In this paper, a straight forward solution algorithm is introduced using the transformation from a complex solution to a coupled equations in two real solutions, eliminating one of the solutions to get separate independent and higher-order equations, and finally introducing a perturbative approximate solution to the system.

#### 2. The Linear Case

Consider the nonhomogeneous linear Schrodinger equation: where is a complex valued function which is subjected to Let , : real valued functions. Substituting (2.2) in (2.1), the following coupled equations are got as follows: where , , , , and all corresponding other I.C. and B.C. are zeros.

Eliminating one of the variables in (2.3), one can get the following independent equations: where Using the eigenfunction expansion technique [20], the following solutions for (2.4) are obtained: where and can be got through the applications of initial conditions and then solving the resultant second-order differential equations using the method of the variational parameter [21]. The final expressions can be got as follows where in which The following conditions should also be satisfied: Finally, the following solution is obtained: or

#### 3. The Nonlinear Case

Consider the homogeneous nonlinear Schrodinger equation: where is a complex-valued function which is subjected to the initial and boundary conditions (2.2).

Lemma 3.1. *The solution of (3.1) with the constraints (2.2) is a power series in if the solution exists.*

*Proof. *At , the following linear equation is got:
which has the solution, see the previous section,
Following Pickard approximation, (3.13) can be rewritten as
At , the iterative equation takes the following form:
which can be solved as a linear case with zero initial and boundary conditions. The following general solution can be obtained:
At , the following equation is obtained:
which can be solved as a linear case with zero initial and boundary conditions. The following general solution can be obtained:
Continuing like this, one can get
As , the solution (if exists) can be reached as . Accordingly, the solution is a power series in .

According to the previous lemma, one can assume the solution of (3.1) as the following: Let , : real valued functions. The following coupled equations are got: where , , and all corresponding other I.C. and B.C. are zeros.

As a perturbation solution, one can assume that where , , and all corresponding other I.C. and B.C. are zeros.

Substituting (3.12) into (3.11) and then equating the equal powers of , one can get the following set of coupled equations: and so on. The prototype equations to be solved are where , and all other corresponding conditions are zeros. The nonhomogeneity functions and are functions computed from previous steps.

Following the solution algorithm described in the previous section for the linear case, the general symbolic algorithm in Figure 39 can be simulated through the use of a symbolic package, mathematica-5 is used in this paper.

##### 3.1. The Zero-Order Approximation

In this case, where in which where the constants and variables , , and can be got by the aid of Section 2.

The absolute value of the zero-order approximation is got from

##### 3.2. The First-Order Approximation

where in which where the constants and variables , , , and can be evaluated in a similar manner as the zero-order approximation whereas and .

The absolute value of the first-order approximation can be got using

##### 3.3. The Second-Order Approximation

where in which where the constants and variables , , and can be evaluated similarly as the previous approximation.

The absolute value of the second-order approximation can be got using

#### 4. Case Studies

To examine the proposed solution algorithm, see Figure 39, some case studies are illustrated.

##### 4.1. One Input Is On

*Case Study 1*

Taking , , , , and following the solution algorithm, the selective results for the zero-order approximation are got in Figures 1, 2, and 3.

*Case Study 2*

Taking , , , and following the solution algorithm, it has been noticed that the same results for the case study 1 are got.

*Case Study 3*

Taking , , , and following the solution algorithm, the selective results for the first-zero approximation are got in Figures 4, 5, and 6.

One can notice the decrease of the solution level and its higher variability.

*Case Study 4*

Taking , , , and following the solution algorithm, it has been noticed that the same results for the case study 3 are got:

##### 4.2. Two Inputs Are On

*Case Study 5*

Taking , , , and following the solution algorithm, the selective results for the zero-order approximation are got in Figures 7, 8, and 9.

One can notice that the solution level becomes a little bit higher than that of case study 2.

*Case Study 6*

Taking , , , and following the solution algorithm, the selective results for the zero-order approximation are got in Figures 10, 11, and 12.

One can notice the little increase of the solution level than that of case studies 3 and 4.

*Case Study 7*

Taking , , , and following the solution algorithm, the selective results for the zero-order approximation are got in Figures 13, 14, and 15.

One can notice the small perturbations at small values of .

##### 4.3. Three Inputs Are On

*Case Study 8*

Taking , , , and following the solution algorithm, the selective results for the zero-order approximation are got in Figures 16, 17, and 18.

One can notice the increase of the depth of the perturbations.

*Case Study 9*

Taking , , , and following the solution algorithm, the selective results for the zero-order approximation are got in Figures 19, 20, and 21.

One can notice that the perturbations become smaller than that of case study 8.

##### 4.4. Four Inputs Are On

*Case Study 10*

Taking the case of , , , , the following final results for the zero-order approximation are obtained in Figures 22, 23, and 24.

One can notice the little increase in the solution level.

##### 4.5. Exponential Nonhomogeneity

*Case Study 11*

Taking the case of , , , , the following final results for the zero-order approximation are obtained in Figures 25, 26, and 27.

One can notice the low solution level and high perturbations.

##### 4.6. Exponential Initial Condition

*Case Study 12*

Taking the case of , , , , the following final results for the zero-order approximation are obtained in Figures 28, 29, and 30.

One can notice that a higher solution level is got compared with case study 11 and less perturbations are got at small values of .

##### 4.7. First-Order Approximation

*Case Study 13*

Taking the case of , , , , the following final results for the zero and first-order approximations are obtained in Figures 31, 32, and 33.

One can notice the oscillations of the solution level compared with case 7.

One can notice that the solution level increases with the increase of .

#### 5. Conclusions

The perturbation technique introduces an approximate solution to the NLS equation with a perturbative nonlinear term for a finite time interval. Using mathematica, the difficult and huge computations problems were fronted to some extent for limited series terms. To get more improved orders, it is expected to face a problem of computation. With respect to the solution level, the effect of the nonhomogeneity is higher than the effect of the initial condition. The initial conditions also cause perturbations for the solution at small values of the space variable. The solution level increases with the increase of .