Next Article in Journal
Fractal Operators and Convergence Analysis in Fractional Viscoelastic Theory
Next Article in Special Issue
Stationary Responses of Seven Classes of Fractional Vibrations Driven by Sinusoidal Force
Previous Article in Journal
Fractal Analysis of Polarizability in Graphite Deposits: Methodological Integration for Geological Prediction and Exploration Efficiency
Previous Article in Special Issue
A New Approach to Multiroot Vectorial Problems: Highly Efficient Parallel Computing Schemes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

New Generalized Jacobi Polynomial Galerkin Operational Matrices of Derivatives: An Algorithm for Solving Boundary Value Problems

by
Hany Mostafa Ahmed
Department of Mathematics, Faculty of Technology and Education, Helwan University, Cairo 11281, Egypt
Fractal Fract. 2024, 8(4), 199; https://doi.org/10.3390/fractalfract8040199
Submission received: 22 February 2024 / Revised: 20 March 2024 / Accepted: 27 March 2024 / Published: 29 March 2024
(This article belongs to the Special Issue Feature Papers for Numerical and Computational Methods Section)

Abstract

:
In this study, we present a novel approach for the numerical solution of high-order ODEs and MTVOFDEs with BCs. Our method leverages a class of GSJPs that possess the crucial property of satisfying the given BCs. By establishing OMs for both the ODs and VOFDs of the GSJPs, we integrate them into the SCM, enabling efficient and accurate numerical computations. An error analysis and convergence study are conducted to validate the efficacy of the proposed algorithm. We demonstrate the applicability and accuracy of our method through eight numerical examples. Comparative analyses with prior research highlight the improved accuracy and efficiency achieved by our approach. The recommended approach exhibits excellent agreement between approximate and precise results in tables and graphs, demonstrating its high accuracy. This research contributes to the advancement of numerical methods for ODEs and MTVOFDEs with BCs, providing a reliable and efficient tool for solving complex BVPs with exceptional accuracy.

1. Introduction

BVPs involving high order ODEs and MTVOFDEs arise in various areas of science and engineering, such as visco-elastic materials [1,2,3], economics [4], continuum and statistical mechanics [5], solid mechanics [6], and dynamics of interfaces between soft-nanoparticles and rough substrates [7]; for more applications of differential equations, see the monograph by Gregus [8]. These problems often pose significant challenges due to their complex nature and the presence of BCs that must be satisfied. Therefore, the development of efficient and accurate numerical methods for solving such BVPs is of great importance.
There are many approximation approaches in the literature that use orthogonal polynomials and non-orthogonal polynomials to obtain numerical solutions for different types of differential equations [9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. In this paper, we present a novel approach for the numerical solution of high-order ODEs and MTVOFDEs with BCs in the following forms:
X ( n ) ( Z ) = F ( Z , X ( Z ) , X ( 1 ) ( Z ) , , X ( n 1 ) ( Z ) ) , Z [ 0 , L ] , n = 1 , 2 , 3 , ,
or
D ν ( Z ) X ( Z ) = F ( Z , X ( Z ) , D ν 1 ( Z ) X ( Z ) , D ν 2 ( Z ) X ( Z ) , , D ν m ( Z ) X ( Z ) ) , 0 < Z L ,
with each one of these two models subject to the following BCs:
X ( i ) ( 0 ) = α i , X ( j ) ( L ) = β j , i = 0 , 1 , , n 1 , j = 0 , 1 , , n 2 , n 1 + n 2 + 2 = n ,
where n is the smallest positive integer number such that 0 ν 1 ( Z ) < ν 2 ( Z ) < < ν m ( Z ) < ν ( Z ) n holds for all Z [ 0 , L ] and where D ν ( Z ) X ( Z ) , D ν i ( Z ) X ( Z ) ( i = 1 , 2 , , m ) are the VOFDs defined in the Caputo sense, F is a continuous function, and α i ( i = 0 , 1 , , n 1 ) , β j ( j = 0 , 1 , , n 2 ) are constants.
The establishment of OMs for ODs and VOFDs for GSJP is crucial to our technique. These OMs enable us to efficiently compute the derivatives of the GSJPs, which are then incorporated into the SCM. The SCM is a powerful numerical technique that approximates the solution by expanding it in a series of basis functions and collocating the governing equation at specific points within the domain. By integrating these innovative techniques, we effectively bridge a gap in the existing literature, offering a reliable and efficient numerical tool for addressing complex BVPs while advancing our understanding of systems characterized by variable-order fractional dynamics. Our method provides a significant contribution by precisely solving the mentioned high-order ODEs (1) and MTVOFDEs (2) with BCs (3).
It can be said that the integration of these techniques is a dependable and efficient tool for tackling these specific classes of equations, enabling accurate representations of the solutions and precise enforcement of the BCs. This level of specificity enhances the clarity of our research targets, ensuring that readers comprehend the problem domain we aim to address. Additionally, employing these techniques enables us to effectively handle the varying fractional orders, providing a powerful tool for the numerical solution of complex BVPs. For example, in [19] the author discussed using the proposed techniques to obtain the numerical solution of multi-term variable-order time-fractional diffusion-wave equations. This capability opens up new avenues for studying real-world phenomena that exhibit variable-order fractional dynamics. To ensure the reliability and effectiveness of our proposed algorithm, we conduct an error analysis and convergence study. These analyses provide theoretical guarantees for the accuracy and convergence properties of our method. Additionally, we present a set of seven numerical examples to demonstrate the applicability and accuracy of our approach. The numerical results obtained using our method exhibit a high degree of agreement between the approximate solutions and the exact solutions. We present these results in the form of tables and graphs, illustrating the accuracy and reliability of our approach in solving complex BVPs. By introducing this novel numerical approach for high-order ODEs and MTVOFDEs with BCs, we obtain a reliable and efficient tool for solving the challenging BVPs encountered in various scientific and engineering applications. The accuracy and effectiveness of our method make it a valuable asset for researchers and practitioners seeking accurate numerical solutions for complex BVPs.
This paper’s structure is as follows. In Section 2, we cover the essential notions and principles of VOFC. Section 3 delves into the essential characteristics of shifted JPs and GSJPs. We explore their properties and significance in the context of our study. In Section 4, we focus on the development of novel OMs tailored specifically for GSJP ODs and VOFDs. These newly constructed OMs are crucial for solving the problem described by Equations (1) and (2) subject to the BCs outlined in Equation (3). Section 5 delves into the application of the newly developed OMs within the framework of the SCM to solve the aforementioned problems. In Section 6, we present a comprehensive analysis of the error estimate. To showcase the effectiveness and practicality of the proposed method, we provide eight numerical examples in Section 7. These examples serve to validate our method and enable comparisons with alternative approaches. We conclude our analysis with a summary of key results and important conclusions in Section 8. We discuss the contributions and implications of our research, highlighting the advantages and potential applications of the proposed method in solving problems involving ODEs and VOFDEs with BCs.

2. Basic Definition of Caputo VOFDs

This section introduces the tools needed to construct the suggested approach and enable us to address the given problems.
Definition 1
([30,31,32,33]). The Caputo VOFDs for h ( Z ) are defined as follows:
D μ ( Z ) h ( Z ) = 1 Γ ( N μ ( Z ) ) 0 Z ( Z τ ) N μ ( Z ) 1 h ( N ) ( τ ) d τ , n 1 < μ ( Z ) N , Z > 0 .
When μ ( Z ) = α , Definition 1 provides the Caputo fractional derivative (FD) of order α . Further, D μ ( Z ) has the following characteristics:
D μ ( Z ) ( λ 1 h 1 ( Z ) + λ 2 h 2 ( Z ) ) = λ 1 D μ ( Z ) h 1 ( Z ) + λ 2 D μ ( Z ) h 2 ( Z ) , D μ ( Z ) h ( Z ) = d N h ( Z ) d Z N , μ ( Z ) = N , N N .
Furthermore, Equation (4) provides us with the following [30,31]:
D μ ( Z ) ( C ) = 0 , ( C is a const . ) , D μ ( Z ) Z k = 0 , k = 0 , 1 , , μ ( Z ) 1 , Γ ( k + 1 ) Γ ( k + 1 μ ( Z ) ) Z k μ ( Z ) , k μ ( Z ) .

3. A Brief Description of JPs and GSJPs

The primary goal of this section is to introduce the essential aspects of JPs and their derived forms.

3.1. A Summary of the Shifted JPs

Orthogonal JPs, V n ( a , b ) ( x ) , a , b > 1 , satisfy [34]
1 1 w a , b ( x ) V n ( a , b ) ( x ) V m ( a , b ) ( x ) d x = 0 , m n , h n ( a , b ) , m = n ,
where w a , b ( x ) = ( 1 x ) a ( 1 + x ) b and h n ( a , b ) = 2 λ Γ ( n + a + 1 ) Γ ( n + b + 1 ) n ! ( 2 n + λ ) Γ ( n + λ ) , λ = a + b + 1 .
The shifted JPs, denoted as V L , n ( a , b ) ( Z ) = V n ( a , b ) ( 2 Z / L 1 ) , are in accordance with
0 L w L a , b ( Z ) V L , n ( a , b ) ( Z ) V L , m ( a , b ) ( Z ) d Z = 0 , m n , L 2 λ h n ( a , b ) , m = n ,
where w L a , b ( Z ) = ( L Z ) a Z b .
The fundamental expansions that will be used in this paper are [35] (Section 11.3.4):
  • The power form representation of V L , n ( a , b ) ( Z ) is as follows:
    V L , i ( a , b ) ( Z ) = k = 0 i c k ( i ) Z k = k = 0 i c ¯ k ( i ) ( L Z ) k ,
    where
    c k ( i ) = ( 1 ) i k Γ ( i + b + 1 ) Γ ( i + k + λ ) L k k ! ( i k ) ! Γ ( k + b + 1 ) Γ ( i + λ ) and c ¯ k ( i ) = ( 1 ) k ( a + 1 ) i ( λ + i ) k L k k ! ( i k ) ! ( a + 1 ) k .
  • The forms of Z k and ( L Z ) k in regard to V L , r ( a , b ) ( Z ) are
    Z k = r = 0 k b r ( k ) V L , r ( a , b ) ( Z ) , a n d ( L Z ) k = r = 0 k b ¯ r ( k ) V L , r ( a , b ) ( Z ) ,
    where
    b r ( k ) = L k k ! ( λ + 2 r ) Γ ( k + b + 1 ) Γ ( r + λ ) ( k r ) ! Γ ( r + b + 1 ) Γ ( k + r + λ + 1 ) a n d b ¯ r ( k ) = ( 2 j + λ ) L k ( k ) j ( λ + 1 ) j 1 ( a + 1 ) k ( a + 1 ) j ( λ + 1 ) k ( k + λ + 1 ) j .

3.2. Offering GSJPs

In this part, it is important to discuss the polynomials { ϕ p , q , j ( a , b ) ( Z ) } j 0 , defined as follows:
ϕ p , q , j ( a , b ) ( Z ) = Z p ( L Z ) q V L , j ( a , b ) ( Z ) , p , q = 0 , 1 , 2 , .
These are required to meet the homogenous form of the BCs (3) for a suitable choice of p , q . Subsequently, they satisfy
0 L w L a , b ( Z ) Z 2 p ( L Z ) 2 q ϕ p , q , i ( a , b ) ( Z ) ϕ p , q , j ( a , b ) ( Z ) d Z = 0 , i j , L 2 λ h i ( a , b ) , i = j .

4. Two OMs for Ods and VOFDs of ϕ p , q , j ( a , b ) ( Z )

In this section, we present two OMs for Ods and VOFDs of ϕ p , q , j ( a , b ) ( Z ) . To do this, we start with Theorem 1 and Lemma 1, which enable us to prove Theorem 2.
Theorem 1
([9]). The first derivative of ϕ p , 0 , i ( a , b ) ( Z ) , i 0 , can be written in the form
D ϕ p , 0 , i ( a , b ) ( Z ) = j = 0 i 1 θ i , j a , b ( p ) ϕ p , 0 , j ( a , b ) ( Z ) + ϵ p , i ( Z ) ,
where ϵ p , i ( Z ) = 1 i ! ( 1 ) i p ( b + 1 ) i Z p 1 and
θ i , j a , b ( p ) = C i , j a , b r = 0 i j 1 ( 1 ) r ( r + p + j + 1 ) ( j + i + λ + 1 ) r r ! ( r + j + 1 ) ( r + j + b + 1 ) ( i j r 1 ) ! Γ ( r + 2 j + λ + 1 ) ,
where
C i , j a , b = ( 1 ) i + j 1 ( λ + i ) ( b + 1 ) i ( λ + 2 j ) Γ ( j + λ ) ( i + λ + 1 ) j ( b + 1 ) j .
Lemma 1.
The polynomials V L , i ( a , b ) ( Z ) , i 0 , have the following expression:
V L , i ( a , b ) ( Z ) = ( Z L ) j = 0 i 1 Υ i , j a , b V L , j ( a , b ) ( Z ) + V L , i ( a , b ) ( L ) ,
where
Υ i , j a , b = Γ ( i + a + 1 ) Γ ( j + λ ) Γ ( i + j + λ + 1 ) L ( j + 1 ) Γ ( i j ) Γ ( j + a + 2 ) Γ ( i + λ ) Γ ( 2 j + λ ) F 3 4 1 i + j , 1 + j , j + a + 1 , i + j + λ + 1 2 + j , a + j + 2 , 2 j + λ + 1 ; 1 .
Proof. 
We have
V L , i ( a , b ) ( Z ) = ( Z L ) V L , i ( a , b ) ( Z ) V L , i ( a , b ) ( L ) Z L + V L , i ( a , b ) ( L ) .
In view of (7) and (9), we obtain
V L , i ( a , b ) ( Z ) V L , i ( a , b ) ( L ) Z L = k = 0 i 1 c ¯ k + 1 ( i ) ( L Z ) k = k = 0 i 1 c ¯ k + 1 ( i ) r = 0 k b ¯ r ( k ) V L , r ( a , b ) ( Z ) ,
consequently,
V L , i ( a , b ) ( Z ) V L , i ( a , b ) ( L ) Z L = j = 0 i 1 r = 0 i j 1 c ¯ r + j + 1 ( i ) b ¯ j ( r + j ) V L , j ( a , b ) ( Z ) = j = 0 i 1 Υ i , j a , b V L , j ( a , b ) ,
where Υ i , j a , b has the form from (16). Substitution of (19) into (17) leads to (15). □
Theorem 2.
D ϕ p , q , i ( a , b ) ( Z ) , i 0 , can be expressed as follows:
D ϕ p , q , i ( a , b ) ( Z ) = j = 0 i 1 Ω i , j p , q ϕ p , q , j ( a , b ) ( Z ) + ϑ p , q , i ( Z ) ,
where ϑ p , q , i ( Z ) = p i ! ( 1 ) i ( b + 1 ) i Z p 1 ( L Z ) q q i ! ( a + 1 ) i ( L Z ) q 1 Z p and
Ω i , j p , q = θ i , j a , b ( p ) + q Υ i , j a , b .
Proof. 
In view of (11), the first derivative of ϕ p , q , i ( a , b ) ( Z ) takes the following form:
D ϕ p , q , i ( a , b ) ( Z ) = ( L Z ) q D ( Z p V L , i ( a , b ) ( Z ) ) q ( L Z ) q 1 Z p V L , i ( a , b ) ( Z ) .
Using Lemma 1 and Theorem 1 leads to (22), which takes the form from (20). □
Now, we have reached one of the main desired results in this section, which is the OM of the ods of
Φ p , q , N ( a , b ) ( Z ) = [ ϕ p , q , 0 ( a , b ) ( Z ) , ϕ p , q , 1 ( a , b ) ( Z ) , , ϕ p , q , N ( a , b ) ( Z ) ] T .
Corollary 1 shows this outcome, which directly follows from Theorem 2.
Corollary 1.
d m Φ p , q , N ( a , b ) ( Z ) d Z m = G p , q m Φ p , q , N ( a , b ) ( Z ) + η p , q , N ( m ) ( Z )
with
η p , q , N ( m ) ( Z ) = k = 0 m 1 G p , q k ϑ p , q , N ( m k 1 ) ( Z ) ,
where ϑ p , q , N ( Z ) = ϑ p , q , 0 ( Z ) , ϑ p , q , 1 ( Z ) , , ϑ p , q , N ( Z ) T a n d G p , q = g i , j ( p , q ) 0 i , j N
g i , j ( p , q ) = Ω i , j p , q , i > j , 0 , o t h e r w i s e .
The OM of the VOFDs of Φ p , q , N ( a , b ) ( Z ) is the second primary desired result, which is provided in Theorem 4. To achieve this, we need to consider the following theorem:
Theorem 3
([9]). D υ ( Z ) ϕ p , 0 , i ( a , b ) ( Z ) , i 0 has the following expression:
D υ ( Z ) ϕ p , 0 , i ( a , b ) ( Z ) = Z υ ( Z ) j = 0 i Θ i , j ( p , 0 ) ( υ ( Z ) ) ϕ p , 0 , j ( a , b ) ( Z ) ,
which leads to
D υ ( Z ) Φ p , 0 , N ( a , b ) ( Z ) = Z υ ( Z ) D p , 0 ( υ ( Z ) ) Φ p , 0 , N ( a , b ) ( Z ) ,
where D p , 0 ( υ ( Z ) ) = ( d i , j ( p , 0 ) ( υ ( Z ) ) ) is a matrix of order ( N + 1 ) × ( N + 1 ) with elements defined as follows:
d i , j ( p , 0 ) ( υ ( Z ) ) = Θ i , j ( p , 0 ) ( υ ( Z ) ) , i j , 0 , o t h e r w i s e ,
and
Θ i , j ( p , 0 ) ( υ ( Z ) ) = ( 1 ) i j ( p + j ) ! Γ ( i + b + 1 ) Γ ( j + λ ) Γ ( i + j + λ ) ( i j ) ! Γ ( j + b + 1 ) Γ ( 2 j + λ ) Γ ( i + λ ) Γ ( p + j υ ( Z ) + 1 ) × F 2 3 j i , p + j + 1 , i + j + λ 2 j + λ + 1 , p + j υ ( Z ) + 1 ; 1 .
Theorem 4.
D υ ( Z ) ϕ p , q , i ( a , b ) ( Z ) , i 0 has the following expression:
D υ ( Z ) ϕ p , q , i ( a , b ) ( Z ) = Z υ ( Z ) j = 0 i Λ i , j ( p , q ) ( υ ( Z ) , Z ) ϕ p , 0 , j ( a , b ) ( Z )
and consequently,
D υ ( Z ) Φ p , q , N ( a , b ) ( Z ) = Z υ ( Z ) D p , q ( υ ( Z ) ) ( Z ) Φ p , 0 , N ( a , b ) ( Z ) ,
where D p , q ( υ ( Z ) ) ( Z ) = ( d i , j ( p , q ) ( υ ( Z ) , Z ) ) is a matrix of order ( N + 1 ) × ( N + 1 ) with elements defined as follows:
d i , j ( p , q ) ( υ ( Z ) , Z ) = Λ i , j ( p , q ) ( υ ( Z ) , Z ) , i j , 0 , o t h e r w i s e ,
and
Λ i , j ( p , q ) ( υ ( Z ) , Z ) = k = 0 q ( 1 ) k q k L q k Θ i , j ( k + p , 0 ) ( υ ( Z ) ) Z k .
Proof. 
We have
D υ ( Z ) ϕ p , q , i ( a , b ) ( Z ) = k = 0 q ( 1 ) k q k L q k D υ ( Z ) ( Z k + p V L , i ( a , b ) ( Z ) ) .
Applying Theorem 3, we obtain
D υ ( Z ) ϕ p , q , i ( a , b ) ( Z ) = k = 0 q ( 1 ) k q k L q k Z υ ( Z ) j = 0 i Θ i , j ( k + p , 0 ) ( υ ( Z ) ) ( Z k + p V L , j ( a , b ) ( Z ) ) , = Z υ ( Z ) j = 0 i k = 0 q ( 1 ) k q k L q k Θ i , j ( k + p , 0 ) ( υ ( Z ) ) Z k ϕ p , 0 , j ( a , b ) ( Z ) , = Z υ ( Z ) j = 0 i Λ i , j ( p , q ) ( υ ( Z ) , Z ) ϕ p , 0 , j ( a , b ) ( Z ) ;
then,
D υ ( Z ) ϕ p , q , i ( a , b ) ( Z ) = Z υ ( Z ) [ Λ i , 0 ( p , q ) ( υ ( Z ) , Z ) , Λ i , 1 ( p , q ) ( υ ( Z ) , Z ) , , Λ i , i ( p , q ) ( υ ( Z ) , Z ) , 0 , , 0 ] Φ p , 0 , N ( a , b ) ( Z )
and (30) is obtained. □

5. Numerical Handling for the DEs (1) and (2) Subject to BCs (3)

In this part, we use the computed OMs to find numerical solutions for (1) and (2) subject to (3).

5.1. Homogeneous BCs

Suppose that
X ( i ) ( 0 ) = 0 , X ( j ) ( L ) = 0 , i = 0 , 1 , , n 1 , j = 0 , 1 , , n 2 , n 1 + n 2 + 2 = n ,
p = n 1 + 1 , and q = n 1 + 1 ; then, the following approximations can be considered:
X ( Z ) X N ( Z ) = i = 0 N a i ϕ p , q , N ( a , b ) ( Z ) = A T Φ p , q , N ( a , b ) ( Z )
and
D υ ( Z ) X ( Z ) D υ ( Z ) X N ( Z ) = A T G p , q m Φ p , q , N ( a , a ) ( Z ) + η p , q , N ( m ) ( Z ) , υ ( Z ) = m , m is an integer , Z υ ( Z ) A T D p , q ( υ ( Z ) ) Φ p , q , N ( a , a ) ( Z ) , υ ( Z ) is a fraction number or function ,
where A = a 0 , a 1 , , a N T .
To express the residual of Equation (1) in the method suggested, it is possible to use the approximations provided by (37) and (38):
R p , q , N ( Z ) = A T G p , q n Φ p , q , N ( a , b ) ( Z ) + η p , q , N ( n ) ( Z ) F ( Z , A T Φ p , q , N ( a , b ) ( Z ) , A T G p , q Φ p , q , N ( a , b ) ( Z ) + η p , q , N ( 1 ) ( Z ) , , A T G p , q n 1 Φ p , q , N ( a , b ) ( Z ) + η p , q , N ( n 1 ) ( Z ) ) ,
while the residual of Equation (2) is in the following form:
R ^ p , q , N ( Z ) = Z ν ( Z ) A T D p , q ( ν ( Z ) ) Φ p , 0 , N ( a , b ) ( Z ) F ( Z , A T Φ p , 0 , N ( a , b ) ( Z ) , Z ν 1 ( Z ) A T D p , q ( ν 1 ( Z ) ) Φ p , 0 , N ( a , b ) ( Z ) , , Z ν m ( Z ) A T D p , q ( ν m ( Z ) ) Φ p , 0 , N ( a , b ) ( Z ) ) .
Using the ( N + 1 ) zeros of V L , N + 1 ( a , b ) ( Z ) as collocation points, or alternatively, using Z k = L ( k + 1 ) N + 2 , 0 k N , we obtain the system
R p , q , N ( Z k ) = 0 , 0 k N
in the case of ODE (1) and the system
R ^ p , q , N ( Z k ) = 0 , 0 k N
in the case of VOFDE (2). We can compute the coefficients a k , 0 k N , by solving (41) or (42) to obtain the approximated solutions of (1) or (2), respectively. This proposed algorithm is referred to as G S J C O P M M .

5.2. Nonhomogeneous BCs

It is important to change the nonhomogeneous conditions (3), the ODE (1), and the VOFDE (2) into similar forms with homogeneous conditions in order to make the suggested algorithm work. The following transformation is what makes these changes possible:
X ¯ ( Z ) = X ( Z ) T n ( Z ) , T n ( Z ) = j = 0 n 1 C j Z j ,
where the coefficients C j ( j = 0 , 1 , , n 1 ) can be computed by solving the system
T n ( i ) ( 0 ) = 0 , T n ( j ) ( L ) = 0 , i = 0 , 1 , 2 , , n 1 , j = 0 , 1 , 2 , , n 2 , n 1 + n 2 + 2 = n .
Solving the following amended equations can simplify the current issue:
X ¯ ( n ) ( Z ) = F ( Z , X ¯ ( Z ) + T n ( Z ) , ( X ¯ + T n ( Z ) ) ( 1 ) , , ( X ¯ ( Z ) + T n ( Z ) ) ( n 1 ) ) , Z [ 0 , L ] ,
and
D ν ( Z ) X ¯ ( Z ) = F ( Z , X ¯ ( Z ) + T n ( Z ) , D ν 1 ( Z ) ( X ¯ ( Z ) + T n ( Z ) ) , D ν 2 ( Z ) ( X ¯ ( Z ) + T n ( Z ) ) , , D ν m ( Z ) ( X ¯ ( Z ) + T n ( Z ) ) ) , Z [ 0 , L ] , 0 ν 1 ( Z ) < ν 2 ( Z ) < < ν m ( Z ) < ν ( Z ) n ,
with the following BCs:
X ¯ ( i ) ( 0 ) = 0 , X ¯ ( j ) ( L ) = 0 , i = 0 , 1 , 2 , , n 1 , j = 0 , 1 , 2 , , n 2 , n 1 + n 2 + 2 = n .
Hence,
X N ( Z ) = X ¯ N ( Z ) + T n ( Z ) .

6. Convergence and Error Analysis

Here, we look at the suggested method’s convergence and error estimations. To do this, we first need to define the space S p , q , N and obtained error e N ( Z ) , which are our primary focus:
S p , q , N = S p a n { ϕ p , q , 0 ( a , b ) ( Z ) , ϕ p , q , 1 ( a , b ) ( Z ) , . . . , ϕ p , q , N ( a , b ) ( Z ) } , e N ( Z ) = X ( Z ) X N ( Z ) .
Then,
e N 2 = 0 L e N ( Z ) 2 d Z 1 / 2 , e N = m a x 0 Z L e N ( Z ) .
Theorem 5.
Suppose that X ( Z ) = Z p ( L Z ) q u ( Z ) and that X N ( Z ) is provided by (37), which represents the best possible approximation for X ( Z ) out of S p , q , N . Then,
e N K L p + q + 1 2 λ p p + q p q p + q q e L 4 N ( N + 1 ) s N 1
and
e N 2 K L p + q + 3 / 2 2 λ p p + q p q p + q q e L 4 N ( N + 1 ) s N 1 ,
where s = m a x { a , b , 1 / 2 } < N + 1 and K = m a x Z [ 0 , L ] | d N + 1 u ( η ) d Z N + 1 | , η [ 0 , L ] .
Proof. 
The author of [9] (the proof of Theorem 6.1) shows that if u N ( Z ) is the interpolating polynomial for u ( Z ) at the roots of V L , N + 1 ( a , b ) ( Z ) , then we obtain
u u N K L 2 λ e L 4 N ( N + 1 ) s N 1 , N > s 1 .
Now, consider the approximation X ( Z ) X N ( Z ) = Z p ( L Z ) q u N ( Z ) ; in this case,
X X N m a x 0 Z L Z p ( L Z ) q u u N .
It is not difficult to show that
m a x 0 Z L Z p ( L Z ) q = L p + q p p + q p q p + q q ,
in which case using (52), (53) and (54) leads to
X X N K L p + q + 1 2 λ p p + q p q p + q q e L 4 N ( N + 1 ) s N 1 .
Because the approximate solution X N ( Z ) S p , q , N represents the best possible approximation of X ( Z ) , we obtain
X X N X h , h S p , q , N
and
X X N 2 X h 2 , h S p , q , N .
Therefore,
X X N X X N K L p + q + 1 2 λ p p + q p q p + q q e L 4 N ( N + 1 ) s N 1
and
X X N 2 X X N 2 L q u u N 0 L Z 2 p d Z 1 / 2 K L p + q + 3 / 2 2 λ p p + q p q p + q q e L 4 N ( N + 1 ) s N 1 .
The resulting error converges at a very fast rate, as shown by Corollary 2.
Corollary 2.
For all N > s 1 , we have
e N = O ( ( 0.7 ) N L N N s N 1 )
and
e N 2 = O ( ( 0.7 ) N L N N s N 1 ) .
The stability of error, or the process of estimating the propagation of the error, is the focus of the subsequent theorem.
Theorem 6.
For any two successive approximations of X ( Z ) , we obtain
| X N + 1 X N | O ( ( 0.7 ) N L N N s N 1 ) , N > s 1 ,
where ≲ means that a generic constant d exists such that | X N + 1 X N | d ( e L / 4 ) N N s N 1 .
Proof. 
We have
| X N + 1 X N | = | X N + 1 X + X X N | | X X N + 1 | + | X X N | e N + 1 + e N .
By considering (58), we can obtain (60). □

7. Numerical Simulations

In the current section, we present numerical simulations of BVPs as expressed in Equations (1) and (2). Both types share a common form of BC (3). In the following examples, we demonstrate the application of G S J C O P M M to solve these BVPs. These numerical simulations provide insights into the behavior of the solutions and the accuracy of the proposed G S J C O P M M algorithm. We aim to showcase the applicability, effectiveness, and efficiency of G S J C O P M M in tackling these challenging BVPs. We provide eight examples to satisfy these aims; e N and e N 2 are presented for evaluation purposes. Additionally, the order of convergence provided by the expression
R N L o g ( e N + 1 / e N ) L o g ( e N / e N 1 ) ,
is discussed.

7.1. Numerical Simulations for Handling ODE (1) with BCs (3)

Problem 1.
Consider the differential equation
D 5 X ( Z ) + Z 2 ( D X ( Z ) ) 2 + X ( Z ) = g ( Z ) , 0 Z 1 , X ( i ) ( 0 ) = 0 , i = 0 , 1 , 2 , 3 , X ( 1 ) = 0 , } ,
where g ( Z ) is computed such that X ( Z ) = Z 4 ( 1 Z ) . Applying the G S J C O P M M algorithm leads to
X ( Z ) = X N ( Z ) = i = 0 N a i ϕ 4 , 1 , i ( 0 , 0 ) ( Z ) , N = 0 , 1 , 2 , 3 , 4 ,
where a 0 = 1 and a i = 0 , i 0 .
Problem 2.
Consider the following nonlinear BVP of sixth order [36,37,38]:
D 6 X ( Z ) = e Z X 2 ( Z ) , 0 Z 1 , X ( i ) ( 0 ) = ( 1 ) i , X ( i ) ( 1 ) = ( 1 ) i e 1 , i = 0 , 1 , 2 , } ,
where X ( Z ) = e Z . Applying the G S J C O P M M algorithm leads to
X N ( Z ) = i = 0 N a i ϕ 3 , 3 , i ( a , b ) ( Z ) + ( 7 e 19 ) 2 e Z 5 ( 46 17 e ) 2 e Z 4 ( 11 e 29 ) 2 e Z 3 + 1 2 Z 2 Z + 1 ,
which provides us with approximated solutions that match the exact solution with a precision of 10 17 at N = 14 for various a , b values, as shown in Table 1. Table 2 presents a comparison between GSJCOPMM and the three methods in [36,37,38]. Figure 1 presents the computed errors and approximate solutions. Based on the given orders of convergence R N , it is apparent see that the convergence rate improves as N increases; a higher order of convergence means that the error goes down faster.
Problem 3.
Consider the following self-adjoint singularly perturbed singular BVP [39,40]:
ε X ( 3 ) ( Z ) + 1 Z X ( 2 ) ( Z ) + X ( Z ) = 3 ε sin 3 Z 27 ε cos 3 Z 9 Z sin 3 Z , 0 Z 1 , X ( 0 ) = 0 , X ( 1 ) ( 0 ) = 9 ε , X ( 1 ) = 3 ε sin 3 , }
for which the exact solution is X ( Z ) = 3 ε sin 3 Z . Applying the G S J C O P M M algorithm leads to
X N ( Z ) = i = 0 N a i ϕ 2 , 1 , i ( a , b ) ( Z ) + 3 ε ( ( sin 3 ) Z 3 Z + 3 ) Z .
Table 3 displays the MAE for some values of a , b , N , and ε, while Table 4 displays a comparison between the G S J C O P M M , QBSM [39], and NCBS methods [40]. Figure 2a shows e 12 ( Z ) at ε = 2 16 , 2 18 . In addition, Figure 2b shows the log-errors for various N and ε = 2 4 , 2 8 , 2 16 . This shows that the solutions are stable and converging.
Problem 4.
For one-dimensional Bratu’s problems [41]
X ( 2 ) ( Z ) + λ e X ( Z ) = 0 , λ R , 0 Z 1 , X ( 0 ) = 0 , X ( 1 ) ( 0 ) = 0 , }
with the exact solution in the form from [42] (Equation 47), we have
X ( Z ) = 2 ln cosh ( θ 2 ( Z 1 2 ) ) cosh ( θ 4 ) ,
where θ satisfies θ = 2 λ cosh ( θ 4 ) . Bratu’s problems have either no solution, one solution, or two solutions, respectively, when λ > λ c , λ = λ c , or λ < λ c , where λ c = 3.513830719 . The relations between λ and θ for some values of λ < λ c are provided in [42] (Table 1).
Application of G S J C O P M M leads to the obtained approximated solutions matching the exact solution with a precision of 10 16 at N = 14 for various a , b values, as shown in Table 5. According to Tables 1 and 2 presented in [41], Table 6 presents a comparison between the absolute errors obtained by the G S J C O P M M method and the three Schemes(15), (16)a, and (16)b in [41] as well as a computational time (CPU time) comparison between G S J C O P M M and the three finite difference Schemes(15), (16)a, and (16)b.
Remark 1.
It is important to note that the comparison of the computational time of the numerical method of G S J C O P M M with the finite difference methods shown in Example 4 shows that G S J C O P M M is faster; however, this result cannot be generalized, as the computational time may vary depending on the problem, the complexity of the equations, and the implementation details.

7.2. Numerical Simulations for Handling VOFDE (2) with BCs (3)

Problem 5.
Consider the boundary Bagely–Torvik equation [10,43]
D 2 X ( Z ) + D 3 / 2 X ( Z ) + X ( Z ) = Z 2 + 2 + 4 Z π , 0 Z L , X ( 0 ) = 0 , X ( L ) = L 2 , }
for which the exact solution is X ( Z ) = Z 2 . Applying G S J C O P M M leads to
X ( Z ) = X N ( Z ) = i = 0 N a i ϕ 1 , 1 , i ( a , b ) ( Z ) + L Z , N = 0 , 1 , 2 , , 6 ,
where a 0 = 1 and a i = 0 , i 0 .
Remark 2.
It is worth noting that X ( Z ) = X 0 ( Z ) , a , b > 1 , while according to the author of [10], at L = 1 we obtain X ( Z ) using N = 2 . Furthermore, the authors of [43] achieved the best error of 3.78 × 10 12 at L = 5 .
Problem 6.
Consider the equation [44,45]:
D δ ( Z ) X ( Z ) + cos ( Z ) D X ( Z ) + 4 X ( Z ) + 5 X ( Z 2 ) = 2 Z 2 δ ( Z ) Γ ( 3 δ ( Z ) ) + 5 Z 4 + 4 Z 2 + 2 t cos ( Z ) , 0 Z 1 , X ( 0 ) = 0 , X ( 1 ) = 1 , }
with the exact solution X ( Z ) = Z 2 , where δ ( Z ) = 1 4 ( sin ( Z ) + 5 ) . Applying G S J C O P M M using N = 0 yields
X ( Z ) = X 0 ( Z ) = ϕ 1 , 1 , 0 ( a , b ) ( Z ) + Z .
Remark 3.
It is worth noting that X ( Z ) = X 0 ( Z ) , a , b > 1 , while according to the author of [44] X ( Z ) is obtained using N = 2 . Furthermore, the authors of [45] achieved the best error of 6.15064 × 10 14 .
Problem 7.
Consider the nonlinear differential equation
D μ ( Z ) X ( Z ) + Z X ( Z ) D X ( Z ) 4 Z 3 X ( Z ) = 24 Z 4 μ ( Z ) Γ ( 5 μ ( Z ) ) + 4 Z 8 4 Z 7 , 0 Z 1 , X ( 0 ) = 0 , and X ( 1 ) = 1 , } ,
where μ ( Z ) = 2 Z . The exact solution is X ( Z ) = Z 4 . Applying G S J C O P M M using N = 2 yields
X ( Z ) = X 2 ( Z ) = i = 0 2 a i ϕ 1 , 1 , i ( 1 , 1 ) ( Z ) + Z ,
where a 0 = 9 5 , a 1 = 1 2 , a 2 = 1 15 .
Problem 8.
Consider the nonlinear BVP
D μ ( Z ) X ( Z ) + sin ( Z ) ( X ( Z ) ) 2 = g ( Z ) , 5 < μ ( Z ) < 6 , 0 Z 1 , X ( i ) ( 0 ) = 0 , i = 0 , 1 , 2 , 3 , X ( 1 ) = 0 , X ( 1 ) ( 1 ) = 0 , μ ( Z ) = 5 + 0.5 e Z , } ,
where g ( Z ) is computed such that X ( Z ) = Z 4 ( 1 Z ) 2 e Z . Applying the G S J C O P M M algorithm leads to
X N ( Z ) = i = 0 N a i ϕ 4 , 2 , i ( a , b ) ( Z ) .
Table 7 displays the computed errors e N and e N 2 for some values of a , b , and N . The two figures in Figure 3a,b show e N ( Z ) and L o g 10 ( e N ) for various N , respectively. This shows that the solutions are stable and converging.

8. Conclusions

Our study has introduced a novel and efficient numerical approach for solving problems involving ODEs and VOFDEs associated with BCs. The main achievements of our research can be summarized as follows:
(i)
We have established a solid theoretical foundation by constructing OMs and incorporating them into the SCM. This framework allows for reliable and precise numerical computation of solutions to problems described by the aforementioned ODEs and VOFDEs with BCs.
(ii)
Extensive error analysis and convergence studies have been conducted, providing theoretical guarantees for the effectiveness and reliability of our proposed method, known as GSJCOPMM.
Our research has significant implications, as GSJCOPMM provides several advantages over existing approaches for solving ODEs and VOFDEs with BCs. First, GSJPs ensure that the given BCs are satisfied, resulting in improved numerical solution accuracy. Second, the developed OMs and their implementation within the SCM enable efficient computations, reducing computational costs while maintaining high accuracy. These features make GSJCOPMM particularly well suited for solving complex problems encountered in various scientific and engineering fields.
The potential applications of our proposed method are broad, encompassing a wide range of problems involving ODEs and VOFDEs. Our proposed method has a broad range of potential applications involving PDEs, systems of ODEs and VOFDEs in thhe mathematical modeling of physical systems, heat transfer, boundary layer problems in fluid mechanics, the motion of mass–spring systems, reaction rates, and other phenomena characterized by these models. In conclusion, this research contributes significantly to the advancement of numerical methods for ODEs and VOFDEs with BCs, providing an efficient and accurate approach for solving complex boundary value problems. The establishment of a theoretical foundation together with the demonstrated advantages of GSJCOPMM opens up new avenues for tackling challenging problems in various scientific and engineering domains.

Funding

No funding was received to assist with the preparation of this manuscript.

Data Availability Statement

No data are associated with this research.

Acknowledgments

The author acknowledges the valuable contributions of the anonymous reviewers and editor, whose insightful comments and recommendations greatly improved the quality of this research.

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AbbreviationsDefinitions
DEsDifferential equations
ODEsOrdinary differential equations
PDEsPartial differential equations
ODsOrdinary derivatives
VOFDEsVariable-order fractional differential equations
VOFDsVariable-order fractional derivatives
MTVOFDEsMultiterm variable-order fractional differential equations
OMsOperational matrices
SCMSpectral collocation method
VOFCVariable-order fractional calculus
JPsJacobi polynomials
GSJPsGeneralized shifted Jacobi polynomials
BVPsBoundary value problems
BCsBoundary conditions
MAEMaximum absolute error

References

  1. Bagley, R.L.; Torvik, P.J. Fractional calculus in the transient analysis of viscoelastically damped structures. Aiaa J. 1985, 23, 918–925. [Google Scholar] [CrossRef]
  2. Davies, A.R.; Karageorghis, A.; Phillips, T.N. Spectral Galerkin methods for the primary two-point boundary value problem in modelling viscoelastic flows. Int. J. Numer. Methods Eng. 1988, 26, 647–662. [Google Scholar] [CrossRef]
  3. Karageorghis, A.; Phillips, T.N.; Davies, A.R. Spectral collocation methods for the primary two-point boundary value problem in modelling viscoelastic flows. Int. J. Numer. Methods Eng. 1988, 26, 805–813. [Google Scholar] [CrossRef]
  4. Baillie, R.T. Long memory processes and fractional integration in econometrics. J. Econom. 1996, 73, 5–59. [Google Scholar] [CrossRef]
  5. Mainardi, F. Fractional Calculus: Some Basic Problems in Continuum and Statistical Mechanics; Springer: Berlin/Heidelberg, Germany, 1997. [Google Scholar]
  6. Rossikhin, Y.A.; Shitikova, M.V. Applications of fractional calculus to dynamic problems of linear and nonlinear hereditary mechanics of solids. Appl. Mech. Rev. 1997, 50, 15–66. [Google Scholar] [CrossRef]
  7. Chow, T.S. Fractional dynamics of interfaces between soft-nanoparticles and rough substrates. Phys. Lett. A 2005, 342, 148–155. [Google Scholar] [CrossRef]
  8. Gregus, M. Third Order Linear Differential Equations; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012; Volume 22. [Google Scholar]
  9. Ahmed, H.M. Enhanced shifted Jacobi operational matrices of derivatives: Spectral algorithm for solving multiterm variable-order fractional differential equations. Bound. Value Probl. 2023, 2023, 108. [Google Scholar] [CrossRef]
  10. Ahmed, H.M. A new first finite class of classical orthogonal polynomials operational matrices: An application for solving fractional differential equations. Contemp. Math. 2023, 4, 974–994. [Google Scholar] [CrossRef]
  11. Abd-Elhameed, W.M.; Ahmed, H.M.; Youssri, Y.H. A new generalized Jacobi Galerkin operational matrix of derivatives: Two algorithms for solving fourth-order boundary value problems. Adv. Differ. Equ. 2016, 2016, 22. [Google Scholar] [CrossRef]
  12. Abd-Elhameed, W.M.; Al-Harbi, M.S.; Amin, A.K.; Ahmed, H.M. Spectral treatment of high-order Emden-Fowler equations based on modified Chebyshev polynomials. Axioms 2023, 12, 99. [Google Scholar] [CrossRef]
  13. Tural-Polat, S.N.; Dincel, A.T. Numerical solution method for multi-term variable order fractional differential equations by shifted Chebyshev polynomials of the third kind. Alex. Eng. J. 2022, 61, 5145–5153. [Google Scholar] [CrossRef]
  14. Ahmed, H.M. Numerical solutions for singular Lane-emden equations using shifted Chebyshev polynomials of the first kind. Contemp. Math. 2023, 4, 132–149. [Google Scholar] [CrossRef]
  15. Abd-Elhameed, W.M.; Ahmed, H.M. Tau and Galerkin operational matrices of derivatives for treating singular and Emden-Fowler third-order-type equations. Int. J. Mod. Phys. C 2022, 33, 2250061. [Google Scholar] [CrossRef]
  16. Sweilam, N.H.; Nagy, A.M.; El-Sayed, A.A. On the numerical solution of space fractional order diffusion equation via shifted Chebyshev polynomials of the third kind. J. King Saud Univ. Sci. 2016, 28, 41–47. [Google Scholar] [CrossRef]
  17. Liu, C.-S.; Li, B. Solving the fourth-order nonlinear boundary value problem by a boundary shape function method. Can. J. Phys. 2022, 101, 248–256. [Google Scholar] [CrossRef]
  18. El-Sayed, A.A.; Baleanu, D.; Agarwal, P. A novel Jacobi operational matrix for numerical solution of multi-term variable-order fractional differential equations. J. Taibah Univ. Sci. 2020, 14, 963–974. [Google Scholar] [CrossRef]
  19. Ahmed, H.M. New Generalized Jacobi Galerkin operational matrices of derivatives: An algorithm for solving multi-term variable-order time-fractional diffusion-wave equations. Fractal Fract. 2024, 8, 68. [Google Scholar] [CrossRef]
  20. Abd-Elhameed, W.M.; Alkenedri, A.M. Spectral solutions of linear and nonlinear bvps using certain Jacobi polynomials generalizing third-and fourth-kinds of Chebyshev polynomials. Comput. Model Eng. Sci. 2021, 126, 955–989. [Google Scholar] [CrossRef]
  21. Doha, E.H.; Abd-Elhameed, W.M.; Bhrawy, A.H. New spectral-Galerkin algorithms for direct solution of high even-order differential equations using symmetric generalized Jacobi polynomials. Collect. Math. 2013, 64, 373–394. [Google Scholar] [CrossRef]
  22. 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]
  23. Ahmed, H.M. Numerical solutions of Korteweg-de Vries and Korteweg-de Vries-Burger’s equations in a Bernstein polynomial basis. Mediterr. J. Math. 2019, 16, 102. [Google Scholar] [CrossRef]
  24. Ahmed, H.M. Numerical solutions of high-order differential equations with polynomial coefficients using a Bernstein polynomial basis. Mediterr. J. Math. 2023, 20, 303. [Google Scholar] [CrossRef]
  25. Mittal, R.C.; Pandit, S. New scale-3 Haar Wavelets algorithm for numerical simulation of second order ordinary differential equations, Proceedings of the National Academy of Sciences. India Sect. Phys. Sci. 2019, 89, 799–808. [Google Scholar]
  26. Sharma, D.; Jiwari, R.; Kumar, S. Numerical solution of two point boundary value problems using Galerkin-finite element method. Int. J. Nonlinear Sci. 2012, 13, 204–210. [Google Scholar]
  27. Abd-Elhameed, W.M.; Youssri, Y.H.; Amin, A.K.; Atta, A.G. Eighth-kind Chebyshev polynomials collocation algorithm for the nonlinear time-fractional generalized Kawahara equation. Fractal Fract. 2023, 7, 652. [Google Scholar] [CrossRef]
  28. Youssri, Y.H.; Atta, A.G. Spectral collocation approach via normalized shifted Jacobi polynomials for the nonlinear Lane-Emden equation with fractal-fractional derivative. Fractal Fract. 2023, 7, 133. [Google Scholar] [CrossRef]
  29. Amin, A.Z.; Abdelkawy, M.A.; Solouma, E.; Al-Dayel, I. A Spectral Collocation Method for Solving the Non-Linear Distributed-Order Fractional Bagley–Torvik Differential Equation. Fractal Fract. 2023, 7, 780. [Google Scholar] [CrossRef]
  30. Chen, Y.M.; Liu, L.Q.; Li, B.F.; Sun, Y. Numerical solution for the variable order linear cable equation with Bernstein polynomials. Appl. Math. Comput. 2014, 238, 329–341. [Google Scholar] [CrossRef]
  31. Liu, J.; Li, X.; Wu, L. An operational matrix of fractional differentiation of the second kind of Chebyshev polynomial for solving multiterm variable order fractional differential equation. Math. Probl. Eng. 2016, 2016, 7126080. [Google Scholar] [CrossRef]
  32. Almeida, R.; Tavares, D.; Torres, D.F.M. The Variable-Order Fractional Calculus of Variations; Springer: Cham, Switzerland, 2019. [Google Scholar]
  33. Coimbra, C.F.M. Mechanics with variable-order differential operators. Ann. Phys. 2003, 515, 692–703. [Google Scholar] [CrossRef]
  34. Szeg, G. Orthogonal Polynomials, 4th ed.; American Mathematical Society: Providence, RI, USA, 1975; Volume XXIII. [Google Scholar]
  35. Luke, Y.L. Mathematical Functions and Their Approximations; Academic Press: London, UK, 1975. [Google Scholar]
  36. Wazwaz, A.-M. The numerical solution of sixth-order boundary value problems by the modified decomposition method. Appl. Math. Comput. 2001, 118, 311–325. [Google Scholar] [CrossRef]
  37. Noor, M.A.; Mohyud-Din, S.T. Homotopy perturbation method for solving sixth-order boundary value problems. Comput. Math. Appl. 2008, 55, 2953–2972. [Google Scholar] [CrossRef]
  38. Gul, M.; Khan, H.; Ali, A. The solution of fifth and sixth order linear and non linear boundary value problems by the improved residual power series method. JMAM 2022, 3, 1–14. [Google Scholar]
  39. Mishra, H.K.; Saini, S. Quartic B-Spline method for solving a singular singularly perturbed third-order boundary value problems. Am. J. Numer. Anal. 2015, 3, 18–24. [Google Scholar]
  40. Iqbal, M.K.; Abbas, M.; Wasim, I. New cubic B-spline approximation for solving third order Emden–Flower type equations. Appl. Math. Comput. 2018, 331, 319–333. [Google Scholar] [CrossRef]
  41. Adewumi, A.O.; Aderogba, A.A.; Akindeinde, S.O.; Fabelurin, O.O.; Lebelo, R.S. Finite difference spectral collocation schemes for the solutions of boundary value problems. Heliyon 2024, 10, E23453. [Google Scholar] [CrossRef] [PubMed]
  42. Mickens, R.E. Advances in the Applications of Nonstandard Finite Diffference Schemes; World Scientific: Singapore, 2005. [Google Scholar]
  43. Al-Mdallal, Q.M.; Syam, M.I.; Anwar, M.N. A collocation-shooting method for solving fractional boundary value problems. Commun. Nonlinear Sci. Numer. Simul. 2010, 15, 3814–3822. [Google Scholar] [CrossRef]
  44. Abdelkawy, M.A.; Lopes, A.M.; Babatin, M.M. Shifted fractional Jacobi collocation method for solving fractional functional differential equations of variable order. Chaos Solit. Fractals 2020, 134, 109721. [Google Scholar] [CrossRef]
  45. Yang, J.; Yao, H.; Wu, B. An efficient numerical method for variable order fractional functional differential equation. Appl. Math. Lett. 2018, 76, 221–226. [Google Scholar] [CrossRef]
Figure 1. Figures of e N ( Z ) and X N ( Z ) for Example 2 using various N with a = 0 and b = 3 . (a) Errors plots e 12 ( Z ) and e 14 ( Z ) . (b) Exact and approximate solutions X 1 ( Z ) and X 2 ( Z ) .
Figure 1. Figures of e N ( Z ) and X N ( Z ) for Example 2 using various N with a = 0 and b = 3 . (a) Errors plots e 12 ( Z ) and e 14 ( Z ) . (b) Exact and approximate solutions X 1 ( Z ) and X 2 ( Z ) .
Fractalfract 08 00199 g001
Figure 2. Figures of e N ( Z ) using various N for Example 3 with a = 0 and b = 3 . (a) e 12 ( Z ) for ε = 2 16 , 2 18 . (b) Graph of L o g 10 ( e N ) against N .
Figure 2. Figures of e N ( Z ) using various N for Example 3 with a = 0 and b = 3 . (a) e 12 ( Z ) for ε = 2 16 , 2 18 . (b) Graph of L o g 10 ( e N ) against N .
Fractalfract 08 00199 g002
Figure 3. Figures of e N ( Z ) using various N for Example 8 with a = 4.5 and b = 2.5 . (a) e N ( Z ) plots for N = 1 , 3 , 5 , 7 , 9 , 11 , 12 . (b) Graph of L o g 10 ( e N ) against N .
Figure 3. Figures of e N ( Z ) using various N for Example 8 with a = 4.5 and b = 2.5 . (a) e N ( Z ) plots for N = 1 , 3 , 5 , 7 , 9 , 11 , 12 . (b) Graph of L o g 10 ( e N ) against N .
Fractalfract 08 00199 g003
Table 1. Computed errors in Example 2.
Table 1. Computed errors in Example 2.
a b E r r o r s N = 2 N = 4 N = 6 N = 8 N = 12 N = 14
00 e N 1.3 × 10 3 1.5 × 10 6 2.9 × 10 9 2.7 × 10 12 1.7 × 10 15 5.5 × 10 16
e N 2 1.1 × 10 3 1.4 × 10 6 2.5 × 10 9 2.4 × 10 12 1.6 × 10 15 2.4 × 10 16
R N 1.101.121.661.891.921.87
10 e N 1.4 × 10 3 1.6 × 10 6 1.7 × 10 9 1.9 × 10 12 1.2 × 10 15 4.5 × 10 16
e N 2 1.1 × 10 3 1.2 × 10 6 1.4 × 10 9 1.0 × 10 12 1.1 × 10 15 2.5 × 10 16
R N 1.111.021.461.791.821.75
02 e N 1.5 × 10 3 1.4 × 10 6 2.5 × 10 9 1.8 × 10 12 1.4 × 10 15 4.2 × 10 16
e N 2 1.0 × 10 3 1.3 × 10 6 2.1 × 10 9 1.5 × 10 12 1.2 × 10 15 3.1 × 10 16
R N 1.081.131.561.791.811.77
−1/21/2 e N 1.2 × 10 3 1.2 × 10 6 2.3 × 10 9 2.4 × 10 12 1.6 × 10 15 7.1 × 10 17
e N 2 1.1 × 10 3 1.1 × 10 6 2.1 × 10 9 2.2 × 10 12 1.1 × 10 15 6.2 × 10 17
R N 1.121.231.461.691.711.69
1/21/2 e N 6.1 × 10 3 4.2 × 10 6 3.4 × 10 9 4.5 × 10 12 1.2 × 10 15 8.4 × 10 17
e N 2 2.5 × 10 3 1.4 × 10 6 1.2 × 10 9 2.7 × 10 12 1.0 × 10 15 7.2 × 10 17
R N 1.031.331.621.721.791.71
Table 2. A comparison of approaches [36,37,38] and G S J C O P M M for Example 2 using a = b = 1 .
Table 2. A comparison of approaches [36,37,38] and G S J C O P M M for Example 2 using a = b = 1 .
Z G S J C O P M M   ( N = 6 ) [38 ( N = 12 ) [36 ( N = 12 ) [37 ( N = 12 )
0.00.00.00.00.0
0.11.2 × 10 12 4.1 × 10 12 2.3 × 10 7 1.2 × 10 4
0.22.0 × 10 11 2.5 × 10 11 1.3 × 10 6 2.3 × 10 4
0.35.5 × 10 12 6.3 × 10 11 3.3 × 10 6 3.2 × 10 4
0.41.6 × 10 11 1.0 × 10 10 5.2 × 10 6 3.8 × 10 4
0.52.7 × 10 11 1.3 × 10 10 6.1 × 10 6 4.0 × 10 4
0.61.2 × 10 11 1.3 × 10 10 5.7 × 10 6 3.9 × 10 4
0.71.4 × 10 11 1.0 × 10 10 4.0 × 10 6 3.3 × 10 4
0.81.5 × 10 12 5.2 × 10 11 1.9 × 10 6 2.4 × 10 4
0.91.7 × 10 12 1.0 × 10 11 3.5 × 10 6 1.2 × 10 4
1.00.02.1 × 10 17 5.0 × 10 10 2.0 × 10 9
Table 3. Computed MAE in Example 3.
Table 3. Computed MAE in Example 3.
N a b ε 2−42−62−82−102−122−142−162−182−20
303 6.9 × 10 4 5.4 × 10 4 4.4 × 10 4 1.1 × 10 4 2.2 × 10 5 6.8 × 10 6 1.7 × 10 7 4.2 × 10 8 1.7 × 10 8
8 7.8 × 10 10 6.3 × 10 10 3.1 × 10 11 7.7 × 10 12 1.9 × 10 13 4.8 × 10 14 1.2 × 10 14 3.0 × 10 15 7.5 × 10 15
10 8.9 × 10 13 1.4 × 10 14 3.0 × 10 15 8.4 × 10 16 2.1 × 10 16 5.3 × 10 17 1.3 × 10 17 2.8 × 10 18 8.0 × 10 18
12 6.5 × 10 16 2.5 × 10 17 2.0 × 10 17 1.8 × 10 17 1.5.0 × 10 17 1.1 × 10 17 5.3 × 10 18 3.0 × 10 18 1.6 × 10 19
330 6.8 × 10 4 6.2 × 10 4 4.4 × 10 4 1.1 × 10 4 2.2 × 10 5 6.8 × 10 6 1.7 × 10 7 4.2 × 10 8 1.7 × 10 8
8 7.5 × 10 10 6.2 × 10 10 3.3 × 10 11 7.5 × 10 12 2.9 × 10 13 3.8 × 10 14 2.2 × 10 14 3.1 × 10 15 4.5 × 10 15
10 8.7 × 10 13 1.3 × 10 14 3.1 × 10 15 7.7 × 10 16 1.9 × 10 16 4.8 × 10 17 1.2 × 10 17 3.0 × 10 18 7.5 × 10 19
12 6.4 × 10 16 2.3 × 10 17 3.1 × 10 17 1.4 × 10 17 1.1 × 10 17 1.0 × 10 17 5.3 × 10 18 2.8 × 10 18 8.0 × 10 19
33.50.5 6.5 × 10 4 5.6 × 10 4 5.0 × 10 4 1.2 × 10 4 2.3 × 10 5 6.7 × 10 6 1.8 × 10 7 3.1 × 10 8 2.7 × 10 8
8 7.5 × 10 10 6.1 × 10 10 3.2 × 10 11 7.5 × 10 12 1.8 × 10 13 3.5 × 10 14 1.7 × 10 14 3.1 × 10 15 7.2 × 10 15
10 8.8 × 10 13 2.4 × 10 14 3.3 × 10 15 7.4 × 10 16 2.5 × 10 16 5.5 × 10 17 1.7 × 10 17 1.5 × 10 18 1.2 × 10 18
12 6.0 × 10 16 4.5 × 10 17 4.1 × 10 17 2.8 × 10 17 1.40 × 10 17 1.2 × 10 17 6.3 × 10 18 3.5 × 10 18 2.6 × 10 19
561 8.1 × 10 5 7.5 × 10 5 7.2 × 10 5 4.1 × 10 6 2.2 × 10 6 6.8 × 10 7 1.7 × 10 7 4.2 × 10 8 1.7 × 10 8
10 7.0 × 10 11 5.3 × 10 11 3.1 × 10 11 7.7 × 10 12 1.9 × 10 13 4.8 × 10 13 1.2 × 10 14 3.0 × 10 14 7.5 × 10 15
12 8.5 × 10 14 6.4 × 10 14 5.1 × 10 14 8.4 × 10 15 2.1 × 10 16 5.3 × 10 16 1.3 × 10 17 2.8 × 10 17 8.0 × 10 18
14 6.6 × 10 17 6.2 × 10 17 5.3 × 10 17 4.1 × 10 17 5.0 × 10 18 4.7 × 10 18 5.3 × 10 18 3.00 × 10 18 1.6 × 10 19
Table 4. Comparison of approaches [39,40] and G S J C O P M M for Example 3 using a = 4 , b = 1 .
Table 4. Comparison of approaches [39,40] and G S J C O P M M for Example 3 using a = 4 , b = 1 .
N ε 2−42−62−82−102−122−142−162−182−20
12GSJCOPMM2.0 × 10 15 4.3 × 10 16 3.9 × 10 17 2.1 × 10 17 1.5 × 10 17 1.3 × 10 17 5.5 × 10 18 3.4 × 10 18 4.1 × 10 19
128QBSM [39]2.1 × 10 7 1.7 × 10 8 1.2 × 10 9 7.5 × 10 11 5.2 × 10 12 4.6 × 10 13 6.8 × 10 14 1.5 × 10 14 3.6 × 10 15
128NCBS [40]3.5 × 10 9 2.0 × 10 10 5.5 × 10 12 1.5 × 10 12 5.4 × 10 13 1.5 × 10 13 3.7 × 10 14 9.2 × 10 15 2.3 × 10 15
Table 5. Computed errors in Example 4 when λ = 0.5 .
Table 5. Computed errors in Example 4 when λ = 0.5 .
a b E r r o r s N = 2 N = 4 N = 6 N = 8 N = 12 N = 14
00 e N 1.1 × 10 3 1.4 × 10 6 3.0 × 10 9 3.5 × 10 12 2.8 × 10 15 5.9 × 10 16
e N 2 1.0 × 10 3 1.2 × 10 6 2.4 × 10 9 2.2 × 10 12 1.4 × 10 15 2.1 × 10 16
10 e N 1.1 × 10 3 1.5 × 10 6 1.8 × 10 9 1.7 × 10 12 1.3 × 10 15 4.4 × 10 16
e N 2 1.3 × 10 3 1.1 × 10 6 1.2 × 10 9 1.1 × 10 12 1.2 × 10 15 2.4 × 10 16
02 e N 1.4 × 10 3 1.2 × 10 6 2.6 × 10 9 1.7 × 10 12 1.3 × 10 15 4.3 × 10 16
e N 2 1.1 × 10 3 1.4 × 10 6 2.2 × 10 9 1.6 × 10 12 1.3 × 10 15 3.2 × 10 17
−1/21/2 e N 1.3 × 10 3 1.1 × 10 6 2.2 × 10 9 2.3 × 10 12 1.4 × 10 15 6.2 × 10 16
e N 2 1.2 × 10 3 1.0 × 10 6 2.2 × 10 9 2.3 × 10 12 1.3 × 10 15 5.2 × 10 17
1/21/2 e N 5.9 × 10 3 4.1 × 10 6 3.3 × 10 9 5.5 × 10 12 1.3 × 10 15 7.5 × 10 16
e N 2 2.4 × 10 3 1.5 × 10 6 1.3 × 10 9 2.6 × 10 12 1.1 × 10 15 6.2 × 10 17
Table 6. A comparison of approaches [41] and G S J C O P M M for Example 4  ( λ = 0.5 ) using a = b = 1 and N = 10 .
Table 6. A comparison of approaches [41] and G S J C O P M M for Example 4  ( λ = 0.5 ) using a = b = 1 and N = 10 .
Z G S J C O P M M Scheme (15) ( n = 3 ) [41]Scheme (16)a [41]Scheme (16)b [41]
0.00.00.00.00.0
0.11.2 × 10 17 2.2899 × 10 14 3.0786 × 10 5 1.3850 × 10 7
0.22.0 × 10 17 1.7382 × 10 14 5.4900 × 10 5 4.1545 × 10 7
0.35.5 × 10 17 1.5430 × 10 14 7.2214 × 10 5 7.0764 × 10 7
0.41.6 × 10 16 1.3721 × 10 14 8.2639 × 10 5 9.2180 × 10 7
0.52.7 × 10 16 1.3222 × 10 14 8.6120 × 10 5 9.9977 × 10 7
0.61.2 × 10 16 1.3721 × 10 14 8.2639 × 10 5 9.2180 × 10 7
0.71.4 × 10 17 1.5430 × 10 14 7.2214 × 10 5 7.0764 × 10 7
0.81.5 × 10 17 1.7382 × 10 14 5.4900 × 10 5 4.1545 × 10 7
0.91.7 × 10 17 2.2899 × 10 14 3.0786 × 10 5 1.3850 × 10 7
1.00.00.00000.00000.0000
CPU Time0.61 s1.63 s1.59 s1.69 s
Table 7. Computed errors in Example 8.
Table 7. Computed errors in Example 8.
a b E r r o r s N = 3 N = 5 N = 7 N = 9 N = 11 N = 12
4.52.5 e N 5.3 × 10 5 7.5 × 10 7 3.9 × 10 9 6.7 × 10 12 5.7 × 10 15 2.5 × 10 16
e N 2 3.1 × 10 5 3.2 × 10 7 3.5 × 10 9 4.6 × 10 12 4.6 × 10 15 1.4 × 10 16
43 e N 2.6 × 10 5 1.3 × 10 7 1.3 × 10 9 2.6 × 10 12 2.8 × 10 15 7.7 × 10 17
e N 2 1.1 × 10 5 1.1 × 10 7 1.0 × 10 9 2.1 × 10 12 2.6 × 10 15 6.4 × 10 17
2.54.5 e N 5.2 × 10 5 7.1 × 10 7 3.5 × 10 9 6.1 × 10 12 7.1 × 10 15 2.2 × 10 16
e N 2 3.1 × 10 5 3.2 × 10 7 3.4 × 10 9 4.6 × 10 12 4.6 × 10 15 1.4 × 10 16
34 e N 2.3 × 10 5 3.2 × 10 7 1.2 × 10 9 2.5 × 10 12 1.7 × 10 15 7.1 × 10 17
e N 2 2.2 × 10 5 1.2 × 10 7 1.0 × 10 9 2.2 × 10 12 1.2 × 10 15 2.4 × 10 17
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

Ahmed, H.M. New Generalized Jacobi Polynomial Galerkin Operational Matrices of Derivatives: An Algorithm for Solving Boundary Value Problems. Fractal Fract. 2024, 8, 199. https://doi.org/10.3390/fractalfract8040199

AMA Style

Ahmed HM. New Generalized Jacobi Polynomial Galerkin Operational Matrices of Derivatives: An Algorithm for Solving Boundary Value Problems. Fractal and Fractional. 2024; 8(4):199. https://doi.org/10.3390/fractalfract8040199

Chicago/Turabian Style

Ahmed, Hany Mostafa. 2024. "New Generalized Jacobi Polynomial Galerkin Operational Matrices of Derivatives: An Algorithm for Solving Boundary Value Problems" Fractal and Fractional 8, no. 4: 199. https://doi.org/10.3390/fractalfract8040199

APA Style

Ahmed, H. M. (2024). New Generalized Jacobi Polynomial Galerkin Operational Matrices of Derivatives: An Algorithm for Solving Boundary Value Problems. Fractal and Fractional, 8(4), 199. https://doi.org/10.3390/fractalfract8040199

Article Metrics

Back to TopTop