Quartic Non-Polynomial Spline for Solving the Third-Order Dispersive Partial Differential Equation ()
1. Introduction
The field of nonlinear dispersive waves has undergone enormous development since the work of Stokes, Boussinesq, and Korteweg and de Vries (KdV)—all of whom studied water wave problems in the nineteenth century. In the 1960s, researchers developed effective asymptotic methods for deriving nonlinear wave equations, such as the KdV equation, which governed a broad class of physical phenomena [1]. Some approaches for solving nonlinear partial differential equations have been addressed in recent literature; the most prominent of these were the non-polynomial spline methods. The non-polynomial spline used for solving nonlinear partial differential equations was employed by many researchers. The most known and well-focused results are those presented by Ramadan et al. (2005), who used a numerical method for approximation of Burger’s equation [2]. Shock waves and blowup arising in third-order nonlinear dispersive equations were studied in 2008 by Galaktionov, V.A. and Pohozaev, S.I. [3]. In [4] [5], the criteria for deriving stability conditions of the different methods were considered for the numerical solution of a third-order linear dispersive equation. Research by Tirmizi et al. (2008) used Quartic non-polynomial spline functions to develop a class of numerical methods for solving self-adjoint singularly perturbed problems [6]. In 2011, Taiwo and Ogunlaran developed a numerical technique for solving linear fourth-order boundary-value problems, which were initially reduced to a system of second-order boundary-value problems [7]. In research by Lin (2014), a numerical method based on splines in tension was developed for solving the RLW equation. The method was tested by using single solitary waves, the interaction of two solitary waves, and solitary waves with Maxwellian initial condition [8]. In the same year, Mustafa and Ilhame discussed the method of lines is applied to the boundary-value problem for the third-order partial differential equation [9]. In 2017, El-Danaf et al. considered the Generalised Regularised Long Wave (GRLW) equation. They studied the interaction of solitons, where no analytic solution is known during the interaction. The Maxwellian initial condition for the GRLW equation was used [10]. A year later, Li et al. solved the time-fractional nonlinear Schrödinger equation [11]. In 2018, Sultana et al. presented a new three-level implicit method, which was developed to solve linear and nonlinear third-order dispersive partial differential equations [12]. In 2019, Shahna demonstrated how to solve fourth-order boundary value problems whose highest-order derivative was multiplied by a small perturbation parameter [13]. In this paper, a novel approach, based on using non-polynomial splines to solve a third-order dispersive partial differential equation is proposed. The third-order dispersive partial differential equation we will use is [14].
(1)
where
is a source term. The boundary conditions associated with Equation (1) are assumed to be of the form:
(2)
and the initial condition is:
(3)
The spline functions proposed, as defined in [15], have the form
where
is the frequency of the trigonometric part of the spline functions, which will be used to increase the accuracy of our method.
2. Analysis of the Method
The first step in the non-polynomial spline method is to create a grid with two mesh constants h and k. The grid points for this situation are
where
,
and
,
.
Let
be an approximation to
, obtained by the segment
of the mixed spline function passing through the points
and
.
Each segment has the form:
(4)
for each
. To obtain expressions for the coefficients of Equation (4) in terms of
,
,
,
, and
, we first define:
(5)
Using Equations (4) and (5), we get:
,
,
, (6)
,
.
where
, and
.
By solving the last five equations in (6), we obtain the following:
,
,
(7)
,
.
Using the continuity condition of the first and second derivatives at
, that is
where n = 1 and 2, we get the following relations:
(8)
Using expressions in Equation (7), then Equation (8) becomes:
(9)
(10)
Adding Equations (8) and (10), we get:
(11)
Similarly,
(12)
Using
and
in Equations (10) and (11) gives the following relation:
or:
This equation can be rewritten in the following simple form:
(13)
where:
Remark 1. As
, that is
, then
, and system (13) reduces to ordinary quartic spline:
Using Equation (1), we can write
,
,
and
, in the form:
,
,
These equations can be discretised in the form:
(14)
The use of Equation (13) in Equation (14) gives us the following system:
or:
(15)
where:
,
,
,
and:
System (15) consists of N-1 equations in unknowns
. To get a solution to this system, we need three additional equations. Two equations are obtained from the first two parts in Equation (2).
(16)
The third equation can be obtained from the third part of Equation (2), that is
, which can be discretised:
(17)
Writing Equations (15) - (17) in matrix form gives:
(18)
where:
and
. The initial condition
, for each
, implies that
, for each
. These values can be used in Equation (2.15) to find the value of
, for each
. If the procedure is reapplied once all the approximations
are known, the values of
can be obtained in a similar manner.
3. Error Analysis
Using Equation (14), we obtain the truncation error:
(19)
where:
,
,
,
and:
Expanding Equation (19) in Taylor series, in terms of
and its derivatives, we obtain the following expression:
where
. After simple calculations, we get:
(20)
For
, the local truncation error is of order
but for
and
it is of
.
Remark 2. The previous relations, which enable us to choose
and
, can be obtained using simple calculations by expanding Equation (19) in terms of
and its derivatives, which is the local truncation error of Equation (19), as follows:
4. Stability
Using the Von Neumann method, the stability of the method can be investigated. According to this method, the solution of the difference Equation (14) can be written in the form:
(21)
where
is the wave number,
, h is the element size, and
is the amplification factor at time level j. Inserting the latter expression for
in scheme (14), we obtain the characteristic equation in the form:
,
,
,
After simple calculations, we obtain:
(22)
Using Euler’s formula, that is:
,
Equation (22) becomes:
(23)
where:
(24)
Using
, and
, we can write the equations in (24) as:
(25)
where
,
,
Using (24), we obtain:
(26)
The equations in (26) enable us to rewrite the last equation in the form:
.
or:
. (27)
where
. Using Equation (27),
becomes:
This result enables us to write Equation (27) as:
. (28)
For stability, we must have
(otherwise
in Equation (21) would grow in an unbounded manner). Using Equation (28), we can say that the stability condition, that is
, is satisfied.
5. Numerical Example
In this section, we obtain numerical solutions of Equation (1) for a numerical example.
Consider the non-homogeneous third-order dispersive partial differential equation [14]:
with boundary conditions:
and the initial condition:
The exact solution of this problem is:
The obtained numerical results are listed in the Tables 1-7, where all calculations are carried out using Mathematica. The accuracy of method is measured by computing L∞-error norm, Max. Absolute error, as shown in Tables 1-3 and Table 5 illustrates numerical and exact solutions for:
.
The reason that the accuracy in Table 1 is the best is because:
.
Table 1. The
-error between the numerical and exact solutions when
,
,
,
.
Table 2. The
-error between the numerical and exact solutions when
,
,
,
.
Table 3. The
-error between the numerical and exact solutions when
,
,
,
.
Table 4. The comperasion between the numerical and exact solutions when
,
,
,
,
.
Table 5. The
-error between the numerical and exact solutions when
,
,
,
.
Table 6. The comperasion between the numerical and exact solutions when
,
,
,
,
.
For, the local truncation error is of order
but for:
it is of order
.
The following figures from Figures 1-11 show the relation between the numerical and exact solutions of the dispersive equation for virus time and discretization’s (h).
The following figures from Figures 12-15 show the 3D of the numerical solutions of the dispersive equation for virus time and the same discretization’s (h).
Table 7. The
-error between the numerical and exact solutions when
,
,
,
.
Figure 1. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 2. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 3. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 4. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 5. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 6. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 7. The relation between the numerical and exact solutions of the dispersive eation at
.
Figure 8. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 9. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 10. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 11. The relation between the numerical and exact solutions of the dispersive equation at
.
Figure 12. 3D for the numerical solutions of the dispersive equation fromt = 0 to t= 10.
Figure 13. 3D for the numerical solutions of the dispersive equation from t = 10 to t = 20.
Figure 14. The 3D for the numerical solutions of the dispersive equation from t = 20 tot = 30.
Figure 15. The 3D for the numerical solutions of the dispersive equation from t = 30 to t= 40.
6. Concluding Remarks
This paper is devoted to the quartic non-polynomial spline functions for solving the third-order dispersive partial differential equation. Recent trends in computational mathematics, mathematical physics and mechanics have widely used numerical methods to solve such problems. The results obtained using the quartic non-polynomial spline functions are very encouraging. It has been shown that the L-∞ errors norm confirm the theoretical convergence. The convergence analysis of the method proved that our scheme is third-order convergent
. Also, the method is shown to be unconditionally stable. The numerical example illustrates that the non-polynomial spline functions are more adaptable in approximating functions. The graphs between exact and approximate solutions for the numerical examples show the superiority of our method compared with [8].