Introduction

Nonlinear wave is one of the main area of focus for researchers and scientists doing research in applied science, such as biology, engineering, electromagnetic theory, optics, chemical physics, fluid mechanics, ecology, deep water, plasma physics, elastic media, [1,2,3,4,5,6,7,8,9,10]. Nonlinear complex features in plasma physics, quantum mechanics, optoelectronics hydrodynamics, semiconductors and bimolecular dynamical modes can be formulated in the form of the nonlinear Schrödinger equations (NLSEs). These equations are the nonlinear partial differential equations (NLPDEs), which have been studied in various areas of applied science [11,12,13]. Studying of their soliton solutions is so important in explaining various interesting physical phenomena in nature, and this branch turns into one of the most vital area of scientific research [14,15,16,17,18,19,20].

Because of the complexity structure of the nonlinear wave equations, there is no unified technique to extract all solutions of these equations. Different analytical and numerical methods are used to find solutions of these equations, such as tanh-sech method [21], sine-cosine method [22], Jacobi elliptic function method [23], \((\frac{G^{'}}{G})-\) expansion method [24], F-expansion method [25], exp-function method [26], extended tanh-method [27], homogeneous balance method [28] and Riccati-Bernoulli sub-ODE technique [29, 30]. Recently, there are a great development in analytical and numerical techniques for extracting solutions for NLPDEs, see for example [31,32,33,34,35,36,37,38,39,40,41,42].

The generalised third-order nonlinear NLSE given as follows [43]

$$\begin{aligned} i\left( \psi _{t}+\psi _{xxx}\right) +\left( \alpha _1\, \psi +i\alpha _2\, \psi _{x}\right) \mid \psi \mid ^2 +i\alpha _3\, \mid \psi ^2 \mid _x~\psi =0\,, \end{aligned}$$
(1)

where \(\alpha _1,\alpha _2,\alpha _3\), are real-valued parameters and \(\psi \) is a complex-valued function. Eq. (1) has been utilized to prescribe the propagation of ultra-short pulses in nonlinear optical fibres. The present work is motivated to find new and more general solutions to (1). Namely, the main interest is to introduce some new exact solution of the generalised third-order nonlinear Schrödinger equation, using extended Jacobian elliptic function expansion method (JEFEM) and He’s variational principle. To the best of our knowledge, no previous article has been done utilizing the techniques in this paper for solving this equation.

This paper is arranged as follows. In Sect. 2, some new exact solutions for the generalised third-order nonlinear Schrödinger equation are presented. Indeed, some 2D and 3D graphs of acquired solutions are illustrated. The conclusions are reported in Sect. 3.

Soliton Solutions of the Generalised Third-Order NLSE

$$\begin{aligned} \psi (x,t)=e^{i\varphi (x,t)}q(\xi ),~~~~~~\varphi (x,t)= p x + \mu t+\epsilon , \xi =kx+wt, \end{aligned}$$
(2)

kpw and \(\mu \) are constants and \(\epsilon \) is the phase constant.

Superseding (2) into Eq. (1) yields:

$$\begin{aligned}&3pk^2q''+(\alpha _2\,p-\alpha _1)q^{3}+(\mu - p^3)q=0\,, \end{aligned}$$
(3)
$$\begin{aligned}&k^3\,q'''+(w- 3p^2 k)q'+k(\alpha _2+2\alpha _3)q^{2}q'=0. \end{aligned}$$
(4)

Integrating Eq. (4) and taking the integration constant as zero, we have

$$\begin{aligned} k^3q''+\frac{k}{3}(\alpha _2+2\alpha _3)q^{3}+(w- 3p^2k)q=0. \end{aligned}$$
(5)

Eqs. (3) and (5) are the same under the constraint conditions

$$\begin{aligned} \alpha _1=-2\alpha _3\,p,~~~\mu =\frac{3pw-8p^3k}{k}. \end{aligned}$$
(6)

In the sequel we use the extended JEFEM and He’s principle for solving Eq. (1).

The Extended JEFEM

According to the extended JEFEM [24, 44,45,46], the solution of Eq. (1) is

$$\begin{aligned} q=a_{0}+a_{1} sn(\xi ,m)+b_{1} cn(\xi ,m). \end{aligned}$$
(7)

Eq. (7) yields

$$\begin{aligned} q'= & {} a_{1} cn(\xi ,m)\, dn(\xi ,m)-b_{1} sn(\xi ,m)\,dn(\xi ,m), \end{aligned}$$
(8)
$$\begin{aligned} q''= & {} -{m}^{2} sn(\xi ,m)\,a_{1}+2\,a_{1} sn(\xi ,m)^{3}{m}^{2}\nonumber \\&+2\,m^{2} sn(\xi ,m)^{2}cn(\xi ,m)\,b_{1}-a_{1} sn(\xi ,m)-b_{1} cn(\xi ,m). \end{aligned}$$
(9)

Superseding Eqs. (7)-(9) into Eq. (3) and putting the coefficients of \(sn^{3}\), \(sn^{2} { cn}\), \(sn^{2}\), \(sn { cn}\), sn, cn, \(sn^{0}\) with zero, gives

$$\begin{aligned}&6pk^2\,{m}^{2}a_{{1}}+(\alpha _2\,p-\alpha _1)\left( a_{1}^{3}-3\,a_{1}b_{1}^{2}\right) =0, \end{aligned}$$
(10)
$$\begin{aligned}&6pk^2\, {m}^{2}b_{1}+(\alpha _2\,p-\alpha _1)\left( 3\,a_{1}^{2}b_{1}-b_{1}^{3} \right) =0,\end{aligned}$$
(11)
$$\begin{aligned}&a_{0}\left( a^2_{1}- b^2_{1}\right) =0, \end{aligned}$$
(12)
$$\begin{aligned}&a_{0}a_{1}b_{1} =0, \end{aligned}$$
(13)
$$\begin{aligned}&-3pk^2\, a_{1}\, \left( 1+m^{2} \right) +(\alpha _2\,p-\alpha _1)\left( 3\,a_{0}^{2}a_{1}+3\,a_{1}{b_{1}}^{2} \right) +(\mu - p^3)a_{1}=0, \end{aligned}$$
(14)
$$\begin{aligned}&-3pk^2\, b_{1}+(\alpha _2\,p-\alpha _1) \left( 3\,a_{0}^{2}b_{1}+b_{1}^{3} \right) +(\mu - p^3)b_{1}=0, \end{aligned}$$
(15)
$$\begin{aligned}&(\alpha _2\,p-\alpha _1)\left( a_{0}^{3}+3\,a_{0}b_{1}^{2} \right) +(\mu - p^3)a_{0}=0. \end{aligned}$$
(16)

Solving these algebraic equations, gives:

Family 1.

$$\begin{aligned} a_0=0,a_1=\pm \frac{\sqrt{6p}\,km}{\sqrt{\alpha _1-\alpha _2\,p}}, b_1=0, w=k^3(1+m^2)+3kp^2. \end{aligned}$$

The first family of solutions is

$$\begin{aligned} q_{1}(x,t)= \pm \frac{\sqrt{6p}\,km}{\sqrt{\alpha _1-\alpha _2\,p}}\, sn(kx+wt)\,e^{i(p x + \mu t+\epsilon )}. \end{aligned}$$
(17)

When \(m \rightarrow 1\), Eq. (17) becomes

$$\begin{aligned} q_{1}(x,t)= \pm \frac{\sqrt{6p}\,k}{\sqrt{\alpha _1-\alpha _2\,p}}\,tanh(kx+wt)\,e^{i(p x + \mu t+\epsilon )},~~w=2k^3+3kp^2. \end{aligned}$$
(18)
Fig. 1
figure 1

Real and imaginary travelling wave solutions for Eq. (18) are illustrated: real solutions in (a), imaginary solutions in (b). c presents 2D real and imaginary solutions for Eq. (18). The parameter values are given by \(\alpha _2=2.1,\,\alpha _3=1.2,\,p=1.5,\,k=0.1,\,\epsilon =2.2.\) \(x\in [-5,\,5]\) and \(t=0\rightarrow 6.\) The values of \(\alpha _1\) and \(\mu \) are taken by Eq. (6). c plotted at \(t=6.\)

Family 2.

$$\begin{aligned} a_0=0,a_1=\pm \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}, b_1=i \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}, w=-\frac{1}{2}k^3(m^2-2)+3kp^2. \end{aligned}$$

The second family of solutions is

$$\begin{aligned} q_{2}(x,t)\!=\! \left( \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, sn(kx+ w t) \!+\!i \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, cn(kx+wt)\right) \, \,e^{i(p x + \mu t+\epsilon )}. \end{aligned}$$
(19)

When \(m \rightarrow 1\), Eq. (19) becomes

$$\begin{aligned} q_{2}(x,t)= & {} \left( \sqrt{\frac{3}{2}}\frac{k\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, tanh(kx+ w t) \right. \nonumber \\&\left. +i \sqrt{\frac{3}{2}}\frac{k\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, sech(kx+wt)\right) \, \,e^{i(p x + \mu t+\epsilon )},\nonumber \\ w= & {} \frac{1}{2}k^3+3kp^2. \end{aligned}$$
(20)
Fig. 2
figure 2

3D real and imaginary travelling wave solutions for Eq. (20) are plotted: real solutions in (a), imaginary solution in (b). 2D real and imaginary solutions are presented in (c) at \(t=6.\) The parameter values are taken by \(\alpha _2=2.1,\,\alpha _3=1.2,\,p=1.5,\,k=0.1,\,\epsilon =2.2.\) \(x\in [-5,\,5]\) and \(t=0\rightarrow 6.\) The values of \(\alpha _1\) and \(\mu \) are taken by Eq. (6)

Family 3.

$$\begin{aligned} a_0=0,a_1=\pm \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}, b_1=-i \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}, w=-\frac{1}{2}k^3(m^2-2)+3kp^2. \end{aligned}$$

The third family of solutions is

$$\begin{aligned} q_{3}(x,t)\!=\! \left( \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, sn(kx+ w t) \!-\!i \sqrt{\frac{3}{2}}\frac{km\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, cn(kx+wt)\right) \, \,e^{i(p x + \mu t+\epsilon )}. \end{aligned}$$
(21)

When \(m \rightarrow 1\), Eq. (21) becomes

$$\begin{aligned} q_{3}(x,t)= & {} \left( \sqrt{\frac{3}{2}}\frac{k\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, tanh(kx+ w t) \right. \nonumber \\&\left. -i \sqrt{\frac{3}{2}}\frac{k\,\sqrt{p}}{\sqrt{\alpha _1-\alpha _2\,p}}\, sech(kx+wt)\right) \, \,e^{i(p x + \mu t+\epsilon )},\nonumber \\ w= & {} \frac{1}{2}k^3+3kp^2. \end{aligned}$$
(22)
Fig. 3
figure 3

3D real and imaginary travelling wave solutions for Eq. (22) are depicted: real travelling wave solutions in (a), imaginary travelling wave solutions in (b). c 2D graph for the real and imaginary solutions of Eq. (22) at \(t=6.\). The considered parameters are given by the values \(\alpha _2=2.1,\,\alpha _3=1.2,\,p=1.5,\,k=0.1,\,\epsilon =2.2.\) \(x\in [-5,\,5]\) and \(t=0\rightarrow 6.\) The values of \(\alpha _1\) and \(\mu \) are taken by Eq. (6)

Family 4.

$$\begin{aligned} a_0=0,a_1=0, b_1=\pm \frac{\sqrt{6p}\,km}{\sqrt{\alpha _2\,p-\alpha _1}}, w=k^3(1-2m^2)+3kp^2. \end{aligned}$$

The fourth family of solutions is

$$\begin{aligned} q_{1}(x,t)= \pm \frac{\sqrt{6p}\,km}{\sqrt{\alpha _2\,p-\alpha _1}}\, cn(kx+wt)\,e^{i(p x + \mu t+\epsilon )}. \end{aligned}$$
(23)

When \(m \rightarrow 1\), Eq. (23) becomes

$$\begin{aligned} q_{1}(x,t)= \pm \frac{\sqrt{6p}\,k}{\sqrt{\alpha _2\,p-\alpha _1}}\,sech(kx+wt)\,e^{i(p x + \mu t+\epsilon )},~~w=-k^3+3kp^2. \end{aligned}$$
(24)
Fig. 4
figure 4

a, b show the real and imaginary travelling wave solutions for Eq. (24), respectively. 2D graph for the real and imaginary travelling wave solutions of Eq. (24) are demonstrated in (c) at \(t=6.\) The parameter values are given by \(\alpha _2=2.1,\,\alpha _3=1.2,\,p=1.5,\,k=0.1,\,\epsilon =2.2.\) \(x\in [-5,\,5]\) and \(t=0\rightarrow 6.\) The values of \(\alpha _1\) and \(\mu \) are taken by Eq. (6)

The He’s Semi-inverse Technique

Based on the He’s semi-inverse technique [47,48,49], the variational formulation corresponding to Eq. (3) is

$$\begin{aligned} J=\int _{0}^{\infty }\left[ -\frac{3}{2}pk^{2}(q'^2)+\frac{1}{4}(\alpha _2\,p-\alpha _1)q^{4}+\frac{1}{2}(\mu - p^3)q^2 \right] d\xi . \end{aligned}$$
(25)

By Ritz-like method, we search for the following solitary wave solution

$$\begin{aligned} \psi (\xi )=A\, sech(B\xi ). \end{aligned}$$
(26)

superseding Eq. (26) into Eq. (25), gives

$$\begin{aligned} J= & {} \int _{0}^{\infty }\left[ -\frac{3}{2}pk^{2} A^2B^2 sech^2(B\xi )tanh^2(B\xi )\right. \\&\left. +\frac{A^4}{4} (\alpha _2\,p-\alpha _1)sech^4(B\xi )+\frac{A^2}{2}(\mu - p^3)sech^2(B\xi )\right] d\xi \\= & {} -\frac{3}{2B}pk^{2} A^2B^2\int _{0}^{\infty }sech^2(\theta )tanh^2(\theta )d\theta \\&+\!\frac{A^4}{4B}(\alpha _2\,p\!-\!\alpha _1) \int _{0}^{\infty }sech^4(\theta )d\theta \!+\!\frac{A^2}{2B}(\mu \!-\! p^3)\int _{0}^{\infty } sech^2(\theta )d\theta \\= & {} -\frac{1}{2}pk^{2} A^2B +\frac{A^4}{6B}(\alpha _2\,p-\alpha _1) + \frac{A^2}{2B}(\mu - p^3). \end{aligned}$$

For getting stationary with respect to A and B results in

$$\begin{aligned} \frac{\partial J}{\partial A}= - pk^{2} AB + \frac{2A^3}{3B} (\alpha _2\,p-\alpha _1)+\frac{A}{B}(\mu - p^3)=0, \end{aligned}$$
(27)
$$\begin{aligned} \frac{\partial J}{\partial B}=-\frac{1}{2}pk^{2} A^2 -\frac{A^4}{6B^2}(\alpha _2\,p-\alpha _1) - \frac{A^2}{2B^2}(\mu - p^3)=0. \end{aligned}$$
(28)

Solving Eqs. (27) and (28), we can easily obtain the following relations:

$$\begin{aligned} A=\pm \frac{\sqrt{2}\sqrt{\mu - p^3}}{\sqrt{\alpha _1-\alpha _2\,p}},~~~B=\pm \frac{\sqrt{p^3-\mu }}{\sqrt{3p}k}. \end{aligned}$$
(29)

The solitary wave solution is, therefore, given as follows

$$\begin{aligned} \hat{q}(x,t)= \pm \,\frac{\sqrt{2}\sqrt{\mu - p^3}}{\sqrt{\alpha _1-\alpha _2\,p}}\, sech(\pm \frac{\sqrt{p^3-\mu }}{\sqrt{3p}k}(kx+w t))\,e^{i(p x + \mu t+\epsilon )}. \end{aligned}$$
(30)

Shortly, it has been investigated that the exact solutions of the generalised third-order nonlinear NLSE were obtained in the explicit form. The behavior of solutions for this equation being solitons, rouge, periodic, breather or shock, is a significance for the values of the physical parameters of the generalised third-order NLSE. Moreover, the obtained solutions may be interpreted the telecommunications experiments, nuclear physics, chaotic pulses laser, capillary profiles and transistor [50,51,52,53,54,55]. Finally, the gained solutions is so vital in the developments of quantum mechanics, namely in quantum hall effect, entire computer industry and nuclear medicine.

Fig. 5
figure 5

3D real and imaginary travelling wave solutions for Eq. (30) are illustrated in (a, b), respectively. c depicts 2D travelling wave solutions for Eq. (30) at \(t=6.\) The used parameters are given by the values \(\alpha _2=2.1,\,\alpha _3=1.2,\,p=1.5,\,k=0.1,\,\epsilon =2.2.\) \(x\in [-5,\,5]\) and \(t=0\rightarrow 6.\) The values of \(\alpha _1\) and \(\mu \) are taken by Eq. (6)

Conclusions

In this work, we have developed a new type of solution for the generalised third-order nonlinear Schrödinger equation, utilizing the extended Jacobian elliptic function expansion and variational principle techniques. These solutions are very vital for explaining some complex physical phenomena. All gained solutions have been plotted in 2D and 3D surfaces, using Matlab 18, for appropriate values of the parameters. The proposed techniques in this study are efficient for establishing vital solutions for other NPDEs, which are involved in physics and engineering.