You are currently viewing a new version of our website. To view the old version click .
Mathematics
  • Article
  • Open Access

2 December 2025

An Explicit Shifted Legendre Petrov–Galerkin Technique for the Time Fractional Cable Problem

and
1
Department of Mathematics, College of Science, Taibah University, Madinah P.O. Box 344, Saudi Arabia
2
Department of Mathematics, Faculty of Education, Ain Shams University, Roxy, Cairo 11341, Egypt
*
Authors to whom correspondence should be addressed.
This article belongs to the Section E: Applied Mathematics

Abstract

This paper focuses on analyzing and implementing a numerical technique using the Petrov–Galerkin technique (PGT) to solve the time fractional cable problem (TFCP). The trial functions are a modified set of shifted Legendre polynomials ( LPs ). An appropriate numerical approach can be used to solve the linear algebraic equations resulting from the application of the PGT. With error bounds, we discuss the truncation estimation and stability in the L 2 norm. We apply some inequalities on the modified set of shifted LPs to this research. Numerical experiments include benchmark issues for which exact solutions are presented to show how efficient and accurate the method is. Comparisons with different techniques in the literature are used to support our examples.

1. Introduction

Fractional differential equations (DEs) appear in a variety of scientific and engineering disciplines. These equations are useful for modeling the electrical properties of real materials and for describing blood flow (see, for example, [1,2]). This paper focuses on solving a type of fractional DEs, namely, the TFCP.
The TFCE [3] is defined as follows:
X t ( ζ , t ) = D t 1 β 1 μ X ζ ζ ( ζ , t ) ν ^ D t 1 β 2 X ( ζ , t ) + f ( ζ , t ) , 0 < β 1 , β 2 < 1 ,
subject to the following conditions:
X ( ζ , 0 ) = X 0 ( ζ ) ,   ζ ( 0 , 1 ) ,
X ( 0 , t ) = X 1 ( t ) ,   X ( 1 , t ) = X 2 ( t ) ,   t ( 0 , 1 ) ,
where non-negative μ , ν ^ are constants; X 0 ( ζ ) , X 1 ( t ) , X 2 ( t ) are given continuous functions; and f ( ζ , t ) is the source term. Also, the symbol D t β represents the operator of Caputo fractional derivative (FDs) of order β . Some researchers have investigated and offered several ways to solve TFCE. In Ref. [4], the authors suggested an efficient hybrid numerical technique to solve two-dimensional TFCEs. In Ref. [5], the author used two numerical methods to solve linear and nonlinear TFCEs. Furthermore, an improved method for the variable-order TFCE was developed in [6].
One of the most well-known numerical techniques [7,8,9] to solve different types of DEs is the use of spectral approaches. These approaches represent the solution as a finite set of basis functions and then transform the DEs to a system of computationally tractable algebraic equations. Collocation, tau, and Galerkin methods are the three primary approaches to these techniques. Many authors have followed these approaches to treat some types of DEs. For instance, developed shifted Chebyshev–Galerkin operational matrix approaches were presented by the authors of [10] for approximating partial boundary value problems of even order. The authors in [11] suggested a collocation technique for beam-type micro- and nanoscale BVP solutions. The tau technique was proposed by the authors in [12] for a bioheat transfer model in fractional framework. For more studies, see [13,14,15,16,17,18].
LPs have important applications in numerical analysis and approximation theory. Numerous papers related to numerical analysis made considerable use of these polynomials; for example, [19,20,21]. Also, many authors used these polynomials in many numerical techniques, for example, the authors in [22] used LPs to treat the two-point interface problems. Additionally, Heydari et al. [23] used LPs of the sixth kind for approximating the nonlinear fractal–fractional optimal control issues. In a porous channel, a numerical approach for handling the heat and mass transfer of a non-Newtonian fluid was also developed by Khan et al. [24] utilizing LPs . Some other contributions regarding LPs can be found in [25,26].
Besides standard polynomial bases, many non-polynomial approximation methods have been presented for solving different types of DEs. For example, the authors in [27] used the non-polynomial spline method to solve linear fractional DEs. In [28], the authors presented a computation and discussion on non-polynomial splines of fractional order to solve the DEs with a Caputo FD. In [29], the authors proposed highly accurate solutions to the time-fractional KdV–Burgers equation employing rational non-polynomial splines. The authors in [30] introduced a numerical approach that combines conformable derivative, finite difference, and non-polynomial spline methods to address the nonlinear inhomogeneous time-fractional Burgers–Huxley equation.
The current article’s primary goals can be summed up in three points as follows:
  • Introducing a novel method to solve the TFCP based on using the PGT along with the modified sets of shifted LPs as basis functions.
  • Employing an appropriate strategy for solving a system resulting from the application of the PGT.
  • Establishing closed relations for some integrals to construct the PGT.
  • Analyzing the error analysis of the truncation error in L w ( ζ , t ) 2 space.
  • Presenting three illustrative examples to ensure that the PGT is accurate and applicable.
  • Performing some comparisons with Ref. [31] to show the accuracy of the PGT.
The motivations for this article are listed in the following points:
  • The TFCP is one of the most significant problems encountered in applied sciences. This encourages us to analyze it with a new technique.
  • Several numerical methods were utilized to solve the TFCP using various orthogonal and non-orthogonal polynomials as basis functions. The basis functions utilized in this article are a set of orthogonal functions. This article encourages us to apply these functions to various problems in the applied sciences.
  • To the best of our knowledge, the specific basis functions along with the PGT used in this paper were not previously used in numerical analysis, which provides a compelling reason to introduce and utilize them.
We note here that the novelty of this research includes the following points:
  • Using modified sets of shifted LPs as basis functions allows us to take a few terms of the retained modes and obtain approximations with high precision compared to the basis of shifted LPs .
  • The employment of the presented basis functions along with the PGT for solving the TFCP is new.
  • Some new operational relations are presented and employed.
The remaining sections of this work are arranged in the following manner. In Section 2, all required definitions and relations are reported. In Section 3, the PGT for treating the TFCP is discussed. The truncation error estimation and stability in L w ( ζ , t ) 2 space are presented in Section 4. Some illustrative examples are given in Section 5 to show the accuracy of the proposed technique. Section 6 shows the result analysis of our proposed technique. Finally, Section 7 reports the conclusion.

2. Some Preliminaries and Essential Formulas

In this section, an overview of the Caputo FD is given. In addition, some properties of LPs are presented.

2.1. The Caputo FD

Definition 1. 
In Caputo’s sense, the FD of g C r [ 0 , ξ ] , where r = ϵ is defined as follows [32]:
D ξ ϵ g ( ξ ) = 1 Γ ( r ϵ ) 0 ξ ( ξ y ) r ϵ 1 g ( r ) ( y ) d y ,   ϵ > 0 ,   ξ > 0 ,
r 1 < ϵ r ,   r N .
Also, the following properties are significant.
D ξ ϵ A = 0 ,   ( A   is   a   constant ) ,
D ξ ϵ ξ σ = 0 , i f   σ N 0 a n d σ < ϵ , σ ! Γ ( σ + 1 ϵ ) ξ σ ϵ , i f   σ N 0 a n d σ ϵ ,
where  N = { 1 , 2 , }  and  N 0 = { 0 , 1 , 2 , } .

2.2. A Brief Outline of Legendre Polynomials and Their Shifted Ones

The following recurrence can be used to define the LPs of degree k, in the range [ 1 , 1 ] as follows [15,33]:
L 0 ( η ) = 1 ,   L 1 ( η ) = η , ( k + 1 ) L k + 1 ( η ) = ( 2 k + 1 ) η L k ( η ) k L k 1 ( η ) .
On the interval [ 1 , 1 ] , LPs have the following orthogonality relation:
1 1 L m ( η ) L s ( η ) d η = 2 2 m + 1 δ m s ,
where δ m s is the Kronecker delta function.
The shifted LPs R m ( η ) are defined on [ 0 , 1 ] as follows:
R m ( ζ ) = L m 2 ζ 1 ,
and are orthogonal on [ 0 , 1 ] in the following manner:
0 1 R m ( ζ ) R s ( ζ ) d ζ = 1 2 s + 1 δ m s .
The power form of R k ( ζ ) is
R k ( ζ ) = s = 0 k ( 1 ) k + s ( k + s ) ! ( k s ) ! ( s ) ! 2 ζ s ,
and its inversion formula is
ζ p = m = 0 p ( 1 ) 2 m ( 2 m + 1 ) Γ ( p + 1 ) 2 Γ ( m + p + 1 ) Γ ( m + p + 2 ) R m ( ζ ) .
Lemma 1. 
The following linearization formulae are valid:
η L s ( η ) = s + 1 2 s + 1 L s + 1 ( η ) + s 2 s + 1 L s 1 ( η ) ,
η 2 L s ( η ) = ( 1 + s ) ( 2 + s ) ( 1 + 2 s ) ( 3 + 2 s ) L s + 2 ( η ) + ( 1 + s ) 2 ( 1 + 2 s ) ( 3 + 2 s ) + s 2 ( 1 + 2 s ) ( 2 s 1 ) L s ( η ) + s ( s 1 ) ( 1 + 2 s ) ( 2 s 1 ) L s 2 ( η ) .
Proof. 
The proof can be obtained directly from the recurrence relation in Equation (7). □
Lemma 2. 
The following relations are satisfied:
d R p ( ζ ) d ζ = k = 0 p 1 ( 2 k + 1 ) 1 ( 1 ) k + p R k ( ζ ) ,
d 2 R p ( ζ ) d ζ 2 = k = 0 p 2 A k , p R k ( ζ ) ,
where
A k , p = 2 ( 1 + 2 k ) ( p k ) ( 1 + k + p ) , i f ( p k ) even , 0 , o t h e r w i s e .
Proof. 
The proof of this lemma is too lengthy but can be performed through straightforward computations based on some elementary properties of R p ( ζ ) . □

3. Petrov–Galerkin Technique for the Time Fractional Cable Problem

This section presents a strategy for solving the TFCP Equation (1), subject to Equations (2) and (3), that relies on the PGT.
To continue with our suggested Petrov–Galerkin technique, let us define the following transformation
H ( ζ , t ) = X ( ζ , t ) + X ^ ( ζ , t ) ,
where
X ^ ( ζ , t ) = ( 1 ζ ) X ( 0 , t ) X ( 0 , 0 ) + ζ X ( 1 , t ) X ( 1 , 0 ) + X ( ζ , 0 ) .
After that, TFCP Equation (1), controlled by Equations (2) and (3), is transformed to the following modified equation by Equation (17):
H t ( ζ , t ) = D t 1 β 1 μ H ζ ζ ( ζ , t ) ν ^ D t 1 β 2 H ( ζ , t ) + g ( ζ , t ) , 0 < β 1 , β 2 < 1 ,
subject to
H ( ζ , 0 ) = 0 , ζ ( 0 , 1 ) , H ( 0 , t ) = H ( 1 , t ) = 0 , t ( 0 , 1 ) ,
where
g ( ζ , t ) = f ( ζ , t ) + X ^ t ( ζ , t ) D t 1 β 1 μ X ^ ζ ζ ( ζ , t ) + ν ^ D t 1 β 2 X ^ ( ζ , t ) .
Therefore, instead of solving Equation (1) controlled by Equations (2) and (3), we will solve the modified Equation (19), controlled by Equation (20).
Remark 1. 
To explain the transition from Equations (1)–(3) to Equations (19)–(20), based on the linear property of the Caputo FD [32], we can write the following identities:
D t 1 β 1 X ( ζ , t ) = D t 1 β 1 H ( ζ , t ) D t 1 β 1 X ^ ( ζ , t ) ,
and
D t 1 β 2 X ( ζ , t ) = D t 1 β 2 H ( ζ , t ) D t 1 β 2 X ^ ( ζ , t ) .
Inserting the transformation Equation (17) into Equation (1) and rearranging the terms yield Equation (19), where g ( ζ , t ) arises from the derivatives of X ^ ( ζ , t ) . Since X ^ ( ζ , t ) is constructed to satisfy the nonhomogeneous initial and boundary conditions Equations (2) and (3), the transformed function H ( ζ , t ) satisfies the homogeneous conditions defined in Equation (20). The amended system Equations (19) and (20) are now fully justified.

3.1. Trial Functions

The trial functions that we select are
P i ( ζ ) = ζ ( 1 ζ ) R i ( ζ ) , J j ( t ) = t R j ( t ) .
Corollary 1. 
The following relations are satisfied
0 1 P m ( ζ ) P s ( ζ ) ω 1 ( ζ ) d ζ = 1 2 s + 1 δ m s ,
and
0 1 J m ( t ) J s ( t ) ω 2 ( t ) d t = 1 2 s + 1 δ m s .
where ω 1 ( ζ ) = 1 ζ 2 ( 1 ζ ) 2 and ω 2 ( t ) = 1 t 2 .
Proof. 
To prove relation Equations (23) and (24), by virtue of Equation (9), one has
0 1 P m ( ζ ) P s ( ζ ) ω 1 ( ζ ) d ζ = 0 1 ζ ( 1 ζ ) R m ( ζ ) ζ ( 1 ζ ) R s ( ζ ) 1 ζ 2 ( 1 ζ ) 2 d ζ = 0 1 R m ( ζ ) R s ( ζ ) d ζ = 1 2 s + 1 δ m s .
Also,
0 1 J m ( t ) J s ( t ) ω 2 ( t ) d t = 0 1 ( t R m ( t ) ) ( t R s ( t ) ) 1 t 2 d t = 0 1 R m ( t ) R s ( t ) d t = 1 2 s + 1 δ m s .
Lemma 3. 
The first derivative of J k ( t ) can be conveyed explicitly in terms of R j ( t ) as follows:
d J k ( t ) d t = j = 0 k σ j , k R j ( t ) ,
where
σ j , k = 1 + j , i f k = j , 2 j + 1 , i f k > j , 0 , o t h e r w i s e .
Proof. 
Setting η = 2 t 1 in Equation (12) of Lemma 1, we get
( 2 t 1 ) R k ( t ) = 1 + k 1 + 2 k R k + 1 ( t ) + k 1 + 2 k R k 1 ( t ) ,
which can be revised to another form as
t R k ( t ) = 1 2 R k ( t ) + 1 + k 1 + 2 k R k + 1 ( t ) + k 1 + 2 k R k 1 ( t ) .
Now, the first derivative of J k ( t ) can be expressed as
d J k ( t ) d t = 1 2 d R k ( t ) d t + k + 1 1 + 2 k d R k + 1 ( t ) d t + k 1 + 2 k d R k 1 ( t ) d t ,
and after using Lemma 2, we can write the following
d J k ( t ) d t = 1 2 m = 0 k ( 2 m + 1 ) 1 ( 1 ) m + k R m ( t ) + k + 1 2 k + 1 m = 0 k + 1 ( 2 m + 1 ) 1 ( 1 ) m + k + 1 R m ( t ) + k 2 k + 1 m = 0 k 1 ( 2 m + 1 ) 1 ( 1 ) m + k 1 R m ( t ) .
Now, performing some computations, one has
d J k ( t ) d t = j = 0 k σ j , k R j ( t ) ,
where
σ j , k = j + 1 , i f k = j , 2 j + 1 , i f k > j , 0 , o t h e r w i s e .
Lemma 4. 
The second-derivative of P k ( ζ ) can be conveyed explicitly in terms of R j ( ζ ) as follows:
d 2 P k ( ζ ) d ζ 2 = j = 0 k λ j + 1 , k + 1 R j ( ζ ) ,
where
λ j , k = j ( j + 1 ) , i f k = j , ( 4 j 2 ) , i f k > j , ( k j ) even , 0 , o t h e r w i s e .
Proof. 
Setting η = 2 ζ 1 in Equation (13) of Lemma 1, we get
( 2 ζ 1 ) 2 R k ( ζ ) = ( k + 1 ) ( k + 2 ) ( 1 + 2 k ) ( 3 + 2 k ) R k + 2 ( ζ ) + ( k + 1 ) 2 ( 1 + 2 k ) ( 3 + 2 k ) + k 2 ( 1 + 2 k ) ( 2 k 1 ) R k ( ζ ) + k ( k 1 ) ( 1 + 2 k ) ( 2 k 1 ) R k 2 ( ζ ) ,
which can be rewritten in another form as
( 4 ζ 2 4 ζ ) R k ( ζ ) = ( 1 + k ) ( 2 + k ) ( 1 + 2 k ) ( 3 + 2 k ) R k + 2 ( ζ ) + ( k + 1 ) 2 ( 1 + 2 k ) ( 3 + 2 k ) + k 2 ( 1 + 2 k ) ( 2 k 1 ) 1 R k ( ζ ) + k ( k 1 ) ( 1 + 2 k ) ( 2 k 1 ) R k 2 ( ζ ) .
Therefore, we get
P k ( ζ ) = ζ ( 1 ζ ) R k ( ζ ) = ( 1 + k ) ( 2 + k ) 4 ( 1 + 2 k ) ( 3 + 2 k ) R k + 2 ( ζ ) 1 4 ( k + 1 ) 2 ( 1 + 2 k ) ( 3 + 2 k ) + k 2 ( 1 + 2 k ) ( 2 k 1 ) 1 R k ( ζ ) k ( k 1 ) 4 ( 1 + 2 k ) ( 2 k 1 ) R k 2 ( ζ ) ,
The second derivative of P k ( ζ ) , can be written as
d 2 P k ( ζ ) d ζ 2 = ( k + 1 ) ( k + 2 ) 4 ( 2 k + 1 ) ( 2 k + 3 ) d 2 R k + 2 ( ζ ) d ζ 2 1 4 ( k + 1 ) 2 ( 2 k + 1 ) ( 2 k + 3 ) + k 2 ( 2 k + 1 ) ( 2 k 1 ) 1 d 2 R k ( ζ ) d ζ 2 k ( k 1 ) 4 ( 2 k + 1 ) ( 2 k 1 ) d 2 R k 2 ( ζ ) d ζ 2 .
which can be rewritten after using Lemma 2 in another form as
d 2 P k ( ζ ) d ζ 2 = ( k + 1 ) ( k + 2 ) 4 ( 2 k + 1 ) ( 2 k + 3 ) j = 0 k A j , k + 2 R j ( ζ ) 1 4 ( k + 1 ) 2 ( 2 k + 1 ) ( 2 k + 3 ) + k 2 ( 2 k + 1 ) ( 2 k 1 ) 1 j = 0 k 2 A j , k R j ( ζ ) k ( k 1 ) 4 ( 2 k + 1 ) ( 2 k 1 ) j = 0 k 4 A j , k 2 R j ( ζ ) .
After performing some computations, expanding, and rearranging the terms, we get
d 2 P k ( ζ ) d ζ 2 = j = 0 k λ j + 1 , k + 1 R j ( ζ ) ,
where
λ j , k = j ( j + 1 ) , i f k = j , ( 4 j 2 ) , i f k > j , ( k j ) even , 0 , otherwise .

3.2. The Proposed Numerical Technique

Assume that TFCP Equation (19) is governed by Equation (20). Now, consider
Δ L ( Ω ) = span { P m ( ζ ) J n ( t ) : m , n = 0 , 1 , , L } , Λ L ( Ω ) = { H ( ζ , t ) Δ L ( Ω ) : H ( ζ , 0 ) = H ( 0 , t ) = H ( 1 , t ) = 0 } ,
where Ω = [ 0 , 1 ] 2 . Now, any H L ( ζ , t ) Λ L ( Ω ) can be written as
H L ( ζ , t ) = m = 0 L n = 0 L o m n P m ( ζ ) J n ( t ) ,
where o i j are the expansion coefficients of order ( L + 1 ) 2 .
The residual R L ( ζ , t ) of Equation (19) can be written as
R L ( ζ , t ) = H t L ( ζ , t ) D t 1 β 1 μ H ζ ζ L ( ζ , t ) + ν ^ D t 1 β 2 H L ( ζ , t ) g ( ζ , t ) .
By applying the Petrov–Galerkin approach, one may get
0 1 0 1 R L ( ζ , t ) R r ( ζ ) R s ( t ) d ζ d t = 0 , 0 r , s L ,
Therefore, Equation (46) can be rewritten as
m = 0 L n = 0 L o m n a m , r b n , s μ m = 0 L n = 0 L o m n h m , r q n , s β 1 + ν ^ m = 0 L n = 0 L o m n a m , r q n , s β 2 = g r , s , 0 r , s L ,
where
g r , s = 0 1 0 1 g ( ζ , t ) R r ( ζ ) R s ( t ) d ζ d t ,
a m , r = 0 1 P m ( ζ ) R r ( ζ ) d ζ ,
b n , s = 0 1 d J n ( t ) d t R s ( t ) d t ,
h m , r = 0 1 d 2 P m ( ζ ) d ζ 2 R r ( ζ ) d ζ ,
q n , s β 1 = 0 1 D t 1 β 1 J n ( t ) R s ( t ) d t ,
q n , s β 2 = 0 1 D t 1 β 2 J n ( t ) R s ( t ) d t .
Remark 2. 
The linear algebraic system of dimension ( L + 1 ) 2 , derived from Equation (47), can be solved numerically using a suitable solver, for instance, the Gauss elimination technique.
Remark 3. 
The elements a m , r , b n , s , h m , r , q n , s β 1 , and q n , s β 2 are given in the following theorem.
Theorem 1. 
The following integrals are useful
( 1 ) 0 1 P m ( ζ ) R r ( ζ ) d ζ = a m , r ,
( 2 ) 0 1 d J n ( t ) d t R s ( t ) d t = b n , s ,
( 3 ) 0 1 d 2 P m ( ζ ) d ζ 2 R r ( ζ ) d ζ = h m , r ,
( 4 ) 0 1 D t 1 β 1 J n ( t ) R s ( t ) d t = q n , s β 1 ,
( 5 ) 0 1 D t 1 β 2 J n ( t ) R s ( t ) d t = q n , s β 2 ,
where
a m , r = ( m + 1 ) ( m + 2 ) 4 ( 2 m + 1 ) ( 2 m + 3 ) ( 2 m + 5 ) , if r = m + 2 , 2 m 3 + 3 m 2 m 1 2 ( 2 m + 1 ) 2 ( 2 m + 3 ) ( 2 m 1 ) , if r = m , m ( m 1 ) 4 ( 2 m + 1 ) ( 2 m 1 ) ( 2 m 3 ) , if r = m 2 , 0 , otherwise ,
b n , s = n + 1 2 n + 1 , if n = s , 1 , if n > s , 0 , otherwise ,
h m , r = ( m + 1 ) ( m + 2 ) 2 m + 1 , if m = r , 2 , if m > r , ( m r ) even , 0 , otherwise ,
q n , s β 1 = i = 0 n ( i + 1 ) ( i + n ) ! ( 1 ) i + n + s Γ ( i + s β 1 ) i ! ( n i ) ! Γ ( i β 1 ) Γ ( i + s + β 1 + 2 ) ,
q n , s β 2 = i = 0 n ( i + 1 ) ( i + n ) ! ( 1 ) i + n + s Γ ( i + s β 2 ) i ! ( n i ) ! Γ ( i β 2 ) Γ ( i + s + β 2 + 2 ) .
Proof. 
To evaluate a m , r , we have
a m , r = 0 1 P m ( ζ ) R r ( ζ ) d ζ .
We set η = 2 ζ 1 ; therefore, ζ = 1 2 ( η + 1 ) , and we get
a m , r = 1 8 1 1 ( 1 η 2 ) L m ( η ) L r ( η ) d η .
Based on Lemma 1, we can write
( 1 η 2 ) L m ( η ) = L m ( η ) η 2 L m ( η ) = ( 1 + m ) ( 2 + m ) ( 1 + 2 m ) ( 3 + 2 m ) L m + 2 ( η ) + 1 ( m + 1 ) 2 ( 1 + 2 m ) ( 3 + 2 m ) m 2 ( 1 + 2 m ) ( 2 m 1 ) L m ( η ) m ( m 1 ) ( 1 + 2 m ) ( 2 m 1 ) L m 2 ( η ) .
Inserting Equation (66) into Equation (65) and using the orthogonality relation Equation (8), we get the desired result of a m , r at r = m + 2 , r = m , and r = m 2 .
To evaluate b n , s . We have
b i , j = 0 1 d J n ( t ) d t R s ( t ) d t .
Using Lemma 3, we get
b n , s = 0 1 d J n ( t ) d t R s ( t ) d t = k = 0 n σ k , n 0 1 R k ( t ) R s ( t ) d t .
Using the orthogonality relation Equation (9), and after simplification, we obtain the desired result of b n , s .
To evaluate h m , r , we have
h m , r = 0 1 d 2 P m ( ζ ) d ζ 2 R r ( ζ ) d ζ .
Using Lemma 3, we get
h m , r = 0 1 d 2 P m ( ζ ) d ζ 2 R r ( ζ ) d ζ = k = 0 m 2 A k , m 0 1 R k ( ζ ) R r ( ζ ) d ζ .
Using the orthogonality relation Equation (9), and performing some computations, we get the desired result of h m , r .
To evaluate q n , s β 1 , we have
q n , s β 1 = 0 1 D t 1 β 1 J n ( t ) R s ( t ) d t .
Using property Equation (6), we can write
D t 1 β 1 J n ( t ) = i = 0 n ( 1 ) i + n Γ ( i + 2 ) ( i + n ) ! ( i ! ) 2 ( n i ) ! Γ ( i β 1 + 2 ) t β 1 + i + 1 ,
Inserting the previous relation into Equation (71), one has
q n , s β 1 = 0 1 D t 1 β 1 J n ( t ) R s ( t ) d t = i = 0 n ( 1 ) i + n Γ ( i + 2 ) ( i + n ) ! ( i ! ) 2 ( n i ) ! Γ ( i β 1 + 2 ) 0 1 t β 1 + i + 1 R s ( t ) d t .
By virtue of power Formula (10), we get
q n , s β 1 = 0 1 D t 1 β 1 J n ( t ) R s ( t ) d t = i = 0 n ( 1 ) i + n Γ ( i + 2 ) ( i + n ) ! ( i ! ) 2 ( n i ) ! Γ ( i β 1 + 2 ) k = 0 s ( 1 ) s + k ( s + k ) ! ( k ! ) 2 ( s k ) ! ( β 1 + i + k + 2 ) .
Now, k = 0 s ( 1 ) s + k ( s + k ) ! ( k ! ) 2 ( s k ) ! ( β 1 + i + k + 2 ) can be summed by using Mathematica as
k = 0 s ( 1 ) s + k ( s + k ) ! ( k ! ) 2 ( s k ) ! ( β 1 + i + k + 2 ) = ( 1 ) s Γ ( i β 1 + 2 ) Γ ( i + s + β 1 1 ) Γ ( i + β 1 1 ) Γ ( i + s β 1 + 3 ) .
Finally, we get
q n , s β 1 = i = 0 n ( i + 1 ) ( i + n ) ! ( 1 ) i + n + s Γ ( i + s β 1 ) i ! ( n i ) ! Γ ( i β 1 ) Γ ( i + s + β 1 + 2 ) .
The elements of q n , s β 2 can be obtained by using steps similar to those for q n , s β 1 .
Remark 4. 
Despite the multiple Gamma-function terms in the expressions in Equations (62) and (63), we did not find any instability in practice. All terms were implemented and evaluated using Mathematica, which ensures numerical accuracy internally using the LogGamma-based evaluation method.

4. Convergence Analysis

In this section, an upper estimate of H ( ζ , t ) H L ( ζ , t ) in L w ( ζ , t ) 2 space is given, where w ( ζ , t ) = ω 1 ( ζ ) ω 2 ( t ) .
Theorem 2 
([34]). Consider the following function: H ( ζ , t ) = ζ t ( 1 ζ ) g 1 ( ζ ) g 2 ( t ) L w ( ζ , t ) 2 , with g 1 ( ζ ) and g 2 ( t ) having bounded fourth-order derivatives that satisfy the following expansion:
H ( ζ , t ) = i = 0 j = 0 o i j P i ( ζ ) J j ( t ) .
Consequently, the inequality is satisfied by the expansion coefficients o i j .
| o i j | i 3 j 3 , i , j 4 ,
The expression s 1 s 2 means that, for a constant u, s 1 u s 2 .
Remark 5. 
In the next theorem, we give an estimate of the truncation error that follows from the decay of | o i j | given in Equation (78), along with the orthogonality relations of P i ( ζ ) and J j ( t ) , defined in Equations (23) and (24).
Theorem 3. 
If H ( ζ , t ) satisfies the assumptions of Theorem 2, then the following truncation estimation is satisfied in L w ( ζ , t ) 2 space
H ( ζ , t ) H L ( ζ , t ) L w ( ζ , t ) 2 L 2 .
Proof. 
From definitions of H L ( ζ , t ) and H ( ζ , t ) , we get
H ( ζ , t ) H L ( ζ , t ) L w ( ζ , t ) 2 i = 0 L j = L + 1 o i j P i ( ζ ) J j ( t ) L w ( ζ , t ) 2 + i = L + 1 j = 0 o i j P i ( ζ ) J j ( t ) L w ( ζ , t ) 2 = i = 0 L j = L + 1 | o i j | P i ( ζ ) L ω 1 ( ζ ) 2 J j ( t ) L ω 2 ( t ) 2 + i = L + 1 j = 0 | o i j | P i ( ζ ) L ω 1 ( ζ ) 2 J j ( t ) L ω 2 ( t ) 2 .
Using the orthogonality relations of P i ( ζ ) and J j ( t ) , defined in Equations (23) and (24), we get
P i ( ζ ) L ω 1 ( ζ ) 2 = 1 2 i + 1 , J j ( t ) L ω 2 ( t ) 2 = 1 2 j + 1 .
Inserting Equations (78) and (81) into Equation (80), along with the following inequality
1 i 3 < 1 i ( i 2 1 ) , i > 1 ,
and performing some calculations, we obtain
H ( ζ , t ) H L ( ζ , t ) L w ( ζ , t ) 2 L 2 .
Theorem 4 
(Stability). Under the assumptions of Theorem 2, one gets
H L + 1 ( ζ , t ) H L ( ζ , t ) L w ( ζ , t ) 2 L 2 .
Proof. 
The application of Theorem 3 along with the following inequality enables us to write
H L + 1 ( ζ , t ) H L ( ζ , t ) L w ( ζ , t ) 2 H ( ζ , t ) H L ( ζ , t ) L w ( ζ , t ) 2 + H ( ζ , t ) H L + 1 ( ζ , t ) L w ( ζ , t ) 2 L 2 .
This completes the proof of this theorem. □
Remark 6. 
We want to mention that the weight functions ω 1 ( ζ ) and ω 2 ( t ) are not used in the implementation of the PGT. But, they are used only for the convergence analysis, where they are needed to establish the truncation estimation and stability in the L 2 norm.

5. Examples

Example 1 
([31]). Consider the first problem with the analytical solution X ( ζ , t ) = t 2 sin ( π ζ ) as follows:
X t ( ζ , t ) = D t 1 β 1 X ζ ζ ( ζ , t ) D t 1 β 2 X ( ζ , t ) + 2 t + 2 π 2 t β 1 + 1 Γ ( 2 + β 1 ) + 2 t β 2 + 1 Γ ( 2 + β 2 ) sin ( π ζ ) ,
governed by
X ( ζ , 0 ) = 0 , ζ ( 0 , 1 ) , X ( 0 , t ) = X ( 1 , t ) = 0 , t ( 0 , 1 ) .
Example 2 
([31]). Consider the second problem with the analytical solution X ( ζ , t ) = t 3 + 1 ζ 2 ζ as follows:
X t ( ζ , t ) = D t 1 β 1 X ζ ζ ( ζ , t ) D t 1 β 2 X ( ζ , t ) + 3 t 2 ( ζ 2 ζ ) 12 t 2 + β 1 Γ ( 3 + β 1 ) 2 t β 1 1 Γ ( β 1 ) + 6 t 2 + β 2 Γ ( 3 + β 2 ) + t β 2 1 Γ ( β 2 ) ( ζ 2 ζ ) ,
governed by
X ( ζ , 0 ) = ζ 2 ζ , ζ ( 0 , 1 ) , X ( 0 , t ) = X ( 1 , t ) = 0 , t ( 0 , 1 ) .
Example 3. 
Consider the third problem with the analytical solution X ( ζ , t ) = t 3 e ζ as follows:
X t ( ζ , t ) = D t 1 β 1 X ζ ζ ( ζ , t ) D t 1 β 2 X ( ζ , t ) + 3 t 2 1 + 2 t β 1 Γ ( 3 + β 1 ) + 2 t β 2 Γ ( 3 + β 2 ) e ζ ,
governed by
X ( ζ , 0 ) = 0 , ζ ( 0 , 1 ) , X ( 0 , t ) = t 3 , X ( 1 , t ) = e t 3 , t ( 0 , 1 ) .
Remark 7. 
The runtime of our method is significantly affected by solving the linear system of size ( L + 1 ) 2 , which arises from Equation (47). The Gaussian elimination method is implemented using NSolve in Mathematica 11, and the computational cost per iteration is roughly O ( L 6 ) .

6. Result Analysis

Table 1 displays a comparison based on L errors between our proposed approach at L = 11 and the approach in [31] at different values of β 1 and β 2 . This comparison demonstrates the superior performance of our strategy over the technique in [31]. The absolute errors and CPU time used at β 1 = 0.3 , β 2 = 0.8 , and L = 11 are listed in Table 2 at distinct values of t. We can see from this table that the solution of the PGT converged very quickly. Figure 1 shows the approximate solution and the absolute error at β 1 = 0.2 , and β 2 = 0.7 when L = 11 . The L errors and CPU time used at varied values of L are displayed in Table 3. Figure 2 presents a comparison between exact and approximate solutions at different values of β 1 and β 2 when L = 11 . We can see from this figure that the PGT is closed converged to the exact solution. A comparison based on L 2 and L errors is given in Table 4 between the proposed method and the method presented in [31] at L = 2 and several values of β 1 and β 2 . Absolute errors at distinct values of β 1 when L = 2 are shown in Figure 3. We can see from this figure that the PGT is closed converged to the exact solution. The L errors and CPU time used are given in Table 5 at various values of β 1 , β 2 , and L . This table illustrates that the solution of the PGT converged very quickly. Figure 4 displays the approximate solutions and corresponding absolute errors for β 1 = β 2 = 0.5 with L = 10 . Figure 5 displays the absolute errors for varied t values when L = 10 and β 1 = 0.3 , β 2 = 0.8 . Figure 6 shows the stability of the presented technique when β 1 = β 2 = 0.4 and ζ = t . Figure 7 shows the absolute residual converges to zero for increasing values of L when β 1 = β 2 = 0.4 and ζ = t , and this proves the consistency of the presented method.
Table 1. L errors for Example 1.
Table 2. The absolute errors of Example 1 at β 1 = 0.3 , β 2 = 0.8 , and L = 11 .
Figure 1. The absolute errors and the approximate solution of Example 1.
Table 3. The L errors of Example 1.
Figure 2. Comparison of exact and approximate solutions at different values of β 1 and β 2 for Example 1.
Table 4. Comparison of L 2 and L errors for Example 2.
Figure 3. The absolute errors of Example 2.
Table 5. The L errors of Example 3.
Figure 4. The absolute errors and the approximate solution of Example 3.
Figure 5. The absolute errors of Example 3.
Figure 6. Stability | X L + 1 ( ζ , t ) X L ( ζ , t ) | at ζ = t for Example 3.
Figure 7. | R L ( ζ , t ) | at ζ = t for Example 3.
Remark 8. 
We want to mention that the advantages of the PGT can be summarized as follows:
  • Using the proposed technique allows us to take a few terms of the retained modes and obtain approximations with high precision when compared to the sinc–Bernoulli collocation method [31].
  • Compared to numerical techniques that use Chebyshev polynomials, such as the collocation method, which leads to ill-conditioning near ζ = 0 and ζ = 1 , our numerical approach avoids this problem.
  • Our proposed technique is simpler to implement compared to wavelet techniques.

7. Conclusions

In this work, a numerical framework was developed for solving the TFCP. We used the modified sets of shifted ( LPs ) to express the resulting approximate solutions by applying the PGT. The use of these basis functions leads to high accuracy with relatively low polynomial degrees. Numerical simulations with various test problems, including those with known exact solutions, demonstrated that the proposed method significantly improves accuracy and efficiency. We expect that the suggested procedure can be extended to treat other types of DEs in future studies.

Author Contributions

Conceptualization, S.S.A.; Methodology, S.S.A. and A.G.A.; Software, A.G.A.; Validation, S.S.A. and A.G.A.; Formal analysis, S.S.A. and A.G.A.; Investigation, S.S.A. and A.G.A.; Resources, S.S.A. and A.G.A.; Data curation, A.G.A.; Writing—original draft, A.G.A.; Writing—review & editing, A.G.A.; Visualization, S.S.A. and A.G.A.; Supervision, S.S.A. and A.G.A.; Project administration, A.G.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Atanackovic, T.M.; Pilipovic, S.; Stankovic, B.; Zorica, D. Fractional Calculus with Applications in Mechanics: Vibrations and Diffusion Processes; Wiley: Hoboken, NJ, USA, 2014. [Google Scholar]
  2. Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006; Volume 204. [Google Scholar]
  3. Yang, Y.; Huang, Y.; Zhou, Y. Numerical simulation of time fractional cable equations and convergence analysis. Numer. Methods Partial Differ. Equ. 2018, 34, 1556–1576. [Google Scholar] [CrossRef]
  4. Kosari, S.; Xu, P.; Shafi, J.; Derakhshan, M. An efficient hybrid numerical approach for solving two-dimensional fractional cable model involving time-fractional operator of distributed order with error analysis. Numer. Algorithms 2025, 99, 1269–1288. [Google Scholar] [CrossRef]
  5. Atta, A.G. Two spectral Gegenbauer methods for solving linear and nonlinear time fractional cable problems. Int. J. Mod. Phys. C 2024, 35, 2450070. [Google Scholar] [CrossRef]
  6. Salama, F.M. On numerical simulations of variable-order fractional cable equation arising in neuronal dynamics. Fractal Fract. 2024, 8, 282. [Google Scholar] [CrossRef]
  7. Zheng, S.; Lou, Y.; Shen, S.; Lu, J. Numerical investigation of fractal oscillator for a pendulum with a rolling wheel. Fractals 2025, 33, 2550077. [Google Scholar] [CrossRef]
  8. Zheng, S.; Chen, L.; Lu, J. Numerical analysis of a fractional micro/nanobeam-based micro-electromechanical system. Fractals 2025, 33, 25500288. [Google Scholar] [CrossRef]
  9. Chen, B.; Lu, J.; Chen, L. Numerical investigation of a fractal oscillator arising from the microbeams-based microelectromechanical system. Alex. Eng. J. 2025, 126, 53–59. [Google Scholar] [CrossRef]
  10. Abdelhakem, M.; Abdelhamied, D.; El-Kady, M.; Youssri, Y.H. Two modified shifted Chebyshev–Galerkin operational matrix methods for even-order partial boundary value problems. Bound. Value Probl. 2025, 2025, 34. [Google Scholar] [CrossRef]
  11. Youssri, Y.H.; Atta, A.G. Optimal third-kind Chebyshev collocation algorithm for solving beam-type micro- and nanoscale BVPs. J. Math. Model. 2025, 13, 841–856. [Google Scholar] [CrossRef]
  12. Abd-Elhameed, W.M.; Abdelkawy, M.A.; Alqubori, O.M.; Atta, A.G. An accurate tau-based spectral algorithm for the time fractional bioheat transfer model. Bound. Value Probl. 2025, 2025, 124. [Google Scholar] [CrossRef]
  13. Salamaa, M.H.; Zedan, H.A.; Abd-Elhameed, W.; Youssri, Y.H. Galerkin method with modified shifted Lucas polynomials for solving the 2D Poisson equation. J. Comput. Appl. Mech. 2025, 56, 737–775. [Google Scholar] [CrossRef]
  14. Taema, M.; Dagher, M.; Youssri, Y. Spectral collocation method via Fermat polynomials for Fredholm–Volterra integral equations with singular kernels and fractional differential equations. J. Math. 2025, 14, 481–492. [Google Scholar]
  15. Abd-Elhameed, W.M.; Youssri, Y.H.; Doha, E.H. A novel operational matrix method based on shifted Legendre polynomials for solving second-order boundary value problems involving singular, singularly perturbed and Bratu-type equations. Math. Sci. 2015, 9, 93–102. [Google Scholar] [CrossRef]
  16. Abd-Elhameed, W.M.; Youssri, Y.H. Explicit shifted second-kind Chebyshev spectral treatment for fractional Riccati differential equation. Comput. Model. Eng. Sci. 2019, 121, 1029–1049. [Google Scholar] [CrossRef]
  17. Bhrawy, A.H.; Abd-Elhameed, W.M. New algorithm for the numerical solutions of nonlinear third-order differential equations using Jacobi-Gauss collocation method. Math. Probl. Eng. 2011, 2011, 837218. [Google Scholar] [CrossRef]
  18. Youssri, Y.H.; Abd-Elhameed, W.M.; Abdelhakem, M. A robust spectral treatment of a class of initial value problems using modified Chebyshev polynomials. Math. Methods Appl. Sci. 2021, 44, 9224–9236. [Google Scholar] [CrossRef]
  19. Cui, T.; Xu, C. Müntz Legendre polynomials: Approximation properties and applications. Math. Comput. 2025, 94, 1377–1410. [Google Scholar] [CrossRef]
  20. Sahabi, M.; Cherati, A.Y. Numerical solutions for fractional optimal control problems using Müntz–Legendre polynomials. J. Mahani Math. Res. Cent. 2025, 14, 189–217. [Google Scholar] [CrossRef]
  21. Sakar, M.G.; Saldır, O.; Ata, A. Numerical solution of fractional-order multi-point boundary value problems using reproducing kernel method with shifted Legendre polynomials. Z. Angew. Math. Phys. 2025, 76, 141. [Google Scholar] [CrossRef]
  22. Wu, M.; Zhou, J.; Guan, C.; Niu, J. A numerical method using Legendre polynomials for solving two-point interface problems. AIMS Math. 2025, 10, 7891–7905. [Google Scholar] [CrossRef]
  23. Heydari, M.H.; Atangana, A.; Avazzadeh, Z. Numerical solution of nonlinear fractal–fractional optimal control problems by Legendre polynomials. Math. Methods Appl. Sci. 2021, 44, 2952–2963. [Google Scholar] [CrossRef]
  24. Khan, N.A.; Sulaiman, M.; Kumam, P.; Alarfaj, F.K. Application of Legendre polynomials based neural networks for the analysis of heat and mass transfer of a non-Newtonian fluid in a porous channel. Adv. Contin. Discret. Model. 2022, 2022, 7. [Google Scholar] [CrossRef]
  25. Cao, J.; Chen, Y.; Wang, Y.; Zhang, H. Numerical analysis of nonlinear variable fractional viscoelastic arch based on shifted Legendre polynomials. Math. Methods Appl. Sci. 2021, 44, 8798–8813. [Google Scholar] [CrossRef]
  26. Sohel, M.N.; Islam, M.S.; Islam, M.S.; Kamrujjaman, M. Galerkin method and its residual correction with modified Legendre polynomials. Contemp. Math. 2022, 3, 188–202. [Google Scholar] [CrossRef]
  27. Hasan, N.N.; Mohammad, A.J. Nonpolynomial spline method for solving linear fractional differential equations. Int. J. Psychosoc. Rehabil. 2020, 24, 3819–3827. [Google Scholar] [CrossRef]
  28. Hamasalh, F.K.; Headayat, M.A. The applications of non-polynomial spline to the numerical solution for fractional differential equations. AIP Conf. Proc. 2021, 2334, 060014. [Google Scholar] [CrossRef]
  29. Vivas-Cortez, M.; Yousif, M.A.; Mahmood, B.A.; Mohammed, P.O.; Chorfi, N.; Lupas, A.A. High-accuracy solutions to the time-fractional KdV–Burgers equation using rational non-polynomial splines. Symmetry 2024, 17, 16. [Google Scholar] [CrossRef]
  30. Yousif, M.A.; Agarwal, R.P.; Mohammed, P.O.; Lupas, A.A.; Jan, R.; Chorfi, N. Advanced methods for conformable time-fractional differential equations: Logarithmic non-polynomial splines. Axioms 2024, 13, 551. [Google Scholar] [CrossRef]
  31. Moshtaghi, N.; Saadatmandi, A. Numerical solution of time fractional cable equation via the sinc–Bernoulli collocation method. J. Appl. Comput. Mech. 2021, 7, 1916–1924. [Google Scholar] [CrossRef]
  32. Podlubny, I. Fractional Differential Equations: An Introduction to Fractional Derivatives, Fractional Differential Equations, Methods of Their Solution and Some of Their Applications; Elsevier: Amsterdam, The Netherlands, 1998; Volume 198. [Google Scholar]
  33. Napoli, A.; Abd-Elhameed, W.M. Numerical solution of eighth-order boundary value problems by using Legendre polynomials. Int. J. Comput. Methods 2018, 15, 1750083. [Google Scholar] [CrossRef]
  34. Alzahrani, S.S.; Alanazi, A.A.; Atta, A.G. A modified collocation technique for addressing the time-fractional FitzHugh–Nagumo differential equation with shifted Legendre polynomials. Symmetry 2025, 17, 1468. [Google Scholar] [CrossRef]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.