Solving the Generalized Regularized Long Wave Equation Using a Distributed Approximating Functional Method

The generalized regularized long wave (GRLW) equation is solved numerically by using a distributed approximating functional (DAF) method realized by the regularized Hermite local spectral kernel. Test problems including propagation of single solitons, interaction of two and three solitons, and conservation properties of mass, energy, and momentum of the GRLW equation are discussed to test the efficiency and accuracy of the method. Furthermore, using the Maxwellian initial condition, we show that the number of solitons which are generated can be approximately determined. Comparisons are made between the results of the proposed method, analytical solutions, and numerical methods. It is found that the method under consideration is a viable alternative to existing numerical methods.


Introduction
Nonlinear partial differential equations (NPDEs) are widely used to describe complex phenomena in various fields of sciences, such as physics, biology, and chemistry.Various methods have been devised to find the exact and approximate solutions of nonlinear partial differential equations [1,2] in order to provide more information for understanding physical phenomena arising in numerous scientific and engineering fields.
In this paper, we consider an important nonlinear wave equation, the generalized regularized long wave (GRLW) equation of the form   +   +     −   = 0, (, ) ∈ R × [0 ] , (1) where  is a positive integer and  and  are positive constants.The boundary conditions are given by  → 0 as || → ∞.This equation has strong connections to the generalized Korteweg-de Vries (GKdV) equation and has solitary solutions [3].The GRLW equation was proposed many years ago by Peregrine [4,5] as a model for small-amplitude long waves on the surface of water in a channel.The study of the GRLW equation gives the opportunity of investigating the creation of secondary solitary waves to obtain insight into the corresponding processes of particle physics [6].
For  = 1, this equation is reduced to the regularized long wave equation as an important equation in physics media, describing phenomena with weak nonlinearity and dispersive waves [7].The existence and uniqueness of the solution of the RLW equation are given in [8].Its analytical solutions were obtained under restrictive initial and boundary conditions [8]; therefore, the use of numerical methods has been advocated.Several numerical methods for the solution of the RLW equation have been introduced in the literature.These include finite-difference methods [9], Fourier pseudospectral methods [10], and finite-element methods based on Galerkin and collocation principles [11].
Another special case of the GRLW is obtained when  = 2.This corresponds to the modified regularized long wave (MRLW) equation.The MRLW was solved numerically by explicit finite-difference methods [12], Galerkin methods using cubic B-spline finite elements [13], Galerkin and Petrov-Galerkin methods using quadratic B-spline finite elements [14], spectral method based on Chebyshev polynomials [15], a least square technique using linear space-time finite elements and Petrov-Galerkin finite-element scheme with shape functions taken as quadratic B-spline functions 2 International Journal of Computational Mathematics [16], and the collocation method with quintic B-spline [17].Recently, Mokhtari and Mohammadi [18] proposed a meshfree technique based on a global Sinc-collocation approximation to solve the GRLW equation.
In this paper, we propose a Hermite distributed approximating functional (DAF) method for solving the GRLW equation.The DAF was originally introduced by Hoffman et al. [19] and Hoffman and Kouri [20] as a computational tool for treating a variety of problems in physics and chemistry, with particular focus on both time-dependent and time-independent Schrödinger equations.Later, the DAF was also used to solve the Fokker-Planck equation [21,22].The study of the DAFs indicates that these methods deliver spectral accuracy when used to solve the Fokker-Planck equation with nonlinear drift and diffusion coefficients included.DAFs are able to provide an analytical representation of a function and its derivatives in terms of a discrete set of values of this function.This is central to its successful use in various computational applications.
The layout of this paper is as follows.We describe the formulation of the DAF formalism and illustrate the choice of an optimal bandwidth in Section 2. Numerical results illustrating the merits of the new scheme are given in Section 3. Finally, we present a brief conclusion in Section 4.

Distributed Approximating Functionals
Distributed approximating functionals (DAFs) are defined as a mapping that approximates a certain set of continuous  2 functions onto itself within a specified accuracy [22].Their main success in various computational practices is derived from their inherent ability to furnish analytical representation of a function and its derivatives at collocation points.These DAFs have different kernels depending on the application of interest.Here, we limit our study to the DAF of Hermite type.
DAF methods are a general framework for constructing local spectral methods.They provide discrete approximations to the singular convolution: where ( − ) is a singular kernel.In this paper,  will designate the delta distribution .The basic equation associated with the Dirac delta function () is where  is any function that is continuous at  = 0.The delta function has the following properties: As the delta distribution is singular, it is necessary to approximate it so that it can be digitized in a computer.There are many functions that provide accurate approximations of the delta kernel and its derivatives.Some of the approximations, such as the Shannon (Sinc) kernel and the Dirichlet kernel, give rise to classical Fourier spectral methods in essence.In recent work, the so-called delta regularized kernel [23] was proposed to solve some applied mechanics problems.Shannon's kernel is regularized as Dirichlet's regularized kernel [24] is given by where   is a parameter and Δ is the grid spacing.In comparison to Shannon's kernel, the Dirichlet kernel has one more parameter, namely, .This parameter can be optimized to achieve a better accuracy.In practice, we choose  sufficiently large to obtain accurate results.Clearly, at the limit  → ∞, the Dirichlet kernel converts to Shannon's kernel.Another important kernel, the regularized Lagrange kernel (RLK) [25], defined by was constructed by regularizing the classic Lagrange polynomial [26].
More recently, a new class of DAF approaches, the socalled Hermite DAF (HDAF) [27], was introduced for spectrally accurate numerical solutions of first-and second-order partial differential equations.In this paper, we confine our attention to the HDAF.
We first define the regularized Hermite function given by where   () is the classic Hermite polynomial [28].The HDAF uses even Hermite polynomials ℎ 2 to construct (−   ) as where  is the highest polynomial degree involved in the construction of the HDAF and  is its bandwidth.Note that both parameters control the accuracy of the approximation.
For instance, if we fix , the HDAF  , ( −   ) becomes identical to the  function when the degree of the polynomial  tends to infinity.We write lim →∞  , ( −   ) =  ( −   ) .
Similarly, if we keep  fixed, the HDAF  , (−  ) becomes identical to the  function when  tends to zero; that is, lim The HDAF mapping can be used to sample an arbitrary function at discrete points.If these nodes form an equispaced grid, (2) can be approximated by quadrature as where ℎ  is the grid spacing.Consider the definition of the th derivative of the () defined in (2) as Usually, this is a purely formal expression because the derivative of the  function is not defined and the operation has to be rolled over to the test function () by partial integration.However, the derivative can be evaluated immediately, when using the HDAF approximation.The integral in ( 13) is computed very accurately using Gauss quadrature rule [29].Therefore, (13) becomes where  () , ( −   ), the th derivative of HDAF, is given by We note that the operator matrices ( 15) can be computed most efficiently, because the differentiating DAF matrices have Toeplitz structure.Equations ( 2) and ( 14) are the most useful forms for solving ordinary differential equations and partial differential equations.A significant advantage of the Hermite DAF is that it transforms ordinary and partial differentiations into a matrix vector multiplication that involves highly banded matrix representations of derivatives of local methods such as finite-difference and finite-element methods while preserving exponential accuracy of global methods such as spectral methods.Therefore, the Hermite DAF has sufficient flexibility to handle complicated boundary conditions and geometries, like finite-difference and finite-element methods, but with an accuracy of the same order as spectral methods.Note that (15) assumes that the derivative of  and  approaches zero as  → ±∞; this is convenient for approximating soliton solutions of the RLW equation, as they tend to zero as  → ±∞.However, in general this is not the case and the complete numerical approximation must provide a way to handle boundary conditions.
In (15), if the kernel,  ()  , , is fixed to be symmetric (or antisymmetric) and invariant by translation, there must be cases where (  ) are located outside of the computational domain, [, ], and their values are undefined there.In the present algorithm, such (  ) are to be obtained by boundary conditions.To handle Dirichlet boundary conditions, such (  ) are taken to be () or ().Another significant advantage of the DAF methods over Sinc methods is that their matrices are banded (see Figure 1(b)).Therefore, they are more efficient than Sinc methods.

2.1.
Choosing the Optimal Bandwidth.The limit relations (10) and (11) imply that there exists a connection between the number of expansion terms  and the bandwidth  of the Hermite DAF.It is natural to think of the expansion order  as a measure of predefined accuracy so one might ask how to choose  optimally with respect to a given .One possible approach is to make the approximation as accurate as possible on the discrete grid.Equation ( 9) is exact, if where Δ  represents the Kronecker-Δ function.Therefore, for  = , using relations ( 16) and ( 9), one obtains In the remainder of the paper, the bandwidth is chosen according to (17).

Application.
In this section, we develop a space discretization of the GRLW equation using the HDAF.This equation was proposed by Peregrine [4,5] as a model for small-amplitude long waves on the surface of water in a channel and is represented mathematically as To apply the HDAF for solving the GRLW equation, firstly, we present the following notations: We substitute ( 19) into (18) at collocation point  =   and we obtain In order to write (20) in matrix form, we introduce the following matrix and vector notations: Consequently, we have where  =  2 − , with  the identity matrix, (, ) =  1 ((/( + 1)) +1 + ).
Commonly used time-stepping schemes, either explicit or implicit, can be easily used along with the HDAF algorithm.In the present study, we consider the classical fourth-order Runge-Kutta method computed as where

Numerical Results
The analytical one-soliton solution of the GRLW equation is given by where Equation ( 25) represents a solitary wave of amplitude  √ , speed (1+), and width  and initially centered at  0 .In this section, we examine the proposed algorithm using different test problems related to the propagation of one soliton and interaction of two soliton solutions for the RLW ( = 1) and the MRLW ( = 2).The accuracy of the scheme is measured using the following error norms: where  and ũ represent the exact and approximate solutions, respectively, and ℎ is the minimum distance between any two consecutive points for which the errors are evaluated.In our computational work, we use the collocation points The RLW equation possesses infinite conservation laws [30]; the first three are given as follows: related to the mass, momentum, and energy.The quantities  1 ,  2 , and  3 are applied to measure the conservation properties of the collocation scheme, calculated by Similarly, the first three conservation laws of the MRLW equation are given by related to the mass, momentum, and energy.The discrete approximation of the quantities  1 ,  2 , and  3 is obtained by quadrature rule We perform various numerical tests and compare our results with those obtained using Sinc numerical methods.

RLW Equation.
To illustrate the validity of our scheme, we first consider the case of a single soliton solution for where  is defined in (26).For  = 0.1, the analytical values of the invariants are  1 = 3.979949,  2 = 0.810462, and  3 = 2.579007, while for  = 0.5 and  = 1, the analytical values of the invariants become  1 = 10.392304, 2 = 11.085125, and  3 = 43.647680.
In Figure 2, we plot numerical solutions of the RLW equation at different time levels (a) and the absolute error (b) at time  = 20.The propagation of one-soliton solution of the RLW equation is in very good agreement with the analytical solution.
In the next experiment, we investigate the error norms  ∞ and  2 together with numerical conservation quantities  1 ,  2 , and  3 obtained with the HDAF method and compare the results with those obtained using the Sinc numerical method (see Tables 1 and 2).
In the case of the HDAF method, for  = 0.1, one can see clearly that the error norms  ∞ and  2 are of the magnitude 10 −12 throughout the time interval  ∈ (0, 20].Numerical invariants  1 ,  2 , and  3 , at a given time , are very satisfactorily conserved (see Table 1).For  = 0.5, the soliton has a higher amplitude and a faster speed compared to the latter case where  = 0.1.The error norms  ∞ and  2 are of magnitude 10 −9 throughout the time interval  ∈ (0, 20].Numerical invariants are satisfactorily conserved (see Table 2).
In the case of the Sinc method [31], the error is as accurate as using the HDAF method, and we have conserved the three invariants.However, one can see clearly from Table 2 that our scheme is faster than the Sinc method proposed in [31].The main reason is that the Sinc method is a global method, while the HDAF is local.In the present numerical experiment,  the Sinc method solves  = 257 systems of nonlinear ODEs while the HDAF method solves  = 32 systems, locally.
In the next experiment, we vary , the highest polynomial degree involved in the construction of the HDAF, and then investigate the convergence of our approach in terms of the number of grid points  at time  = 20 with  = 1,  = 1, and  = 0.1 on the interval  ∈ [−100, 100].To ensure that the error is mostly dominated by the space discretization, we choose the time step as Δ  = 0.001.
Figure 3 shows that as the number of grid points increases, if  is small, for instance,  = 4, 8, the HDAF method shows a poor convergence.For  = 16, the convergence of the HDAF method is moderate.When  = 64, 128, the convergence of the HDAF and the Sinc numerical methods is very comparable.The error norms  ∞ and  2 converge exponentially for the propagation of one-soliton solutions for large values of .In fact, there are two approximations involved in computing the matrix representation of the differential operator.First, the delta function is approximated by an even Hermite-series with leading Gaussian term (15), which is sufficiently smooth everywhere.Second, the integral in ( 13) is evaluated by Gauss quadrature approximation (14).Therefore, it is important to choose a good combination between  and  to ensure a fast convergence of the HDAF methodology.The accuracy can be improved by increasing the degree of the basis functions  for an increasing number of grid points  as shown in Figure 3.  whose initial condition is extracted from (25) moves to the right across the space interval  ∈ [−100, 100].The analytical computation of the invariants can be written as For  = 0.1,  = 1, and  = 1, the analytical values of the invariants are  1 = 8.070897,  2 = 4.100554, and  3 = 0.868352.
In Figure 4, we plot numerical solutions of the MRLW equation at different time levels (a) and the absolute error (b) at time  = 20.The propagation of the one-soliton solution of the MRLW equation is in very good agreement with the analytical solution.
The error norms  ∞ and  2 and numerical conservation quantities  1 ,  2 , and  3 are shown in Table 3.In the case of the HDAF method, it is observed that, throughout the simulation, the error norms  ∞ remain less than 1.05 × 10 −9 and  2 remains less than 3.08 × 10 −10 .Numerical invariants  1 ,  2 , and  3 at a given time  duplicate analytical values.In the case of Sinc method, we obtain the same order of accuracy and one can see that the HDAF method is more efficient than the Sinc method.In the present numerical experiment, the Sinc method solves  = 257 systems of nonlinear ODEs while the HDAF method solves locally  = 32 systems.This is more problematic for higher dimension PDEs.For instance, for a two-dimensional RLW equation, we need to solve  2 = 257 × 257 systems of nonlinear ODEs with the Sinc numerical method while only  2 = 32 × 32 systems are required to be solved with the HDAF method.

Interaction of Two Solitons.
In our second experiment, we study the interaction of two soliton solutions of the RLW and where The analytical computations of conservation quantities of the RLW and MRLW equations can be found as respectively.The initial conditions of the RLW and MRLW are extracted from (35).We choose  1 = 2,  2 = 0.75,  1 = 20,  2 = 40,  = 1, and  = 1 with interval [0, 120].Figure 5 shows the plot of these solitary waves' interaction at different time levels.In both cases, we observe that the faster pulse interacts with and emerges ahead of the lower pulse with the shape and velocity of each soliton retained.Analytical values of the invariants for the RLW and MRLW equations are given by  1 = 39.786181, 2 = 144.3373671,and  3 = 960.7366406and  1 = 22.753426,  2 = 47.472854, and  3 = 209.815585,respectively.In Table 4 we report the three invariants for both RLW and MRLW equations and the two errors.Numerical checks on the conservation mass  1 , momentum  2 , and energy  3 show that the three quantities remain reasonably constant as the solitary waves evolve in time.We also obtain very accurate errors over longer time periods.
Propagation of the single solitary wave and two-soliton interaction are simulated well with the proposed algorithms and conservation invariants do not change much during the computer run.Thus, HDAF functions can be used to construct accurate and efficient numerical solutions of the RLW and MRLW equations.is observed between the upstream boundary and the main peak wave.The values of the quantities  1 ,  2 , and  3 are given in Table 5.These three quantities remain relatively constant.The maximum changes are less than 10 −6 for each quantity.
For  = 0.01 the Maxwellian pulse breaks up into a train of at least three solitary waves as shown in Figure 6(c) at time  = 12.A bit of radiation is observed between the upstream boundary and the main peak wave.In Table 5, we report the values of the quantities  1 ,  2 , and  3 .Clearly, these quantities are satisfactorily constant.The maximum changes are less than 10 −6 .Finally, for  = 0.004 the Maxwellian initial condition has decayed into at least four stable solitary waves as shown in Figure 6(d).The peaks of the well developed wave lie on a straight line so that their velocities are linearly dependent on their amplitudes and we observe a small oscillating tail appearing behind the last wave as shown in Figure 6.Moreover, the total number of the solitary waves which are generated from the Maxwellian initial condition according to the results obtained from the numerical scheme in test problem follows from a relationship between the number of solitary waves generated and the parameter .We notice that the smaller  becomes, the higher the number of solitons generated is.Raslan [17] showed that this relationship is approximately  ≈ [1/ 4  √ ] for the RLW equation and  ≈ [1/ 5  √ ] for the MRLW equation.However, there is no proof available on these relationships.

Conclusion
A numerical technique based on the Hermite distributed approximating functional method has been presented for the numerical solution of the GRLW equation.The efficiency of the method is tested on the problems of propagation of the single soliton and the interaction of two solitons for the RLW and MRLW equations.The accuracy is examined in terms of the  ∞ and  2 error norms.Numerical results have illustrated the high accuracy, efficiency, and exponential convergence of the HDAF method.We also investigate the conservation quantities  1 ,  2 , and  3 which were satisfactorily maintained.Furthermore, a Maxwellian initial condition has been used and a relation between  and the number of waves was explored; results show the interaction of three and four solitons, with conservation laws adhered to satisfactorily.
For periodic boundary conditions, such (  ) are replaced by their corresponding values inside the domain [, ].For Neumann boundary conditions, (  ) values are determined by () and   () or (() and   ()).If () is antisymmetric around the boundary point then values of (  ) outside the domain [, ] are replaced by their corresponding −(  ) inside the domain [, ].Similarly, if () is symmetric around the boundary point, then values of (  ) outside the domain [, ] are replaced by their corresponding (  ) inside the domain [, ].

Figure 1 :
Figure 1: Illustration of the matrix structures of Sinc methods (a) and HDAF methods (b).

) 3 . 1 .
Propagation of Single Solitons.In this experiment, we consider the propagation of single solitons of the RLW and the MRLW equations.The initial and boundary conditions are extracted from (25) at initial profile, that is, at  = 0.The values of the parameters used in the numerical experiments are  = 1 and  = 1, the number of collocation points  = 257, the time step Δ  = 0.01, and the HDAF bandwidth  = 32.The soliton whose initial condition is extracted from (25) moves to the right across the space interval  ∈ [−100, 100] and  ∈ [−70, 70] for  = 0.1 and  = 0.5, respectively, when the time interval is  ∈ [0, 20].

3. 3 .
Maxwellian Initial Condition.In final series of numerical experiments, we examined the development of the Maxwellian initial condition  (, 0) = exp [−( − 10) 2 ] (39) into multiple solitary waves.We apply it to the problem for different cases:  = 0.05, 0.01, 0.004.For  = 0.05 the Maxwellian initial condition develops into a single solitary wave plus a small developed oscillating tail as shown in Figure 6(b) at time  = 12.A bit of radiation International Journal of Computational Mathematics

Figure 6 :
Figure 6: Development of solitary waves using the Maxwellian initial condition for different values of  = 0.05, 0.01, 0.004 and  = 12.

Table 3 :
Invariants and errors for a single soliton of the MRWL equation for  = 0.1,  = 1 and  = 1.

Table 5 :
The invariants of MRLW equation using the Maxwellian initial condition for different values of  = 0.05, 0.01, 0.004 and  = 12.