- Research
- Open access
- Published:

# New spectral collocation algorithms for one- and two-dimensional Schrödinger equations with a Kerr law nonlinearity

*Advances in Difference Equations*
**volume 2016**, Article number: 18 (2016)

## Abstract

A shifted Jacobi collocation method in two stages is constructed and used to numerically solve nonlinear Schrödinger equations (NLSEs) with a Kerr law nonlinearity, subject to initial-boundary conditions. An expansion in a series of spatial shifted Jacobi polynomials with temporal coefficients for the approximate solution is considered. The first stage, collocation at the shifted Jacobi Gauss-Lobatto (SJ-GL) nodes, is applied for a spatial discretization; its spatial derivatives occur in the NLSE with a treatment of the boundary conditions. This in all will produce a system of ordinary differential equations (SODEs) for the coefficients. The second stage is to collocate at the shifted Jacobi Gauss-Radau (SJ-GR-C) nodes in the temporal discretization to reduce the SODEs to a system of algebraic equations which is solved by an iterative method. Both stages can be extended to solve the two-dimensional NLSEs. Numerical examples are carried out to confirm the spectral accuracy and the efficiency of the proposed algorithms.

## 1 Introduction

Spectral methods (see [1–8]) are accurate and efficient demanding less computations when solving an ordinary differential equation (ODE) or a partial differential equation (PDE) on a simple domain with smooth functions defined. The basic idea of the spectral methods is to express the approximate solution of the problem as a finite sum of certain basis functions (orthogonal polynomials or a combination of them) and then choose the coefficients in order to minimize the residual. The spectral collocation method is one type of spectral methods, which is more applicable and widely used to solve almost all linear and nonlinear differential equations [5–17].

The NLSEs occur in various areas of physics, including nonlinear optics, plasma physics, superconductivity, quantum mechanics, mathematical biology; and it can be written as

where \(\psi(\mathbf{x},t)\) and \(R(\mathbf{x},t)\) are complex functions of space **x** and time *t*, and **F** is a real valued function. The nonlinearities of **F** can be classified as [18–21]:

1. *Kerr law*
\(\mathbf{F}(s)=s\):

In particular, equation (1) with \(\mathbf{F}(s)=s\), (Kerr law case) appears in nonlinear optics in the context of soliton propagation through optical fibers. The first term represents the temporal evolution, the second term accounts for the dispersive effect of the solitons, the coefficient of *γ* represents a Kerr law nonlinearity and, finally, *δ* represents the coefficient of the driven term.

2. *Power law*
\(\mathbf{F}(s)=s^{n}\):

Power law nonlinearity (a generalization of Kerr law nonlinearity) is exhibited in various fields, including semiconductors, photon processes, nonlinear plasmas, and weak turbulence [22].

3. *Parabolic law*
\(\mathbf{F}(s)=s-k_{1} s^{2}\), where \(k_{1}\) is a constant:

Parabolic law (cubic-quintic nonlinearity) arises in the nonlinear p-toluene sulfonate crystals, interaction between Langmuir waves and electrons, the nonlinear interaction between the high-frequency Langmuir waves and the ion-acoustic waves.

4. *Dual-power law*
\(\mathbf{F}(s)=s^{n}-k_{2} s^{2n}\), where \(k_{2} \) is a constant:

This law is used to model the saturation of the nonlinear refractive index, spatial solitons in photovoltaic-photorefractive materials, and organic and polymer materials [23].

5. *Saturable law*
\(\mathbf{F}(s)=\frac{\lambda s}{1+\lambda s}\):

The variation of the dielectric constant of gas vapors while a laser beam propagates [24] can be accurately described by this law with \(\lambda> 0\). Also, optical nonlinearity saturates at a finite value of optical intensity in most materials and the soliton propagation in semiconductor-doped fibers can be modeled using the above form. The above form is observed in semiconductor-doped glass and other composite materials.

6. *Log law*
\(\mathbf{F}(s)=\ln(s)\):

The Log-law NLSEs has been employed to model nonlinear behavior in several distinct scenarios in physics and in other areas of nonlinear science for instance, in nuclear physics [25], dissipative systems [26], capillary fluids [27], optics [28, 29], and magma transport [27].

Recently, the analytical and numerical solutions of different types of the previous classical Schrödinger equations were discussed in [30, 31], and for recent schemes for solving PDEs see [32–36]. Here, we focus on the application of shifted Jacobi Gauss-Lobatto collocation (SJ-GL-C) and Jacobi Gauss-Radau collocation (SJ-GR-C) methods in two consecutive stages for providing a high accurate numerical solution of the NLSEs with kerr-law nonlinearity. The proposed collocation scheme is applied for both temporal and spatial discretizations. First of all, the SJ-GL-C is used with a treatment of the boundary conditions for spatial discretization. Therefore, the NLSE with its boundary conditions is reduced to SODEs subject to a vector of initial values. Second, the SJ-GR-C is then applied for temporal discretization, which is more reasonable for solving initial value problems. Thereby, the problem is reduced to a system of algebraic equations which is easier to solve. In addition, this algorithm is developed to numerically solve the two-dimensional NLSEs. Finally, several numerical examples with comparisons showing the high accuracy and effectiveness of the proposed algorithm are presented.

This paper is organized as follows. We present a few preliminaries and some facts about shifted Jacobi polynomials in Section 2. Section 3 presents the collocation method for the one-dimensional NLSE subject to initial-boundary conditions. In Section 4 we address an extension to solve the two-dimensional version of NLSE. In Section 5, we propose the SJ-GR-C scheme to solve SODEs. Section 6 is devoted to solving four test problems. Finally, some concluding remarks are given in the last section.

## 2 Properties of shifted Jacobi polynomials

The well-known Jacobi polynomials \(P_{i}^{(\alpha,\beta)}(x)\) are defined on the interval \([-1,1]\). First, some properties of the standard Jacobi polynomials are recalled in this section. The Jacobi polynomials \(P_{k}^{(\alpha,\beta)}(x)\) (\(k=0,1,\ldots\)) satisfy the Rodrigue formula:

we recall also that \(P_{k}^{(\alpha,\beta)}(x)\) is a polynomial of degree *k* and therefore \(\frac{d^{q}}{dx^{q}}P_{k}^{(\alpha,\beta)}(x)\), the *q*th derivative of \(P_{k}^{(\alpha,\beta)}(x)\), is given by

The Jacobi polynomials [1, 37] satisfy the following relations:

where

and the orthogonality relation

where \(w^{(\alpha,\beta)}=(1-x)^{\alpha}(1+x)^{\beta}\), \(h_{k} =\frac {2^{\alpha+\beta+1}\Gamma(k+\alpha+1)\Gamma(k+\beta +1)}{(2k+\alpha+\beta+1) k!\Gamma(k+\alpha+\beta+1)}\). The Jacobi Gauss-Lobatto integrals are accurate for any \(\phi\in S_{2N-1}[-1,1]\), we have (SJ-GL) quadrature is commonly used to evaluate the previous expression:

where \(S_{N}[-1,1]\) is the set of polynomials of degree less than or equal to *N*. While the discrete inner product is given as

where \(x_{N,j}\) (\(0\leq j\leq N\)) and \(\varpi_{N,j}\) (\(0\leq j\leq N\)) are used as usual and we have the nodes and the corresponding Christoffel numbers in the interval \([-1,1]\), respectively.

For the Jacobi Gauss-Lobatto case, it is well known that [1]

where

while the nodes and the corresponding Christoffel numbers in Jacobi Gauss-Radau quadrature are given by [1]

where

In order to use these polynomials on the interval \([0,L]\), we define the so-called shifted Jacobi polynomials by introducing the change of variable \(x\rightarrow\frac{2x}{L}-1\). Let the shifted Jacobi polynomials \(P^{(\alpha,\beta)}_{i}{(\frac {2x}{L}-1)}\) be denoted by \(P^{(\alpha,\beta)}_{L,i}{(x)}\). Then \(P^{(\alpha,\beta)}_{L,i}{(x)}\) can be obtained with the aid of the following recurrence formula:

where

The analytic form of the shifted Jacobi polynomials \(P^{(\alpha,\beta )}_{L,i}{(x)}\) of degree *i* is given by

and the orthogonality condition is

where \(w_{L}^{(\alpha,\beta)} (x)=x^{\beta}(L-x)^{\alpha}\) and \(\hbar^{(\alpha,\beta)}_{L,k} =\frac{L^{\alpha+\beta+1}\Gamma (k+\alpha+1)\Gamma(k+\beta+1)}{(2k+\alpha+\beta+1) k!\Gamma (k+\alpha+\beta+1)}\).

A function \(u(x)\), square integrable in \([0,L]\), may be expressed in terms of shifted Jacobi polynomials as

where the coefficients \(c_{j}\) are given by

In practice, only the first \((N+1)\)-terms shifted Jacobi polynomials are considered. Hence \(u(x)\) can be expressed in the form

## 3 One-dimensional NLSE

In this section, the numerical algorithm is based on SJ-GL-C method to numerically solve NLSEs with initial-boundary conditions. The collocation points are selected at the SJ-GL interpolation nodes. The method is to discretize the NLSE in the spatial direction along with a new treatment for the conditions the system is subjected to, to create a SODEs of the unknown coefficients of the spectral expansion in the time direction.

In particular, we consider the general NLSE with the Kerr law nonlinearity

with the initial-boundary conditions

In order to begin the numerical solution, we put the complex functions (\(\psi(x,t)\), \(\zeta_{1}(t)\), \(\zeta_{2}(t)\), and \(\xi_{1}(x)\)), as proposed in [30, 38], in their real and imaginary parts:

where \(u(x,t)\), \(v(x,t)\), \(f(x,t)\), \(g(x,t)\), \(g_{1}(t)\), \(g_{3}(t)\), \(g_{2}(t)\), \(g_{4}(t)\), \(\chi_{1}(x)\) and \(\chi_{2}(x)\), are real functions. In virtue of equation (16), one may write equation (14) as

The above equation can be separated into coupled nonlinear partial differential equations

with the initial-boundary conditions, namely

The main advantage of using the node points of the SJ-GL quadrature is that the distribution of these points in \([0,L]\). In the proposed collocation scheme, unlike the most existing collocation schemes, the boundary conditions are satisfied automatically in the collocation scheme. More specifically, there is no need for additional equations to enforce these conditions. Thereby, the above treatment is more reasonable. In addition, it improves the accuracy of numerical solution; see the numerical results in Section 6. Now, we outline the main step of implementing SJ-GL-C scheme for reducing nonlinear coupled system (18)-(19) to SODEs. The approximate solutions of \(u(x,t)\) and \(v(x,t)\) can be expanded, using the shifted Jacobi polynomial, \(P_{L,j}^{(\alpha,\beta)}(x)\), in the forms

and in virtue of (11)-(12), we deduce that

We can circumvent the need for evaluating the previous integrals, by using the SJ-GL quadrature formula to approximate the integrals. For any \(\phi\in S_{2N-1}[0,L]\),

where \(x^{(\alpha,\beta)}_{L,N,j}\) (\(0\leq j\leq N\)) and \(\varpi^{(\alpha,\beta)}_{L,N,j}\) (\(0\leq j\leq N\)) are the nodes and the corresponding Christoffel numbers of the SJ-GL quadrature formula on the interval \([0,L]\), respectively.

Due to the property of the SJ-GL quadrature (22), the expansion coefficients \(a_{j}(t)\) and \(b_{j}(t)\) can be approximated by means of the solution at the SJ-GL grid points, as

In virtue of equations (21)-(23), we can write the approximate solutions as

Furthermore, if we differentiate (24) once, the approximation of the first spatial partial derivatives of the approximate solutions, by means of the approximate solutions at the SJ-GL interpolation nodes, can be expanded as

where

Similarly, the second spatial partial derivatives for the approximate solution may also be written in the forms

where

Let us denote

In the proposed spectral SJ-GL-C scheme, the residual of (14) is set zero at the \((N-1)\) SJ-GL interpolation nodes. Therefore, adopting (18)-(28), we may write (14)-(15) in the form

In addition, there is no need for additional equations for treating the boundary conditions, because the boundary conditions (15) are imposed at the two collocation points \(x^{(\alpha,\beta)}_{L,N,0}\) and \(x^{(\alpha,\beta)}_{L,N,N}\) in the expansion of the functions. This provides the SODEs with \((2N-2)\) unknown functions in the time variable,

subject to the initial values

In Section 5, we discuss the numerical approximation of such a SODEs.

## 4 Two-dimensional NLSE

In the present section, we provide an efficient algorithm for the numerical treatment of the following two-dimensional NLSE:

subject to the initial condition

and the four boundary conditions

where \(\Omega_{1}=[0,L_{1}]\), \(\Omega_{2}=[0,L_{2}]\), and \(\Omega_{3}=[0,T]\), while \(\zeta_{1}(x,y)\), \(\zeta_{2}(y,t)\), \(\zeta_{3}(y,t)\), \(\zeta_{4}(x,t)\), \(\zeta_{5}(x,t)\), \(\gamma(x,y)\), and \(R(x,y)\) are given functions. First, the mapping of the complex to the real and imaginary parts is required for the possibility of using the numerical method. To this end, suppose we have the transformations

where \(u(x,y,t)\), \(v(x,y,t)\), \(g_{1}(x,y)\), \(g_{2}(x,y)\), \(g_{3}(y,t)\), \(g_{4}(y,t)\), \(g_{5}(y,t)\), \(g_{6}(y,t)\), \(g_{7}(x,t)\), \(g_{8}(x,t)\), \(g_{9}(x,t)\), and \(g_{10}(x,t)\), are real functions. Using (35), with the help of (32), we obtain a coupled system of two-dimensional PDEs:

subject to the initial conditions

and the boundary conditions

Second, we are interested in using the SJ-GL-C method to reduce the above coupled system of two-dimensional PDEs with their boundary conditions into a SODEs which greatly simplifies the problem. In order to do this, we outline the main steps of our algorithm based on approximating the problem using the SJ-GL-C method for spatial discretization. Let us expand the approximate solution in a doubly shifted Jacobi series

Let \(\{x^{(\alpha,\beta)}_{L_{1},N,i}; 0\leq i\leq N\}\) and \(\{y^{(\alpha,\beta)}_{L_{2},M,j}; 0\leq j\leq M\}\) be the SJ-GL interpolation nodes for the shifted Jacobi polynomials \(P^{(\alpha,\beta)}_{L_{1},N}(x)\) and \(P^{(\alpha,\beta)}_{L_{2},M}(y)\), respectively. Making use of the SJ-GL quadrature and due to the orthogonality relation, one obtains

Let us denote

then the approximate solutions (39) may be expressed in the form

In the following, the first-order spatial partial derivative with respect to *x* for the solutions (41), at a specific collocation node \(x^{(\alpha,\beta)}_{L_{1},N,n}\) and \(y^{(\alpha,\beta)}_{L_{2},M,m}\) can be written as

for simplifying the notation, let

where \(\rho^{(\alpha,\beta)}_{n,m,i,j}\) are the expansion coefficients of the derivative, and they are obtained from

Accordingly, the first-order derivative with respect to *y* for \(u(x,y,t)\), at the nodes \(x^{L_{1}}_{N,n}\) and \(y^{L_{2}}_{M,m}\), is

A similar argument leads to

where

Also, the second-order spatial partial derivatives with respect to *x* and *y* are, respectively, given by

where

and

In a similar way, the second approximate solution for the coupled system can be obtained from

In the shifted Jacobi pseudo-spectral approximation for the two-dimensional version of NLSEs, the residual of (36) is set zero at \((N-1)\times(M-1)\) of the nodes of SJ-GL interpolation. Therefore, adopting (41)-(51) enables one to write (36)-(38) as

subject to the initial conditions

Moreover, the values of \(u_{0,k}(t)\), \(u_{N,k}(t)\), \(u_{l,0}(t)\), \(u_{l,N}(t)\), \(v_{0,k}(t)\), \(v_{N,k}(t)\), \(v_{l,0}(t)\), and \(v_{l,N}(t)\) are obtained from the relations

This provides a SODEs in time variable with \(2(N-1)\times(M-1)\) unknowns. The spectral solution of this system will be discussed in detail in the next section.

## 5 System of differential equations

In this section, we propose an efficient numerical integration process for the SODEs with a vector of initial values, based on the SJ-GR interpolation, which is easy to implement, and it possesses the spectral accuracy. This scheme has three fascinating advantages. It is easier to implement for nonlinear problems, it is also specially appropriate for long-time calculations, and it is more stable for large *N*. This is also confirmed by the numerical results. Now, we consider the following nonlinear system of initial value problems which is a generalization of the systems given in (30) and (52). Namely in the last algorithm, we solve the following SODEs:

subject to the initial conditions

where \(G_{r}(t,u_{1}(t),\ldots,u_{R}(t))\), \(r=1,\ldots,R\), are given functions.

We are interested in using the SJ-GR-C method to transform the previous system of ODEs into a system of algebraic equations. In order to do this, we approximate the time variable using the SJ-GR-C method at \(t^{(\alpha_{3} ,\beta_{3})}_{T,K,i}\) (Jacobi Gauss-Radau points). We choose the approximate solution of the form

Furthermore, the approximation of the time derivative can be computed as

where the time derivative, \(D(P^{(\alpha_{3},\beta_{3})}_{T,j}(t))\), can be explicitly obtained by using (3) for \(q=1\), with a direct calculation at the points \(t^{(\alpha_{3} ,\beta_{3})}_{T,K,i}\).

Therefore, adopting (57)-(58) enables one to write (55)-(56) in the form

In the proposed method the residual of (55) is set zero at \((R K)\) collocation points. Moreover, the initial conditions in (56) will be collocated at *R* collocation points. First, we have *RK* algebraic equations for the \(R(K+1)\) unknowns of \(a_{i,j}\)

and due to the initial conditions, we have *R* algebraic equations

Finally, we have \(R(K+1)\) algebraic equations

The previous system of algebraic equations can be solved using Newton’s iterative method. Finally, equation (60) guarantees that the system (55) is satisfied exactly at the SJ-GR interpolation nodes \(t^{(\alpha,\beta)}_{T,K,s}\); \(s=1,\ldots, R\). This provides *RK* nonlinear algebraic equations for \(a_{r,j}\); \(r=1,\ldots,R\), \(j=0,\ldots,K+1\). In addition, the collocation treatment of the initial values in (61) provides *R* linear algebraic equations in the unknown shifted Jacobi expansion coefficients \(a_{r,j}\); \(r=1,\ldots,R\), \(j=0,\ldots, K+1\). The combination of these two algebraic systems constitutes a system of \(R (K+1) \) algebraic equations which we solved by Newton’s iteration method. Consequently, the approximate solutions (57) can be evaluated.

## 6 Numerical simulation and comparisons

This section reports several numerical examples to demonstrate the high accuracy and applicability of the proposed methods for solving one- and two-dimensional Schrödinger equations with a Kerr law nonlinearity. We also compare the results given from our scheme and those reported in the literature such as the Sinc-collocation and Sinc-Galerkin methods [39]. The comparisons reveal that our methods are very effective and convenient.

### Example 1

First, we consider the following nonlinear Schrödinger equation with a Kerr law:

subject to the initial-boundary conditions which can be obtained from the exact solution:

In Table 1, the numerical results based on maximum absolute errors obtained using the proposed algorithm, for real (\(M_{1}\)) and imaginary (\(M_{2}\)) parts of the solution are listed at various values of \(N, M\). From this table, we observe the accuracy and efficiency of the proposed method.

The real and imaginary parts of the absolute errors obtained by the present method at \(N=M=20\), \(\alpha _{1}=\beta _{1}=\alpha _{2}=\beta _{2}=0\) are shown in Figures 1 and 2, respectively. Meanwhile, absolute error curves for the real and imaginary solutions, in the case of \(x=0.5\), \(\alpha _{1}=\beta _{1}=\alpha _{2}=\beta _{2}=\frac{1}{2}\) and \(N=M=20\), are plotted in Figures 3 and 4, respectively.

### Example 2

We consider the nonlinear Schrödinger equation in the following form:

The exact solution of this problem is

The initial-boundary conditions of this problem can be extracted from the exact solution. Numerical results based on the maximum absolute errors of equation (65) are summarized in Table 2 with several choices of *N* and *M*. From this table, we see that we can achieve an excellent approximation for the exact solution by using the proposed method for a limited number of the collocation nodes.

### Example 3

In order to confirm the high accuracy of our technique for the two-dimensional problem, we consider the following \(2+1\) nonlinear Schrödinger equation:

with the initial-boundary conditions

The exact solution of this problem is

Table 3 lists the maximum absolute errors of \(u(x,y,t)\) and \(v(x,y,t)\) of problem (67) with various choices of *N*, *M*, and *K*. The numerical results presented in this table show that the results are very accurate for small values of *N*, *M*, and *K*. Figure 5 demonstrates that the absolute errors \(E_{1}(x,y,t)\) are very small even for the small number of grid points taken. Moreover, we see the agreement of the curves of the real and the imaginary parts of the approximate and exact solutions in Figures 6 and 7.

### Example 4

Finally, we consider a two-dimensional linear Schrödinger equation [39] in the form

with the boundary-initial conditions

The maximum absolute errors of \(u(x,t)\), \(v(x,t)\), and \(\psi(x,t)\) related to problem (70)-(71) are presented in Table 4 using the two-steps SJ-GL-C method with various choices of *N*, *M*, *K*, \(\alpha_{1}\), \(\alpha_{2}\), \(\alpha_{3}\), \(\beta_{1}\), \(\beta_{2}\), and \(\beta_{3}\). The errors are calculated through a comparison with the exact solution

The relative maximum error may be defined by

For comparison purposes, the relative errors (73) of problem (70) which were obtained using the two-step SJ-GL-C method and by the symmetric Sinc-Galerkin method [39] are presented in Table 5. We see from this table that the results are very accurate, even for choices of a small number of nodes, *N*, *M*, and *K*. In Figures 8 and 9, we see that the absolute errors \(E_{1}(x,y,t)\) and \(E_{2}(x,y,t)\) are very small, despite the relatively small number of grid points used.

## 7 Conclusions

In this paper, we have proposed a collocation algorithm to introduce an accurate numerical solution for the one-dimensional nonlinear NLSEs with initial-boundary conditions. The core of the proposed method was to discretize the NLSE in the spatial direction by the SJ-GL-C method, along with a new treatment for the subjected conditions, to create a system of SODEs of the unknown coefficients of the spectral expansion in the time direction. An efficient numerical integration process for SODEs was investigated based on the SJ-GR-C method. The proposed method was extended to solve the two-dimensional NLSEs. The main advantage of the proposed algorithm is that, on adding few terms of the SJ-GL-C and SJ-GR-C nodes, a good approximation of the exact solution of the problem was achieved. Comparisons between our approximate solutions of the problems with their exact solutions and with the approximate solutions achieved by other methods were introduced to confirm the validity and accuracy of our scheme.

## References

Canuto, C, Hussaini, MY, Quarteroni, A, Zang, TA: Spectral Methods: Fundamentals in Single Domains. Springer, New York (2006)

Bhrawy, AH: A Jacobi spectral collocation method for solving multi-dimensional nonlinear fractional sub-diffusion equations. Numer. Algorithms (2015). doi:10.1007/s11075-015-0087-2

Heinrichs, W: Spectral methods with sparse matrices. Numer. Math.

**56**, 25-41 (1989)Heinrichs, W: Algebraic spectral multigrid methods. Comput. Methods Appl. Mech. Eng.

**80**, 281-286 (1990)Bhrawy, AH: An efficient Jacobi pseudospectral approximation for nonlinear complex generalized Zakharov system. Appl. Math. Comput.

**247**, 30-46 (2014)Nemati, S: Numerical solution of Volterra-Fredholm integral equations using Legendre collocation method. J. Comput. Appl. Math.

**278**, 29-36 (2015)Doha, EH, Bhrawy, AH: A Jacobi spectral Galerkin method for the integrated forms of fourth-order elliptic differential equations. Numer. Methods Partial Differ. Equ.

**25**, 712-739 (2009)Tatari, M, Haghighi, M: A generalized Laguerre-Legendre spectral collocation method for solving initial-boundary value problems. Appl. Math. Model.

**38**, 1351-1364 (2014)Bhrawy, AH, Zaky, MA: Shifted fractional-order Jacobi orthogonal functions: application to a system of fractional differential equations. Appl. Math. Model.

**40**, 832-845 (2016)Bhrawy, AH, Zaky, MA: A fractional-order Jacobi tau method for a class of time-fractional PDEs with variable coefficients. Math. Methods Appl. Sci. (2015). doi:10.1002/mma.3600

Bhrawy, AH, Abdelkawy, MA, Mallawi, F: An accurate Chebyshev pseudospectral scheme for multi-dimensional parabolic problems with time delays. Bound. Value Probl.

**2015**(1), 103 (2015)Bhrawy, AH: A highly accurate collocation algorithm for \(1+1\) and \(2+1\) fractional percolation equations. J. Vib. Control (2015). doi:10.1177/1077546315597815

Nemati, S: Numerical solution of Volterra-Fredholm integral equations using Legendre collocation method. J. Comput. Appl. Math.

**278**, 29-36 (2015)Bhrawy, AH, Ezz-Eldien, SS: A new Legendre operational technique for delay fractional optimal control problems. Calcolo (2015). doi:10.1007/s10092-015-0160-1

Bhrawy, AH, Zaky, MA: A method based on the Jacobi tau approximation for solving multi-term time-space fractional partial differential equations. J. Comput. Phys.

**281**(15), 876-895 (2015)Bhrawy, AH, Doha, EH, Ezz-Eldien, SS, Abdelkawy, MA: A numerical technique based on the shifted Legendre polynomials for solving the time-fractional coupled KdV equation. Calcolo (2015). doi:10.1007/s10092-014-0132-x

Bhrawy, AH, Zaky, MA: Numerical simulation for two-dimensional variable-order fractional nonlinear cable equation. Nonlinear Dyn.

**80**, 101-116 (2015)D’Avenia, P, Montefusco, E, Squassina, M: On the logarithmic Schrödinger equation. Commun. Contemp. Math.

**16**, 1350032 (2014)Zhang, Z-Y, Li, Y-X, Liu, Z-H, Mia, X-J: New exact solutions to the perturbed nonlinear Schrödinger’s equation with Kerr law nonlinearity via modified trigonometric function series method. Commun. Nonlinear Sci. Numer. Simul.

**16**, 3097-3106 (2011)Abdel Latif, MS: Bright and dark soliton solutions for the perturbed nonlinear Schrödinger’s equation with Kerr law and non-Kerr law nonlinearity. Appl. Math. Comput.

**247**, 501-510 (2014)Eslami, M: Solitary wave solutions for perturbed nonlinear Schrodinger’s equation with Kerr law nonlinearity under the DAM. Optik

**126**, 1312-1317 (2015)Biswas, A: Perturbation of solitons with non-Kerr law nonlinearity. Chaos Solitons Fractals

**13**, 815-823 (2002)Biswas, A: Quasi-stationary optical solitons with dual-power law nonlinearity. Opt. Commun.

**235**, 183-194 (2004)Akhmediev, NN, Afanasjev, VV, Soto-Crespo, JM: Singularities and special soliton solutions of the cubic-quintic complex Ginzburg-Landau equation. Phys. Rev. E

**53**, 1190-1201 (1996)Hefter, EF: Application of the nonlinear Schrödinger equation with a logarithmic inhomogeneous term to nuclear physics. Phys. Rev. A

**32**, 1201 (1985)Hernandez, ES, Remaud, B: General properties of gausson-conserving descriptions of quantal damped motion. Physica A

**105**, 130-146 (1980)De Martino, S, Falanga, M, Godano, C, Lauro, G: Logarithmic Schrodinger-like equation as a model for magma transport. Europhys. Lett.

**63**, 472-475 (2003)Krolikowski, W, Edmundson, D, Bang, O: Unified model for partially coherent solitons in logarithmically nonlinear media. Phys. Rev. E

**61**, 3122 (2000)Buljan, H, Siber, A, Soljacic, M, Schwartz, T, Segev, M, Christodoulides, DN: Incoherent white light solitons in logarithmically saturable noninstantaneous nonlinear media. Phys. Rev. E

**68**, 036607 (2003)Doha, EH, Bhrawy, AH, Abdelkawy, MA, Van Gorder, RA: Jacobi-Gauss-Lobatto collocation method for the numerical solution of \(1+1\) nonlinear Schrödinger equations. J. Comput. Phys.

**261**, 244-255 (2014)Zhang, LW, Liew, KM: An element-free based solution for nonlinear Schrödinger equations using the ICVMLS-Ritz method. Appl. Math. Comput.

**249**, 333-345 (2014)Atangana, A: On the stability and convergence of the time-fractional variable order telegraph equation. J. Comput. Phys.

**293**, 104-114 (2015)Atangana, A: Extension of the Sumudu homotopy perturbation method to an attractor for one-dimensional Keller-Segel equations. Appl. Math. Model.

**39**(10), 2909-2916 (2015)Atangana, A: On the new fractional derivative and application to nonlinear Fisher’s reaction-diffusion equation. Appl. Math. Comput.

**273**, 948-956 (2016)Tariboon, J, Ntouyas, SK, Agarwal, P: New concepts of fractional quantum calculus and applications to impulsive fractional q-difference equations. Adv. Differ. Equ.

**2015**, 18 (2015)Zhou, H, Yang, L, Agarwal, P: Solvability for fractional p-Laplacian differential equations with multipoint boundary conditions at resonance on infinite interval. J. Appl. Math. Comput. (2015). doi:10.1007/s12190-015-0957-8

Agarwal, P, Jain, S, Chand, M: Finite integrals involving Jacobi polynomials and I-function. In: Theoretical Mathematics & Applications, vol. 1, pp. 115-123 (2011)

Bhrawy, AH, Abdelkawy, MA: A fully spectral collocation approximation for multi-dimensional fractional Schrödinger equations. J. Comput. Phys.

**294**, 462-483 (2015)Dehghan, M, Emami-Naeini, F: The Sinc-collocation and Sinc-Galerkin methods for solving the two-dimensional Schrödinger equation with nonhomogeneous boundary conditions. Appl. Math. Model.

**37**, 9379-9397 (2013)

## Acknowledgements

This article was funded by the Deanship of Scientific Research DSR, King Abdulaziz University, Jeddah. The authors, therefore, acknowledge with thanks DSR technical and financial support.

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

### Authors’ contributions

The authors have equal contributions to each part of this paper. All the authors read and approved the final manuscript.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Bhrawy, A.H., Mallawi, F. & Abdelkawy, M.A. New spectral collocation algorithms for one- and two-dimensional Schrödinger equations with a Kerr law nonlinearity.
*Adv Differ Equ* **2016**, 18 (2016). https://doi.org/10.1186/s13662-016-0752-3

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13662-016-0752-3