Next Article in Journal
Two Integral Representations for the Relaxation Modulus of the Generalized Fractional Zener Model
Next Article in Special Issue
Eighth-Kind Chebyshev Polynomials Collocation Algorithm for the Nonlinear Time-Fractional Generalized Kawahara Equation
Previous Article in Journal
A Monotone Discretization for the Fractional Obstacle Problem and Its Improved Policy Iteration
Previous Article in Special Issue
Asymptotic and Pinning Synchronization of Fractional-Order Nonidentical Complex Dynamical Networks with Uncertain Parameters
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fast θ Scheme Combined with the Legendre Spectral Method for Solving a Fractional Klein–Gordon Equation

1
School of Mathematical Sciences, Dezhou University, Dezhou 253023, China
2
Experimental Management Center, Dezhou University, Dezhou 253023, China
3
School of Mathematics and Statistics, Qilu University of Technology, Jinan 250353, China
4
Data Recovery Key Laboratory of Sichuan Province, College of Mathematics and Information Science, Neijiang Normal University, Neijiang 641100, China
*
Author to whom correspondence should be addressed.
Fractal Fract. 2023, 7(8), 635; https://doi.org/10.3390/fractalfract7080635
Submission received: 20 July 2023 / Revised: 8 August 2023 / Accepted: 15 August 2023 / Published: 20 August 2023

Abstract

:
In the current work, a fast θ scheme combined with the Legendre spectral method was developed for solving a fractional Klein–Gordon equation (FKGE). The numerical scheme was provided by the Legendre spectral method in the spatial direction, and for the temporal direction, a θ scheme of order O ( τ 2 ) with a fast algorithm was taken into account. The fast algorithm could decrease the computational cost from O ( M 2 ) to O ( M log M ) , where M denotes the number of time levels. In addition, correction terms could be employed to improve the convergence rate when the solutions have weak regularity. We proved theoretically that the scheme is unconditionally stable and obtained an error estimate. The numerical experiments demonstrated that our numerical scheme is accurate and efficient.

1. Introduction

Fractional differential equations (FDEs), as the evolution of integral differential equations, can more precisely describe phenomena with sophisticated dynamics [1,2,3,4]. In the past few decades, FDEs have been investigated by a number of scholars because they have practical applications in various fields, such as relativistic quantum mechanics [5], hydromechanics [6], neuroscience [7], and materials science [8]. Due to it being virtually impossible to obtain an analytic solution to an FDE in most cases, many numerical methods for solving FDEs have been developed rapidly. In particular, finite difference methods (FDMs) [9,10], finite element methods (FEMs) [11,12,13], spectral methods [14,15,16], and spectral element methods [17,18] have been extensively utilized.
In this article, we concentrate on the following FKGE:
α ξ ( x , t ) t α + ρ ξ ( x , t ) t + ξ ( x , t ) = 2 ξ ( x , t ) x 2 + f ( x , t ) , x ( 0 , L ) , t ( 0 , T ] ξ ( x , 0 ) = ϕ ( x ) , ξ ( x , 0 ) t = φ ( x ) , x ( 0 , L ) , ξ ( 0 , t ) = 0 , ξ ( L , t ) = 0 , t [ 0 , T ] ,
When α = 2 , (1) is a classical integer-order Klein–Gordon equation. D 0 , t α ξ ( t ) is a fractional derivative with respect to t in the Caputo sense, which is defined as
D 0 , t α ξ ( x , t ) = α ξ ( x ) t α = 1 Γ ( 2 α ) 0 t 2 ξ ( x , s ) s 2 d s ( t s ) 1 α , 1 < α < 2 2 ξ ( x ) t 2 . α = 2
If we set ρ = 0 , then an FKGE can be obtained, and a fractional dissipative Klein–Gordon equation can be obtained for ρ > 0 [19].
The application of FDEs has been extended to quantum mechanics, which has given rise to fractional quantum mechanics [20,21]. Klein–Gordon equations, which are some of the most fundamental equations in relativistic quantum mechanics, have been generalized to FKGEs [19,22]. As a matter of fact, quite a few scholars have investigated FKGEs. Vong et al. proposed a high-order finite difference scheme for a nonlinear FKGE, and the convergence order of the proposed scheme was O ( h 4 + τ 3 α ) [23], where h and τ are the spatial and temporal step sizes, respectively. Hashemizadeh et al. proposed an approach that relied on the sparse operational matrix of the derivative to solve an FKGE, leading to more efficient operation [19]. By combining the properties of Chebyshev approximations with the FDM, Khadera et al. developed a method that reduced an FKGE to a system of ODEs and then solved it using the FDM [24]. Recently, Saffarian et al. utilized the ADI spectral element method to solve a nonlinear FKGE with a convergent order of O ( τ 2 + N 1 m ) [25], where N is the polynomial degree and m represents the regularity of the solution. As far as the authors’ knowledge is concerned, there have been few reports on numerical methods utilizing fast algorithms for an FKGE. Motivated by the above considerations, our main aim was developing a stable and fast numerical method for FKGEs.
The structure of this paper is as follows: In Section 2, some crucial preliminaries are provided for the subsequent analysis. In Section 3, to obtain the fully discrete scheme, we introduce the θ scheme and the Legendre spectral method in the temporal and spatial directions, respectively. Meanwhile, correction terms are considered to improve the weak regularity of the solution. In Section 4, we attach importance to the stability analysis and the convergence analysis. To save on computational expenses for the fractional operators, a fast algorithm is implemented in Section 5. In Section 6, several numerical experiments are conducted to validate our theoretical analysis. In the final section, we present our conclusions.

2. Preliminaries

In this section, some lemmas and definitions that were necessary for the following analysis are presented.
The space P N ( Ω ) corresponds to the set of polynomials defined in the domain Ω , encompassing polynomials with a degree lower than N. Moreover, within P N ( Ω ) , we have the subspace P N 0 ( Ω ) that fulfills the boundary condition w ( Ω ) = 0 for w P N ( Ω ) .
Let us denote π N 1 , 0 ( Ω ) as the orthogonal projection operator from the Hilbert space H 0 1 ( Ω ) to the subspace P N 0 . For any w H 0 1 ( Ω ) and any v P N 0 ( Ω ) , the orthogonal projection operator π N 1 , 0 ( Ω ) exhibits the following property:
( x π N 1 , 0 w , x υ ) = ( x w , x υ ) .
Here, we make a crucial assumption that the solution to Equation (1) conforms to the following form [11,17]:
ξ ( x , t ) = ϕ + φ t + c 2 t σ 2 + c 3 t σ 3 + = ϕ + φ t + k = 2 n c j t σ k + Φ ( x , t ) ,
where σ 1 = 1 ; σ k < σ k + 1 , k n 1 ; c k H 0 1 ( Ω ) H n ( Ω ) ; and Φ ( x , t ) is a function that is sufficiently smooth with respect to both variables x and t. There exists c k 0 for k = 2 , 3 , , n .
We define σ as:
σ = σ 2 , φ = 0 1 , otherwise
which describes the regularity of (2).
Lemma 1
([14,16]). Suppose ξ H 0 1 ( Ω ) H m ( Ω ) ; then, we have
| | ξ π N 1 , 0 ξ | | C N m | | ξ | | .
Lemma 2
([11,19]). Let ξ ( t ) be a continuous function with a fractional derivative of order α; then, we have
I 0 , t α D 0 , t α ξ ( t ) = ξ ( t ) i = 0 n 1 ξ ( k ) t k k ! , n 1 < α n , n N .
Lemma 3
([11]). Suppose ξ ( t ) C k [ 0 , T ] for k N + . Let ϵ , γ > 0 with l k and γ , γ + ϵ [ l 1 , l ] . Then, we have
D 0 , t ϵ D 0 , t γ ξ = D ϵ + γ ξ .
Integrating both sides of (1) with the operator I 0 , t α 1 and combining Lemmas 2 and 3, we obtain
ξ t + ρ D 0 , t 2 α ξ + I 0 , t α 1 ξ = I 0 , t α 1 Δ ξ + φ + ρ [ D 0 , t 2 α ξ ] t = 0 + F ( x , t ) ,
where F ( x , t ) = I 0 , t α 1 f ( x , t ) . Under the assumption of (2), ρ [ D 0 , t 2 α ξ ] t = 0 = 0 .

3. Fully Discrete Scheme

Let τ be a temporal step size and t n = n τ ( 0 n M ) , M = [ 1 / τ ] . ξ k ξ ( t k ) = ξ ( k τ ) . For the discretization of fractional operators ( η ( 0 , 1 ) ) and the first-order derivative, we utilize the θ schemes as follows [11,12]:
D 0 , t η ξ ( t n θ ) = D τ , η n , θ u + E n θ ( 1 ) = τ η k = 0 n ω n k ( η ) ( ξ k ξ 0 ) + E n θ ( 1 ) , I 0 , t η ξ ( t n θ ) = I τ , η n , θ u + E N θ ( 2 ) = τ η k = 0 n ω n k ( η ) ( ξ k ξ 0 ) + I 0 , t n θ ( η ) + E n θ ( 2 ) , ξ t ( t n θ ) = ξ τ , θ n + E n θ ( 3 ) = ξ 1 ξ 0 τ + E 1 θ ( 1 ) , n = 1 3 2 θ 2 τ ξ n 2 2 θ τ ξ n 1 + 1 2 θ 2 τ ξ n 2 + E n θ ( 3 ) , n 2
where E n θ ( 1 ) = O ( t n θ σ η 2 τ 2 ) , E n θ ( 2 ) = O ( t n θ σ + η 2 τ 2 ) , E n θ ( 3 ) = O ( t n θ σ ¯ 3 τ 2 ) ,   σ ¯ = min { σ 2 , σ 3 , } . The following expression captures the relationship between the generating function ω ( ξ , δ ) and its expansion coefficients ω k ( δ ) :
ω ( ξ , δ ) = k = 0 ω k ( δ ) ξ k = ( 1 ξ ) δ 1 ( δ 2 θ ) ( 1 ξ ) , δ ( 1 , 0 ) ( 0 , 1 ) ,
where θ ( δ 1 2 , 1 ] , and the choice of θ does not affect the convergence rate. When θ = α 2 , it simplifies to a fractional Crank–Nicolson scheme [26]. We apply the following formula to determine expansion coefficients ω k ( δ ) :
ω k ( δ ) = 2 / [ 2 ( 1 + θ ) δ ] , k = 0 4 V 1 1 / [ 2 ( 1 + θ ) δ ] 2 , k = 1 ( V k 1 ω k 1 ( δ ) + V k 2 ω k 2 ( δ ) ) / ( 1 + θ δ / 2 ) / k , k 2
where
V k 1 = δ 2 2 ( θ + k + 1 2 ) δ + k θ + k 1 , V k 2 = δ 2 2 + ( θ + k 1 2 ) δ + ( 1 k ) θ .
The semi-discrete scheme of (7) is obtained in the temporal direction utilizing (8) as follows:
ξ τ , θ n + ρ D τ , 2 α n , θ ξ + I τ , α 1 n , θ ξ = I τ , α 1 n , θ Δ ξ + φ + F n θ + E n θ ,
where F n θ = F ( x , t n θ ) , and E n θ is
E n θ = O ( t n θ σ + α 4 τ 2 ) + O ( t n θ σ ˜ 3 τ 2 ) .
The Legendre spectral method is applied for the discretization in the spatial direction and used to find Z P N 0 ( Ω ) for ζ P N 0 ( Ω ) , such that
( Z τ , θ n , ζ ) + ( ρ D τ , 2 α n , θ Z , ζ ) + ( I τ , α 1 n , θ Z , ζ ) = ( I τ , α 1 n , θ Δ Z , ζ ) + ( φ , ζ ) + ( F n θ , ζ ) , with Z 0 = π N 1 , 0 ξ 0 .
We see from the truncation errors in (8) that if σ < 3 , then the convergence order in the temporal direction is lower than O ( τ 2 ) . Generally, the solutions of FKGEs have weak regularity. To improve the convergence rate, correction terms are added to the approximation formulas as follows [17,27,28]:
D 0 , t δ ξ ( t n θ ) D τ , δ n , θ ξ + τ δ j = 1 m w n , j ( δ ) ( ξ j ξ 0 ) , I 0 , t δ ξ ( t n θ ) I τ , δ n , θ ξ + τ δ j = 1 m w n , j ( δ ) ( ξ j ξ 0 ) , ξ t ( t n θ ) ξ τ , θ n + τ 1 j = 1 m w n , j ( 1 ) ( ξ j ξ 0 ) ,
where w n , j ( δ ) , w n , j ( δ ) , and w n , j ( 1 ) are starting weights, and they can be derived by solving a linear system of equations. Take an example for calculating w n , j ( δ ) in (13). I 0 , t δ ξ ( t n θ ) = I τ , δ n , θ ξ + τ δ j = 1 m w n , j ( δ ) ( ξ j ξ 0 ) is exact for ξ ( t ) = t σ r ( σ r < 2 δ ) . Then, it can be solved through the following linear system:
j = 1 m w n , j ( δ ) t j σ r = τ δ Γ ( σ r + 1 ) Γ ( σ r + 1 + δ ) t n θ σ r + δ k = 1 n ω n k ( δ ) t k σ r .

4. Stability and Convergence Analysis

Lemma 4
([11]). For any vector ( ξ 1 , . . , ξ M ) R M with M 1 , ω k ( δ ) is defined in (8) ( δ ( 1 , 0 ) ( 0 , 1 ) ) and θ ( δ 1 2 , 1 ] . Thus, we have
k = 1 M i = 1 k ω k i ( δ ) ξ i ξ k 0 .
Lemma 5
([11]). For any vector ( ξ 1 , . . . , ξ M ) R M with M 2 , ξ 0 = 0 and ξ τ , θ j are defined in (8), and we have
j = 1 M ξ j ξ τ , θ j 1 4 τ ( ξ M ) 2 1 2 τ ( ξ 1 ) 2
with θ [ 0 , 1 ] .
Theorem 1.
The scheme in (12) is unconditionally stable, and we have the following estimate:
| | Z M | | C ( | | ϕ | | + | | ϕ | | + | | φ | | + max 0 j M | | F j | | ) .
Proof. 
Z 0 is the proper approximation of ϕ that satisfies | | Z 0 | | | | ϕ | | and | | Z 0 | | | | ϕ | | . Defining Λ n Z n Z 0 and considering (8), we can obtain
Z τ , θ n = Λ τ , θ n , D τ , α n , θ Z = D τ , α n , θ Λ , I τ , α n , θ Z = I τ , α n , θ Λ + I 0 , t n θ α Z 0 , I τ , α n , θ Z = I τ , α n , θ Λ + I 0 , t n θ α Z 0 .
Replacing ζ with Λ n in (12) and using (18), we obtain
( Λ τ , θ n , Λ n ) + ( ρ D τ , 2 α n , θ Λ , Λ n ) + ( I τ , α 1 n , θ Λ , Λ n ) + ( I τ , α 1 n , θ Λ , Λ n ) = ( φ , Λ n ) + ( F n θ , Λ n ) ( I 0 , t n θ α 1 Z 0 , Λ n ) ( I 0 , t n θ α 1 Z 0 , Λ n ) .
By substituting n with j and taking the summation of both sides for j ranging from 1 to M (M 2 ), we can derive
j = 1 M ( Λ τ , θ j , Λ j ) + j = 1 M ( ρ D τ , 2 α j , θ Λ , Λ j ) + j = 1 M ( I τ , α 1 j , θ Λ , Λ j ) + j = 1 M ( I τ , α 1 j , θ Λ , Λ j ) = j = 1 M ( φ , Λ j ) + j = 1 M ( F j θ , Λ j ) j = 1 M ( I 0 , t j θ α 1 Z 0 , Λ j ) j = 1 M ( I 0 , t j θ α 1 Z 0 , Λ j ) .
Combining Lemmas 4 and 5, we derive the following inequality:
j = 1 M ( Λ τ , θ j , Λ j ) 1 4 τ | | Λ M | | 2 1 2 τ | | Λ 1 | | 2 , j = 1 M ( ρ D τ , 2 α j , θ Λ , Λ j ) = τ α 2 0 1 ρ j = 1 M Λ j k = 1 j ω j k ( 2 α ) Λ k d x 0 , j = 1 M ( I τ , α 1 j , θ Λ , Λ j ) = τ α 1 0 1 j = 1 M Λ j k = 1 j ω j k ( 1 α ) Λ k d x 0 , j = 1 M ( I τ , α 1 j , θ Λ , Λ j ) = τ α 1 0 1 j = 1 M Λ j k = 1 j ω j k ( 1 α ) Λ k d x 0 ,
j = 1 M ( φ , Λ j ) 1 2 j = 1 M ( | | φ | | 2 + | | Λ j | | 2 ) = M 2 | | φ | | 2 + 1 2 j = 1 M | | Λ j | | 2 ,
j = 1 M ( F j θ , Λ j ) 1 2 j = 1 M ( | | F j θ | | 2 + | | Λ j | | 2 ) 1 2 j = 1 M | | Λ j | | 2 + C j = 1 M ( | | F j | | 2 + | | F j 1 | | 2 ) 1 2 j = 1 M | | Λ j | | 2 + C j = 0 M | | F j | | 2 ,
j = 1 M ( I 0 , t j θ α 1 Z 0 , Λ j ) = j = 1 M ( I 0 , t j θ α 1 1 ) ( Z 0 , Λ j ) 1 Γ ( α ) j = 1 M | ( Z 0 , Λ j ) | M 2 Γ ( α ) | | Z 0 | | 2 + 1 2 Γ ( α ) j = 1 M | | Λ j | | 2 M 2 Γ ( α ) | | ϕ | | 2 + 1 2 Γ ( α ) j = 1 M | | Λ j | | 2 .
Let Δ N be the operator from P N 0 into P N 0 , such that
( Δ N Ψ , υ ) = ( Ψ , υ ) , Ψ , υ P N 0 .
For a properly defined Z 0 , it holds that | | Δ N Z 0 | | | | Δ ϕ | | ; thus, we have the following inequality:
j = 1 M ( I 0 , t j θ α 1 Z 0 , Λ j ) = j = 1 M t j θ α 1 Γ ( α ) ( Δ N Z 0 , Λ j ) 1 Γ ( α ) j = 1 M ( Δ N Z 0 , Λ j ) M 2 Γ ( α ) | | Δ N Z 0 | | 2 + 1 2 Γ ( α ) j = 1 M | | Λ j | | 2 M 2 Γ ( α ) | | Δ ϕ | | 2 + 1 2 Γ ( α ) j = 1 M | | Λ j | | 2 .
Combining (20)–(26) and ignoring the non-negative terms, we obtain
| | Λ M | | 2 2 | | Λ 1 | | 2 + 4 τ 1 + 1 Γ ( α ) j = 1 M | | Λ j | | 2 + C t M | | ϕ | | 2 + 2 t M Γ ( α ) | | Δ ϕ | | 2 + 2 t M | | φ | | 2 + C τ j = 0 M | | F j | | 2 .
For Λ 1 , let n = 1 and θ = 1 2 in (20); then, we obtain
τ 1 ( Λ 1 Λ 0 , Λ 1 ) + ( ρ τ α 2 ω 0 ( 2 α ) Λ 1 , Λ 1 ) + ( τ α 1 ω 0 ( 1 α ) Λ 1 , Λ 1 ) + ( τ α 1 ω 0 ( 1 α ) Λ 1 , Λ 1 ) = ( φ , Λ 1 ) + ( F 1 2 , Λ 1 ) t 1 2 α 1 Γ ( α ) ( Z 0 , Λ 1 ) + t 1 2 α 1 Γ ( α ) ( Δ N Z 0 , Λ 1 ) .
Similarly, for n = 1 , we have the following inequality:
1 τ 1 1 Γ ( α ) | | Λ 1 | | 2 1 2 | | φ | | 2 + 1 2 Γ ( α ) | | ϕ | | 2 + 1 2 Γ ( α ) | | Δ ϕ | | 2 + C ( | | F 0 | | 2 + | | F 1 | | 2 ) .
So, if τ 1 1 + 1 Γ ( α ) , we can derive
| | Λ 1 | | 2 C ( | | ϕ | | 2 + | | Δ ϕ | | 2 + | | φ | | 2 + τ | | F 0 | | 2 + τ | | F 1 | | 2 ) .
By employing Grönwall’s inequality, we can deduce
| | Λ M | | 2 C ( | | ϕ | | 2 + | | Δ ϕ | | 2 + | | φ | | 2 + τ j = 0 M | | F j | | 2 ) ,
where C represents a constant that does not depend on the variables n, τ , and N.
Finally, using the triangular inequality | | Z M | | | | Λ M | | + | | Z 0 | | , we derive Theorem 1. □
Next, we discuss the convergence of (12).
Theorem 2.
Suppose that ξ and Z are solutions of (1) and (12), respectively, where ξ H 1 ( [ 0 , 1 ] ) × ( H m ( Ω ) × H 0 1 ( Ω ) ) , m > 1 , ξ 0 = π N 1 , 0 ξ 0 . Then, for a small enough τ, we have the following estimate:
| | Z n ξ n | | C ˜ τ 2 + C τ σ ˜ 1 2 + C τ σ + α 3 2 + C N m .
Proof. 
Defining ξ n Z n = ( ξ n π N 1 , 0 ξ n ) + ( π N 1 , 0 ξ n Z n ) χ n + r n and noting that χ 0 = r 0 = 0 , we integrate both sides of (7) with ζ P N 0 to obtain
( ξ τ , θ n , ζ ) + ( ρ D τ , 2 α n , θ ξ , ζ ) + ( I τ , α 1 n , θ ξ , ζ ) + ( I τ , α 1 n , θ ξ , ζ ) = ( φ , ζ ) + ( F n θ , ζ ) + ( E n θ , ζ ) .
Subtracting (12) from (32) and setting ζ to r n , we substitute n with j and sum j from 1 to n ( n 2 ):
j = 1 n ( r τ , θ j , r j ) + j = 1 n ( ρ D τ , 2 α j , θ r , r j ) + j = 1 n ( I τ , α 1 j , θ r , r j ) + j = 1 n ( I τ , α 1 j , θ r , r j ) = j = 1 n ( χ τ , θ j , r j ) j = 1 n ( ρ D τ , 2 α j , θ χ , r j ) j = 1 n ( I τ , α 1 j , θ χ , r j ) + j = 1 n ( E j θ , r j ) .
Utilizing Lemmas 4 and 5, we obtain the following inequalities:
j = 1 n ( r j , r j ) 1 4 τ | | r n | | 2 1 2 τ | | r 1 | | 2 , n 2 j = 1 n ( ρ D τ , 2 α j , θ r , r j ) 0 , j = 1 n ( I τ , α 1 j , θ r , r j ) 0 , n 1 j = 1 n ( I τ , α 1 j , θ r , r j ) 0 . n 1
Combining this with (2), we derive
χ ( t ) = ( ϕ Π N 1 , 0 ϕ ) + ( φ Π N 1 , 0 φ ) t + j = 2 n ( c j Π N 1 , 0 c j ) t σ j + ( Φ Π N 1 , 0 Φ ) .
Thus, we know | | χ t | | + | | ρ D 0 , t 2 α χ | | + | | I 0 , t α 1 χ | | C N m according to (4). Moreover, we have
χ τ , θ n χ t ( t n θ ) = O ( t n θ σ ˜ 3 τ 2 ) , D τ , 2 α n , θ χ D 0 , t 2 α χ ( t n θ ) = O ( t n θ σ + α 4 τ 2 ) , I τ , α 1 n , θ χ I 0 , t α 1 χ t n θ = O ( t n θ σ + α 3 τ 2 ) .
Taking into account the fact that
τ j = 1 n t j θ k = O ( τ 1 + s ) . k < 1 O ( log n ) , k = 1 O ( 1 ) , k > 1
and combining (36) and (37), we obtain
τ j = 1 n | | χ τ , θ j χ t ( t j θ ) | | 2 E ˜ n θ ( 3 ) C τ 5 j = 1 n t j θ 2 σ ¯ 6 = O ( τ 2 σ ¯ 1 ) . σ ¯ < 2.5 O ( τ 4 log n ) , σ ¯ = 2.5 O ( τ 4 ) , σ ¯ > 2.5
τ j = 1 n | | D τ , 2 α j , θ χ D 0 , t 2 α χ ( t j θ ) | | 2 E ˜ n θ ( 1 ) C τ 5 j = 1 n t j θ 2 σ + 2 α 8 = O ( τ 2 σ + 2 α 3 ) , σ < α + 3.5 O ( τ 4 log n ) , σ = α + 3.5 O ( τ 4 ) , σ > α + 3.5
τ j = 1 n | | I τ , α 1 j , θ χ I 0 , t α 1 χ ( t j θ ) | | 2 E ˜ n θ ( 2 ) C τ 5 j = 1 n t j θ 2 σ + 2 α 6 = O ( τ 2 σ + 2 α 1 ) , σ < α + 2.5 O ( τ 4 log n ) , σ = α + 2.5 O ( τ 4 ) , σ > α + 2.5
By multiplying both sides of Equation (33) by τ , we can obtain
τ j = 1 n ( ρ D τ , 2 α j , θ χ , r j ) C τ j = 1 n | | D τ , 2 α j , θ χ | | 2 + τ 2 j = 1 n | | r j | | 2 τ 2 j = 1 n | | r j | | 2 + C τ j = 1 n ( | | D τ , 2 α j , θ χ D 0 , t 2 α χ ( t j θ ) | | 2 + | | D 0 , t 2 α χ ( t j θ ) | | 2 ) E ˜ n θ ( 1 ) + C N 2 m + τ 2 j = 1 n | | r j | | 2 ,
τ j = 1 n ( I τ , α 1 j , θ χ , r j ) τ 2 j = 1 n | | I τ , α 1 j , θ χ | | 2 + τ 2 j = 1 n | | r j | | 2 τ j = 1 n ( | | I τ , α 1 j , θ χ I 0 , t α 1 χ ( t j θ ) | | 2 + | | I 0 , t α 1 χ ( t j θ ) | | 2 ) + τ 2 j = 1 n | | r j | | 2 E ˜ n θ ( 2 ) + C N 2 m + τ 2 j = 1 n | | r j | | 2 ,
τ j = 1 n ( χ τ , θ j , r j ) τ 2 j = 1 n | | χ τ , θ j | | 2 + τ 2 j = 1 n | | r j | | 2 τ j = 1 n ( | | χ τ , θ j χ t ( t j θ ) | | 2 + | | χ t ( t j θ ) | | 2 ) + τ 2 j = 1 n | | r j | | 2 E ˜ n θ ( 3 ) + C N 2 m + τ 2 j = 1 n | | r j | | 2 ,
τ j = 1 n ( E j θ , r j ) E ˜ n θ ( 1 ) + E ˜ n θ ( 3 ) + τ 2 j = 1 n | | r j | | 2 .
Combining (34) and (41)–(44), for n 2 , we obtain
1 4 | | r n | | 2 1 2 | | r 1 | | 2 + E ˜ n θ ( 1 ) + E ˜ n θ ( 2 ) + E ˜ n θ ( 3 ) + 2 τ j = 1 n | | r j | | 2 + C N 2 m .
Similarly, let n = 1 and θ = 1 2 ; thus, we can easily obtain the following inequality:
| | r 1 | | 2 E ˜ 1 2 ( 1 ) + E ˜ 1 2 ( 2 ) + E ˜ 1 2 ( 3 ) + C N 2 m .
We derive the following inequality using Grönwall’s inequality:
| | r n | | 2 C ˜ τ 4 + C τ 2 σ ¯ 1 + C τ 2 σ + 2 α 3 + C N 2 m ,
where C is independent of n and τ . C ˜ is defined by
C ˜ = O ( log n ) , σ ¯ = 2.5 , and σ = α + 3.5 O ( 1 ) . else
Finally, we can prove Theorem 2 by applying the triangle inequality and utilizing Equation (4). □

5. Fast Algorithm

The expansion coefficients ω n ( δ ) ( δ ( 1 , 0 ) ( 0 , 1 ) ) in (9) can be represented as integrals by [11,29,30]
τ δ n = 0 ω n ( δ ) ξ n = τ δ ω ( ξ , δ ) = F δ 1 ξ τ κ ( ξ , θ ) = κ ( ξ , θ ) 2 π i c 1 ξ τ λ 1 F δ ( λ ) d λ ,
where
κ ( ξ , θ ) = 1 1 ( δ 2 θ ) ( 1 ξ ) .
If we define
n = 0 e n ( κ ) ( z ) ξ n κ ( ξ , θ ) ( 1 ξ z ) 1 ,
then
ω n ( δ ) = τ 1 + δ 2 π i c e n ( κ ) ( τ λ ) F δ ( λ ) d λ ,
where F δ ( λ ) = λ δ . From (51), we can derive
e n ( κ ) ( z ) = ( 1 z ) n 1 δ + 2 θ 2 δ + 2 θ n + 1 / 1 + 1 2 ( δ + 2 θ ) z ,
and so we can rewrite e n ( κ ) as
e n ( κ ) ( z ) = r 1 ( z ) n q 1 ( z ) r 2 ( z ) n q 2 ( z ) = e n ( 1 ) ( z ) e n ( 2 ) ( z ) ,
where r 1 ( z ) = ( 1 z ) 1 , r 2 ( z ) = δ + 2 θ 2 δ + 2 θ , and
q 1 ( z ) = ( 1 z ) 1 1 + 1 2 ( δ + 2 θ ) z 1 , q 2 ( z ) = δ + 2 θ 2 δ + 2 θ 1 + 1 2 ( δ + 2 θ ) z 1 ,
The key to the fast algorithm is that we divide the time domain into a series of fast growing intervals,
I l = [ B l 1 τ , ( 2 B l 2 ) τ ] ,
where B is a basis chosen satisfying B N + , B > 1 , and I l is overlapping.
In Equation (49), we select a Talbot contour Γ as our chosen path of integration [31]. Then, we can obtain
ω n ( δ ) τ δ + 1 j = K K w j ( l ) [ e n ( 1 ) ( τ λ j ( l ) ) e n ( 2 ) ( τ λ j ( l ) ) ] F δ ( λ j ( l ) ) , n τ I l ,
where w j ( l ) and λ j ( l ) are
w j ( l ) = i 2 ( K + 1 ) ϱ ( ϑ j ) , λ j ( l ) = ϱ ( ϑ j ) , ϑ j = j π K + 1 .
To demonstrate the effectiveness of the approximation, we subtract (57) from (9) and obtain the absolute value, which represents the absolute approximation error. Setting B = 5 , I l ( l = 1 , 2 , 3 , 4 , 5 ) , and K = 10 and 30, we plot the absolute approximation error in Figure 1.
Figure 1 shows that the approximate effect of the first few weights is poor, so in the calculation process, we calculate the first few weights by (9) and find that the approximate effect of K = 30 is generally better than that of K = 10 , which will be verified in Example 4. Referring to [32], we determine L and obtain n = b 0 > b 1 > > b L 1 > b L = 0 .
Now, we rewrite (8) as
D τ , η n , θ ξ = τ η ω 0 ( η ) ( ξ n ξ 0 ) + τ η l = 1 L k = b l b l 1 1 ω n k ( η ) ( ξ k ξ 0 ) , I τ , η n , θ ξ = τ η ω 0 ( η ) ( ξ n ξ 0 ) + τ η l = 1 L k = b l b l 1 1 ω n k ( η ) ( ξ k ξ 0 ) .
We define u n , δ ( l ) as
u n , δ ( l ) = τ δ ω 0 ( δ ) ( ξ n ξ 0 ) , l = 0 τ δ k = b l b l 1 1 ω n k ( δ ) ( ξ k ξ 0 ) . l = 1 , 2 , , L
Then, utilizing (57), (60), and the definitions for e n ( i ) ( z ) ( i = 1 , 2 ) , we obtain (for l > 0 )
u n , δ ( l ) j = K K w j ( l ) τ k = b l b l 1 1 e n k ( κ ) ( τ λ j ( l ) ) ( ξ k ξ 0 ) F δ ( λ j ( l ) ) = j = K K w j ( l ) τ k = b l b l 1 1 e n k ( 1 ) ( τ λ j ( l ) ) ( ξ k ξ 0 ) k = b l b l 1 1 e n k ( 2 ) ( τ λ j ( l ) ) ( ξ k ξ 0 ) F δ ( λ j ( l ) ) = j = K K w j ( l ) r 1 n ( b l 1 1 ) ( τ λ j ( l ) ) v j ( 1 ) r 2 n ( b l 1 1 ) ( τ λ j ( l ) ) v j ( 2 ) F δ ( λ j ( l ) )
where v j ( i ) ( i = 1 , 2 ) is as follows
v j ( i ) = v j ( i ) ( b l , b l 1 , λ j ( l ) ) = τ k = b l b l 1 1 e ( b l 1 1 ) k ( i ) ( τ λ j ( l ) ) ( ξ k ξ 0 ) .
We notice that v j ( i ) ( b l , b l 1 , λ j ( l ) ) has a recursive structure, which can be utilized to enhance the computation speed:
v j ( i ) ( b l , b s , λ j ( l ) ) = τ k = b l b m 1 e ( b s 1 ) k ( i ) ( τ λ j ( l ) ) ( u k u 0 ) + v j ( i ) ( b m , b s , λ j ( l ) ) = r i ( τ λ j ( l ) ) b s b m v j ( i ) ( b l , b m , λ j ( l ) ) + v j ( i ) ( b m , b s , λ j ( l ) ) .
The first few weights are not described well by (57) (refer to Figure 1). Thus, for l = 0 , 1 , 2 , , k , we calculate the weights according to (9), and for l = k + 1 , , L , we calculate the weights according to (57). Combining (59)–(61), we can obtain
D τ , η n , θ ξ = l = 0 k u n , η ( l ) + l = k + 1 L u n , η ( l ) l = 0 k u n , η ( l ) + l = k + 1 L j = K K w j ( l ) r 1 n ( b l 1 1 ) ( τ λ j ( l ) ) v j ( 1 ) r 2 n ( b l 1 1 ) ( τ λ j ( l ) ) v j ( 2 ) F η ( λ j ( l ) ) . I τ , η n , θ ξ = l = 0 k u n , η ( l ) + l = k + 1 L u n , η ( l ) l = 0 k u n , η ( l ) + l = k + 1 L j = K K w j ( l ) r 1 n ( b l 1 1 ) ( τ λ j ( l ) ) v j ( 1 ) r 2 n ( b l 1 1 ) ( τ λ j ( l ) ) v j ( 2 ) F η ( λ j ( l ) ) .
Below are listed the steps for implementing the fast algorithm:
1.
Input parameters B , K , λ j ( l ) , w j ( l ) , ϑ j .
2.
Compute b l and obtain n = b 0 > b 1 > > b L 1 > b L = 0 .
3.
For l = 0 , 1 , 2 , , k , compute the weights using (9), and calculate the weights using (57) for l = k + 1 , , L .
4.
From step 3, compute (64).

6. Numerical Examples

In this section, we provide four examples of solving an FKGE utilizing our proposed scheme, and the results verify our theoretical analysis and the effectiveness of our method. The basis function was chosen as ψ ( x ) = L j ( x ) L j + 2 ( x ) , j = 0 , 1 , , N for v N k P N 0 , v N k = j = 0 N 2 v ^ N k ψ j ( x ) , where v ^ N k is the frequency coefficient. The codes were developed in MATLAB 2022a and executed on a Windows 10 operating system. The computer used for running these codes had a processor speed of 2.60 GHz and 8 GB of RAM.
Example 1.
Let ρ = 1 in (1). We considered the following fractional dissipative Klein–Gordon equation with homogeneous initial condition ϕ ( x ) = 0 , φ ( x ) = 0 :
α ξ ( x , t ) t α + ξ ( x , t ) t + ξ ( x , t ) = 2 ξ ( x , t ) x 2 + f ( x , t ) .
Assuming that the exact solution of Equation (65) is ξ ( x , t ) = t 4 sin ( π x ) , the corresponding forcing term is given by
f ( x , t ) = Γ ( 5 ) Γ ( 5 α ) t 4 α + 4 t 3 + ( 1 + π 2 ) t 4 sin ( π x ) .
For N = 100 , the results are presented in Table 1, Table 2 and Table 3. It can be observed that our numerical scheme exhibited second-order convergence accuracy in the temporal direction, which aligned with the theoretical expectations.
To analyze the spatial accuracy, we set τ = 0.001 to eliminate temporal direction errors. In Figure 2, it can be observed that when α = 1.8 and θ = 0.3 , the error exhibited an exponential decrease. This behavior confirmed the spectral accuracy of the method, which in turn confirmed the validity of our theoretical analysis.
Example 2.
Let ρ = 0 in (1). We investigated the fractional linear Klein–Gordon equation with the non-homogeneous initial conditions ϕ ( x ) = sin ( π x ) , φ ( x ) = 0 ,
α ξ ( x , t ) t α + ξ ( x , t ) = 2 ξ ( x , t ) x 2 + f ( x , t ) .
Assuming that the exact solution of Equation (66) is ξ ( x , t ) = ( t 4 + 1 ) sin ( π x ) , the corresponding forcing term is
f ( x , t ) = Γ ( 5 ) Γ ( 5 α ) t 4 α + 1 Γ ( 1 α ) t α + ( t 4 + 1 ) ( 1 + π 2 ) sin ( π x ) .
For N = 100 , the results are illustrated in Table 4, Table 5 and Table 6. Notably, even when considering non-homogeneous initial conditions, it was evident that our numerical scheme remained applicable. The results indicated the adaptability and flexibility of our method.
Example 3.
Let ρ = 1 in (1). The non-smooth solution ξ ( x , t ) = ( t 4 + t min { 2 α , α 1 } ) sin ( π x ) was considered, with the corresponding forcing term
f ( x , t ) = [ Γ ( min { 3 α , α } ) Γ ( min { 3 2 α , 0 } ) t min { 2 2 α , 1 } + Γ ( 5 ) Γ ( 5 α ) t 4 α + 4 t 3 + min { 2 α , α 1 } t min { 1 α , α 2 } + ( t 4 + t min { 2 α , α 1 } ) ( 1 + π 2 ) ] sin ( π x ) .
Assuming N = 100 , it is worth mentioning that due to the weak regularity of the solution, it was not possible to achieve the optimal convergence rate of O ( τ 2 ) . Referring to Table 7, we can observe that the inclusion of correction terms led to an improved convergence rate. This result serves as evidence for the efficiency of our method.
Example 4.
Let ρ = 0 in (1). We utilized the fast algorithm to solve the Equation (66). Assuming that the exact solution of Equation (66) is ξ ( x , t ) = t 4 sin ( π x ) , the corresponding forcing term is
f ( x , t ) = Γ ( 5 ) Γ ( 5 α ) t 4 α + ( 1 + π 2 ) t 4 sin ( π x ) .
We set B = 5 and N = 100 . To simplify the notation, we denoted the approximation of Equation (57) with 2 K + 1 points as Fast K . We had two sets of solutions: Z S , which were obtained using the direct method, and Z F , which was obtained using the fast algorithm. We set θ = 1 α 2 and defined the pointwise error as
e ( α , M ) = max t = t 0 , , t M , x = x 1 , , x N | Z S Z F | .
According to Table 8, it is evident that the fast algorithm significantly accelerated the computation process. Moreover, our approach not only attained exceptional precision, but also effectively reduced the computational cost. For example, for K = 30 , the pointwise error was around 10 15 , which was close to the machine accuracy. Figure 3a displays the exact solutions for M = 1000 , α = 1.8 .  Figure 3b shows the numerical solutions for the given parameters: M = 1000 , α = 1.8, and K = 30 . Furthermore, in order to obtain the error contour plot shown in Figure 4a, we subtracted the corresponding solutions from Figure 3a,b. In Figure 4b, it is evident that the computational complexity of the fast algorithm was O ( M log M ) , while the direct method had a computational complexity of O ( M 2 ) . This result in Figure 4 aligned with the theoretical expectations and confirmed that the algorithms’ performances matched the expected efficiencies.

7. Conclusions

In this study, we developed a stable and efficient numerical method to solve an FKGE. A stability analysis and the convergence of the discrete scheme were provided in our method. Considering the weak regularity of the solutions, we improved the convergence order by incorporating correction terms into our approach. To optimize the computational complexity, we implemented a fast algorithm, which significantly reduced the runtime required for solving an FKGE. This allowed for quicker computations without sacrificing accuracy. We note the method can be extended to higher-dimensional cases.

Author Contributions

Methodology, Y.L. (Yanqin Liu); Formal analysis, Y.S.; Data curation, Y.X.; Writing—original draft, Y.L. (Yanan Li). All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Natural science Foundation of Shandong Province (ZR2023MA062), the National Science Foundation of China (62103079), and the Open Research Fund Program of the Data Recovery Key Laboratory of Sichuan Province (DRN19020).

Data Availability Statement

All data reported are obtained by the numerical schemes designed in this paper.

Acknowledgments

We appreciated the support by the Natural science Foundation of Shandong Province (ZR2023MA062), the National Science Foundation of China (62103079), and the Open Research Fund Program of the Data Recovery Key Laboratory of Sichuan Province (DRN19020).

Conflicts of Interest

The authors declare that there were no conflict of interest regarding the publication of this paper.

References

  1. Akgul, A.; Partohaghighi, M. New fractional modelling and control analysis of the circumscribed self-excited spherical strange attractor. Chaos Solitons Fractals 2022, 158, 111956. [Google Scholar] [CrossRef]
  2. Nabi, K.N.; Kumar, P.; Erturk, V.S. Projections and fractional dynamics of covid-19 with optimal control strategies. Chaos Solitons Fractals 2021, 145, 110689. [Google Scholar] [CrossRef] [PubMed]
  3. de Sousa, F.B.; Babu, P.K.V.; Radmacher, M.; Oliveira, C.L.N.; de Sousa, J.S. Multiple power-law viscoelastic relaxation in time and frequency domains with atomic force microscopy. J. Phys. D Appl. Phys. 2021, 54, 335401. [Google Scholar] [CrossRef]
  4. Chen, Y.W.; Wen, G.G.; Rahmani, A.; Huang, T.W. Heterogeneous multiagent systems with different fractional order: An experience-based fusion controller. IEEE Trans. Circuits Syst. II Express Briefs 2022, 69, 3520–3524. [Google Scholar] [CrossRef]
  5. Dubey, V.P.; Kumar, D.; Singh, J.; Alshehri, A.M.; Dubey, S. Analysis of local fractional klein-gordon equations arising in relativistic fractal quantum mechanics. Waves Random Complex Media 2022, 32, 1–21. [Google Scholar] [CrossRef]
  6. Cheng, W.; Chen, R.P.; Yin, Z.Y.; Wang, H.L.; Meng, F.Y. A fractional-order two-surface plasticity model for over-consolidated clays and its application to deep gallery excavation. Comput. Geotech. 2023, 159, 105494. [Google Scholar] [CrossRef]
  7. Malik, S.A.; Mir, A.H. Fpga realization of fractional order neuron. Appl. Math. Model. 2020, 81, 372–385. [Google Scholar] [CrossRef]
  8. Gao, Y.F.; Yin, D.S.; Tang, M.; Zhao, B. A three-dimensional fractional visco-hyperelastic model for soft materials. J. Mech. Behav. Biomed. 2023, 137, 105564. [Google Scholar] [CrossRef]
  9. Feng, L.B.; Liu, F.W.; Turner, I.; Zheng, L.C. Novel numerical analysis of multi-term time fractional viscoelastic non-newtonian fluid models for simulating unsteady mhd couette flow of a generalized Oldroyd-B fluid. Fract. Calc. Appl. Anal. 2018, 21, 1073–1103. [Google Scholar] [CrossRef]
  10. Rekha, J.; Suma, S.P.; Shilpa, B.; Khan, U.; Hussain, S.M.; Zaibk, A.; Galal, A.M. Solute transport exponentially varies with time in an unsaturated zone using finite element and finite difference method. Int. J. Mod. Phys. B 2023, 37, 2350089. [Google Scholar] [CrossRef]
  11. Yin, B.L.; Liu, Y.; Li, H.; Zeng, F.H. A class of efficient time-stepping methods for multi-term time-fractional reaction-diffusion-wave equations. Appl. Numer. Math. 2021, 165, 56–82. [Google Scholar] [CrossRef]
  12. Liu, Y.; Du, Y.W.; Li, H.; Liu, F.W.; Wang, Y.J. Some second-order schemes combined with finite element method for nonlinear fractional cable equation. Numer. Algorithms 2019, 80, 533–555. [Google Scholar] [CrossRef]
  13. Yin, B.L.; Liu, Y.; Li, H.; Zhang, Z.M. Efficient shifted fractional trapezoidal rule for subdiffusion problems with nonsmooth solutions on uniform meshes. BIT Numer. Math. 2022, 62, 631–666. [Google Scholar] [CrossRef]
  14. Saffarian, M.; Mohebbi, A. Finite difference spectral element method for one and two dimensional Riesz space fractional advection dispersion equations. Math. Comput. Simulat. 2022, 193, 348–370. [Google Scholar] [CrossRef]
  15. Zheng, R.M.; Jiang, X.Y. Spectral methods for the time-fractional Navier-Stokes equation. Appl. Math. Lett. 2019, 91, 194–200. [Google Scholar] [CrossRef]
  16. Liu, Z.T.; Lu, S.J.; Liu, F.W. Fully discrete spectral methods for solving time fractional nonlinear sine-gordon equation with smooth and non-smooth solutions. Appl. Math. Comput. 2018, 333, 213–224. [Google Scholar] [CrossRef]
  17. Zeng, F.H.; Zhang, Z.Q.; Karniadakis, G.E. Second-order numerical methods for multi-term fractional differential equations: Smooth and non-smooth solutions. Comput. Methods Appl. Mech. Eng. 2017, 327, 478–502. [Google Scholar] [CrossRef]
  18. Dehghan, M.; Abbaszadeh, M. Spectral element technique for nonlinear fractional evolution equation, stability and convergence analysis. Appl. Numer. Math. 2017, 119, 51–66. [Google Scholar] [CrossRef]
  19. Hashemizadeh, E.; Ebrahimzadeh, A. An efficient numerical scheme to solve fractional diffusion-wave and fractional klein-gordon equations in fluid mechanics. Physica A 2018, 503, 1189–1203. [Google Scholar] [CrossRef]
  20. Zhang, X.; Yang, B.; Wei, C.Z.; Luo, M.K. Quantization method and Schrodinger equation of fractional time and their weak effects on Hamiltonian: Phase transitions of energy and wave functions. Commun. Nonlinear Sci. 2021, 93, 105531. [Google Scholar] [CrossRef]
  21. Dartora, C.A.; Zanella, F.; Cabrera, G.G. Emergence of fractional quantum mechanics in condensed matter physics. Phys. Lett. A 2021, 415, 127643. [Google Scholar] [CrossRef]
  22. Ghosh, U.; Banerjee, J.; Sarkar, S.; Das, S. Fractional Klein-Gordon equation composed of Jumarie fractional derivative and its interpretation by a smoothness parameter. Pramana 2018, 90, 74. [Google Scholar] [CrossRef]
  23. Vong, S.; Wang, Z.B. A high-order compact scheme for the nonlinear fractional klein-gordon equation. Numer. Methods Partial Differ. Equ. 2015, 31, 706–722. [Google Scholar] [CrossRef]
  24. Khader, M.M.; Kumar, S. An accurate numerical method for solving the linear fractional klein-gordon equation. Math. Methods Appl. Sci. 2014, 37, 2972–2979. [Google Scholar] [CrossRef]
  25. Saffarian, M.; Mohebbi, A. Numerical solution of two and three dimensional time fractional damped nonlinear klein-gordon equation using adi spectral element method. Appl. Math. Comput. 2021, 405, 126182. [Google Scholar] [CrossRef]
  26. Jin, B.; Li, B.; Zhou, Z. An analysis of the Crank-Nicolson method for subdiffusion. IMA J. Numer. Anal. 2018, 38, 518–541. [Google Scholar] [CrossRef]
  27. Zhang, H.; Jiang, X.Y.; Zeng, F.H. An H-1 convergence of the spectral method for the time-fractional non-linear diffusion equations. Adv. Comput. Math. 2021, 47, 63. [Google Scholar] [CrossRef]
  28. Zhang, H.; Zeng, F.H.; Jiang, X.Y.; Karniadakis, G.E. Convergence analysis of the time-stepping numerical methods for time-fractional nonlinear subdiffusion equations. Fract. Calc. Appl. Anal. 2022, 25, 453–487. [Google Scholar] [CrossRef]
  29. Zeng, F.H.; Turner, I.; Burrage, K. A stable fast time-stepping method for fractional integral and derivative operators. J. Sci. Comput. 2018, 77, 283–307. [Google Scholar] [CrossRef]
  30. Huang, Y.X.; Li, Q.G.; Li, R.X.; Zeng, F.H.; Guo, L. A unified fast memory-saving time-stepping method for fractional operators and its applications. Numer. Math. Theory Methods Appl. 2022, 5, 679–714. [Google Scholar] [CrossRef]
  31. Weideman, J. Optimizing Talbot’s contours for the inversion of the Laplace transform. SIAM J. Numer. Anal. 2006, 44, 2342–2362. [Google Scholar] [CrossRef]
  32. Schädle, A.; López-Fernández, M.; Lubich, C. Fast and oblivious convolution quadrature. SIAM J. Sci. Comput. 2006, 28, 421–438. [Google Scholar] [CrossRef]
Figure 1. (a) Absolute error for ω n ( 0.3 ) with τ = 10 3 , (b) absolute error for ω n ( 0.3 ) with τ = 10 3 .
Figure 1. (a) Absolute error for ω n ( 0.3 ) with τ = 10 3 , (b) absolute error for ω n ( 0.3 ) with τ = 10 3 .
Fractalfract 07 00635 g001
Figure 2. α = 1.8 ,   θ = 0.8 for Example 1 at T = 1 .
Figure 2. α = 1.8 ,   θ = 0.8 for Example 1 at T = 1 .
Fractalfract 07 00635 g002
Figure 3. (a) Exact solution, (b) numerical solution.
Figure 3. (a) Exact solution, (b) numerical solution.
Fractalfract 07 00635 g003
Figure 4. (a) Error contour, (b) computational complexity.
Figure 4. (a) Error contour, (b) computational complexity.
Fractalfract 07 00635 g004
Table 1. The L 2 error and L error at α = 1.5 , θ = 0.3 , and T = 1 .
Table 1. The L 2 error and L error at α = 1.5 , θ = 0.3 , and T = 1 .
τ L 2 ErrorRate L ErrorRateTime (s)
2 6 5.044987 × 10 3 8.532442 × 10 4 0.306217
2 7 1.280432 × 10 3 1.982.165557 × 10 4 1.980.766249
2 8 3.225111 × 10 4 1.995.454538 × 10 5 1.993.059746
2 9 8.092851 × 10 5 1.991.368721 × 10 5 1.9915.242314
2 10 2.026974 × 10 5 2.003.428163 × 10 6 2.0078.373508
Table 2. Temporal convergence rates at α = 1.2 , θ = 0.5 , and T = 1 .
Table 2. Temporal convergence rates at α = 1.2 , θ = 0.5 , and T = 1 .
τ L 2 ErrorRate L ErrorRateTime (s)
2 6 6.613273 × 10 3 1.118484 × 10 3 0.279892
2 7 1.674942 × 10 3 1.982.832782 × 10 4 1.980.749574
2 8 4.214538 × 10 4 1.997.127927 × 10 5 1.993.058692
2 9 1.057042 × 10 4 2.001.787745 × 10 5 2.0014.168706
2 10 2.646869 × 10 5 2.004.476574 × 10 6 2.0078.849718
Table 3. The L 2 error and L error at α = 1.8 , θ = 0.8 , and T = 1 .
Table 3. The L 2 error and L error at α = 1.8 , θ = 0.8 , and T = 1 .
τ L 2 ErrorRate L ErrorRateTime (s)
2 6 1.584784 × 10 2 2.680300 × 10 3 0.267496
2 7 4.066127 × 10 3 1.966.876924 × 10 4 1.960.729302
2 8 1.029638 × 10 3 1.981.741398 × 10 4 1.983.289171
2 9 2.590520 × 10 4 1.994.381272 × 10 5 1.9914.103777
2 10 6.496853 × 10 5 2.001.098794 × 10 5 2.0077.813919
Table 4. The L 2 error and L error at α = 1.5 , θ = 0.9 , and T = 1 .
Table 4. The L 2 error and L error at α = 1.5 , θ = 0.9 , and T = 1 .
τ L 2 ErrorRate L ErrorRateTime (s)
2 6 1.637673 × 10 2 2.769750 × 10 3 0.271781
2 7 4.181892 × 10 3 1.977.072714 × 10 4 1.970.695502
2 8 1.056485 × 10 3 1.981.786803 × 10 4 1.982.756914
2 9 2.655010 × 10 4 1.994.490342 × 10 5 1.9912.633774
2 10 6.654790 × 10 5 2.001.125506 × 10 5 2.0059.670061
Table 5. The L 2 error and L error at α = 1.2 , θ = 0.7 , and T = 1 .
Table 5. The L 2 error and L error at α = 1.2 , θ = 0.7 , and T = 1 .
τ L 2 ErrorRate L ErrorRateTime (s)
2 6 1.012134 × 10 2 1.711793 × 10 3 0.275343
2 7 2.568689 × 10 3 1.984.344350 × 10 4 1.980.765448
2 8 6.469977 × 10 4 1.991.094249 × 10 4 1.992.744447
2 9 1.623546 × 10 4 1.992.745857 × 10 5 1.9913.364513
2 10 4.066441 × 10 5 2.006.877456 × 10 6 2.0060.118435
Table 6. The L 2 error and L error at α = 1.8 , θ = 0.3 , and T = 1 .
Table 6. The L 2 error and L error at α = 1.8 , θ = 0.3 , and T = 1 .
τ L 2 ErrorRate L ErrorRateTime (s)
2 6 6.314916 × 10 3 1.068024 × 10 3 0.273913
2 7 1.612247 × 10 3 1.972.726746 × 10 4 1.970.709604
2 8 4.072641 × 10 4 1.996.887941 × 10 5 1.992.833458
2 9 1.023419 × 10 4 1.991.730879 × 10 5 1.9912.073551
2 10 2.565123 × 10 5 2.004.338319 × 10 6 2.0058.882522
Table 7. Temporal convergence rates at T = 1 .
Table 7. Temporal convergence rates at T = 1 .
( α , θ ) τ Direct MethodRateCorrectionRate
(1.2, 0.1) 2 4 1.154038 × 10 3 4.645596 × 10 4
2 5 3.103449 × 10 4 1.891.184401 × 10 4 1.97
2 6 8.260221 × 10 5 1.912.815017 × 10 5 2.07
2 7 2.255211 × 10 5 1.877.023850 × 10 6 2.00
(1.8, 0.3) 2 4 1.538917 × 10 2 1.124338 × 10 2
2 5 4.237714 × 10 3 1.862.942242 × 10 3 1.93
2 6 1.171468 × 10 3 1.857.246667 × 10 4 2.02
2 7 3.333848 × 10 4 1.811.757115 × 10 4 2.04
(1.5, 0) 2 4 1.457736 × 10 3 5.482971 × 10 4
2 5 4.355394 × 10 4 1.741.518084 × 10 4 1.85
2 6 1.323356 × 10 4 1.723.868906 × 10 5 1.97
2 7 4.106669 × 10 5 1.699.639184e × 10 6 2.00
Table 8. Pointwise error with θ = 1 α 2 .
Table 8. Pointwise error with θ = 1 α 2 .
α MDirect MethodFast 10 e ( α , M ) Fast 30 e ( α , M )
1.8 1 × 10 3 56.29 s6.96 s2.11210 × 10 8 16.08 s3.16414 × 10 15
2 × 10 3 307.52 s18.44 s2.22114 × 10 8 42.53 s7.16094 × 10 14
3 × 10 3 909.11 s36.25 s5.83438 × 10 8 84.64 s1.33227 × 10 15
1.5 1 × 10 3 57.41 s6.51 s3.94038 × 10 7 16.55 s5.62052 × 10 16
2 × 10 3 310.38 s18.48 s4.21263 × 10 7 44.76 s2.57572 × 10 14
3 × 10 3 998.17 s37.36 s3.67259 × 10 7 87.23 s1.52101 × 10 14
1.2 1 × 10 3 57.25 s6.94 s2.54602 × 10 7 16.55 s1.85407 × 10 14
2 × 10 3 308.97 s18.45 s5.35331 × 10 7 44.76 s7.86038 × 10 14
3 × 10 3 1014.26 s35.09 s7.14741 × 10 8 83.61 s5.17364 × 10 14
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, Y.; Xu, Y.; Liu, Y.; Shen, Y. A Fast θ Scheme Combined with the Legendre Spectral Method for Solving a Fractional Klein–Gordon Equation. Fractal Fract. 2023, 7, 635. https://doi.org/10.3390/fractalfract7080635

AMA Style

Li Y, Xu Y, Liu Y, Shen Y. A Fast θ Scheme Combined with the Legendre Spectral Method for Solving a Fractional Klein–Gordon Equation. Fractal and Fractional. 2023; 7(8):635. https://doi.org/10.3390/fractalfract7080635

Chicago/Turabian Style

Li, Yanan, Yibin Xu, Yanqin Liu, and Yanfeng Shen. 2023. "A Fast θ Scheme Combined with the Legendre Spectral Method for Solving a Fractional Klein–Gordon Equation" Fractal and Fractional 7, no. 8: 635. https://doi.org/10.3390/fractalfract7080635

APA Style

Li, Y., Xu, Y., Liu, Y., & Shen, Y. (2023). A Fast θ Scheme Combined with the Legendre Spectral Method for Solving a Fractional Klein–Gordon Equation. Fractal and Fractional, 7(8), 635. https://doi.org/10.3390/fractalfract7080635

Article Metrics

Back to TopTop