Abstract
In this paper, numerical solutions of the variable-coefficient Korteweg-De Vries (vcKdV) equation with space described by the Caputo fractional derivative operator is developed. The propagation and interaction of vcKdV equation in different cases, such as breather soliton and periodic suppression soliton, are numerically simulated. Especially, the Fourier spectral method is used to solve the fractional-in-space vcKdV equation with breather soliton. From numerical simulations and compared with other methods, it can be easily seen that our method has low computational complexity and higher precision.
1. Introduction
The KdV equation is one of the most notable integrable equations and has found numerous applications in many fields of science, such as plasma physics, nonlinear optics, telecommunications, fluid mechanics, condensed matter physics and dust plasma. The KdV equation was derived by Korteweg and de Vires in 1895 []. There are many analytical methods to obtain the analytical solutions of the KdV equation, including Hirota method, Darboux transformation and so on [,]. The symmetry method is used to solve many fractional differential equations, such as the seventh-order generalized KdV equation [], the generalized KdV-Burgers-Kuramoto equation [] and the time fractional generalized fifth-order KdV equation []. Qin [] used the Hirota method to obtain the N-soliton solutions of the coupled KdV-mKdV system based on Bell polynomials. Chen [] used the test function method combined with the bilinear to obtain the lump solutions to the generalized variable coefficient Burgers equation.
There are also many good numerical methods to solve the KdV equation. Yan [] used a local discontinuous Galerkin method to solve the KdV equation. Jackaman [] advanced the design of the conservative finite element discretizations for the vectorial modified KdV equation. Energy-conserving Hamiltonian boundary value methods were used to solve the KdV equation by Brugnano []. However, the numerical method that can be applied to solve the space fractional vcKdV equation with breather soliton and periodic suppression soliton is seldom researched. Therefore, a Fourier spectral method is developed in this paper which has low computational complexity and higher precision. We consider the KdV equation with the following form:
equipped with the following initial and boundary conditions,
where , denote Caputo fractional derivative operator which has the following form,
and , , , are positive parameters.
When , and , Equation (1) becomes the KdV equation,
When , , , , and , Equation (1) is reduced to the gKdV equation [],
When and , Equation (1) becomes the modified KdV(mKdV) equation,
which has important applications in studying nonlinear optics [,], and quantum mechanics [].
When , , , , , and , Equation (1) becomes the generalized variable-coefficient KdV-modified KdV equation [],
Consulting materials in the literature, we discover that the numerical solutions of the space fractional vcKdV equation are rarely researched. Therefore, some numerical solutions of the vcKdV equation are given in this manuscript. From the numerical simulations and compared with other methods, it can be easily seen that our method has low computational complexity and higher precision.
2. Numerical Approximation Method
We use the Fourier spectral method [,,] for spatial discretization. In order to standardize the space period to , we use the transformations and . v is converted into a Fourier space with respect to x. We use Fast Fourier transform [] to complete this operation. We use Fourier transform for Equation (1) in spatial domain,
Let , and N is an integer, , . We use the discrete Fourier transform for v,
and the inverse formula is
Next, the fourth-order Runge–Kutta method is used to solve the ordinary differential Equation (8),
where is step-size and .
We mark
where .
Equation (8) can be reduced to
Then, we can obtain the solving formula []
where .
Definition 1.
A class of the single-step method for solving an ordinary differential equation in the form of:
where incremental function ϕ is determined by , that is a function of , , τ.
Theorem 1.
If satisfies the Lipschitz condition in V, then the numerical method that is given by Equation (15) is stable.
Proof.
We refer the reader to [,,] for the details of the proof. □
Lemma 1.
Let and D is constant []. If , then
Theorem 2.
If is a continuous function in V, t, τ, which satisfies the Lipschitz condition on , , , then Equation (15) is convergent [].
Theorem 3.
Proof.
If Equation (15) is the fourth-order one-step method, then satisfies
By denoting , we have
Summing over n, we get
Using the Gronwall inequality, we have
□
Finally, we find the numerical solution using the inverse discrete Fourier transform [].
3. Simulation Results
Numerical solutions of the space fractional vcKdV equation are obtained in this chapter. We use the error norms, , and (global relative error) to test the accuracy of the method: , , , where and are the numerical solution and analytical solution. The order of convergence in space is computed by
Example 1.
Referring to the numerical experiment in [,,,,], the analytical solution is as follows:
In this simulation, we set , , , and . By present method, the numerical results are given in Table 1. Table 2 and Table 3 show the absolute error by our numerical method, Hybrid method [], B-spline method [], ANS method [], HBI method [] at . Then, we shall investigate the space fractional KdV equation. Table 4 shows comparison of at different . For the space fractional KdV equation, we take (26) as reference solution because the analytical solution can not be obtained. Figure 1 and Figure 2 show the logarithm of absolute errors by present method, Hybrid numerical method [], B-spline method [], ANS method [], HBI method [] at the the selected notes for , which shows that our numerical method has higher accuracy than other methods. Comparisons are made between numerical solutions and analytical solutions at in Figure 3. Figure 4 presents absolute error at . Numerical solutions at and are plotted in Figure 5 and Figure 6. Numerical solutions at different are presented in Figure 7.
Table 1.
Spatial numerical errors , and their corresponding convergence rates at for Example 1.
Table 2.
Comparison of absolute errors at .
Table 3.
Comparison of absolute errors at .
Table 4.
Comparison of of at , , , for Example 1.
Figure 1.
Logarithm of absolute errors of at for Example 1.
Figure 2.
Logarithm of absolute errors of at for Example 1.
Figure 3.
Numerical solutions of obtained by the present method and analytical solutions at for Example 1.
Figure 4.
Absolute error of obtained by the present method at for Example 1.
Figure 5.
Numerical solutions of vs. at , for Example 1.
Figure 6.
Numerical solutions of vs. at , for Example 1.
Figure 7.
Numerical solutions of vs. at different for Example 1.
From Example 1, we know that our numerical method has higher accuracy than other methods for the one-soliton solution. Next, we will study the generalized vc KdV-mKdV equation and the influence of , on the numerical solution of this equation.
Example 2.
Let , , , , , in Equation (1) and , . The initial value is as follows,
Wang [] obtained one periodic depression soliton solution of the generalized vcKdV-mKdV equation,
with
Table 5 shows and at different times. Table 6 shows numerical results. Figure 8, Figure 9 and Figure 10 represent numerical solution. Absolute errors at are shown in Figure 11, Figure 12, Figure 13 and Figure 14 present absolute errors at . From Figure 15 which shows the numerical solutions at different and , we can find that the change of and has minimal effect on the shape of periodic depression soliton.
Table 5.
Error norms and at different times for Example 2.
Table 6.
Numerical results of obtained by the present method at for Example 2.
Figure 8.
Numerical solution of obtained by the present method for Example 2.
Figure 9.
2D contour plot of obtained by the present method for Example 2.
Figure 10.
2D density plot of obtained by the present method for Example 2.
Figure 11.
Absolute errors of obtained by the present method at for Example 2.
Figure 12.
Absolute error of obtained by the present method at for Example 2.
Figure 13.
Absolute error of obtained by the present method at for Example 2.
Figure 14.
Absolute error of obtained by the present method at for Example 2.
Figure 15.
Numerical solutions of vs. at different , for Example 2.
From Example 2, we find that our numerical method has higher accuracy and low computational complexity than other methods for one periodic depression soliton solution of the generalized vc KdV-mKdV equation. Next, we will investigate the breather-type solution of the mKdV equation.
Example 3.
Let and in Equation (1).
Case I The initial value is as follows,
with
where , are constant parameters.
The breather-type solution is as follows []:
In this simulation, we set , , , , and . Table 7 gives the numerical results and Figure 16, Figure 17 and Figure 18 show the numerical solution. Figure 19 shows the absolute errors at . The absolute error at is plotted in Figure 20. Table 8 gives , and at different times. Then, we shall investigate the space fractional modified KdV equation. We take (32) as the analytical solution for the space fractional modified KdV equation. Figure 21 and Figure 22 show the numerical solutions at and . Table 9 gives at different . Figure 23 shows numerical solutions at different .
Table 7.
Numerical results of at ,, , , for Case I.
Figure 16.
Numerical solution at , , , for Example 3.
Figure 17.
2D contour plot at , , , for Example 3.
Figure 18.
2D density plot at , , , for Example 3.
Figure 19.
Absolute error at , , , , for Example 3.
Figure 20.
Absolute error at , , , , for Example 3.
Table 8.
Error norms, , and at , , , for Example 3.
Figure 21.
Numerical solutions of vs. at , , , , , for Example 3.
Figure 22.
Numerical solutions of vs. at , , , , , for Example 3.
Table 9.
Comparison of of at , , , for Example 3.

Figure 23.
Numerical solutions at , , , and different for Example 3.
Case II The initial value is as follows,
In this simulation, we set , , , , and . Table 10 shows numerical results. Table 11 gives , and at different times. Absolute error at is plotted in Figure 24. Figure 25 and Figure 26 show absolute errors at . Figure 27 shows numerical solutions at and . Table 12 presents at different . Numerical solution at different are plotted in Figure 28. Figure 29, Figure 30 and Figure 31 present the numerical solution.
Table 10.
Numerical results of at , , , , for Case II.
Table 11.
Error norms, , and at , , , for Example 3.
Figure 24.
Absolute error at , , , , for Case II.
Figure 25.
Absolute error at , , , , for Case II.
Figure 26.
Absolute error at , , , , for Case II.
Figure 27.
Numerical solutions of vs. at , , , , , for Case II.
Table 12.
Comparison of of at , , , for Example 3.

Figure 28.
Numerical solutions of vs. at different , , , , for Case II.
Figure 29.
Numerical solution of vs. at , , , for Case II.
Figure 30.
2D contour plot of vs. at , , , for Case II.
Figure 31.
2D density plot of vs. at , , , for Example 3.
Through Example 3, we can obtain that if tends to 1, the numerical solution of the spatial fractional mKdV equation tends to the analytical solution of Equation (6); in addition, the numerical solution of the spatial fractional mKdV equation is very sensitive to a change in .
4. Conclusions
In this manuscript, we study the influence of , on the numerical solutions of the spatial fractional vcKdV equation. Comparisons are made between the present method and others methods; it can be easily seen that our method has low computational complexity and higher precision. Through Examples 1–3, we know that if tends to 1, the numerical solution of the spatial fractional vcKdV equation tends to the analytical solution of the original equation. Through Example 3, the solutions of the space fractional KdV equation are very sensitive to a change in , . From Example 2, we can find that a change in and has a minimal effect on the shape of a periodic depression soliton. These results are consistent with the numerical simulation of other scholars [,,].
All computations are performed by the MatlabR2017b software.
Author Contributions
Conceptualization, Y.-L.W.; methodology and software, Y.-L.W. and C.H.; data curation, formal analysis and funding acquisition, Y.-L.W.; writing—original draft and writing—review and editing, Y.-L.W. and C.H. All authors have read and agreed to the published version of the manuscript.
Funding
This paper is supported by the Natural Science Foundation of Inner Mongolia [2021MS01009] and the National Natural Science Foundation of China [11361037].
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data used to support the findings of this study are available from the corresponding author upon request.
Acknowledgments
The authors thank the reviewers for their valuable suggestions, which greatly improved the quality of the paper.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Korteweg, D.J.; Vries, G.D. On the change of form of long waves advancing in a rectangular canal and a new type of long stationary waves. Philos. Mag. 2011, 39, 422–443. [Google Scholar] [CrossRef]
- Ma, W.X. Linear superposition of Wronskian rational solutions to the KdV equation. Commun. Theor. Phys. 2021, 73, 5. [Google Scholar] [CrossRef]
- Lü, X.; Ma, W.X. Solitary waves with the Madelung fluid description: A generalized derivative nonlinear Schrödinger equation. Commun. Nonlinear Sci. 2016, 31, 40–46. [Google Scholar] [CrossRef]
- Wang, G.W. Symmetry analysis, analytical solutions and conservation laws of a generalized KdV-Burgers-Kuramoto equation and its fractional version. Fractals 2021, 29, 2150101. [Google Scholar] [CrossRef]
- Wang, G.W.; Liu, Y.X.; Wu, Y.B. Symmetry analysis for a seventh-order generalized KdV equation and its fractional version in fluid mechanics. Fractals 2020, 28, 2050044. [Google Scholar] [CrossRef]
- Wang, G.W.; Liu, X.Q.; Zhang, Y.Y. Lie symmetry analysis to the time fractional generalized fifth-order KdV equation. Commun. Nonlinear Sci. 2013, 18, 2321–2326. [Google Scholar] [CrossRef]
- Qin, Y.; Gao, Y.T.; Xin, Y. Bell Polynomial Approach and N-Soliton Solutions for a Coupled KdV-mKdV System. Commun. Theor. Phys. 2012, 58, 2321–2326. [Google Scholar] [CrossRef]
- Chen, S.J.; Lü, X.; Tang, X.F. Novel evolutionary behaviors of the mixed solutions to a generalized Burgers equation with variable coefficients. Commun. Nonlinear Sci. 2021, 95, 105628. [Google Scholar] [CrossRef]
- Yan, J.; Shu, C.W. A Local Discontinuous Galerkin Method for KdV Type Equations. SIAM J. Numer. Anal. 2002, 10, 769–791. [Google Scholar] [CrossRef]
- Jackaman, J.; Papamikos, G.; Pryer, T. The design of conservative finite element discretizations for the vectorial modified KdV equation. Appl. Numer. Math. 2019, 137, 230–251. [Google Scholar] [CrossRef]
- Brugnano, L.; Gurioli, G.; Sun, Y. Energy-conserving Hamiltonian Boundary Value Methods for the numerical solution of the Korteweg-de Vries equation. J. Comput. Appl. Math. 2018, 351, 117–135. [Google Scholar] [CrossRef]
- Geyer, A.; Quirchmayr, R. Shallow water equations for equatorial tsunami waves. Philos. Trans. R. Soc. A 2018, 376, 20170100. [Google Scholar] [CrossRef]
- El-Shamy, E.F. Dust ion acoustic solitary waves in a hot magnetized dusty plasma with charge fluctuations. Chaos Solitons Fractals 2005, 25, 665–674. [Google Scholar] [CrossRef]
- Smyth, N.F.; Worthy, A.L. Solitary wave evolution for mKdV equations. Wave Motion 1995, 21, 263–275. [Google Scholar] [CrossRef]
- Kundu, A. Exact bethe ansatz solution of nonultralocal quantum mKdV model. Mod. Phys. Lett. A 1995, 10, 2955–2966. [Google Scholar] [CrossRef]
- Vaneeva, O.; Kuriksha, O.; Sophocleous, C. Enhanced group classification of Gardner equations with time-dependent coefficients. Commun. Nonlinear Sci. 2015, 22, 1243–1251. [Google Scholar] [CrossRef]
- Gottlieb, D.; Orszag, S.A. Numerical Analysis of Spectral Methods: Theory and Application; Society for Industrial & Applied Mathematics: Philadelphia, PA, USA, 1977. [Google Scholar]
- Trefethen, L.N. Spectral Methods in MATLAB; Society for Industrial & Applied Mathematics: Philadelphia, PA, USA, 2000. [Google Scholar]
- Boyd, J.P. Chebyshev and Fourier Spectral Methods; Dover Publications: Mineola, NY, USA, 2001. [Google Scholar]
- Cooley, J.W.; Tukey, J.W. An algorithm for the machine calculation of complex fourier series. Math. Comput. 1965, 19, 297–301. [Google Scholar] [CrossRef]
- Tian, F.H. Discussion on convergence and stability of standard fourth order Runge–Kutta method. J. Liaoning Educ. Inst. 2003, 20, 57–58. [Google Scholar]
- Han, C.; Wang, Y.L.; Li, Z.Y. Numerical solutions of space fractional variable-coefficient KdV-modified KdV equation by Fourier spectral method. Fractals 2021, 29, 2150246. [Google Scholar] [CrossRef]
- Li, X.Y.; Han, C.; Wang, Y.L. Novel patterns in fractional-in-space nonlinear coupled FitzHugh-Nagumo models with Riesz fractional derivative. Fractal Fract. 2022, 6, 136. [Google Scholar] [CrossRef]
- Han, C.; Wang, Y.L.; Li, Z.Y. A high-precision numerical approach to solving space fractional Gray-Scott model. Appl. Math. Lett. 2022, 125, 107759. [Google Scholar] [CrossRef]
- Frigo, M.; Johnson, S.G. FFTW: An Adaptive Software Architecture for the FFT. In Proceedings of the International Conference on Acoustics, Speech & Signal Processing, Seattle, WA, USA, 15 May 1998; pp. 1381–1384. [Google Scholar]
- Kong, D.; Xu, Y.; Zheng, Z. A hybrid numerical method for the KdV equation by finite difference and sinc collocation method. Appl. Math. Comput. 2019, 355, 61–72. [Google Scholar] [CrossRef]
- Aksan, E.N.; Zde, A. Numerical solution of Korteweg-de Vries equation by Galerkin B-spline finite element method. Appl. Math. Comput. 2006, 175, 1256–1265. [Google Scholar] [CrossRef]
- Hao, S.Y.; Xie, S.S.; Yi, S.C. The Galerkin method for the kdv equation using a new basis of smooth piecewise cubic polynomials. Appl. Math. Comput. 2012, 218, 8659–8671. [Google Scholar] [CrossRef]
- ÖZer, S.; Kutluay, S. An analytical-numerical method for solving the Korteweg-de Vries equation. Appl. Math. Comput. 2005, 164, 789–797. [Google Scholar] [CrossRef]
- Kutluay, S.; Bahadir, A.R.; Zde, A. A small time solutions for the Korteweg-de Vries equation. Appl. Math. Comput. 2000, 107, 203–210. [Google Scholar] [CrossRef]
- Wang, P.; Tian, B.; Liu, W.J. Interactions of breathers and solitons of a generalized variable-coefficient Korteweg-de Vries-modified Korteweg-de Vries equation with symbolic computation. Eur. Phys. J. D 2012, 66, 233. [Google Scholar] [CrossRef]
- Lan, Z.Z.; Hu, W.Q.; Guo, B.L. General propagation lattice Boltzmann model for a variable-coefficient compound KdV-Burgers equation. Appl. Math. Model. 2019, 73, 695–714. [Google Scholar] [CrossRef]
- Xi, G.Z. Breather solution to mKdV equation by using variables Separation method. J. Hexi Univ. 2009, 25, 1–6. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).