Keywords

1 Introduction

Nonlinear evolution equations (NLEEs) can be used to represent a wide range of complicated physical processes and have applications in many areas of research, including physics, chemistry, biology, astronomy, and others [1, 3, 8, 10, 15, 20]. Several researchers have suggested different approaches to find its analytical solutions, e.g., the Hirota bilinear method [22], the generalized exponential rational function technique [6], the local fractional natural homotopy analysis method [4], the semi analytical method [19], the simple equation method [9], the Exp (–\(\phi (\xi )\)) expansion method [11, 12], the sine-cosine method [21] to name a few. Finding approximate analytical solutions to NLEEs may present some difficulties if a highly nonlinear term appears in these equations. For example, the scenario may become more complicated if damping or forcing terms are present [13, 17].

Recently, enormous interest began to investigate the NLEEs under a localized disturbance in the dynamic system [14, 16]. Actually, some excellent observations in the astronomical space plasma environment motivated the researchers for examining the NLEES under the influence of external forces [2, 18]. Again, damping is a common phenomenon that exists in all real physical systems. Thus, the non-autonomous system containing damping and forcing terms is much more realistic than its autonomous counterpart.

In this paper, we take into account a highly nonlinear evolution equation and use the direct assumption method to generate approximate analytical solutions that contain both damping and forcing terms, and we study the bifurcation analysis while considering the forcing and the damping terms equal to zero. For this generalized setting, it exhibits different-different topological structures for a range of values of the parameters which are supported by the numerical technique, the Pseudo-spectral method [5]. The spectral approach can be used to approximately correlate the numerical results to the analytical results. Accuracy is provided using spectral approaches with an exponential convergence rate. With this approach, the partial differential equation can be represented as a linear combination of basis functions, with the coefficient chosen so that the resulting linear combination closely approximates the solution. This approach has a number of constraints, including boundary conditions. To support our theoretical findings in this study, we are using the fundamental Pseudo-spectral approach.

We consider the non-linear evolution equation

$$\begin{aligned} u_t+Pu^k u_x+Qu_{xxx}+Su=f(t), \end{aligned}$$
(1.1)

where f(t) stands for the external hyperbolic forcing term and P, Q, and S stand for the non-linear coefficients, dispersion coefficient, and damping coefficient, respectively. The non-linear exponent is denoted by the parameter k, for which if \(k = n\), it represents the GDFKdV equation and if \(k = n/2\), it is the GMDFKdV equation, where \(n \in N\). equal to zero.

In this paper, Sect. 2 represents the analytical solutions for \(k = n\), and \(k = n/2\) which are obtained by the sine-cosine method for the simplified case i.e. \(u_t+Pu^k u_x+Qu_{xxx}= 0\). It appears that there is no significant difference in the solution profile except for varied values of P. However, when this equation is transformed into a dynamical system, it becomes clear that the solutions of GKdV and GMKdV behave very differently near their equilibrium points for the same value of the parameters, which is investigated by the standard tools of the bifurcation analysis in Sect. 3. By using the direct assumption technique, an approximative analytical solution for a generalized situation Eq. (1.1) is obtained. It can be seen that the parameters have a dramatically different effect on the solutions of GDFKdV and GMDFKdV, which are displayed using contour plots and three-dimensional surface graphs. This is the subject matter of Sect. 4. In Sect. 5, we extend the study by introducing two new parameters, a and b in the solution of Eq. (1.1), which is referred to as the generalized solution of the GDFKdV and the GMDFKdV here. It is observed that for the different values of these parameters, one can obtain multiple types of solitons which may depict Gaussian-type pulses, multiple humps, and twisted curved sheet-like topological structures. These results are supported by the Pseudo-spectral method, described in Sect. 6. The conclusion of this study is summarized in Sect. 7.

2 Approximate Analytical Solutions of GKdV and GMKdV Equations

Consider the case of a general non-linear partial differential equation with an unknown \(u=u(x,t)\) as,

$$\begin{aligned} \mathcal {N}(u,u_{t},u_{x},u_{x x},u_{t x},u_{x x x},...)=0. \end{aligned}$$
(2.1)

Now introducing a new stretching variable \(\zeta \) by combining the real variables x and t such that,

$$\begin{aligned} u(x,t)=V(\zeta ),~~~\zeta =\omega _0(x - ct). \end{aligned}$$
(2.2)

Eq. (2.1) is converted into an ordinary differential equation (ODE) with the help of the above transformation,

$$\begin{aligned} \mathcal {M}(V,V',V'',V''', \cdots )=0, \end{aligned}$$
(2.3)

where \((')\) signifies a derivative with respect to \(\zeta \) and \(\mathcal {M}\) is a polynomial in terms of V and its derivatives.

The sine-cosine approach suggests that the solutions could take the following form of

$$\begin{aligned} V=\lambda _0 sin^\gamma (\zeta ), \end{aligned}$$
(2.4)

or in the form

$$\begin{aligned} V=\lambda _0 cos^\gamma (\zeta ). \end{aligned}$$
(2.5)

where \(\lambda _0\), \(\gamma \) and \(\zeta \) are included parameters to be determined. Substituting Eq.(2.4) or Eq.(2.5) into Eq.(2.3), and solving the system of equations to obtain all possible values of the parameters \(\lambda _0\), \(\gamma \), and \(\zeta \). Put the values into Eq.(2.4) or Eq.(2.5), will present a new solutions of Eq.(2.3).

We employ sine-cosine method to find the analytical solutions of GKdV and GMKdV equation. Here, a suitable transform is chosen to reduced the partial differential equation into an ordinary differential equation (ODE). We consider a generalized form of KdV equation given by

$$\begin{aligned} u_t + Pu^ku_x + Qu_{xxx} = 0. \end{aligned}$$
(2.6)

Using the wave transformation \(u(x,t)=V(\zeta ),\,\zeta =w_{0}(x-ct)\), and taking integration, we find

$$\begin{aligned} -c V'+\frac{PV^{k+1}}{k+1}+Qw_{0}^2V''=0. \end{aligned}$$
(2.7)

According to the sine-cosine method the solutions of Eq. (2.7) can be expressed in the form

$$\begin{aligned} V=\lambda _{0} cos^{\gamma }(\zeta ). \end{aligned}$$
(2.8)

By substituting Eq.(2.8) into Eq.(2.7) gives the system of algebraic equations

$$\begin{aligned}{} & {} \gamma -2=\gamma (k+1),\\ {}{} & {} Qw^2\gamma ^2\lambda _{0}(k+1)-c\lambda _{0}(k+1)=0,\nonumber \\ {}{} & {} Qw_{0}^2\lambda _{0}\gamma ^2 k-Qw_{0}^2\lambda _{0} \gamma n-Qw_{0}^2\lambda _{0} \gamma +Qw_{0}^2\lambda _{0} \gamma ^2 +P\lambda _{0}^{k+1}=0.\nonumber \end{aligned}$$
(2.9)

Solving this system, we have

$$\begin{aligned} \gamma =-\frac{2}{n},\,w_{0}=\frac{k}{2} \sqrt{-\frac{c}{Q}},\,\lambda _{0}=\left( \frac{c(k+1)(k+2)}{2P}\right) ^{\frac{1}{k}}. \end{aligned}$$
(2.10)

From Eq. (2.10),the analytical solution of Eq.(2.6) is obtained and given by

$$\begin{aligned} V(\zeta )= u(x,t)=\left[ \frac{c(k+1)(k+2)}{2P} sech^{2}\left( \frac{k}{2} \sqrt{ \frac{c}{Q}}(x-ct)\right) \right] ^{\frac{1}{k}}. \end{aligned}$$
(2.11)

Now, we have two cases: for (a) \(k=n\), and \(k=n/2\); they correspond to GKdV and GMKdV equations, respectively. Their solutions are as follows

  • Case 1 \(k=n\) (GKdV equation), the solution is

    $$\begin{aligned} u(x,t)=\left[ \frac{c(n+1)(n+2)}{2P} sech^{2}\left( \frac{n}{2} \sqrt{ \frac{c}{Q}}(x-ct)\right) \right] ^{\frac{1}{n}}. \end{aligned}$$
    (2.12)
  • Case 2 \(k=n/2\) (mGKdV equation), the solution is

    $$\begin{aligned} u(x,t)=\left[ c\frac{(n+2)(n+4)}{8P}sech^{2}\left( \frac{n}{4}\sqrt{\frac{c}{Q}}(x-ct) \right) \right] ^{\frac{2}{n}}. \end{aligned}$$
    (2.13)

These solutions are plotted in Fig. 1 for the parameters \(P = 0.5, Q = 2.5, t = 0.5, c = 0.5\). For Fig. 1 (a), (e), n is varied and rest of the figures \(n=3\) is kept fixed and P, and Q are varied. From the comparison of these figures, it seems there is no significant difference in the analytical behaviour of the solitons obtained for both GKdV and GMKdV except for the parameter P. In the next section, we employ certain tools such as eigenvalues and phase portraits from bifurcation analysis to investigate the impact of the parameters on the solution profiles.

Fig. 1.
figure 1

The solutions of GKdV and Modified KdV are compared. The parameters used are: \(P = 0.5, Q = 2.5, t = 0.5, c = 0.5\), and \(n=3\) is fixed except for the figure where n is varied.

3 Bifurcation Analysis of GKdV Equation and GMKdV Equation

By following the [7], the dynamical system corresponding to Eq.(2.7) is as follows

$$\begin{aligned} u' = v, v' = \frac{1}{Qw_{0}^{2}}\left( cu - P \frac{u^{k+1}}{k+1} \right) . \end{aligned}$$
(3.1)

The determinant of Jacobian matrix is \( |J| = -\frac{1}{Qw_{0}^2} \left( c - P u^k \right) \), we have two equilibrium points for this system: (0, 0) and \(\left( \left( \frac{\left( k+1\right) c}{P}\right) ^{1/k}, 0 \right) \), \(n \in N\). The corresponding eigenvalues are

$$\begin{aligned} \lambda _{1,2} = \pm \sqrt{\frac{c- P u^k}{Qw_{0}^2}}. \end{aligned}$$
(3.2)

In the dynamical system given by Eq. (3.1), we have a exponent k, different values of \(k = n~\text {or}~ n/2\) will produce different sets of equilibrium points. In this study, we are considering \(n =[1, 3, 5]\).

Fig. 2.
figure 2

Behaviour of Dynamical system (3.1) for GKdV and GMKdV equation. For odd values of \(n =[1,3,5]\) and other parameter are \(c=1\); \(P = 0.4\); \( Q=0.35\); \(w_0=1\).

Let us consider two cases:

  • For \(k =n\), the dynamical system corresponds to GKdV equation. The phase portraits corresponding to \(n = [1,3,5]\) are shown in Fig. 2 abc for fixed value of the parameters \(P =0.4\), \(Q= 0.35\), \(c_0=1\), and \(w_0 =1\). For \(n=1\), the system will have two equilibrium points (0, 0) and \(\left( \frac{2c}{P}, 0 \right) \). There is a center in the vicinity of point \(\left( \frac{2c}{P}, 0 \right) \), and trajectories show periodic behaviour around this center. These trajectories move away from each other when they move further towards (0, 0) which implies that the system becomes unstable in the neighborhood of (0, 0) and enters into unbounded open orbits. For fixed values of the parameters, the system will always remain unstable in this orbit. Similar conclusions can be drawn for \(n =3, 5\).

  • For \(k = \frac{n}{2}\), the dynamical system will correspond to the GMKdV equation. For \(n = [1, 3, 5] \), we will have a fractional exponent. The phase portraits are shown in Fig. 2 def corresponding to these values of n, considering the same values of the parameters used to plot phase portraits Fig. 2 abc. This system will have one saddle point at (0, 0) and one centre point at \(\left( \left( \frac{(\frac{n}{2}+1)c}{P} \right) ^{2/n}, 0 \right) \). In the neighborhood of the center point, these trajectories show periodic behaviour. Proceeding further, the system becomes unstable near the saddle point, and trajectories stop moving forward at this unstable point. For the higher value of n i.e., \(n = [3, 5]\), these trajectories are showing compressive behaviour and moving towards an unstable point.

For GKdV and GMKdV, the equilibrium point, corresponding eigenvalues, and expected topological properties are summarized in Table 1 and Table 2. Complex equilibrium points are omitted here as they may not be very useful for practical purposes.

Table 1. Behaviour of equilibrium points and corresponding eigenvalues with respect to values of \(n = [1, 3, 5]\) for GKdV.
Table 2. Behaviour of equilibrium points and corresponding eigenvalues with respect to values of \(n = [1, 3, 5]\) for GMKdV equations.

4 Approximate Analytical Solutions of GDFKDV and GMDFKDV Equations

In this section, we shall derive approximate analytical solutions of GDFKDV and GMDFKDV equations by using direct assumption technique. Recall, a generalized form of equation as

$$\begin{aligned} u_{t}+Pu^{k}u_{x}+Qu_{xxx}+Su=f(t), \end{aligned}$$
(4.1)

where S is damping coefficient, and f(t) denotes the forcing term. We take the solution for the above equation as

$$\begin{aligned} u =\left[ \frac{c(t)(k+1)(k+2)}{2P}sech^{2}\left( \frac{k}{2}\sqrt{\frac{c(t)}{Q}} (x-c(t)t)\right) \right] ^{\frac{1}{k}}. \end{aligned}$$
(4.2)

We know that \(I= \int ^{\infty }_{-\infty }u^2 dx\) is conserved. Thus, we have

$$\begin{aligned} I= \int ^{\infty }_{-\infty }u(x,t)^2 dx = \frac{ 2^{\frac{4}{k}+1}c(t)^{\frac{2}{k}-\frac{1}{2}} \beta \left( \frac{2}{k},\frac{2}{k}\right) \left( \root k \of {\frac{(k+1)(k+2)}{2P}}\right) ^{2}}{k \sqrt{\frac{1}{Q}}}. \end{aligned}$$
(4.3)

Differentiating the Eq. (4.3) with respect to t and taking Eq. (4.1) and Eq. (4.3) together with differential value as,

$$\begin{aligned} \frac{dI}{dt}= & {} 2\int _{-\infty }^{\infty }u(x,t) \frac{\partial u}{\partial t} dx \qquad = -2\int _{-\infty }^{\infty }u \left( Pu^{k}u_{x}+Qu_{xxx}+Su - f(t) \right) dx\nonumber \\= & {} -2S\frac{ 2^{\frac{4}{k}+1}c(t)^{\frac{2}{k}-\frac{1}{2}} \beta \left( \frac{2}{k},\frac{2}{k}\right) \left( \root k \of {\frac{(k+1)(k+2)}{2P}}\right) ^{2}}{k \sqrt{\frac{1}{Q}}} + 2f(t) \frac{\left[ c(t)^{\frac{1}{k} - \frac{1}{2}} \left( \root k \of {\frac{(k+1)(k+2)}{2P}}\right) 2^{{\frac{2}{k}}+1} \beta \left( \frac{1}{k}, \frac{1}{k}\right) \right] }{ k \sqrt{ \frac{1}{Q}}}.\nonumber \\ \end{aligned}$$
(4.4)

(Since \(\int _{-\infty }^{\infty }u^{k}uu_{x}dx=0\) and \(\int _{-\infty }^{\infty }uu_{xxx}dx=0 \) both holds true.)

By simplifying the Eq. (4.4), we obtain following differential equation for c(t) as

$$\begin{aligned} \frac{1}{k} c(t)^{\frac{1}{k}-1} \frac{dc(t)}{dt} + \frac{4S}{(4-k)} c(t)^{\frac{1}{k}} = \frac{4 \beta (\frac{1}{k}, \frac{1}{k})}{(4-k) \left( \root k \of {\frac{(k+1)(k+2)}{2P}}\right) 2^{\frac{2}{k}} \beta (\frac{2}{k}, \frac{2}{k})} f(t). \end{aligned}$$
(4.5)

For the forcing term \(f(t) = f_{0}\cosh (\omega t)\), the solution is

$$\begin{aligned} u(x,t)=\left[ \frac{c(t)(n+1)(n+2)}{2P}sech^{2}\left( \frac{n}{2}\sqrt{\frac{c(t)}{Q}} (x-c(t)t)\right) \right] ^{\frac{1}{n}}, \end{aligned}$$
(4.6)

where

$$\begin{aligned} c(t)^{\frac{1}{k}}= \frac{2\beta \left( \frac{1}{k},\frac{1}{k}\right) f_0}{2^{\frac{2}{k}}\beta \left( \frac{2}{k},\frac{2}{k}\right) \root k \of {\frac{(k+1)(k+2)}{2P}}} \left[ \frac{8Scosh(\omega t)-2\omega (4-k)sinh(\omega t)}{16S^2-\omega ^2 (4-k)^2}\right] +c_{1}e^{-\frac{4S}{(4-k)}t}, \end{aligned}$$

and the constant

$$\begin{aligned} c_{1}= c^{1/k}_{0}-\frac{2\beta \left( \frac{1}{k},\frac{1}{k}\right) f_0}{2^{\frac{2}{k}}\beta \left( \frac{2}{k},\frac{2}{k}\right) \root k \of {\frac{(k+1)(k+2)}{2P}}} \frac{8S}{16S^2-\omega ^{2}(4-k)^2}. \end{aligned}$$
  • Case1. \(k = n\), Solitary Wave Solution of GDFKDV For the forcing term \(f(t) = f_{0}\cosh (\omega t)\), the solution is

    $$\begin{aligned} u=\left[ \frac{c(t)(n+1)(n+2)}{2P}sech^{2}\left( \frac{n}{2}\sqrt{\frac{c(t)}{Q}} (x-c(t)t)\right) \right] ^{\frac{1}{n}}, \end{aligned}$$
    (4.7)

    where

    $$\begin{aligned} c(t)^{\frac{1}{n}}= \frac{2\beta \left( \frac{1}{n},\frac{1}{n}\right) f_0}{2^{\frac{2}{n}}\beta \left( \frac{2}{n},\frac{2}{n}\right) \root n \of {\frac{(n+1)(n+2)}{2P}}} \left[ \frac{8Scosh(\omega t)-2\omega (4-n)sinh(\omega t)}{16S^2-\omega ^2 (4-n)^2}\right] +c_{1}e^{-\frac{4S}{(4-n)}t}, \end{aligned}$$

    and the constant

    $$\begin{aligned} c_{1}= c^{1/n}_{0}-\frac{2\beta \left( \frac{1}{n},\frac{1}{n}\right) f_0}{2^{\frac{2}{n}}\beta \left( \frac{2}{n},\frac{2}{n}\right) \root n \of {\frac{(n+1)(n+2)}{2P}}} \frac{8S}{16S^2-\omega ^{2}(4-n)^2}. \end{aligned}$$
  • Case2. \(k = n/2\), Solitary Wave Solution of GMDFKDV For the forcing term \(f(t) = f_{0}\cosh (\omega t)\), the solution is

    $$\begin{aligned} u=\left[ \frac{c(t)(n+2)(n+4)}{8P}sech^{2}\left( \frac{n}{4}\sqrt{\frac{c(t)}{Q}}(x-c(t)t) \right) \right] ^{\frac{2}{n}}, \end{aligned}$$
    (4.8)

    where

    $$\begin{aligned} c(t)^{\frac{2}{n}}\,{=}\, \frac{4f\beta \left( \frac{2}{n},\frac{2}{n}\right) }{2^{\frac{4}{n}}\beta \left( \frac{4}{n},\frac{4}{n}\right) \left( \root n \of {\frac{(n+2)(n+4)}{8P}}\right) ^2} \left[ \frac{16Scosh(\omega t)-2\omega (8-n)sinh(\omega t)}{64S^2-\omega ^2 (8-n)^2}\right] +c_{1}e^{-\frac{8S}{(8-n)}t}, \end{aligned}$$

    and the constant

    $$\begin{aligned} c_{1}=c^{2/n}_{0}-\frac{4f \beta \left( \frac{2}{n},\frac{2}{n}\right) }{2^{\frac{4}{n}}\beta \left( \frac{4}{n},\frac{4}{n}\right) \left( \root n \of {\frac{(n+2)(n+4)}{8P}}\right) ^2 } \frac{16S}{64S^2-\omega ^{2}(8-n)^2}. \end{aligned}$$
Fig. 3.
figure 3

The solutions of GDFKdV and GMDFKdV are compared for different values of damping parameter \(S = [0.1,0.2,0.5,0.8]\). Other parameters used are: \(c_0 = 0.5, P = 0.5, Q = 2.5, \omega = 0.5, n = 3, f = 0.01\).

The impact of the damping coefficient on the solutions of GDFKdV and GMDFKdV is shown in Fig. 3. The damping coefficient is considered for these discrete values \(S = [0.1,0.2,0.5,0.8]\), and the rest of the parameters are kept fixed as \(c_0 = 0.5, P = 0.5, Q = 2.5, \omega = 0.5, n = 3, f = 0.01\). It is very clear from the plots that the profiles corresponding to GDFKdV and GMDFKdV are very different. For GDFKdV, with an increase in damping coefficient, the soliton, which has a Gaussian-pulse type structure, tends to flatten down from the backside. The impact is clearly visible in the contour plots also. A similar impact can also be observed for GMDFKdV. The impact of frequency coefficient \(\omega \) on the solution profiles of GDFKdV and GMDFKdV is shown in Fig. 4. The values of \(\omega \) are \(\omega = [0.05, 2.0, 2.5, 3.0]\), and rest of the parameters are \(c_0 = 0.5, P = 0.5, Q = 2.5, f = 0.02, n = 3, S = 0.01\). For both GDFKdV and GMDFKdV, it can be seen that with an increase in frequency coefficient, the soliton acquires curvature, which is visible in surface plots and corresponding contour plots.

Fig. 4.
figure 4

The solutions of the GDFKdV and GMDFKdV are compared for different values of frequency coefficient \(\omega = [0.05, 2.0, 2.5, 3.0]\). Other parameters used are: \(c_0 = 0.5, P = 0.5, Q = 2.5, f = 0.02, n = 3, S = 0.01\).

5 Generalized Solutions of GDFKDV and GMDFKDV Equations

For our generalized problem

$$\begin{aligned} u_{t}+Pu^{k}u_{x}+Qu_{xxx}+Su=f(t), \end{aligned}$$
(5.1)

we consider the solution in more generalized form given as follows

$$\begin{aligned} u=c^a(t)\left[ \frac{(k+1)(k+2)}{2P}sech^{2}\left( \left( \frac{k}{2}\sqrt{\frac{1}{Q}} (x-c(t)t)\right) c^b(t)\right) \right] ^{\frac{1}{k}}. \end{aligned}$$
(5.2)

For the hyperbolic forcing term of the form, \(f(t)= f \cosh (\omega t)\), the generalized solution is as follows:

  • Case1. \(k = n\), Solitary Wave Solution of GDFKDV

    $$\begin{aligned} u=c^a(t)\left[ \frac{(n+1)(n+2)}{2P}sech^{2}\left( \left( \frac{n}{2}\sqrt{\frac{1}{Q}} (x-c(t)t)\right) c^b(t)\right) \right] ^{\frac{1}{n}}. \end{aligned}$$
    (5.3a)

    where

    $$\begin{aligned} c^a(t)= \frac{a\beta \left( \frac{1}{n},\frac{1}{n}\right) f}{2^{\frac{2}{n}}\beta \left( \frac{2}{n},\frac{2}{n}\right) \root n \of {\frac{(n+1)(n+2)}{2P}}}\left[ \frac{4aS cosh(\omega t)-2\omega (2a-b)sinh(\omega t)}{4a^2S^2-\omega ^{2}(2a-b)^2}\right] +c_{1}e^{-\frac{2aS}{(2a-b)}t}, \end{aligned}$$
    (5.3b)

    and the constant

    $$\begin{aligned} c_{1}= c^{a}_{0}-\frac{a\beta \left( \frac{1}{n},\frac{1}{n}\right) f}{2^{\frac{2}{n}}\beta \left( \frac{2}{n},\frac{2}{n}\right) \root n \of {\frac{(n+1)(n+2)}{2P}}} \frac{4aS}{4a^2S^2-\omega ^{2}(2a-b)^2}. \end{aligned}$$
    (5.3c)
  • Case2. \(k = n/2\), Solitary Wave Solution of GMDFKDV

    $$\begin{aligned} u=c^a(t)\left[ \frac{(n+2)(n+4)}{8P}sech^{2}\left( \left( \frac{n}{4}\sqrt{\frac{1}{Q}} (x-c(t)t)\right) c^b(t)\right) \right] ^{\frac{2}{n}}. \end{aligned}$$
    (5.4)

    where

    $$\begin{aligned} c^a(t)= \frac{a\beta \left( \frac{2}{n},\frac{2}{n}\right) f}{2^{\frac{4}{n}}\beta \left( \frac{4}{n},\frac{4}{n}\right) \left( \root n \of {\frac{(n+2)(n+4)}{8P}}\right) ^2} \left[ \frac{4aS cosh(\omega t)-2\omega (2a-b)sinh(\omega t)}{4a^2S^2-\omega ^{2}(2a-b)^2}\right] +c_{1}e^{-\frac{2aS}{(2a-b)}t}, \end{aligned}$$

    and the constant

    $$\begin{aligned} c_{1}= c^{a}_{0}-\frac{a\beta \left( \frac{2}{n},\frac{2}{n}\right) f}{2^{\frac{4}{n}}\beta \left( \frac{4}{n},\frac{4}{n}\right) \left( \root n \of {\frac{(n+2)(n+4)}{8P}}\right) ^2} \frac{4aS}{4a^2S^2-\omega ^{2}(2a-b)^2}. \end{aligned}$$

Various topological structures within the framework of solitons corresponding to various combinations of a, and b are shown in Fig. 5 and Fig. 6. The value of other parameters are kept fixed as \(c_0 = 0.5, P = 0.5, Q = 2.5, f = 0.01, \omega = 0.5, S = 0.05, n = 3\) to generate these plots.

Fig. 5.
figure 5

Analytical solution of the Generalized KdV Equation for different combinations of a and b. Other parameters are: \(c_0 = 0.5, P = 0.5, Q = 2.5, f = 0.01, \omega = 0.5, S = 0.05, n = 3\).

Fig. 6.
figure 6

Analytical solution of the Generalized Modified KdV Equation for different combinations of a and b. Other parameters are: \(c_0 = 0.5, P = 0.5, Q = 2.5, f = 0.01, \omega = 0.5, S = 0.05, n = 3\).

6 Analysis of GKdV and GMKdV Equation with the Help of Pseudo-spectral Method

Consider a Generalized nonlinear evolution equation

$$\begin{aligned}&u_t + P u^k u_x + Q u_{xxx} = 0, \nonumber \\&u(x, 0) = \left( \frac{c(k+1)(k+2)}{2P} sech\left( \frac{k}{2}\sqrt{\frac{c}{Q}}(x-x_0)\right) ^2 \right) ^{1/n}, u(-L, t) = u(L, t). \end{aligned}$$
(6.1)

To apply Fourier transformation and employ inverse Fourier transformation, let us consider: \(x = Xb\), and \(u(x,t) = v(x/b, t) = v(X, t)\), where \(b = L_1/L\) Then, the GKdV equation becomes

$$\begin{aligned} v_t + \frac{P}{b} v^k v_x + \frac{Q}{b^3} v_{xxx} = 0. \end{aligned}$$
(6.2)

Let the Fourier function is

$$\begin{aligned} \mathcal {F}(f(a)) = \hat{f}(k) = \int _{\infty }^\infty f(a)e^{-2 \pi i ka} dt. \end{aligned}$$
(6.3)

Taking Fourier transformation on Eq. (6.2), we get

$$\begin{aligned}&v_x = i k \mathcal {F}(v); v_{xxx} = -i k^3 \mathcal {F}(v). \end{aligned}$$
(6.4)

Taking inverse FFT on Eq. (6.4) and using the RK4 method for the Eq. (6.1) is given by

$$\begin{aligned}&u_{n+1} = u_n + \frac{1}{6} (a + 2b + 2c + d), \nonumber \\ \end{aligned}$$
(6.5)

where \( a = -dt f(u), b = -dt f(u + 0.5 a), c = -dt f(u + 0.5 b), d = -dt f(u + c)\).

Fig. 7.
figure 7

Pseudo-spectral method with \(k = n\) i.e. the GKdV equation, and \( k = n/2\) i.e. the GMKdV equation where \(n = [1, 2, 3]\) on the Eq. (6.1).

Fig. 8.
figure 8

Comparison of the exact solution, the initial solution, and the computational solution with respect to the time t, and the range of the parameters P and Q of Eq. (6.1) at fixed time \(t = 0.01\). Parameters values are \(t = [0.01, 0.05, 0.09]\), \(P = [0.1, 0.5, 0.9]\), and \(Q = [0.1, 0.5, 1.5]\).

In this Sect. 6, with the help of the Pseudo-spectral method, we are comparing the results between the exact solution, the initial solution, and the computational solution concerning the time and various included parameters P, Q, and k. For \(k =n\), and \( k = n/2\), the Eq. (6.1) represents the GKdV and GMKdV equations respectively. In Fig. 7 for \(n = [1, 2, 3]\), \(P = 0.5\), \(Q = 0.25\), \(c = 0.5\), and \(t = 0.01\), we have seen that solitons of both the equations shows the oscillating behaviour with respect to the computational scheme and for higher value of n this scheme will break, Fig. 7 a, b, and c represents for GKdV and d, e, and f represents for GMKdV equations. The effect of time t and included rest parameters P, and Q are also shown in Fig. 8. The soliton will move smoothly with regard to time up until it reaches \(t = 0.05\), as shown by Fig. 8 a, b, and c. At this time, oscillations occur in the soliton with respect to the computational scheme and breaks down but in case of P, this scheme will move smoothly and the amplitude of the soliton will decrease while increasing the value of the nonlinear coefficient \(P = [0.1, 0.5, 0.9]\), shown in Fig. 8 d, e, and f. Figure 8 g, h, and i represent the behaviour of soliton with respect to the dispersion parameter Q and we observed that for \(Q = [0.1, 0.5, 1.5]\), \(P = 0.5\), \(c = 0.5\), \(n =1\), and \( t =0.01\), the width of the soliton will increase, but at \(Q = 1.5\) there exists a small oscillation in the soliton and for this value this scheme will fail. Hence overall, we have observed that with respect to time, k, and dispersion parameters this scheme will fail.

Remark 1

We have observed that this pseudo-spectral scheme will fail with time. To improve the accuracy, we need to move to a better scheme, which may be the modified exponential time differencing method (mETDRK4). This can be the further research work with this problem.

7 Conclusions and Future Work

In this article, to investigate the autonomous GKDV and GMKDV system, the sine cosine method is employed; further, the analytical solution of the non-autonomous part of the said system is derived using the direct assumption technique. Finally, the reliability of the solutions is achieved by numerical investigation. In this connection, it is important to mention that the analytical techniques mentioned here, are not able to find more complex solutions such as rouge wave, breather, etc. Finding such solutions using Hirota’s bi-linear techniques, Darboux transformation remains for a future project. The main outcomes of our investigation can be stated below:

  • We have compared the soliton behaviours of the generalized KDV and generalized Modified KDV equations.

  • In the absence of forcing and damping terms, there is no significant difference between the behaviours except for the non-linear parameter.

  • Visible effects are shown in the behaviour of dynamical systems of GKdV and GMKdV equations. For \(k = n\), the system will always remain unstable and move in an unbounded open orbit. Again, for \(k = \frac{n}{2}\), the system becomes unstable, but the trajectories do not move into open orbit and exhibit compressive behaviour.

  • In the case of GDFKdV and GDFMKdV equations, the Effect of forcing parameters and damping parameters is shown with the help of surface and contour plots. The graphs for the damping parameter make it evident that as the damping coefficient increases, the soliton tends to flatten out from the back. Similarly for the case of forcing term parameter, the soliton acquires the curvature.

  • A visible effect in the behaviour of generalized solutions of both equations is shown with the help of two newly introduced parameters, a, and b. This may represent topological structures such as multiple humps, twisted curved sheets, and pulses of the Gaussian type.

  • With the help of the pseudo-spectral approach, we provide additional support for all of these findings.

  • We have observed that this pseudo-spectral scheme will fail with time and increasing value of exponent parameter n. To improve the accuracy, we need to move to a better scheme, which may be the modified exponential time differencing method (mETDRK4) [5]. This can be the subject of further research work on this problem.