1 Introduction

The generalized nonlinear Schrödinger equation (NLSE) is a generic model that is very important in NL optics, where it describes the full spatiotemporal optical solitons or light bullets (Akhmediev and Ankiewicz 1997; Kivshar and Agrawal 2003; Hasegawa and Matsumoto 2003; Malomed 2006). For this equation, along with several other related equations such as the Klein–Gordon (KG) equation and the Korteweg de-Vries (KdV) equation, there is a large interest in finding novel exact solutions (Drazin and Johnson 1989). One of the most popular approaches is to use an expansion method which assumes a certain ansatz for the solutions and the solutions are then expanded in terms of one or perhaps more than one function, as was done in Ref. Zhang (2010). Some of the most popular expansion methods are the trigonometric function expansion method (Zhang 2008; Zhang et al. 2011c), including hyperbolic trigonometric functions (Malfliet and Hereman 1996; Zhang et al. 2013a), the exponential function expansion method (He and Wu 2006), the \(\left( \frac{G^{\prime }}{G}\right)\)-expansion method (Li and Wang 2009; Miao and Zhang 2011; Zhang et al. 2013b), the bifurcation method (Zhang et al. 2011a, b) and the first integral method (Zhang et al. 2013c). These forms of solutions have in common that they assume a linear form for the phase of the solution. However, Kruglov et al. (2003) have proposed an ansatz for the solution to the NLSE which involves a quadratic term in the phase, commonly known as the chirp (Lai and Cai 2011).

A prominent expansion method that has emerged is the Jacobi elliptic function (JEF) expansion method (Zhang 2012, 2015). The JEF is a natural choice for the NLSE with a Kerr nonlinearity because it satisfies the second order nonlinear differential involving a nonlinear term of the third degree and also because it encompasses both traveling and solitary wave solutions (Olver 2010). Recently, there has been a huge development in obtaining stable spatiotemporal soliton solutions, with and without chirp, for a higher number of transverse dimensions (Malomed 2006; Zhong 2008) using the JEF-expansion method and the principle of harmonic balance. The traveling wave and soliton solutions to the generalized NLSE in (3 + 1) dimensions ((3 + 1)-D) for the cubic nonlinearity were first developed in Belić (2008) for the anomalous dispersion and were generalized in Petrović (2009) for the normal dispersion. However, the important task remains to generalize these solutions to a wider range of functions.

2 Method

In this paper we expand the work done in Belić (2008) to find new spatiotemporal traveling wave solutions to the NLSE. We consider the standard form of the NLSE (Malomed et al. 2005):

$$\begin{aligned} i\partial _z u + \frac{\beta (z)}{2}\left( {\varDelta }_\perp u + \partial _t^{2}u\right) + \chi (z)|u|^{2} u = i\gamma (z)u, \end{aligned}$$
(1)

which describes evolution of a slowly-varying wavepacket envelope u(xyzt) in a diffractive nonlinear Kerr medium with anomalous dispersion, in the paraxial approximation. Here, z is the propagation coordinate, \({\varDelta }_\perp =\partial _x^{2}+\partial _y^{2}\) represents the transverse Laplacian, and t is the reduced time, i.e. time in the frame of reference moving with the wavepacket. All coordinates are made dimensionless by the choice of coefficients. The functions \(\beta\), \(\chi\), and \(\gamma\) stand for the diffraction/dispersion, nonlinearity, and gain coefficients, respectively. As in Belić (2008) we define u in terms of amplitude and phase \(u(z,x,y,t) = A(z,x,y,t) \exp {\left( iB(z,x,y,t)\right) }\) and assume the following form of the solutions:

$$A= f_1(z)+f_2(z) F(\theta )+f_3(z)F^{-1}(\theta ),$$
(2)
$$\theta= k(z)x + l(z) y + m(z) t+ \omega (z),$$
(3)
$$B= a(z)\left( x^{2}+y^{2}+t^{2}\right) + b(z) (x + y +t) + e(z),$$
(4)

where \(f, g, k, l, m, \omega , a, b, e\) are parameter functions to be determined.

The key difference from the previous paper is that we will assume F to be the solution of a more general differential equation:

$$\begin{aligned} \left( \frac{d F}{d\theta }\right) ^2=c_0+c_1 F+c_2 F^2+c_3 F^3+c_4 F^4, \end{aligned}$$
(5)

whereas for the Jacobi elliptic functions (JEFs) used in Belić (2008) we had \(c_1=c_3=0\). This differential equation has been previously used in several papers, namely in Fan (2002), Lan-Fang et al. (2011), Wang et al. (2006) and in Zhang et al. (2013d) for \(c_0=c_1=0\). However, the ansatz with the more general equation has never been applied to the (3 + 1)-D NLSE and in no case was the effect of chirp considered. In this paper we will explicitly assume \(c_1\ne 0\) or \(c_3\ne 0\).

Applying the F-expansion method and the principle of harmonic balance we obtain the following system of algebraic and first order differential equations for \(f_i\; (i=1,2,3), a, b, k, l, m\) and \(\omega\):

$$\frac{df_{j}}{dz} + 3a\beta f_{j} - \gamma f_{j}= 0,$$
(6)
$$\frac{dk}{dz}+2ka\beta =0,\quad \frac{dl}{dz}+2la\beta =0,\quad \frac{dm}{dz}+2ma\beta= 0,$$
(7)
$$\frac{da}{dz}+2\beta a^{2}= 0,$$
(8)
$$\frac{db}{dz}+ 2\beta ab= 0,$$
(9)
$$\frac{d\omega }{dt}+\beta (k+l+m)b= 0.$$
(10)

Instead of two equations for \(\chi\) as was obtained in Belić (2008) we obtain four equations:

$$f_{2}\left( \beta \left( k^{2}+l^{2}+m^{2}\right) c_{4}+\chi f_{2}^{2}\right)= 0,$$
(11)
$$f_{3}\left( \beta \left( k^{2}+l^{2}+m^{2}\right) c_{0} + \chi f_{3}^{2}\right)= 0,$$
(12)
$$f_{2}\left( \beta \left( k^{2}+l^{2}+m^{2}\right) \frac{c_{3}}{4}+\chi f_{1}f_{2}\right)= 0,$$
(13)
$$\begin{aligned} f_{3}\left( \beta \left( k^{2}+l^{2}+m^{2}\right) \frac{c_{1}}{4} + \chi f_{1}f_{3}\right)= 0. \end{aligned}$$
(14)

Equation (11) (or Eq. (12) if \(f_2=0\)) will give us the formula for \(\chi (z)\), given arbitrary values of \(\beta (z)\) and \(\gamma (z)\), while the remaining three equations, if not automatically satisfied, will impose constraints on \(c_i\) (\(i=0,\ldots ,4\)). For the equation for e we obtain two equations instead of one:

$$\begin{aligned} \frac{de}{dz}-6\chi f_{2}f_{3}-\chi f_{1}^2+\frac{\beta }{4} \left( 6 b^{2}- \left( k^{2}+l^{2}+m^{2}\right) \frac{f_2c_1+f_3c_3}{f_1}\right)= 0, \end{aligned}$$
(15)
$$\begin{aligned} \frac{de}{dz}-3\chi f_{2}f_{3}-3\chi f_{1}^2+\frac{\beta }{2} \left( 3b^{2}-\left( k^{2}+l^{2}+m^{2}\right) c_2\right)= 0. \end{aligned}$$
(16)

We will require an additional matching condition imposed on the coefficients \(c_i\) (\(i=0,\ldots ,4\)) for both equations to be satisfied simultaneously.

3 Results

We now proceed to solve the system of ordinary algebraic and differential equations obtained in Sect. 2. Using standard elementary calculus, Eqs. (6)–(10) are solved as in Belić (2008) to obtain:

$$\begin{aligned} f_{i}(z)= \alpha ^{3/2}{f_{i0}\exp {\left( \int _{0}^{z}\gamma dz\right) }}, \end{aligned}$$
(17)
$$\begin{aligned} k(z)= \alpha k_0,\quad l(z)=\alpha l_0,\quad m(z)=\alpha m_0, \end{aligned}$$
(18)
$$\begin{aligned} \omega (z)= \omega _{0}-\alpha \left( k_0+l_0+m_0\right) b_0\int _{0}^{z}\beta dz, \end{aligned}$$
(19)
$$\begin{aligned} a(z)= \alpha a_0, \end{aligned}$$
(20)
$$\begin{aligned} b(z)= \alpha b_0, \end{aligned}$$
(21)

where:

$$\begin{aligned} \alpha =\frac{1}{1+2a_0\int _{0}^{z}\beta dz} \end{aligned}$$
(22)

is the chirp function and subscript ‘0’ denoted the value of the respective function at \(z=0\).

From solving Eqs. (11)–(14) we obtain three distinct cases.

3.1 Case I: \(f_3=0\)

Assuming \(f_3=0\), Eqs. (12) and (14) are automatically satisfied, and from Eqs. (11) and (13) we obtain:

$$\begin{aligned} f_2= f_1\frac{4c_4}{c_3}, \end{aligned}$$
(23)
$$\begin{aligned} \chi (z)= -\beta c_4 \left( k_0^2+l_0^2+ m_0^2\right) f_{10}^{-2}\exp \left( {-2\int _{0}^{z}\gamma dz}\right) \Big/\alpha . \end{aligned}$$
(24)

The matching condition is:

$$\begin{aligned} c_2=\frac{c_3^2}{4c_4}+\frac{2c_4c_1}{c_3}\;. \end{aligned}$$
(25)

The formula for e is:

$$\begin{aligned} e(z)=e_{0}+\frac{\alpha }{2} \int _{0}^{z}\beta dz \cdot \left( \left( k_0^2 + l_0^2+m_0^2\right) \left( \frac{2c_4c_1}{c_3} -\frac{c_3^2}{8c_4}\right) - 3b_0^2\right) . \end{aligned}$$
(26)

For \(c_1=0\), the condition (25) reduces to \(c_3=\pm 2\sqrt{c_2c_4}\). A range of functions that can be used in this case is given in Refs. Lan-Fang et al. (2011) and Zhang et al. (2013d).

3.2 Case II: \(f_2=0\)

Assuming \(f_2=0\), Eqs. (11) and (13) are automatically satisfied, and from Eqs. (12) and (14) we obtain:

$$\begin{aligned} f_3= f_1\frac{4c_0}{c_1}, \end{aligned}$$
(27)
$$\begin{aligned} \chi (z)= -\beta c_4 \left( k_0^2+l_0^2+ m_0^2\right) f_{20}^{-2}\exp \left( {-2\int _{0}^{z}\gamma dz}\right) \Big/\alpha . \end{aligned}$$
(28)

The matching condition is:

$$\begin{aligned} c_2=\frac{c_1^2}{4c_0}+\frac{2c_0c_3}{c_1}. \end{aligned}$$
(29)

The formula for e is:

$$\begin{aligned} e(z)=e_{0}+\frac{\alpha }{2} \int _{0}^{z}\beta dz \cdot \left( \left( k_0^2+l_0^2+m_0^2\right) \left( \frac{2c_0c_3}{c_1}-\frac{c_1^2}{8c_0}\right) - 3b_0^2\right) . \end{aligned}$$
(30)

For \(c_3=0\), the condition (29) reduces to \(c_1=\pm 2\sqrt{c_2c_0}\).

For this case, the function of most interest which satisfies the necessary requirement \(c_0, c_1\ne 0\) is the Weierstrass elliptic function (WEF) (Lawden 1989). It is well known that for the WEF \(\wp (x;g_2, g_3)\) we have \(c_4=c_2=0\), \(c_3=4\), \(c_1=-g_2\) and \(c_0=-g_3\). Using Eq. (29) we get \(g_2^3=32g_3^2\). In Fig. 1 we see the solutions plotted with and without chirp for \(g_3=1\) and \(g_2=\root 3 \of {32}\). Thus we have shown that the WEF can also be used in the F-expansion method for solving the (3 + 1)-D NLSE.

Fig. 1
figure 1

A solution for Case II using the Weierstrass elliptic function. The parameters are: \(F=\wp (x;\root 3 \of {32}, 1), f_{10}=b_0=k_0=l_0=m_0=1, \omega _0=0\) and a \(a_0=0\), b \(a_0=0.3\)

3.3 Case III: \(f_2, f_3\ne 0\)

Assuming both \(f_2\) and \(f_3\) are non-zero, we obtain the following equations:

$$\begin{aligned} f_2=f_1\frac{4c_4}{c_3},\quad f_3=f_1\frac{4c_0}{c_1}, \end{aligned}$$
(31)

and an additional condition:

$$\begin{aligned} \frac{c_3^2}{c_4}=\frac{c_1^2}{c_0} \end{aligned}$$
(32)

needed to make Eqs. (11)–(14) consistent. The formula for \(\chi (z)\) is the same as the one in Eqs. (24). The matching condition for Eqs. (15)–(16) is:

$$\begin{aligned} c_2=\frac{c_3^2}{4c_4}-\frac{2c_4c_1}{c_3}. \end{aligned}$$
(33)

The formula for e is:

$$\begin{aligned} e(z)=e_{0}-\frac{\alpha }{2} \int _{0}^{z}\beta dz \cdot \bigg (\left( k_0^2+l_0^2+m_0^2\right) \bigg (\frac{2c_4c_1}{c_3} +\frac{c_3^2}{8c_4}\bigg )+ 3b_0^2\bigg ). \end{aligned}$$
(34)

Note that a symmetric formula for (33) is also available using \(c_0\), \(c_1\) and \(c_3\).

For this case we will chose the following values of coefficients, which satisfy conditions (32) and (33): \(c_4=-1\), \(c_3=2\), \(c_2=0\), \(c_1=1\) and \(c_0=-1/4\). The polynomial \(p(F)=c_0+c_1 F+c_2 F^2+c_3 F^3+c_4 F^4\) has two positive zeros, giving us a range for \(\dfrac{d F}{d\theta }\) that insures bounded solutions (Drazin and Johnson 1989). When the polynomial P has distinct zeros, function F can be considered an inverse of Carlson’s elliptic integrals (Carlson 1987), though cases with complex conjugate zeros can also be evaluated (Carlson 1977). A plot is given in Fig. 2. The plots depict roughly a single period of the function. We can see that the combination of two elliptic functions, given that both \(f_2\) and \(f_3\) are non-zero. Also, it is important to note that unlike JEF the maxima and minima of F are not the same width, due to the asymmetry of the elliptic integral. The modulational stability of these solutions is not addressed in this paper, though is likely that the solutions are stable since work done in Petrović et al. (2015) has shown that in most regimes solutions to Eq. (1) obtained in Belić (2008), Petrović (2009) are either unconditionally modulationally stable or stable under the regime of dispersion management.

Fig. 2
figure 2

A solution for Case III where function F satisfied the differential equation \(\dfrac{d F}{d\theta }=-\dfrac{1}{4}+F+2 F^3-F^4\) for \(x=y=t=0\). Other parameters are the same as in Fig. 1

4 Conclusion

To sum up, we have generalized the Jacobi elliptic function expansion method for the case of a general fourth order-polynomial for the elliptic integral. We have shown that it is possible to use the Weierstrass elliptic function in the F-expansion method for the (3 + 1)-D NLSE. Finally, we have shown that general inverses of elliptic integrals may be used for solving the (3 + 1)-D NLSE. This opens the door to a far more general class of solutions for the (3 + 1)-D NLSE than what was previously obtained.