1. Introduction
Partial differential equation (PDE) arises in the modeling of various physical phenomenon and is considered the backbone of mathematical simulations of real-life applications. Many models have been introduced to describe different problems in engineering, physics, electrochemistry, computational biology, and fluid mechanics. Examples of such models appear in mathematical biology [
1], Keller–Segel models in pattern formation in biological tissues [
2], health estimation via the electrochemical model [
3], the fluid dynamics model for supply chains [
4], population genetics [
5], hormone-dependent cancer [
6], and to estimate the internal temperature of a battery [
7].
Mostly non-linear PDEs arise in the modeling of any physical systems. Closed-form or analytical solutions of such types of models are difficult to find. Perturbation techniques have made significant contributions to tackling such non-linear phenomena; however, these techniques are based on some small parameters and fail when there are strongly non-linear problems. Semi-analytical methods such as the Adomian decomposition method and variational iteration method are valid for such problems but are again computationally expensive. Keeping all these difficulties in mind, we are moving towards numerical techniques.
Numerical techniques are simple, fast, accurate, and easy to analyze. Most of the numerical techniques have been used to solve non-linear PDEs, including the radial basis function method (RBF). It is a meshless method that has been used for a wide range of problems. The main disadvantage is that the selection of the shape parameter in RBF is a difficult task. Another method is the Haar wavelet, which involves integration; sometimes, it is difficult to evaluate that integration and may lead to computational costs while dealing with higher-order DEs. The finite difference method (FDM) is one of the oldest and finest techniques. In FDM, derivatives are approximated at the mesh points through finite differences. Although this method is very fruitful, it fails when solving problems with irregular regions.
The spline-based method has gained significant consideration in the approximation of different physical problems. Initially, splines were used for curve fitting. Among the family of splines, B-splines are a simple and effective method due to their high degree of smoothness. A B-spline is a piecewise polynomial function that gives local compact support, meaning that a slight change in any of values will result in a change in that particular part of the curve. The theory of the B-spline technique is an active field of approximation theory and BVPs. B-spline curves are valuable because of the suitable shape representation and analysis [
8,
9,
10,
11]. Several problems have been tackled using the proposed method such as the telegraphic equation [
12], Fokker–Planck equation [
13], Fisher’s equation [
14], regularized long wave (RLW) equation [
15], generalized Kuramoto–Sivashinsky equation [
16], coupled Burger’s equation [
17], generalized Black–Scholes equation [
18], incompressible Navier–Stokes equations [
19], and Rosenau–KdV–RLW equations [
20]. The order approximation of quintic B-spline was briefly discussed and proved error bound, given in [
21] and the reference therein.
RH and FW equations are special cases of the Gilson–Pickering (GP) equation, introduced by Gilson and Pickering [
22], given by
The classical RH are given by [
23]:
From Equation (
1), when
, we obtain a RH equation of the form:
In Equation (
2), when
, we obtain a RH equation of the form:
Using Equation (
1) with
, we have a FW equation of the form:
along with initial and boundary conditions as
where
and
are differentiable functions. GP equation is the KdV type equation, which is a well-known equation in the field of non-linear waves. Philip Rosenau and James M. Hyman used this equation for the study of compactons and was named after that as RH in 1993. This equation has been utilized for the modeling of non-linear dispersion in droplets of liquid patterns [
23]. It is used to calculate the growth rate of particles in a liquid suspension. FW equation was first introduced by Whitham in 1967. These equations have been utilized for analyzing the qualitative characteristics of wave breaking. Because of their use in physics and engineering, many authors have tackled these equations through different numerical techniques; some of the techniques to solve RH equations are ADM [
24], the hybrid and reduce differential transform method (RDTM) [
25], the Hermite wavelet method [
26], VIM and HPM [
27]. Similarly, different techniques for FW equations are HAM and HPM [
28,
29] and modified VIM [
30].
The rest of the article is organized in the following way. In
Section 2, the definition of quintic B-splines is discussed, followed by the methodology. In
Section 3, the stability of the technique is analyzed using von Neumann stability analysis. In
Section 4, the effectiveness of the proposed method is studied by comparing the numerical and graphical results in the existing methods in the literature and finally, the article is concluded in
Section 5.
4. Numerical Examples
To validate the precision of the method, we employ absolute and relative error norms.
The software that is used for the computational purposes is MATLAB (R2020a), also used to compute the convergence rate (CR) and spectral radius (SR).
Example 1. Consider the RH equation:along with the initial and boundary conditions: The exact solution is
. The results are given in
Table 1 and
Table 2 for different values of
,
t and
. In
Table 1, the absolute error norm is used to check the performance of the technique. The proposed method is more efficient than hybrid and RDTM. In
Table 2, we compute the simulations for various values of
t and
c, and the results of the proposed method are better than [
25]. In
Figure 1, the dashed line and asterisk show the approximate and exact solutions, respectively. Two-dimensional heat maps for the solution profiles are given at
. From
Figure 1, it is concluded that the heat maps plots of the proposed method agree with the exact method.
Example 2. Consider the RH equation given as The initial and boundary conditions are The exact solution is
, parameter
. The absolute error and R.E error norms are calculated to measure the accuracy of the method.
Table 3 shows that the QBS results are better than the Genocchi wavelets method. The temporal and spatial step sizes are
and
, respectively.
Figure 2 shows the heat map profiles of the exact solutions, QBS and absolute error, and the exact vs. approximate plot at
. The curve of the proposed method is validated with the exact one. By increasing the values of
, the error decreases.
Table 4 shows the values of the spectral radius, which is less than one for different temporal step sizes, results which lead to stability. Furthermore, the computational time and convergence rate are given, which show that as the temporal step size decreases, the results converge.
Example 3. Subjected to ICs and BCs, The exact solution is
. For
, the absolute error norm is given in
Table 5 and
Table 6, respectively. In
Table 5, the values of the proposed scheme in comparison with VIM are given for temporal step size
, which demonstrates that the proposed methodology exhibits improved accuracy. In
Table 6, our results are compared with the RBF method. The results from QBS are superior to those indicated in [
33] at final time
. Moreover, at the larger time, the proposed method attains good accuracy. In this case, the temporal step size is
and the collocation points are
. The heat map profiles of the absolute error, exact and approximate solutions along with the plot of the exact vs. approximate solution plot at
are give in
Figure 3, which shows that the QBS results correspond to the exact solution.
Table 7 shows the convergence rate and spectral radius values along with the computational time. Furthermore, the
error norm and computational time show that the proposed method results are better than [
33].
Example 4. Consider a FW equationsubjected to initial and boundary conditions The exact solution is
. The absolute error norm of the proposed method in comparison with HAM at different space and time values is given in
Table 8. The results show that the QBS is better than HAM for different
’s and
’s. Heat map plots of the absolute error, exact and approximate are given in
Figure 4. From
Figure 4, it is clear that the plots of the proposed solution overlap with the exact solution at time
.