 Research
 Open Access
 Published:
A new nonpolynomial spline method for solution of linear and nonlinear third order dispersive equations
Advances in Difference Equations volume 2018, Article number: 316 (2018)
Abstract
In this paper, a new threelevel implicit method is developed to solve linear and nonlinear third order dispersive partial differential equations. The presented method is obtained by using exponential quartic spline to approximate the spatial derivative of third order and finite difference discretization to approximate the first order spatial and temporal derivative. The developed method is tested on four examples and the results are compared with other methods from the literature, which shows the applicability and feasibility of the presented method. Furthermore, the truncation error and stability analysis of the presented method are investigated, and graphical comparison between analytical and approximate solution is also shown for each example.
1 Introduction
In [4] Boussinesq and Kortewegde Vries (KdV) equations described the problem of water waves and the long waves in which dispersive effects are present. We use an exponential quartic spline function to develop a numerical method to approximate the solution of third order homogeneous and nonhomogeneous linear dispersive equation in one space dimension with \(f(x,t)\) as a source term:
with
and
where \(\gamma_{0}(t)\), \(\gamma_{1}(t)\), \(\gamma_{2}(t)\), and \(g_{1}(x)\) are assumed to be continuous functions, t is time and x is space variable [1, 7].
In [1] theorems for the existence and uniqueness of solution of such dispersive equations are given. In [20, 21], the criteria for deriving stability conditions of difference method were considered for the numerical solution of a third order linear dispersive equation. In [25], the analytical solution was obtained of such equations by using Adomian decomposition method, and in [19], such equations were solved numerically. The authors in [17] solved fourth order parabolic partial differential equation numerically by using parametric septic spline. Djidjeli and Twizell [7] developed numerical method for solution of third order linear dispersive equation with timedependent boundary conditions.
We have also solved the third order nonlinear dispersive equation named as Kortewegde Vries (KdV) equation:
with
and
where \(\Omega =[a,b]\subset R\), ε and μ are positive parameters, and \(g_{2}(x)\), \(\gamma_{3}(t)\), \(\gamma_{4}(t)\) are known functions. This equation shows both dispersion and nonlinearity [4, 23, 27].
The solution of Eq. (1.4) may exhibit solitons. Solitons are localized waves that propagate without change in their shape and velocity and are stable in mutual interaction just like the phenomenon of totally elastic collision in kinetics. The KdV type equations have been an important class of nonlinear evolution equations with numerous applications in physical sciences and engineering fields see [5, 8, 12, 18, 23, 24, 26].
The existence and uniqueness of solutions of the KdV equation for appropriate conditions have shown in [11] . Many wellknown numerical methods, such as finite difference scheme, finite element schemes, Fourier spectral methods and meshfree radial basis functions (RBF), collocation method, multiquadric (MQ), multiquadric quasiinterpolation [3, 5, 10, 13–15, 22, 23, 27, 28], have been used to solve the KdV equation. Authors in [16] also used decomposition method for solution of KdV equation. The numerical solution was presented in [6] for the first and fifth order KdV equations. In [2], authors solved coupled Burgers’ equations using nonpolynomial spline method. In [9], authors presented nonpolynomial spline method for solving the generalized regularized long wave (GRLW) equations.
The purpose of this paper is to present a new method to solve third order linear and nonlinear dispersive partial differential equations based on spline function approximation. In our method, the third order spatial and first order temporal derivatives are approximated by exponential quartic spline and finite difference respectively. Besides, we have used the first order central difference discretization to approximate the first order spatial derivative in a nonlinear term.
Here, we obtain a derivation of exponential quartic spline and its relations in Sect. 2. In Sect. 3, we present the formulation of our methods along with boundary equations for both the linear and nonlinear dispersive equations. In Sect. 4, a class of methods and truncation error are given. Stability analysis is discussed in Sect. 5. Numerical evidences and comparison with other available methods are included in Sect. 6 to show the accuracy of our method. The presented method is tested on four examples. Finally, conclusion is presented in Sect. 7.
2 Exponential quartic spline
Let a set of grid points in the interval \([a,b]\) be such that
We also denote the function value \(y(x_{j})\) by \(y_{j}\).
Let \(E_{j}(x,t)\) be the exponential quartic spline at the grid point \((x_{j},t)\) given by
for each \(j=0,1,\ldots, n\), where \(a_{1j}\), \(a_{2j}\), \(a_{3j}\), \(a_{4j}\), \(a_{5j}\) are unknown coefficients and τ is a free parameter. We determine the unknown coefficients in (2.2) from the interpolatory conditions \(E _{j}(x_{j},t)=y_{j}(t)\), \(E_{j}(x_{j+1},t)=y_{j+1}(t)\), \(E'_{j}(x_{j},t)=m _{j}(t)\), \(E_{j}^{(3)}(x_{j},t)=T_{j}(t)\), and \(E_{j}^{(3)}(x_{j+1},t)=T _{j+1}(t)\) as given below:
Applying the continuity conditions of first and second derivatives of \(E_{j}(x,t)\) at the knots, that is, \({E^{\prime} _{j}}(x_{j})={E^{\prime}_{j1}}(x_{j})\), \({E^{\prime\prime}_{j}}(x_{j})={E^{\prime\prime} _{j1}}(x_{j}) \), and using (2.3) yields the following relations:
where
Using Eqs. (2.4) and (2.5), we obtain the following method:
where the coefficients \(p=\beta_{1}\) and \(q=\alpha_{1}+\beta_{1}+ \beta_{2}\). As \(\tau \rightarrow 0\) that is \(\theta \rightarrow 0\), we have \((p,q)\longrightarrow (\frac{1}{24},\frac{11}{24})\). Now, the operator \(\Lambda_{x}\) for any function W is supposed to have the following form according to Eq. (2.7):
3 Derivation of the method
Let the region \(R=[a \leq x \leq b]\times [t>0]\) be discretized by a set of points \(R_{h,k}\) which are the vertices of grid points \((x_{j},t _{m})\), where \(x_{j}=jh\), \(j=0(1)n\), \(nh=ba\), and \(t_{m}=mk\), \(m=0,1,2,3,\ldots \) . The quantities h in space and k in time directions are mesh sizes.
3.1 Spline solution for linear dispersive equation
In this section we develop an approximation for (1.1) in which the time and space derivatives are replaced by a finite difference and exponential quartic spline respectively. Equation (1.1) is discretized as:
where \(T^{m}_{j}=E^{(3)}_{\triangle }(x_{j},t_{m})\) is the third order spline derivative at \((x_{j},t_{m})\) w.r.t. the space variable, \(f^{m}_{j}=f(x_{j},t_{m})\), \(y^{m}_{j}\) is the approximate solution of (1.1) at \((x_{j},t_{m})\), \(\delta_{t}\) is the central difference operator w.r.t. t and σ is a parameter such that finite difference approximation to the time derivative is of \(O(k)\) for arbitrary σ.
Operating \(\Lambda_{x}\) on both sides of (3.1) and after some simplifications, we obtain the following method:
The final method (3.2) may be written in the schematic form as follows:
where
Relation (3.2) gives \((n2)\) equations in \((n1)\) unknowns \(y_{j} \), \(j = 1(1)(n1)\). We require one more equation at \(j=1\), i.e., at the end of the range of integration in order to have a closed form solution for \(y_{j}\). We discretize the boundary conditions in (1.3) and develop the following boundary equation of accuracy \(O(k+h^{2})\):
where
3.2 Spline solution for nonlinear dispersive equation
In the similar manner, Eq.(1.4) is discretized as follows:
where \(F=\frac{\varepsilon }{2} y^{2} \).
Operating \(\Lambda_{x}\) on both sides of (3.5) and after some simplifications, we obtain the following method:
The schematic form of method (3.6) is given by
where
Relation (3.6) gives \((n4)\) equations in \((n1)\) unknowns \(y_{j} \), \(j = 1(1)(n1)\). We require three more equations each at \(j=1 ,2 ,(n1)\), i.e., at the ends of the range of integration in order to have a closed form solution for \(y_{j}\). We discretize the boundary conditions in (1.6) and develop the following boundary equation of accuracy \(O(k+h^{2})\):
where
4 Truncation error and a class of methods
Expanding (3.2) or (3.6) in a Taylor series in terms of \(y(x_{j},t _{m})\) and its derivatives and using (1.1) or (1.4) respectively, we obtain the truncation error as follows:
where \(D_{t}\equiv \frac{\partial }{\partial t}\), \(D_{x}\equiv \frac{ \partial }{\partial x}\), \(D^{2}_{t}\equiv \frac{\partial^{2}}{\partial t^{2}}\), \(D^{2}_{x}\equiv \frac{\partial^{2}}{\partial x^{2}}\), and so on.
Here, the following class of methods are obtained:
 Case 1: :

If \(p+q \neq 0\), then various methods of \(O(k+h)\) for arbitrary values of σ are obtained.
 Case 2: :

If \(p+q = 0\), then various methods of \(O(k+h^{2})\) for arbitrary values of σ are obtained.
5 Stability analysis and convergence
Theorem
Methods (3.3) and (3.7) are conditionally stable for \(\sigma \geq (\frac{1}{2}\frac{1}{2r})\), where \(r>0\), \(p+q=0\), and \(\phi =\frac{\theta }{2}\).
Proof
Here the stability analysis of any one of methods (3.3) or (3.7) will be investigated, and it can be investigated for other method in the same manner. For this, we use the Von Neumann method. Let the solution of (3.3) at the point \((x_{j},t_{m})\) is
where \(i=\sqrt{1}\), θ is real and ξ in general is complex.
We get the following equation after putting (5.1) in the homogeneous part of (3.3):
where
The necessary and sufficient condition for method (3.3) to be stable is \(\vert \xi \vert \leq 1\). For this, we obtain the following condition:
Simplifying and putting \(p+q=0\), we deduce that method (3.3) is conditionally stable for \(\sigma \geq (\frac{1}{2}\frac{1}{2r})\), where \(r>0\) and \(\phi =\frac{\theta }{2}\). □
The present method is convergent by Lax theorem as the stability criterion is satisfied.
6 Numerical simulation and comparison
In this section, the presented threelevel implicit method based on exponential quartic spline is tested on four examples. The following norms are used in this paper:
where \(y_{\mathrm {ana}}\) is analytical and \(y_{\mathrm {app}}\) is approximate solution of third order dispersive equation for our method.
Example 1
(Linear homogeneous case)
Consider the following linear homogeneous dispersive equation [7]
with
and
The analytical solution is
The computational results of this example for \(\mu =1\) are tabulated in Tables 1 and 2. Table 1 shows \(L_{\infty }\), \(L_{2}\) and RMS errors for \(h=\frac{1}{20}\), \(\frac{1}{40}\); \(r=\frac{1}{100}\), \(\sqrt{\frac{7}{60}}\); \(\sigma =\frac{1}{12}\) and time steps = 50, 100 for different values of parameters p and q. The comparison of \(L_{\infty }\) error between our method and in [7] with \(p=30,75\); \(r=1\); \(h=0.1\); \(\sigma =\frac{1}{12}\); time steps = 100 for \(x=0.1,0.2,\ldots, 0.9\) is tabulated in Table 2. Also the comparison between analytical and approximate solution for \(h= \frac{1}{32}\), \(r=\frac{1}{\sqrt{6}}\), and time steps = 100 is shown graphically in Fig. 1.
Example 2
(Linear nonhomogeneous case)
Consider the following linear nonhomogeneous dispersive equation [25]
with
and
The analytical solution is
The computational results of this example for \(\mu =1\) are tabulated in Tables 3 and 4. The \(L_{\infty }\), \(L_{2}\) and RMS errors are tabulated in Table 3 for the same values of parameters as taken in Table 1 of Example 1. Also Table 4 shows \(L_{\infty }\) error with \(p=25,50\); \(r=1\); \(h=0.05,0.1\); \(\sigma =\frac{1}{12}\); time steps = 100 for \(x=0.1,0.3,0.5,0.7,0.9\). Figure 2 shows the graphical comparison between analytical and approximate solution for \(h=\frac{1}{64}\), \(r=\frac{1}{100}\) and time steps = 100.
Example 3
(Nonlinear single soliton case)
Consider a propagation of single solitary wave of nonlinear KdV Eq. (1.4) with \(\varepsilon = 6\), \(\mu =1\) [5, 15, 23, 27] and
The analytical solution is
The functions \(\gamma_{3}(t)\) and \(\gamma_{4}(t)\) are extracted from the analytical solution. The computational results are tabulated in Tables 5–7. The \(L_{\infty }\), \(L _{2}\) and RMS errors with \(L=7\); \(\kappa =0.5\); \([a,b]=[0,40]\); \(p=25\); \(k=0.001,0.0001\); \(n=40,80,120,160,200\); \(\sigma =\frac{1}{12}\) and \(t=1\), and the comparison of \(L_{\infty }\) error with [15, 23, 27] with changes \(p=30\); \(k=0.01,0.001\); \(n=200\); \(t=1,2,\ldots,5\) are tabulated in Table 5 and Table 6, respectively. Table 7 shows \(L_{\infty }\), \(L_{2}\) and RMS errors and comparison with [5] with \(L=10\); \(\kappa =0.14\); \([a,b]=[30,80]\); \(p=100\); \(k=0.001\); \(h=0.2\); \(\sigma =\frac{1}{12}\) and \(t=1,3,5,7,10\). Figure 3 shows the graphical comparison between analytical and approximate solution for \(n=200\), \(k=0.001\), \(p=25\), and \({t=5}\).
Example 4
(Nonlinear soliton interaction case)
Consider a propagation of two solitary waves of nonlinear KdV Eq. (1.4) with \(\varepsilon = 6\), \(\mu =1\) [5, 15, 23, 27] and
The analytical solution is
Similarly, the functions \(\gamma_{3}(t)\) and \(\gamma_{4}(t)\) are extracted from the analytical solution. The computational results are tabulated in Tables 8–10. Table 8 and Table 9 show the comparison of \(L_{\infty }\), \(L_{2}\) and RMS errors with [5, 15, 23, 27] with \(p=10\); \(k=0.0001,0.00001\); \(n=200\); \(\sigma = \frac{1}{12}\) and \(t=0.01,0.05,0.10,0.15,0.20,0.3\). Also, the \(L_{\infty }\), \(L_{2}\) and RMS errors with \(p=100\); \(k=0.0001\); \(n=40,80,120,160,200\); \(\sigma =\frac{1}{12}\) and \(t=1\) are tabulated in Table 10. Figure 4 shows the graphical comparison between analytical and approximate solution for \(n=200\), \(k=0.0001\), \(p=25\), and \({t=3}\).
7 Conclusion
The class of a new threelevel implicit methods has been obtained using exponential quartic spline for numerical approximation of third order linear and nonlinear dispersive partial differential equations and is tested on four examples using MATLAB. The performance of these methods have been examined for different values of parameters. Having compared the solutions with available results in the literature, we found them to be better. The comparison between analytical and approximate solutions is also shown graphically in Figs. 1–4. Tables and figures show the feasibility and applicability of our method.
References
Agarwal, R.P.: Boundary Value Problems for Higher Ordinary Differential Equations. World Scientific, Singapore (1986)
Ali, K.K., Raslan, K.R., ElDanaf, T.S.: Nonpolynomial spline method for solving coupled Burgers’ equations. Comput. Methods Differ. Equ. 3(3), 218–230 (2015)
Carey, G.F., Shen, Y.: Approximation of the KdV equation by least squares finite element. Comput. Methods Appl. Mech. Eng. 93, 1–11 (1991)
Craig, W., Goodman, J.: Linear dispersive equations of airy types. J. Differ. Equ. 87, 38–61 (1990)
Dehgan, M., Shokri, A.: A numerical method for KdV equation using collation and radial basis functions. Nonlinear Dyn. 50, 111–120 (2007)
Djidjeli, K., Price, W.G., Twizell, E.H., Wang, Y.: Numerical methods for the solution of the third and fifth order dispersive Kortewegde Vries equation. J. Comput. Appl. Math. 58, 307–336 (1995)
Djidjeli, K., Twizell, E.H.: Global extrapolations of numerical methods for solving a third order dispersive partial differential equation. Int. J. Comput. Math. 41, 81–89 (1999)
Dodd, R.K., Eilbeck, J.C., Gibbon, J.D., Morris, H.C.: Solitons and Nonlinear Wave Equations. Academic Press, New York (1982)
ElDanaf, T.S., Raslan, K.R., Ali, K.K.: Nonpolynomial spline method for solving the generalized regularized long wave equation. Commun. Math. Model. Appl. 2(2), 1–17 (2017)
Feng, B.F., Mitsui, T.: A finite difference method for the Kortewegde Vries and the Kadomtsev–Petiashvili equation. J. Comput. Appl. Math. 90, 95–116 (1998)
Gardner, C.S., Grrne, M.J., Kruskal, M.D.: Method for solving Kortewegde Vries equation. Phys. Rev. Lett. 19, 1095–1097 (1967)
Gardner, C.S., Marikawa, G.K.: The effect of temperature of the width of a small amplitude solitary wave in a collision free plasma. Commun. Pure Appl. Math. 18, 35–49 (1965)
Geyikli, T., Kaya, D.: An application for modified KdV equation by the decomposition method and finite element method. Appl. Math. Comput. 69(2), 971–981 (2005)
Helal, A.M., Mehanna, M.S.: A comparison between two different methods for solving KdV–Burgers equation. Chaos Solitons Fractals 28(2), 320–326 (2006)
Islam, S., Khattak, A.J., Tirmizi, I.A.: A meshfree method for numerical solution of KdV equation. Eng. Anal. Bound. Elem. 32, 849–855 (2008)
Kaya, D.: On the solution of a Kortewegde Vries like equation by the decomposition method. Int. J. Comput. Math. 72, 531–539 (1999)
Khan, A., Sultana, T.: Numerical solution of fourth order parabolic partial differential equation using parametric septic spline. Hacet. J. Math. Stat. 45(4), 1067–1082 (2016)
Kortewegde Vries, D.J., de Vries, G.: On the change in form of long waves advancing in rectangular canal and on a new type of long stationary waves. Philos. Mag. 39, 422–443 (1895)
Mechee, M., Ismail, F., Hussain, Z.M., Siri, Z.: Direct numerical methods for solving a class of third order partial differential equations. Appl. Math. Comput. 247, 663–674 (2014)
Mengzhao, Q.: Difference scheme for the dispersive equation. Computing 31, 261–267 (1983)
Miller, J.H.: On the location of zeros of certain classes of polynomials with application to numerical analysis. J. Inst. Math. Appl. 8, 397–406 (1971)
Refik, B.A.: Exponential finitedifference method applied to Kortewegde Vries for small times. Appl. Math. Comput. 160, 675–682 (2005)
Sarboland, M., Aminataei, A.: On the numerical solution of nonlinear Kortewegde Vries equation. Syst. Sci. Control Eng. 3, 69–80 (2015)
Washimi, H., Taniuti, T.: Propagation of ion acoustic solitary waves of small amplitude. Phys. Rev. Lett. 17, 996–998 (1966)
Wazwaz, A.M.: An analytic study on the third order dispersive partial differential equations. Appl. Math. Comput. 142, 511–520 (2003)
Wijngaarden, L.V.: On the equation of motion for mixtures of liquid and gas bubbles. J. Fluid Mech. 33, 465–474 (1968)
Xiao, M.L., Wang, R.H., Zhu, C.H.: Applying multiquadric quasiinterpolation to solve KdV equation. J. Math. Res. Exposition 31, 191–201 (2011)
Yan, Z.: New compactonlike and solitary patternslike solutions to nonlinear wave equations with linear dispersion terms. Nonlinear Anal. 64(5), 901–909 (2006)
Funding
Jamia Millia Islamia, New Delhi, India.
Author information
Authors and Affiliations
Contributions
All authors drafted the manuscript, and they read and approved the final version.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
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
Sultana, T., Khan, A. & Khandelwal, P. A new nonpolynomial spline method for solution of linear and nonlinear third order dispersive equations. Adv Differ Equ 2018, 316 (2018). https://doi.org/10.1186/s136620181763z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s136620181763z
MSC
 65D07
 65M12
Keywords
 Spline function approximation
 Third order dispersive equation
 Stability analysis
 Kortewegde Vries (KdV) equation
 Soliton