Abstract
In this paper, two-dimensional Genocchi polynomials and the Ritz–Galerkin method were developed to investigate the Fractional Diffusion Wave Equation (FDWE) and the Fractional Klein–Gordon Equation (FKGE). A satisfier function that satisfies all the initial and boundary conditions was used. A linear system of algebraic equations was obtained for the considered equation with the help of two-dimensional Genocchi polynomials along with the Ritz–Galerkin method. The FDWE and FKGE, including the nonlinear case, were reduced to solve the linear system of the algebraic equation. Hence, the proposed method was able to greatly reduce the complexity of the problems and provide an accurate solution. The effectiveness of the proposed technique is demonstrated through several examples.
1. Introduction
This paper emphasises on solving two types of fractional partial differential equations, namely Fractional Diffusion Wave Equation (FDWE) and Fractional Klein–Gordon Equation (FKGE). The Fractional Diffusion Wave Equation (FDWE) is as follows:
with the initial conditions
and the boundary conditions are
where and are the fractional order Caputo sense derivative. and are given and represent sufficiently smooth functions, whereas u is unknown and needs to be determined.
In a more general setting, FDWE can be extended to become the Fractional Klein–Gordon Equation, (FKGE) is defined as follows:
with the initial conditions
and the boundary conditions are
where is the fractional order Caputo sense derivative. For the linear time-fractional Klein–Gordon equation, we set the Equation (4) as , , , where the FKGE is reduced to FDWE. Meanwhile, , , and are given and represent the sufficiently smooth functions, whereas u is unknown and needs to be determined. The FKGE in Equation (4) can also be extended to nonlinear FKGE if there are nonlinear terms such as involved in the equation.
These two equations are very important and widely used in many applications. The diffusion wave equations have been extensively used in some important physical phenomena such as percolation clusters, amorphous, colloid, glassy and porous materials through fractals, dielectrics, semiconductors, polymers and biological systems [1]. Moreover, the variety of physical phenomena such as ferroelectric and ferromagnetic domain walls, dislocations and Josephson junctions and DNA dynamics can be described well by the Klein–Gordon partial differential equation [2].
In this research direction, some researchers have investigated and proposed a few methods for the solution of FDWE. Ref. [3] had proposed the spectral tau method based on the Jacobi operational matrix to solve the FDWE. Ref. [4] applied Legendre wavelets via the operational matrix of integration for the solution of the FDWE while [5] also solved the FDWE by using a meshless local radial point interpolation scheme based on Galerkin weak form. Furthermore, the spectral collocation method for the time-fractional diffusion-wave equation was developed by [6]. Moreover, second order finite difference schemes were recommended for the solution of the time-fractional diffusion wave equation in [7]. A finite difference scheme based on cubic trigonometric B splines was derived by [8] to solve the FDWE.
In contrast, in [9], fractional reduced differential transform method was applied to solve time-fractional order linear and nonlinear Klein–Gordon equations. A high-order difference scheme was used by [10] to solve fractional partial differential equations including the linear time-fractional Klein–Gordon equation. Recently, the modified trial equation method had been applied to obtain the solution for some nonlinear fractional differential equations which include FKGE [11].
On the other hand, the Ritz–Galerkin method has been receiving more and more attention by researchers in the field of numerical analysis and computational science. The Ritz–Galerkin method is used to transform a problem from a continuous state to a discrete state. Additionally, in the context of this research, a suitable satisfier function was used together with the Ritz–Galerkin method as discussed in [12,13]. In the Ritz–Galerkin method, the implementation of an appropriate satisfier function is useful to reduce computational time and to obtain a system of algebraic equations of a smaller size. Recently, Ref. [14,15] had successfully incorporated the Ritz–Galerkin method with Bernoulli polynomials and Bernoulli wavelets to solve a number of fractional calculus problems. Since the results were encouraging, we hope to apply this method to Genocchi polynomials. Some of the applications using Genocchi polynomials to solve differential equation problems are shown in [16], and also [17,18,19]. This proposed method is able to reduce the FDWE and FGKE to only solve the linear system of algebraic equations. Hence, the proposed method greatly reduces the complexity of the problems and provides accurate solutions at the same time. In short, this paper comprises the use of two-dimensional Genocchi polynomials along with the Ritz–Galerkin method and a satisfier function to provide the approximate solutions of FKGE and FDWE. We also compared our results with existing numerical methods. The comparison of the numerical examples shows that our scheme is more accurate and less computational compared to other published methods. More specifically, we show that our new scheme is able to solve nonlinear cases, whereas existing similar methods as in [14,15] are only limited to linear cases.
The outline of the present paper is given as follows. Some basic concepts for fractional calculus are mentioned in Section 2. Section 3 comprises of some definitions and properties of Genocchi polynomials and function approximation for Genocchi polynomials. Section 4 discusses the Ritz–Galerkin method in relation to two-dimensional Genocchi polynomials and the satisfier function. The error bound is given in Section 5 while several numerical experiments are included in Section 6. Section 7 provides the conclusions of the paper.
2. Basic Concept for Fractional Calculus
In this section, some necessary and basic definitions of fractional calculus are mentioned below: the fractional derivative in Caputo’s sense is defined as in [20]:
where and n is the smallest integer greater than In addition, we have the following for Caputo’s derivative
Some properties of fractional derivative in Caputo’s sense are
3. Genocchi Polynomials and Function Approximation
3.1. Definition and Properties of Genocchi Polynomials
The exponential generating function for Genocchi numbers in the complex plane has been given as
The formula for Genocchi polynomials can be obtained when we multiply the left-hand side of Equation (10) by ,
where is the Genocchi polynomial of degree r. In the special case when , we define and are called the Genocchi numbers. We have the following expression for Genocchi polynomials:
where is the Genocchi number, and are the Bernoulli numbers and Bernoulli polynomials respectively. The first few Genocchi numbers are, Some of the Genocchi polynomials are:
Some important properties of Genocchi polynomials are stated below:
3.2. Function Approximation of Genocchi Polynomials
The two-dimensional Genocchi polynomials are defined as a product function of two Genocchi polynomials
The expansion of any function defined over the interval in terms of Genocchi polynomials, can be written as
If the infinite series in Equation (16) is truncated, then it could be written as:
Equation (17) can be written in vector notation as
The Genocchi coefficient matrix which consists of the unique coefficients as follows:
where
4. Ritz–Galerkin Method with the Two-Dimensional Genocchi Polynomials Basis
4.1. Ritz–Galerkin Method
Any arbitrary weight function would be multiplied with Equation (21). We can get the following relation after integrating over the interval
Let the trial solution for Equation (21) be written as
The residual equation could be written in the following form by replacing with on the left-hand side of Equation (21):
For some choices of weight functions, the integral of the residual will be zero to construct . It means that, in this manner, the function satisfies Equation (22) partially as
4.2. Satisfier Function
In the Ritz–Galerkin method, with two-dimensional Genocchi polynomials, the approximate solution for Equations (1) and (4) is denoted as . Hence, we have
where and the satisfier function is represented by . It is worth noting that the satisfier function satisfies all the initial and boundary conditions. While using the Ritz–Galerkin method, the most important point to be noted is to find the satisfier function:
We have the following compatibility conditions where the function and satisfies as
4.3. Transformation of Nonhomogeneous Initial and Boundary Conditions into Homogeneous Conditions
Let
where
The homogeneous boundary conditions for the function will be written as the following to satisfy the given problem
We have
The following compatibility conditions can be derived from Equation (31)
Hence, satisfies the conditions given in Equation (31) and finally, for Equation (27), we introduce the satisfier function as
5. Error Bound
Theorem 1.
Let be the best approximation of the enough smooth function by the use of Genocchi polynomials. Then, the error bound can be given as
where and denote the maximum value of and in the interval respectively.
Proof.
The proof is followed through Theorem 4.2 in [17]. ☐
Lemma 1.
Supposing that and , if is the best approximation of out of Y, then
where and .
Proof.
See Section 3.2 in [18]. ☐
Theorem 2.
Assume that and let and . Since X and are the finite dimensional subspaces of , then there exists as the best unique approximation by means of Genocchi polynomials:
Proof.
We define
If all the partial derivatives of of order are bounded in magnitude by , then, by using the Taylor’s expansion of two variables as follows,
where
Applying the fact that is the best approximation of out of respectively, then we have
By taking the square root on both sides, one can obtain
☐
6. Numerical Results
Some illustrated examples are given in this section based on the technique described in the previous sections. The maximum error is calculated at the final time to validate the accuracy of the presented technique on the interval as
In addition, the absolute errors of the proposed technique in are given by
Problem 1.
Consider the following benchmark problem for linear time-fractional diffusion-wave equation with damping as solved in [3,4,21,22]:
where along with the following initial and boundary conditions:
The exact solution of the problem is given as
By using Equation (33), we have for the present problem and then our technique for different values of M and is used. In Table 1, the comparison of our method with the result in [3,21,22] for the maximum absolute error when and different values of M are shown. Table 2 shows the comparison of absolute errors of our method with [4] when with different values of It can be observed from the tables that our method yielded better results than others.
Table 1.
Comparison of the maximum absolute errors (MAEs) of Problem 1 with [3,21,22] for .
Table 2.
Comparison of the absolute errors with [4] of Problem 1 for different values of and .
Figure 1 shows the fast reduction in maximum absolute errors, MAEs, for our proposed method when M is increasing. The calculation is done using Maple with 15 digits. Furthermore, we only need a small M to achieve very high accuracy.
Figure 1.
Graph of at for Problem 1.
Problem 2.
Consider the linear time-fractional diffusion wave equation [3]:
The exact solution of the Problem 2 is
We can obtain the exact solution of the given problem for different values of and when . This shows the compatibility of our present technique compared to the existing results. For instance, Ref. [3] deals with the Jacobi tau spectral method with the Jacobi operational matrix for fractional integrals. For the given problem, they presented their results in Table 5 in their paper for with for different values of and . More precisely, Table 3 shows the comparison of our result (using ) while [3] was used. In addition, Ref. [4] applied Legendre wavelets for this problem by using the fractional operational matrix of integration for different values of and .
Table 3.
Comparison of the maximum absolute errors (MAEs) of Problem 2 with [3] for different values of .
The errors showed in our calculation are very small. They may be caused by the rounding in floating point arithmetic instead of errors caused by our algorithm.
Problem 3.
Consider the following linear time-fractional Klein–Gordon equation as solved in [10] :
where along with the following initial and boundary conditions:
The exact solution of the given problem is By using Equation (33), we have for the present problem and then used our technique for different values of M and . In Table 4 and Table 5, the comparison of our method with the result in [10] for the maximum absolute error when and for different values of M are shown. It can be observed from the tables that our method yields better results compared to other methods.
Table 4.
Comparison of the maximum absolute errors (MAEs) with [10] of Problem 3 for and for different values of M.
Table 5.
Comparison of the maximum absolute errors (MAEs) with [10] of Problem 3 for and for different values of M.
Problem 4.
Consider the following nonlinear time-fractional Klein–Gordon equation as solved in [2]:
where along with the following initial and boundary conditions:
The exact solution of the given problem is
By using Equation (33), we have for the present problem and then used our technique for different values of M. We obtained the results as shown in Table 6, which clearly show that our method led to better results compared to other published works [2].
Table 6.
Comparison of the maximum absolute errors (MAEs) of Problem 4 with [2] for and different values of M.
7. Conclusions
In this paper, we used two-dimensional Genocchi polynomials with the Ritz–Galerkin method in Caputo’s sense to solve the fractional diffusion wave equation (FDWE) and the time-fractional Klein–Gordon equation (FKGE). Our method is able to solve the equation with very high accuracy even for nonlinear cases. The use of the satisfier function makes it easy to tackle the problem with initial and boundary conditions. Comparison tables are given to show the present technique in comparison with existing work.
Author Contributions
Software, U.I.; Supervision, C.P.; Writing—Original Draft, A.K.; Writing—Review and Editing, C.P.
Funding
This research was funded by UTHM grant number GIPS U304.
Acknowledgments
This work was supported in part by UTHM through GIPS U304.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Povstenko, Y. Linear Fractional Diffusion-Wave Equation for Scientists and Engineers; Springer: Berlin/Heidelberg, Germany, 2016; pp. 1–460. ISBN 978-3-319-17954-4. [Google Scholar]
- Nagy, A.M. Numerical solution of time fractional nonlinear Klein–Gordon equation using Sinc-Chebyshev collocation method. Appl. Math. Comput. 2017, 310, 139–148. [Google Scholar] [CrossRef]
- Bhrawy, A.H.; Doha, E.H.; Baleanu, D.; Ezz-Eldien, S.S. A spectral Tau algorithm based on Jacobi operational matrix for numerical solution of time fractional diffusion-wave equations. J. Comput. Phys. 2015, 293, 142–156. [Google Scholar] [CrossRef]
- Heydari, M.H.; Hooshmandasl, M.R.; Ghaini, F.M.; Cattani, C. Wavelets method for the time fractional diffusion-wave equation. Phys. Lett. A 2015, 379, 71–76. [Google Scholar] [CrossRef]
- Hosseini, V.R.; Shivanian, E.; Chen, W. Local radial point interpolation (MLRPI) method for solving time fractional diffusion-wave equation with damping. J. Comput. Phys. 2016, 312, 307–332. [Google Scholar] [CrossRef]
- Yang, Y.; Chen, Y.; Huang, Y.; Wei, H. Spectral collocation method for the time-fractional diffusion-wave equation and convergence analysis. Comput. Math. Appl. 2017, 73, 1218–1232. [Google Scholar] [CrossRef]
- Zeng, F. Second-order stable finite difference schemes for the time-fractional diffusion-wave equation. J. Sci. Comput. 2015, 65, 411–430. [Google Scholar] [CrossRef]
- Yaseen, M.; Abbas, M.; Nazir, T.; Baleanu, D. A finite difference scheme based on cubic trigonometric B-splines for a time fractional diffusion-wave equation. Adv. Differ. Equ. 2017, 2017, 274. [Google Scholar] [CrossRef]
- Tamsir, M.; Srivastava, V.K. Analytical study of time-fractional order Klein–Gordon equation. Alex. Eng. J. 2016, 55, 561–567. [Google Scholar] [CrossRef]
- Mohebbi, A.; Abbaszadeh, M.; Dehghan, M. High-order difference scheme for the solution of linear time fractional Klein–Gordon equations. Numer. Methods Part. Diff. Equ. 2014, 30, 1234–1253. [Google Scholar] [CrossRef]
- Odabasi, M.; Misirli, E. On the solutions of the nonlinear fractional differential equations via the modified trial equation method. Math. Methods Appl. Sci. 2018, 41, 904–911. [Google Scholar] [CrossRef]
- Barikbin, Z.; Ellahi, R.; Abbasbandy, S. The Ritz–Galerkin method for MHD Couette flow of non-Newtonian fluid. Int. J. Ind. Math. 2014, 6, 235–243. [Google Scholar]
- Rashedi, K.; Adibi, H.; Dehghan, M. Determination of space-time-dependent heat source in a parabolic inverse problem via the Ritz–Galerkin technique. Inverse Probl. Sci. Eng. 2014, 22, 1077–1108. [Google Scholar] [CrossRef]
- Barikbin, Z.; Keshavarz Hedayati, E. Exact and approximation product solutions form of heat equation with nonlocal boundary conditions using Ritz–Galerkin method with Bernoulli polynomials basis. Numer. Methods Part. Differ. Equ. 2017, 33, 1143–1158. [Google Scholar] [CrossRef]
- Barikbin, Z. Two-dimensional Bernoulli wavelets with satisfier function in the Ritz–Galerkin method for the time fractional diffusion-wave equation with damping. Math. Sci. 2017, 11, 195–202. [Google Scholar] [CrossRef]
- Padma, S.; Hariharan, G. Analytical expressions pertaining to the steady state Concentrations of Glucose, Oxygen and Gluconic Acid in a Composite Membrane Using Genocchi Polynomials. Arab. J. Sci. Eng. 2017, 43, 3529–3539. [Google Scholar] [CrossRef]
- Isah, A.; Phang, C. Operational matrix based on Genocchi polynomials for solution of delay differential equations. Ain Shams Eng. J. 2017, 1–6. [Google Scholar] [CrossRef]
- Isah, A.; Phang, C. New operational matrix of derivative for solving non-linear fractional differential equations via Genocchi polynomials. J. King Saud Univ. Sci. 2017, 1–7. [Google Scholar] [CrossRef]
- Isah, A.; Phang, C.; Phang, P. Collocation method based on genocchi operational matrix for solving generalized fractional Pantograph equations. Int. J. Differ. Equ. 2017, 2017, 2–10. [Google Scholar] [CrossRef]
- Diethelm, K. The Analysis of Fractional Differential Equations: An Application-Oriented Exposition Using Differential Operators of Caputo Type; Springer: Berlin/Heidelberg, Germany, 2010; pp. 3–245. ISBN 978-3-642-14573-5. [Google Scholar]
- Reutskiy, S.Y. A new semi-analytical collocation method for solving multi-term fractional partial differential equations with time variable coefficient. Appl. Math. Model. 2017, 45, 238–254. [Google Scholar] [CrossRef]
- Liu, F.; Meerschaert, M.; McGough, R.; Zhuang, P.; Liu, Q. Numerical methods for solving the multi-term time-fractional wave-diffusion equation. Fract. Calc. Appl. Anal. 2013, 16, 9–25. [Google Scholar] [CrossRef] [PubMed]
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).