Next Article in Journal
Singularly Perturbed Forward-Backward Stochastic Differential Equations: Application to the Optimal Control of Bilinear Systems
Previous Article in Journal
An Energy Landscape Treatment of Decoy Selection in Template-Free Protein Structure Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Solution of Fractional Diffusion Wave Equation and Fractional Klein–Gordon Equation via Two-Dimensional Genocchi Polynomials with a Ritz–Galerkin Method

1
Department of Mathematics and Statistics, Universiti Tun Hussein Onn Malaysia, Pagoh Campus, 84600 Pagoh, Malaysia
2
Riphah College of Computing, Riphah International University, Faisalabad Campus, 38000 Faisalabad, Pakistan
*
Author to whom correspondence should be addressed.
Computation 2018, 6(3), 40; https://doi.org/10.3390/computation6030040
Submission received: 31 May 2018 / Revised: 21 June 2018 / Accepted: 25 June 2018 / Published: 27 June 2018
(This article belongs to the Section Computational Engineering)

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:
α u ( x , t ) t α + u ( x , t ) t = 2 u ( x , t ) t 2 + A ( x , t ) , 0 < x < L , 0 < t < T ,
with the initial conditions
u ( x , 0 ) = f 0 ( x ) , u ( x , 0 ) t = f 1 ( x ) , 0 x L ,
and the boundary conditions are
u ( 0 , t ) = g 0 ( t ) , u ( L , t ) = g 1 ( t ) , 0 t T ,
where T > 0 , L > 0 and 1 < α 2 are the fractional order Caputo sense derivative. f 0 , f 1 , g 0 and g 1 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:
κ α - 1 α u ( x , t ) t α + σ u ( x , t ) t + λ u ( x , t ) = 2 u ( x , t ) t 2 + κ α - 1 B ( x , t ) , ( x , t ) [ 0 , L ] × [ 0 , T ] ,
with the initial conditions
u ( x , 0 ) = θ 0 ( x ) , u ( x , 0 ) t = θ 1 ( x ) , 0 x L ,
and the boundary conditions are
u ( 0 , t ) = ϑ 0 ( t ) , u ( L , t ) = ϑ 1 ( t ) , 0 t T ,
where 1 < α 2 is the fractional order Caputo sense derivative. For the linear time-fractional Klein–Gordon equation, we set the Equation (4) as κ = 1 , σ = 0 , λ = 1 , where the FKGE is reduced to FDWE. Meanwhile, θ 0 , θ 1 , ϑ 0 and ϑ 1 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 ( u ( x , t ) ) β 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]:
D t α f ( t ) = 1 Γ ( n - α ) 0 t f n ( τ ) ( t - τ ) α - n + 1 d τ , n - 1 < α < n , N , d n d t n f ( t ) , n = α ,
where α > 0 and n is the smallest integer greater than α . In addition, we have the following for Caputo’s derivative
D α t η = Γ ( η + 1 ) Γ ( η + 1 - α ) t η - α , η N 0 , η α 0 , η N 0 , η < α , D α c = 0 , c R .
Some properties of fractional derivative in Caputo’s sense are
D α ( λ f ( t ) + μ g ( t ) ) = λ D α f ( t ) + μ D α g ( t ) , d n d t n [ ( t ) f ( t ) ] = k = 0 n k ( t ) f n - k ( t ) , I α D t α f ( t ) = f ( t ) - k = 0 m - 1 f ( k ) ( 0 + ) k ! t k , t > 0 .

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
2 t e t + 1 = e G t = r = 0 G r t r r ! , ( t < π ) .
The formula for Genocchi polynomials can be obtained when we multiply the left-hand side of Equation (10) by e x t ,
2 t e x t e t + 1 = r = 0 G r ( x ) t r r ! , ( t < π ) ,
where G r ( x ) is the Genocchi polynomial of degree r. In the special case when x = 0 , we define G r ( 0 ) = G r , r 0 and G 2 r + 1 = 0 , r 1 are called the Genocchi numbers. We have the following expression for Genocchi polynomials:
G r ( x ) = i = 0 r r i G r - i x i = 2 B r ( x ) - 2 r + 1 B r ( x ) ,
where G i = 2 B i - 2 i + 1 B i is the Genocchi number, B r and B r ( x ) are the Bernoulli numbers and Bernoulli polynomials respectively. The first few Genocchi numbers are, G 1 = 1 , G 2 = - 1 , G 3 = 0 , G 4 = 1 , G 5 = 0 . Some of the Genocchi polynomials are:
G 1 ( x ) = 1 , G 2 ( x ) = 2 x - 1 , G 3 ( x ) = 3 x 2 - 3 x , G 4 ( x ) = 4 x 3 - 6 x 2 + 1 , G 5 ( x ) = 5 x 4 - 10 x 3 + 5 x .
Some important properties of Genocchi polynomials are stated below:
0 1 G r ( x ) G u ( x ) d x = 2 ( - 1 ) r r ! u ! ( u + r ) ! G u + r , r , u 1 , d d x G r ( x ) = r G r - 1 ( x ) , r 1 , G r ( 1 ) + G r ( 0 ) = 0 , r > 1 .

3.2. Function Approximation of Genocchi Polynomials

The two-dimensional Genocchi polynomials are defined as a product function of two Genocchi polynomials
G p q ( x , t ) = G p ( t ) G q ( x ) ,
p = 1 , 2 , , M , q = 1 , 2 , , M .
The expansion of any function υ ( x , t ) defined over the interval [ 0 , 1 ] × [ 0 , 1 ] in terms of Genocchi polynomials, can be written as
u ( x , t ) = p = 1 q = 1 K a b G p ( t ) G q ( x ) .
If the infinite series in Equation (16) is truncated, then it could be written as:
u ( x , t ) p = 1 i q = 1 i K p q G p ( t ) G q ( x ) .
Equation (17) can be written in vector notation as
u ( x , t ) = G T ( t ) K M × M G ( x ) .
The Genocchi coefficient matrix K which consists of the unique coefficients k p q as follows:
K T = A ( t ) - 1 H T A ( x ) - 1 ,
where
H = 0 1 0 1 υ ( x , t ) G p ( t ) G q ( x ) d x d t , A ( x ) = 0 1 G p ( x ) G p ( x ) d x , A ( t ) = 0 1 G q ( t ) G q ( t ) d t .

4. Ritz–Galerkin Method with the Two-Dimensional Genocchi Polynomials Basis

4.1. Ritz–Galerkin Method

If the FDWE and FKGE as shown in Equations (1) and (4) are written as follows :
L [ v ( x , t ) ] + f ( x , t ) = 0
over the interval i x , t j .
Any arbitrary weight function σ ( x , t ) would be multiplied with Equation (21). We can get the following relation after integrating over the interval [ i , j ]
i j i j σ ( x , t ) ( L [ v ( x , t ) ] + f ( x , t ) ) d x d t = 0 .
Due to the arbitrary weight function, Equations (21) and (22) are equivalent.
Let the trial solution for Equation (21) be written as
u ( x , t ) = ξ 0 ( x , t ) + p = 1 m q = 1 m K p q ξ p q ( x , t ) .
The residual equation could be written in the following form by replacing v ( x , t ) with u ( x , t ) on the left-hand side of Equation (21):
R ( x , t ) = L [ u ( x , t ) ] + f ( x , t ) .
For some choices of weight functions, the integral of the residual will be zero to construct u ( x , t ) . It means that, in this manner, the function u ( x , t ) satisfies Equation (22) partially as
i j i j f ( x , t ) + σ ( x , t ) L [ u ( x , t ) ] d x d t = 0 .

4.2. Satisfier Function

In the Ritz–Galerkin method, with two-dimensional Genocchi polynomials, the approximate solution u ( x , t ) for Equations (1) and (4) is denoted as u ˜ ( x , t ) . Hence, we have
u ˜ ( x , t ) = p = 0 M q = 0 M K p q ω p q ( x , t ) + ζ ( x , t ) , ( x , t ) [ 0 , L ] × [ 0 , T ] ,
where ω p q ( x , t ) = x ( x - L ) t 2 G p ( x ) G q ( t ) and the satisfier function is represented by ζ ( x , t ) . 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:
u ( x , 0 ) = f 0 ( t ) , 0 x L , u t ( η , 0 ) = f 1 ( x ) , 0 x L , u ( 0 , t ) = g 0 ( t ) , 0 t T , u ( L , t ) = g 1 ( t ) , 0 t T .
We have the following compatibility conditions where the function f 0 ( x ) , f 1 ( x ) , g 0 ( t ) , and g 1 ( t ) satisfies as
f 0 ( 0 ) = g 0 ( 0 ) , f 0 ( L ) = g 1 ( 0 ) , f 1 ( 0 ) = g 0 ( 0 ) , f 0 ( L ) = g 1 ( 0 ) .

4.3. Transformation of Nonhomogeneous Initial and Boundary Conditions into Homogeneous Conditions

Let
u ( x , t ) = ϖ ( x , t ) + φ ( x , t ) ,
where
φ ( x , t ) = ( 1 - x L ) g 0 ( t ) + x L g 1 ( t ) .
The homogeneous boundary conditions for the function ϖ ( x , t ) will be written as the following to satisfy the given problem
ϖ ( x , 0 ) = F 0 ( x ) , 0 x L , ϖ t ( x , 0 ) = F 1 ( x ) , 0 x L , ϖ ( 0 , t ) = 0 , 0 t T , ϖ ( L , t ) = 0 , 0 t T .
We have
F 0 ( x ) = f 0 ( x ) - φ ( x , 0 ) , F 1 ( x ) = f 1 ( x ) - φ t ( x , 0 ) .
The following compatibility conditions can be derived from Equation (31)
F 0 ( 0 ) = F 0 ( L ) = F 1 ( 0 ) = F 1 ( L ) = 0 .
Hence, R ( x , t ) = F 0 ( x ) + t F 1 ( x ) satisfies the conditions given in Equation (31) and finally, for Equation (27), we introduce the satisfier function as
ζ ( x , t ) = R ( x , t ) + φ ( x , t ) .
Furthermore, the coefficients K p q in Equation (26) can be calculated by using the equations given as
< F ( u ˜ ) , G p ( x ) G q ( t ) > = 0 ,
where
F ( u ) = α u ( x , t ) t α + u ( x , t ) t - 2 u ( x , t ) x 2 - A ( x , t ) ,
and
< F ( u ˜ ) , G p ( x ) G q ( t ) > = 0 L 0 T F ( u ˜ ) G p ( x ) G q ( t ) d t d x ,
where G p and G q are the Genocchi polynomials. A linear system of equations can be formed by using Equation (34), which can be solved for the entries of K p q where p = 1 , . . . , M , q = 1 , . . . , M .

5. Error Bound

Theorem 1.
Let u m ( x , t ) be the best approximation of the enough smooth function u ( x , t ) by the use of Genocchi polynomials. Then, the error bound can be given as
E u ( x , t ) 1 M ! G M 2 U M , M ,
where G M and U M , M denote the maximum value of G M ( x ) and U M , M ( x , t ) in the interval [ 0 , 1 ] × [ 0 , 1 ] , respectively.
Proof. 
The proof is followed through Theorem 4.2 in [17]. ☐
Lemma 1.
Supposing that f ( t ) C n + 1 [ 0 , 1 ] and Y = span { G 1 ( t ) , G 2 ( t ) , . . . , G N ( t ) } , if C T G ( t ) is the best approximation of f ( t ) out of Y, then
f ( t ) - C T G ( t ) h 2 n + 3 2 R ( n + 1 ) ! 2 n + 3 , t [ t i , t i + 1 ] , [ 0 , 1 ] ,
where R = m a x | f ( n + 1 ) ( t ) | and h = t i + 1 - t i .
Proof. 
See Section 3.2 in [18]. ☐
Theorem 2.
Assume that u M , M ( x , t ) C n , n ( I × I ) and let X = span { G 1 ( x ) , , G M ( x ) } and X = s p a n { G 1 ( t ) , , G K ( t ) } . Since X and X are the finite dimensional subspaces of L 2 [ 0 , 1 ] , then there exists u M , M m ( x , t ) = X × X as the best unique approximation by means of Genocchi polynomials:
u M , M ( x , t ) - u M , M m ( x , t ) 2 2 M γ ( H x + H t ) ( p + 2 ) ( p + 1 ) ! ( 2 p + 3 ) ( 2 p + 4 ) .
Proof. 
We define
u ( x * , t * ) = r = 0 p + 1 ( p + 1 ) ! r ! ( p + 1 - r ) ! p + 1 f x r t p + 1 - r ( h x ) r ( h t ) p + 1 .
If all the partial derivatives of u ( x , t ) of order p + 1 are bounded in magnitude by M γ , then, by using the Taylor’s expansion of two variables as follows,
u M , M ( x , t ) - u M , M m ( x , t ) u ( x * , t * ) - u M , M m ( x * , t * ) = 1 ( p + 1 ) ! u n + 1 ( x * , t * ) = 1 ( p + 1 ) ! r = 0 p + 1 ( p + 1 ) ! r ! ( p + 1 - r ) ! p + 1 f x r t p + 1 - r ( h x ) r ( h t ) p + 1 = M γ ( p + 1 ) ! ( | h x | + | h t | ) p + 1 ,
where
M γ = m a x | p + 1 f x r t p + 1 - r | , h x = x * , h t = t * .
Applying the fact that u M , M m ( x , t ) X × X is the best approximation of u M , M ( x , t ) out of X × X , respectively, then we have
u M , M ( x , t ) - u M , M m ( x , t ) 2 2 u ( x * , t * ) - u M , M * ( x * , t * ) 2 2 = 0 1 0 1 | u ( x * , t * ) - u M , M m ( x * , t * ) | 2 d x d t 0 1 0 1 M γ 2 ( p + 1 ) ! 2 [ ( | h x | + | h t | ) n + 1 ] 2 = M γ 2 ( p + 1 ) ! 2 0 1 0 1 [ ( | h x | + | h t | ) ] 2 n + 2 4 M γ 2 ( H x + H t ) ( 2 p + 4 ) ( p + 1 ) ! 2 ( 2 p + 3 ) ( 2 p + 4 ) .
By taking the square root on both sides, one can obtain
u M , M ( x , t ) - u M , M m ( x , t ) 2 2 M γ ( H x + H t ) ( p + 2 ) ( p + 1 ) ! ( 2 p + 3 ) ( 2 p + 4 ) .
 ☐

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 t = T to validate the accuracy of the presented technique on the interval [ 0 , T ] as
E = u e x a c t - u M , M = max 1 a M t u e x a c t ( x i , T ) - u M , M ( x i , T ) .
In addition, the absolute errors of the proposed technique in ( x i , t i ) [ 0 , 1 ] × [ 0 , 1 ] are given by
| E ( x i , t i ) | = | u ˜ ( x i , t i ) - u ( x i , t i ) | .
Problem 1.
Consider the following benchmark problem for linear time-fractional diffusion-wave equation with damping as solved in [3,4,21,22]:
α u t α + u t = 2 u x 2 + ρ ( x , t ) , ( x , t ) [ 0 , 1 ] × [ 0 , 1 ] , 1 < α 2 ,
where ρ ( x , t ) = 3 t 2 e x - t 3 e x + 6 t 3 - α Γ ( 4 - α ) e x along with the following initial and boundary conditions:
u ( x , 0 ) = 0 , u t ( x , 0 ) = 0 , u ( 0 , t ) = t 3 , u ( 1 , t ) = e t 3 .
The exact solution of the problem is given as
u ( x , t ) = e x t 3 .
By using Equation (33), we have ζ ( x , t ) = t 3 ( 1 - x + e x ) 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 α = 1 . 85 and different values of M are shown. Table 2 shows the comparison of absolute errors of our method with [4] when M = 3 with different values of α . It can be observed from the tables that our method yielded better results than others.
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.
Problem 2.
Consider the linear time-fractional diffusion wave equation [3]:
α u t α + u t = - 2 u x 2 + 2 x ( l - x ) Γ ( 3 - α ) t 2 - α + 2 t x ( l - x ) + 2 t 2 , 1 < α 2 ,
u ( x , 0 ) = 0 , u t ( x , 0 ) = 0 , 0 < x < l , u ( 0 , t ) = 0 , u ( l , t ) = 0 , 0 < t < τ .
The exact solution of the Problem 2 is u ( x , t ) = t 2 x ( l - x ) .
We can obtain the exact solution of the given problem for different values of α and when M = 3 . 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 t = 1 , L = 1 , τ = 1 with N = M = 8 for different values of α , β and ν . More precisely, Table 3 shows the comparison of our result (using M = 3 ) while [3] M = 8 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 M = 3 , k = 3 .
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] :
α u t α + u = 2 u x 2 + ρ ( x , t ) , ( x , t ) [ 0 , 1 ] × [ 0 , 1 ] , 1 < α 2 ,
where ρ ( x , t ) = 2 t 2 - α ( 2 - α ) Γ ( 2 - α ) ( e - e x ) sin ( x ) + t 2 ( 2 e - e x ) sin ( x ) + 2 t 2 e x cos ( x ) . along with the following initial and boundary conditions:
u ( x , 0 ) = 0 , u t ( x , 0 ) = 0 , u ( 0 , t ) = 0 , u ( 1 , t ) = 0 .
The exact solution of the given problem is u ( x , t ) = t 2 ( e - e x ) sin ( x ) . By using Equation (33), we have ζ ( x , t ) = 0 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 α = 1 . 25 and α = 1 . 75 for different values of M are shown. It can be observed from the tables that our method yields better results compared to other methods.
Problem 4.
Consider the following nonlinear time-fractional Klein–Gordon equation as solved in [2]:
α u t α = 2 u x 2 - u 2 + ρ ( x , t ) , ( x , t ) [ 0 , 1 ] × [ 0 , 1 ] , 1 < α 2 ,
where ρ ( x , t ) = Γ ( 5 2 ) Γ ( 5 2 - α ) ( 1 - x ) 5 2 t 3 2 - α - 15 4 ( 1 - x ) 1 2 t 3 2 + ( 1 - x ) 5 t 3 along with the following initial and boundary conditions:
u ( x , 0 ) = 0 , u t ( x , 0 ) = 0 , u ( 0 , t ) = t 3 2 , u ( 1 , t ) = 0 .
The exact solution of the given problem is
u ( x , t ) = ( 1 - x ) 5 2 t 3 2 .
By using Equation (33), we have ζ ( x , t ) = ( 1 - x ) t 3 2 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].

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

  1. 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]
  2. 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]
  3. 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]
  4. 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]
  5. 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]
  6. 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]
  7. 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]
  8. 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]
  9. Tamsir, M.; Srivastava, V.K. Analytical study of time-fractional order Klein–Gordon equation. Alex. Eng. J. 2016, 55, 561–567. [Google Scholar] [CrossRef]
  10. 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]
  11. 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]
  12. 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]
  13. 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]
  14. 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]
  15. 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] [Green Version]
  16. 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]
  17. 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]
  18. 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]
  19. 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]
  20. 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]
  21. 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]
  22. 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] [Green Version]
Figure 1. Graph of l o g 10 ( M A E ) at α = 1 . 85 for Problem 1.
Figure 1. Graph of l o g 10 ( M A E ) at α = 1 . 85 for Problem 1.
Computation 06 00040 g001
Table 1. Comparison of the maximum absolute errors (MAEs) of Problem 1 with [3,21,22] for α = 1 . 85 .
Table 1. Comparison of the maximum absolute errors (MAEs) of Problem 1 with [3,21,22] for α = 1 . 85 .
MRef. [3]Ref. [21]Ref. [22]Our Method
45.46 × 10 - 5 3.38 × 10 - 3 1.09 × 10 - 1 4.39377 × 10 - 6
85.50 × 10 - 6 9.69 × 10 - 4 2.76 × 10 - 2 4.39381 × 10 - 6
Table 2. Comparison of the absolute errors with [4] of Problem 1 for different values of α and M = 3 .
Table 2. Comparison of the absolute errors with [4] of Problem 1 for different values of α and M = 3 .
( x , t ) α = 1 . 1 α = 1 . 5 α = 1 . 9
Our MethodRef. [4]Our MethodRef. [4]Our MethodRef. [4]
(0.1,0.1)1.15559 × 10 - 8 6.7028 × 10 - 5 4.97870 × 10 - 8 6.0407 × 10 - 5 1.15539 × 10 - 7 2.0243 × 10 - 5
(0.2, 0.2)5.15080 × 10 - 7 1.8718 × 10 - 4 3.22420 × 10 - 7 1.5683 × 10 - 4 1.02961 × 10 - 8 5.9155 × 10 - 5
(0.3, 0.3)2.63293 × 10 - 6 3.0913 × 10 - 4 2.27559 × 10 - 6 2.7985 × 10 - 4 1.66006 × 10 - 6 1.0947 × 10 - 4
(0.4, 0.4)4.60055 × 10 - 6 4.0221 × 10 - 4 4.25541 × 10 - 6 3.7035 × 10 - 4 3.66878 × 10 - 6 1.6790 × 10 - 4
(0.5, 0.5)5.41170 × 10 - 7 4.5801 × 10 - 4 5.14200 × 10 - 7 3.8089 × 10 - 4 4.80654 × 10 - 7 1.6277 × 10 - 4
(0.6, 0.6)1.50610 × 10 - 5 4.5260 × 10 - 4 1.44824 × 10 - 5 3.6309 × 10 - 4 1.35084 × 10 - 5 1.9284 × 10 - 4
(0.7, 0.7)3.84166 × 10 - 5 4.0597 × 10 - 4 3.71459 × 10 - 5 3.2603 × 10 - 4 3.51060 × 10 - 5 6.2825 × 10 - 5
(0.8, 0.8)5.05410 × 10 - 5 3.1039 × 10 - 4 4.88530 × 10 - 5 6.5594 × 10 - 4 4.63092 × 10 - 5 1.0181 × 10 - 5
(0.9, 0.9)2.89942 × 10 - 5 1.7283 × 10 - 4 2.76030 × 10 - 5 7.1269 × 10 - 3 2.57007 × 10 - 5 2.0918 × 10 - 5
Table 3. Comparison of the maximum absolute errors (MAEs) of Problem 2 with [3] for different values of α .
Table 3. Comparison of the maximum absolute errors (MAEs) of Problem 2 with [3] for different values of α .
α Our MethodRef. [3]
1.21.11 × 10 - 16 5.35 × 10 - 6
1.41.11 × 10 - 16 1.01 × 10 - 6
1.61.11 × 10 - 16 8.77 × 10 - 6
1.81.11 × 10 - 16 2.27 × 10 - 6
Table 4. Comparison of the maximum absolute errors (MAEs) with [10] of Problem 3 for α = 1 . 25 and for different values of M.
Table 4. Comparison of the maximum absolute errors (MAEs) with [10] of Problem 3 for α = 1 . 25 and for different values of M.
M τ Our MethodRef. [10]
  3 1 10 8.2146 × 10 - 4 1.3189 × 10 - 3
  4 1 20 2.9523 × 10 - 5 3.3035 × 10 - 4
  5 1 40 7.9725 × 10 - 7 8.2925 × 10 - 5
  6 1 80 6.1421 × 10 - 7 2.0856 × 10 - 5
7 1 160 9.9173 × 10 - 6 5.2649 × 10 - 6
Table 5. Comparison of the maximum absolute errors (MAEs) with [10] of Problem 3 for α = 1 . 75 and for different values of M.
Table 5. Comparison of the maximum absolute errors (MAEs) with [10] of Problem 3 for α = 1 . 75 and for different values of M.
M τ Our MethodRef. [10]
  3 1 10 8.2677 × 10 - 4 3.7014 × 10 - 3
  4 1 20 2.9040 × 10 - 5 1.5270 × 10 - 3
  5 1 40 2.4291 × 10 - 7 6.2904 × 10 - 4
  6 1 80 5.6104 × 10 - 7 2.5916 × 10 - 4
7 1 160 7.7767 × 10 - 6 1.0715 × 10 - 4
Table 6. Comparison of the maximum absolute errors (MAEs) of Problem 4 with [2] for α = 1 . 3 and different values of M.
Table 6. Comparison of the maximum absolute errors (MAEs) of Problem 4 with [2] for α = 1 . 3 and different values of M.
MOur MethodRef. [2]
41.8485 × 10 - 3 6.9789 × 10 - 3
63.0582 × 10 - 4 2.7048 × 10 - 3
88.3497 × 10 - 5 1.1765 × 10 - 3
103.4893 × 10 - 4 5.7402 × 10 - 4

Share and Cite

MDPI and ACS Style

Kanwal, A.; Phang, C.; Iqbal, U. Numerical Solution of Fractional Diffusion Wave Equation and Fractional Klein–Gordon Equation via Two-Dimensional Genocchi Polynomials with a Ritz–Galerkin Method. Computation 2018, 6, 40. https://doi.org/10.3390/computation6030040

AMA Style

Kanwal A, Phang C, Iqbal U. Numerical Solution of Fractional Diffusion Wave Equation and Fractional Klein–Gordon Equation via Two-Dimensional Genocchi Polynomials with a Ritz–Galerkin Method. Computation. 2018; 6(3):40. https://doi.org/10.3390/computation6030040

Chicago/Turabian Style

Kanwal, Afshan, Chang Phang, and Umer Iqbal. 2018. "Numerical Solution of Fractional Diffusion Wave Equation and Fractional Klein–Gordon Equation via Two-Dimensional Genocchi Polynomials with a Ritz–Galerkin Method" Computation 6, no. 3: 40. https://doi.org/10.3390/computation6030040

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop