1. Introduction
Partial differential equations, especially non-linear ones, are used in the study of many natural phenomena that often arise in the physical sciences and engineering applications. For nonlinear equations, there is a difficulty, if not an impossibility, in finding exact solutions to the equation, and researchers often resort to finding a solution with approximate methods. Here, we will use two different schemes to solve the modified equation for the long wave known as MRLW equation (see, [
1,
2,
3]).
With the following boundary and initial conditions
where
and
in Equation (
1) are positive constants that describe the undular bore’s behavior, and
p is a positive integer greater than or equal to 1, while the function
is a localized disturbance inside the interval
subject to physical boundary conditions
as
. The functions that appeared on both sides in Equation (
2) are also continuous. Equation (
1), which we will abbreviate with MRLW, was originally a mathematical model to describe a physical phenomenon with weak scattering waves, and in another application it describes the movement of transverse waves in shallow water. There are many previous studies that dealt with the use of numerical methods to find approximate solutions to the equation under consideration, the MRLW equation. In the paper [
4], the collocation method was used to find an approximate solution to the MRLW equation. The method relied mainly on the use of the Sinc function as a basis. The B-splines finite element method of order 3 was used in [
5] to solve the MRLW equation numerically, the numerical results proved the accuracy of the used method. In [
6], two different bases are used to solve numerically the MRLW equation, in which the finite difference method is used along the time derivatives, while the delta-shaped basis was used to discretize the space direction. It should be noted here that there are many previous studies in which the Sinc method was used or those that dealt with approximate solutions to the equation under study, among which we mention [
7,
8,
9]. Recently published papers in [
10,
11,
12,
13,
14] dealt with the use of different methods to find numerical solutions to various forms of the generalized RLW equation. For more knowledge, there are other previous studies that discussed the same ideas presented in this paper, but in different ways, such as [
1,
15,
16].
The Sinc methodology is one of the most powerful tools for solving various types of equations that model various physical phenomena. This method is used to solve integral equations, partial differential equations, and integro-differential equations. The most important motive of this research work is the use of the Sinc method because the convergence of the approximate solution is of exponential type. For some positive constants the Sinc method yields an iterative scheme with an error of order , which is much faster than other traditional methods.
The main objective of this paper is to find an approximate solution to the MRLW equation in (
1)–(
3), where the basis of the Sinc function on the variable
x will be used, while we will use the regular finite difference method when talking about the time variable
t. Moreover, the Adomian decomposition method will be used for comparison purposes.
The main idea of using the Sinc function is that in the process of replacing the partial derivatives that appeared in (
1), in terms of the variable
x, with the corresponding formulas that have been proven in both references Stenger [
17] and by Lund [
18], followed by the use of the Sinc quadrature formula for integration with some simple manipulations, we end up with a discrete system of the general form
that can be solved iteratively via the use of iterative techniques, such as Newton’s method. What encourages us to use the Sinc function is its ease of use, and most importantly, the fast exponential convergence property when using the Sinc function as a basis. For the purpose of comparing the solution that will be obtained by the Sinc methodology, we will use the Adomian analysis method, the so-called Adomian decomposition method (ADM) [
19,
20], to find another solution in an approximate (not numerical) way. The ADM method was created and developed at the beginning of the 1980s of the last century, and it has proven its worth when used in various nonlinear, ordinary and partial differential equations. There are many previous studies that dealt with finding a solution to linear or nonlinear, ordinary or partial differential equations, via the use of ADM, see for example [
21,
22,
23]. Those equations represented a mathematical model in several fields, including physics, chemistry, biology, engineering in its various forms and medical sciences. The ADM is summarized as finding a solution in the form of a convergent series, and often we need a number that does not exceed the number of fingers on one hand to obtain an appropriate solution, knowing that in previous studies there is sufficient and convincing evidence for the convergence of the method to an accurate solution.
The general structure of this paper can be reviewed as follows: In
Section 2, we present the main concepts of the Sinc function and all the theories we need in writing the solution to Equation (
1). As for
Section 3, we will discuss the formulation of the solution using the Sinc-collocation method, while
Section 4 is limited to talking about the stability of the calculated solution.
Section 5 is where we will present the alternative method, which is ADM. The effectiveness of the solution presented by the two methods in this paper is discussed in
Section 6 by taking two different values of the constant
p. The credibility of the methods used will be shown by presenting the numerical results in the form of tables and graphs, and finally, a summary of what happened with some recommendations in
Section 7.
2. Sinc-Collocation
The Sinc function method has proven its effectiveness in finding approximate solutions to many problems with physical and engineering applications. The Sinc function is considered to be some kind of wavelet that has been used effectively in recent years to find solutions to many problems. Here, we will review some important characteristics that we will use to formulate the solution using the basis of the Sinc function. These are discussed in [
17,
18]. It is known that the Sinc function is defined in the domain of all real numbers as follows
We will use the Sinc function for the purposes of interpolation, over the defined interval of the question under consideration. To do so, we first divide the interval into sub-intervals, each of which is
h, and then redefine the Sinc function as follows:
In order to use the formula in Equation (
5) as a basis, then for every continuous function
, we define an infinite series, known as Whittaker cardinal function, denoted by
, and defined to be
We know very well that we cannot deal with an infinite series, so we will deal with a finite series, ensuring its convergence within certain conditions, which we will impose on the function to be approximated, so
N can be a positive integer, we define the series of
terms as
We use the above series to approximate the
derivative of the function
f, and is given by the relationship
In fact, we need the derivatives of the Sinc function computed at the nodes on which the period was divided, and in this paper we need the first and second derivatives only, so that we can write the solution in the form of a system of linear equations, as we will see in detail later. We also require derivatives of composite Sinc functions evaluated at the nodes. The expressions are required for the present discussion, so the following convenient notation will be needed [
17].
where the points
appeared above, they are all those points that have been divided into the period and are called collocation points, and they will be used in the approximation process. So, we need to use a finite series that starts from the integer
and ends with the number
N, but there must be a constraint or conditions that the function
f, to be approximated, must fulfill or its derivatives. The next definition provides us with a property called exponentially decaying that the function must achieve for this purpose.
Definition 1. We define a domain , in the form of an infinite strip of width , as When
, we define the rectangular domain
by
In the region
, we define the Hardy space, denoted by
, to be the set of all functions
f that satisfy the following boundedness condition.
There are a lot of characteristics related to the family
mentioned in [
17]. Below we write a theorem that we will need when talking about the convergence of the Sinc method.
Theorem 1. ([
17]).
For the positive constants and d, suppose the following conditions hold true- 1.
f belongs to the class .
- 2.
the function f satisfy the decaying condition valid for all real-valued of x. We conclude that
for some constant , where
It can be summarized what the previous theorem stipulated as follows, if the analytic function
f fulfills the vanishing condition, then we can use the Sinc function to approximate
f and its
-derivatives
, so that the error in the approximation is of the exponential type, which is considered to be one of the fastest types of convergence. Thus, in order for us to find an approximate solution to Equation (
1), there must be a hypothesis that the initial condition belongs to the family
. Now, we will define some matrices that we will need to describe the solution as a discrete system.
Define three Toeplitz matrices, each of size
, as
for values of
which means the matrix whose
entry is given by
The diagonal matrix
is defined to be
It is known that the matrix
is symmetric, and
is skew-symmetric, i.e.,
and they take the form
It is noted that
is the identity matrix. Because these matrices will appear in the final discrete solution, and for the purpose of demonstrating the stability property of the solution, it is necessary to find some bounds for the eigenvalues, as stated in [
17]. If
indicate to be the eigenvalues of the matrix
, then
Similarly,
indicate to be the eigenvalues of the matrix
, then
.
3. Setting Up the Scheme
To accomplish the goal of finding an approximate solution for the Equation (
1), using Sinc-collocation, without losing anything of importance, but for reasons related to facilitating the calculations, we will discuss the solution by the Sinc methodology when
only. We discretize the time derivatives that appeared on the left side and the last term in Equation (
1) via the use of the regular finite-difference scheme, secondly, we apply
metric
scheme to the
x derivatives evaluated at two time levels
n and
, so we obtain
where the notation
is to represent the value of the solution at time level
n, i.e.,
, and for the time step size
, we denote
. Before going into the process of writing the solution, it is necessary to convert the non-linear term in Equation (
14) into a linear quantity and the conversion process is achieved through the use of Taylor expansion, as follows:
From Equations (
14) and (
15), we arrive at
where
represent the
iteration in the obtained approximate solution. Next, we use the Sinc-collocation method along the space variable, for that we discretize the interval
as follows: For the positive integer
, take the step-size
, then points of interpolation are
To find a solution for Equation (
14), using Sinc basis, we plug in,
where the basis Sinc functions are given by
The constants
in Equation (
18) are to be determined. Hence, for each collocation point
in (
17), Equation (
18) can be written as
Replacing Equation (
20) into Equation (
16), the approximation evaluated at those nodes inside the interval is given by
The above Equation (
21) is used for all interior points
. The boundary conditions are given by Equation (
2) for the boundary points
and
can be formulated as
In order to write the solution as stated in the previous two equations, and in the form of a system of matrices, we redefine the following matrices and vectors:
Therefore, in matrix form, Equation (
21) becomes as
where the multiplication of the
component of the vector
by every element of the
row of the matrix
is denoted by the symbolic notations ★, that has been used above. While the symbol ∘ is to denote the Hadamard matrix multiplication. The discrete system in Equation (
24) represents a system of
equations in
unknowns, which can be written in a more compact form as
where
in which the matrices
and
C each of size
and can be written as
Moreover,
, and
The approximate solution can be found from Equation (
25) at any point in the interval
at each time level, which can be solved by any iterative techniques. It should be noted that a previous study for a system of partial differential equations using the same method, (Sinc-collocation ) was published by the first author in [
24]. For the purposes of facilitating the computing process, we offer the following algorithm, which summarizes what was stated in this section.
Algorithm Stages
We follow the following steps to write the program:
Select collocation points inside the interval .
Select the parameters and .
Setup the initial solution
, then use Equation (
24).
Evaluate the matrix
M and the vector
R in Equation (
25).
The approximate solution at the successive time level is obtained.
If stop, otherwise go to step 4.
4. Stability Analysis
Here, we study briefly and in an analytical way the stability of the solution by the Sinc method for the MRLW equation. Imitation of what was performed in [
4,
25], if
represent the exact solution, while
is taken to be the numerical solution of the MRLW equation in (
1). If we define the error
.
Then, the error
can be written as
For the stability of the method, we need
, provided
n is large enough. We may conclude that the scheme is stable in a numerical sense, if
, where the notation
represents the spectral radius. Upon passing simple calculations, it is easy to verify stability if the following two conditions are fulfilled
and
where we have used the numbers 1,
being eigenvalues of the matrices
, respectively. We use some known facts about the upper bounds for the matrices
, together with the fact that
,
, and
are complex, after algebraic manipulation (see, [
4,
25]), the condition (
27) must hold for all eigenvalues of the respective matrices, for the method to be stable, and for
is a necessary condition for stability, but not sufficient.
5. Adomian Decomposition Method
Our goal in this section is to introduce the performance of the second scheme, namely, the Adomian decomposition method (ADM) [
19,
20], and give a detailed description to setup a solution for the MRLW equation [
26]. The ADM is a technique to find solutions for differential equations (partial, ordinary), linear and nonlinear, homogeneous and nonhomogeneous. First, we look at the problem under consideration in general, so any nonlinear partial differential equation can be written as
where the operator
is to represent the highest order derivative with respect to the variable
x,
represent the time operator,
contains the remaining linear terms of lower derivatives in
x,
is an analytic nonlinear term, and
is the forcing inhomogeneous term. Applying the inverse operator
to Equation (
29), we arrive at
For the use of ADM, we express the solution
of (
30) by the decomposition series
while we express the nonlinear term
with an infinite sum of polynomials given by
where the terms
are calculated recurrently so that the zeroth term
is chosen from those terms arises from the initial condition, or from the source term. Then, followed by finding the first term
, which depends on the zeroth term, followed by finding the second term, which also depends on the first term, and so on until we reach the
component. As for calculating Adomian polynomials
, there is a general formula written by Adomian [
19,
20,
27], and another in a famous paper for Wazwaz [
27], here we present the Adomian’s formula
The substitution of (
31) and (
32) into (
30) yields
As mentioned above, the components are computed in a recursive manner as
Looking at the above relationships, we can say that all terms depend largely on the zeroth term, so it is desirable that the zeroth term contain the least possible number of terms. If the series converges in a suitable way, then we see that
where
M is the number of terms that we found. Previous studies showed the convergence of the solution series presented in the Equation (
35), see for example [
28,
29]. In order to understand more about the above explanation and presentation of the ADM method, we present in the next subsection the method applied to the equation under consideration.
Analysis of ADM
We rewrite Equation (
1) in an operator form as (see, [
30])
with the initial condition
, where the linear operators are defined by
and
. While the term
represents the non-linear term
. To start, we operate on both sides of Equation (
36) with the inverse of
, denoted by
yields
Assume the solution
can be represented as an infinite sum of components of the form:
While the nonlinear operator
can be expressed as
In our case, as the nonlinear part in the PDE is
, then Adomian polynomials
can be evaluated by a formula set by Adomian
In the next, we just state the first three Adomian polynomials as:
and so on. In the same way, additional polynomials can be calculated. Now, Equation (
37) reduces to
Now, set
into the left-hand-side to identify the zero component to be
, and for
we obtain the subsequent components as
Then, we see that the approximate solution is given by
where
M is the number of terms that we found.
6. Numerical Experiments and Results
This section provides numerical solutions to the MRLW equation for three standard problems: solitary wave motion and the development of the Maxwellian initial condition into solitary waves. In order to be able to determine the accuracy and effectiveness of the method, we will deal with specific values of the constants that appeared in Equation (
1), and here if the value of
and
, then for these values, the exact solution to Equation (
1) is known and this allows us to know the exact error, and so we discuss the effectiveness of the proposed schemes in this paper.
Example 1. Let us examine the problemwith boundary conditions , as , and the initial conditionhere, the constants are free. The exact solution is given by [31] Equation (
40) has three polynomial invariants that are related to mass, momentum and energy and is given by [
32],
The invariants
are considered to be an excellent tool to measure the success of the numerical solution, especially for cases where we do not know the exact solution to the problem. The quantities
and
are applied to measure the conservation properties of the collocation scheme. The integrals in (
43) are approximated by sums to obtain numerical values of invariants in Equation (
43) at the finite domain
as follows:
The computations associated with the example were performed using Mathematica. The accuracy of ADM is demonstrated for the absolute errors
. We compute the quantities
and
to ensure the conservation laws in using ADM as an approximate tool for MRLW. In the computational work, we take
, and the simulation is performed up to
.
Table 1 shows the difference between the exact and the ADM solution
. From
Table 1, we can read that results show a high degree of accuracy and efficiency of the ADM. Since the changes of invariants
and
are less than
and
, respectively, our scheme is sensibly conservative, and our results are recorded in
Table 1.
In our computational work for the Sinc-collocation method, we take
, and two different values of the time step sizes
and
, where our interval is taken to be
and, the
for the points in Equation (
17). We use the
[
4,
33], defined below to measure the accuracy of our schemes
where
and
represent the exact and approximate solutions, respectively, and
h is the minimum distance between any two points in Equation (
18). We calculate the convergence with respect to time
t, according to the following relationship [
4,
33]
where the numerical solution with step size
is denoted by
. The numerical solutions are shown in
Table 2 and
Table 3, where invariant and error norms for solitary waves are presented. Looking at the last column in
Table 2, we see that the order of convergence is almost 2. The numerical solutions that are shown in
Figure 1,
Figure 2 and
Figure 3.
Figure 1 shows the plot of a single soliton solution for different values of time
T using the Sinc-collocation method. These solutions are the bell-shaped waves, which agree with the results of [
4,
5,
6].
Figure 2 and
Figure 3 illustrate that the series solution is very close to the exact solution.
Example 2. In this example, we will take the value of p that appeared in Equation (1) to be 3, while keeping the values as they are in the previous example. We noticed from the graphics in the first example that the type of solution is of soliton types, but in this second example, a new feature called bifurcation will appear, where the wave starts to bifurcate into two waves after some time close to
, as shown in
Figure 4.
Example 3. In this last example, we examined the evolution of an initial Maxwellian pulse into solitary waves, arising as the initial condition of the form When solving Equation (
1) for
, and
. It is known that the behavior of the solution with the Maxwellian condition depends on the values of
. So, we study each of the three cases:
, where only a single soliton is generated as shown in
Figure 5, and
. When
is reduced more and more, such as in the case of
, two single solitons are generated as in
Figure 5, and for the case
, the Maxwellian initial condition has decayed into three stable solitary waves as generated and shown in
Figure 5.
7. Discussion and Conclusions
Two algorithms have been proposed to find a numerical solution to the MRLW equation, which often appears in physical applications. Whereas the first method, which is known as Sinc-collocation, is described in detail, with a simple proof of the stability of the obtained numerical solution, with an indication of an insufficient necessary condition. The other method, known as ADM, was presented in general first, and then the method was allocated to Equation (
1). For the effectiveness of the two algorithms, we use one example with a known solution of soliton type, and the accuracy is investigated via the use of the
error norms. The numerical results we obtained in the last section prove the effectiveness and accuracy of the two methods to a large extent. However, we would like to point out that the Sinc method is numerical, and the solution was obtained and evaluated at some nodes. The scheme was found to be stable, and it converges exponentially in space direction. On the other hand, the other scheme used to solve the MRLW equation is ADM, which was found to be highly efficient, and it provides accurate approximate solutions without spatial discretization as in the Sinc method. We used a few terms from the series solution obtained by the ADM and obtained a suitable accuracy. However, we may easily increase the accuracy using ADM by adding more terms to the series. The biggest benefit of using this method is the speed of its convergence to the exact solution, as well as the ease of use. Finally, a Maxwellian initial condition was used, and the relationship between
and the number of solitons was discussed.