Next Article in Journal
Relationship between Remanence and Micromorphology of Nd-Fe-B Permanent Magnets Revealed by Fractal Theory and EBSD Data
Next Article in Special Issue
High-Dimensional Chaotic Lorenz System: Numerical Treatment Using Changhee Polynomials of the Appell Type
Previous Article in Journal
Fractional-Order Control Techniques for Renewable Energy and Energy-Storage-Integrated Power Systems: A Review
Previous Article in Special Issue
Bifurcation of Traveling Wave Solution of Sakovich Equation with Beta Fractional Derivative
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Bernoulli-Type Spectral Numerical Scheme for Initial and Boundary Value Problems with Variable Order

1
Department of Mathematical Sciences, College of Science, Princess Nourah bint Abdulrahman University, P.O. Box 84428, Riyadh 11671, Saudi Arabia
2
Department of Mathematics, University of Malakand, Dir (L), Khyber Pakhtunkhawa, Chakdara P.O. Box 18800, Pakistan
3
College of Engineering, Al Ain University, Al Ain P.O. Box 64141, United Arab Emirates
4
Department of Mathematics, Tafila Technical University, Tafila P.O. Box 66110, Jordan
*
Author to whom correspondence should be addressed.
Fractal Fract. 2023, 7(5), 392; https://doi.org/10.3390/fractalfract7050392
Submission received: 11 March 2023 / Revised: 1 May 2023 / Accepted: 8 May 2023 / Published: 9 May 2023
(This article belongs to the Special Issue Recent Advances in Time/Space-Fractional Evolution Equations)

Abstract

:
This manuscript is devoted to using Bernoulli polynomials to establish a new spectral method for computing the approximate solutions of initial and boundary value problems of variable-order fractional differential equations. With the help of the aforementioned method, some operational matrices of variable-order integration and differentiation are developed. With the aid of these operational matrices, the considered problems are converted to algebraic-type equations, which can be easily solved using computational software. Various examples are solved by applying the method described above, and their graphical presentation and accuracy performance are provided.

1. Introduction

Fractional calculus provides generalization to classical calculus. The history of fractional calculus is given in detail in [1]. Fractional calculus is the basic tool for modeling many real-world problems. Fractional-order integral and differential equations (FOIDEs) have many applications in almost every field of science and engineering: for example, the aforementioned area is increasingly being used in many branches of physics, such as solid physics [2], statistical physics [3], fluid mechanics [4], and viscoelasticity [5]. In the same way, in other branches of science—including biology, chemistry, and economics—fractional calculus concepts have been used. Here, we cite some famous works, where the concepts of the fractional calculus were used to investigate real world problems, as in [6,7,8,9]. Most FOIDEs cannot be solved analytically; therefore, numerical schemes and procedures have been developed by researchers for the solutions to FOIDEs. These schemes and procedures include the transformation scheme [10], the iteration procedure [11], the perturbation scheme [12], the Tau procedure [13,14], and the collocation scheme [15].
We note that the use of numerical methods based on the operational matrices of orthogonal polynomials, in order to solve various problems related to differential and integral equations of arbitrary order on finite and infinite intervals, produced highly accurate solutions for the aforementioned equations. Due to these important applications, orthogonal functions and polynomial series have received considerable attention, in dealing with various problems related to differential equations of arbitrary orders. Researchers have utilized various orthogonal polynomials introduced by Legendre, Chebyshev, Jacobi, and Bernstein to create matrices corresponding to fractional order integration and differentiation, called operational matrices (see [16,17,18]). The main characteristic of the aforementioned matrices is to reduce the problems under consideration, of fractional integration or differentiation, to a system of algebraic equations: hence, the said procedure greatly simplifies the problem for its numerical solution. In the same way, the operational matrices of fractional derivatives and integrals have also been presented for orthogonal Laguerre and modified generalized Laguerre polynomials, and their use with numerical techniques for solving various problems of fractional calculus on a semi-infinite interval; for further details, refer to [19].
Recently, researchers have observed that there exist different dynamical problems with FOIDEs that are time- and space-dependent. These problems have attracted the attention of researchers to variable-order calculus. Samko and his co-authors introduced variable-order calculus for the first time in 1993 [20]. Variable-order calculus is the generalization of fractional calculus, and it is used for the solutions of some complicated dynamical problems. The definitions of arbitrary order integration and differentiation, introduced by Riemann–Liouville and Caputo, have been extended to variable order.
It is very difficult to obtain analytical solutions to various variable-order integral and differential equations (VOIDEs), due to the complex nature of the variable order. On the other hand, numerical solutions are also very difficult to obtain, because of the kernel of the operators of variable-order integration and differentiation having variable power: due to this fact, very few methods have been developed for numerical solutions to VOIDEs. Those methods which have been developed include the second-order Runge–Kutta method, introduced by Soon [21] and his co-authors to study the variable viscoelasticity oscillator problem. The finite difference approximation method was used by Lin et al. [22] to investigate variable-order diffusion problems. Zhuang et al. [23] used the Euler approximation method to compute approximate solutions to advanced diffusion problems. Chen et al. [24] developed a numerical scheme with high spatial accuracy for a variable-order anomalous sub-diffusion equation. Recently, Amin et al. [25] extended the wavelet method for a class of variable order linear integro-differential equations. In the same vein, some authors [26] have recently studied various classes of variable-order problems by using a non-orthogonal basis.
Bernoulli polynomials have been used to obtain numerical solutions to various problems with fractional orders. For instance, Keshavarz et al. [27] used the operational matrices method to obtain the numerical solution for fractional optimal control problems via Bernoulli polynomials. Recently, Bernoulli polynomials have been used to study various problems of fractional calculus for numerical solutions (see [28,29,30]). For further properties and applications of Bernoulli polynomials, readers should refer to [31,32,33]. The same operational matrices of Bernoulli polynomials have been extended to variable-order optimal control problems by Nemati et al. [34].
Dealing with boundary value problems for numerical results is currently an attractive area of research. In addition, the investigation of boundary value problems under variable order has hitherto very rarely been considered. On the other hand, left and right fractional differential operators are also attracting much attention, as they appear as the Euler–Lagrange equations in the study of variational principles (see [35]). We know that fractional differential equations are widely used for modeling anomalous diffusion in porous media, in which particles have been observed to spread at a rate that was incompatible with classical Brownian motion. For such purposes, the Riesz fractional derivative has been shown to be more attractive than the left-sided derivative, as it is able to take into account contributions from both sides of the domain (see [36,37]). The aforementioned differential operator is a linear combination of the left- and right-sided derivatives, hence resulting in a fractional differential operator centrally symmetric on finite domains. While the aforementioned derivative is commonly used as a left and right Riemann–Liouville derivative of fractional order, to model fractional diffusion, the Riesz–Caputo derivative seems more suitable for avoiding nonphysical issues (see [38]). Very recently, Blaszczyk et al. [39] investigated some applications of the Riesz–Caputo fractional derivative of variable order with fixed memory. In the same way, Pitolli et al. [40] investigated approximation of the Riesz–Caputo derivative by cubic splines. The aforementioned differential operator of variable order, depending on a time variable with fixed memory a, is defined as
t a R C D t + a v ( t ) z ( t ) = 1 2 t a C D t v ( t ) z ( t ) + ( 1 ) n t C D t + a v ( t ) z ( t ) ,
where
t a C D t v ( t ) z ( t ) = 1 Γ ( n v ( t ) ) t a t ( t τ ) n v ( t ) 1 z ( n ) ( τ ) d τ , n 1 < v ( t ) < n , t C D t + a v ( t ) z ( t ) = 1 Γ ( n v ( t ) ) t t + a ( τ t ) n v ( t ) 1 z ( n ) ( τ ) d τ , n 1 < v ( t ) < n .
Inspired by the above discussion, this paper is devoted to presenting an algorithm using the aforementioned concept of fractional-order Bernoulli polynomials, and using this approximation to solve initial and boundary value problems with variable-order derivatives depending on time. Keeping in mind the importance of the left operator of variable order, we will use it in our results. Our first considered problem with the initial condition is described as
D v 1 ( t ) y ( t ) + c y ( t ) = h ( t ) , c R , t [ 0 , 1 ] , y ( 0 ) = y 0 , y 0 R ,
where h : [ 0 , 1 ] R is a linear continuous function, and v 1 : [ 0 , 1 ] ( 0 , 1 ] is a continuous function. In addition, we consider our second problem, under some boundary conditions, as
D v ( t ) y ( t ) + c 1 D v 1 ( t ) y ( t ) + c 2 y ( t ) = g ( t ) , c 1 , c 2 R , t [ 0 , 1 ] y ( 0 ) = y 0 , y ( 1 ) = y 1 , y 0 , y 1 R ,
where g : [ 0 , 1 ] R is a linear continuous function defined, and v : [ 0 , 1 ] ( 1 , 2 ] , v 1 : [ 0 , 1 ] ( 0 , 1 ] are continuous functions.
We present numerical algorithms based on operational matrices for the above problems. For this purpose, we first reconstruct operational matrices for fractional-order integration and differentiation, as already derived in [34] for variable order. In addition, we also create new matrices corresponding to boundary conditions. Based on the aforementioned operational matrices, the considered problems are converted to algebraic type equations, which we solve by using Matlab, for finding the unknown vector. In this way, we obtain the required numerical solution to the problem under our consideration. Usually, the operational matrices are used in a variety of ways. Majority research work established these matrices by using collocation and discretization tools, which require extra memory consumption and more time for employment. To overcome these issues, we establish these matrices directly, an approach which had been very rarely considered. Furthermore, the operational matrix corresponding to the boundary conditions in Theorem 3 has also been newly obtained according to our information. Generally, researchers perform numerical solutions for variable order lies in ( 0 , 1 ] , and very rarely for order in ( 1 , 2 ] . In addition, using the variable-order Riemann–Liouville integral operator and the Caputo differential operator, we specify that these are the left operators. In the adopted fractional differential operators, the Caputo derivative is the most-used operator. Furthermore, the Caputo derivative is related to the Reimann–Liouville derivative by a proper relationship. Usually, Caputo has no integral operator, as the Caputo derivative is deduced from Reimann–Liouville as a special consequence. Furthermore, its geometrical interpretation can be performed like ordinary derivatives. Most of the applied problem requires fractional derivatives with proper utilization of initial conditions with known physical interpretation, especially in the theory of viscoelasticity and solid mechanics. In such cases, the Caputo approach is more applicable, because in Caputo fractional derivatives, the initial conditions are the same as those of integer-ordered differential equations, and these initial conditions have a known physical interpretation of the problem.

2. Basic Results

This section is devoted to some fundamental results of variable-order derivatives and integration. In addition, some properties of Bernoulli polynomials are presented.
Definition 1
([34,41]). The left Riemann–Liouville fractional integral of order v ( t ) is defined as
0 I t v ( t ) x ( t ) = 1 Γ v ( t ) 0 t ( t k ) v ( t ) 1 x ( k ) d k , t > 0 ,
where Γ is the Euler gamma function described as Γ ( t ) = 0 k t 1 exp ( k ) d k , t > 0 , and · is the ceiling function.
This operator obeys the following properties, as discussed in [41]:
i.
0 I t v ( t ) ( l 1 x 1 ( t ) + l 2 x 2 ( t ) ) = l 1 0 I t v ( t ) x 1 ( t ) + l 2 0 I t v ( t ) x 2 ( t ) ,
ii.
0 I t v 1 ( t ) 0 I t v 2 ( t ) = 0 I t v 1 ( t ) + v 2 ( t ) x ( t ) ,
iii.
0 I t v 1 ( t ) 0 I t v 2 ( t ) x ( t ) = 0 I t v 2 ( t ) 0 I t v 1 ( t ) x ( t ) ,
iv.
0 I t v 1 ( t ) t α = Γ ( α + 1 ) Γ ( α + 1 + v 1 ( t ) ) t α + v 1 ( t ) , α > 1 ,
where l 1 and l 2 are real numbers.
Definition 2.
The left variable-order Caputo differential operator is defined as [31,34]
D t v ( t ) x ( t ) = 1 Γ n v ( t ) 0 t ( t k ) n v ( t ) 1 x ( n ) ( k ) d k , n 1 < v ( t ) n , t > 0 .
For 0 v ( t ) < w ( t ) n , n N and α > 0 , this operator obeys the following properties, as discussed in [34,41]:
i.
D t v ( t ) 0 I t v ( t ) x ( t ) = x ( t ) ,
ii.
0 I t v ( t ) 0 C D t v ( t ) x ( t ) = x ( t ) i = 0 v ( t ) 1 x ( i ) ( 0 ) t i i ! , t > 0
iii.
D t v ( t ) t α = 0 , α < v ( t ) , Γ ( α + 1 ) Γ ( α + 1 v ( t ) ) t α v ( t ) , otherwise ,
iv.
0 I t v ( t ) x n ( t ) = 0 C D t v ( t ) x ( t ) i = v ( t ) n 1 x i ( 0 ) t i v ( t ) Γ ( i v ( t ) + 1 ) , t > 0 ,
v.
0 I t v ( t ) w ( t ) 0 C D t v ( t ) = 0 C D t w ( t ) x ( t ) i = w ( t ) v ( t ) 1 x i ( 0 ) t i w ( t ) Γ ( i w ( t ) + 1 ) , t > 0 ,
vi.
0 C D t v ( t ) c = 0 ,
vii.
0 C D t v ( t ) l 1 x 1 ( t ) + l 2 x 2 ( t ) = l 1 0 C D t v ( t ) x 1 ( t ) + l 2 0 C D t v ( t ) x 2 ( t ) ,
where c , l 1 , l 2 are any real constants.

The Fractional-Order Bernoulli Polynomials

In this subsection, we define the fractional-order Bernoulli functions (FOBFs), and show some of their properties.
Definition 3.
The fractional-order Bernoulli polynomials B i γ ( t ) of order i γ are defined over [ 0 , 1 ] as [32]
B i γ ( t ) = r = 0 i i r B i r γ t r γ , t [ 0 , 1 ] ,
where B r γ = B r γ ( 0 ) = B r , r = 0 , 1 , 2 , , i are Bernoulli numbers. Thus, we have
B 0 γ ( t ) = 1 , B 1 γ ( t ) = t γ 1 2 , B 2 γ ( t ) = t 2 γ t γ + 1 6 , B 3 γ ( t ) = t 3 γ 3 2 t 2 γ + 1 2 t γ .
According to [33], FOBFs form a complete basis on [ 0 , 1 ] , and satisfy the following property [32]:
0 1 B i γ ( t ) B j γ ( t ) t γ 1 d t = 1 γ ( 1 ) i 1 j ! i ! ( j + i ) ! B j + i , j , i 1 .

3. Procedure for Approximation of Functions

In this section, we present a procedure for approximating a function [32]. In this regard, consider that
S = { B 0 γ ( t ) , B 1 γ ( t ) , B 2 γ ( t ) , , B n γ ( t ) } L 2 [ 0 , 1 ] , n N { 0 }
is the set of FOBFs, and that
X n = Span { B 0 γ ( t ) , B 1 γ ( t ) , B 2 γ ( t ) , , B n γ ( t ) } .
Then, X n is a finite dimensional closed vector space, and for each h L 2 [ 0 , 1 ] there exists h n X n , for which
h h n h z , for all z X n .
As h n belong to a finite dimensional closed vector space X n , we obtain
h ( t ) h n ( t ) = i = 0 n k i B i γ ( t ) = K N T B N γ ( t ) ,
where N = n + 1 and
K N = k 0 k 1 k n , B N γ ( t ) = B 0 γ ( t ) B 1 γ ( t ) B n γ ( t )
are the coefficients and FOBFs vector, respectively.
For evaluating K N , we consider
h j = < h , B j γ > = 0 1 h ( t ) B j γ ( t ) t γ 1 d t .
By using (7), we obtain
h j = i = 0 n k i 0 1 B i γ ( t ) B j γ ( t ) t γ 1 d t = i = 0 n k i e i j γ , j = 0 , 1 , 2 , , n ,
where
e i j γ = 0 1 B i γ ( t ) B j γ ( t ) t γ 1 d t , i = j = 0 , 1 , 2 , , n ,
which implies that
h j = K N T [ e 0 j γ , e 1 j γ , e 2 j γ , , e n j γ ] T , j = 0 , 1 , 2 , , n ,
which can be written as
F N T = K N T E N γ ,
where
H N T = h 0 h 1 h n ,
and
E N γ = [ e i j γ ] = e 00 γ e 01 γ e 0 n γ e 10 γ e 11 γ e 1 n γ e n 0 γ e n 1 γ e n n γ ,
where
e i j γ = 0 1 B i γ ( t ) B j γ ( t ) t γ 1 d t = 1 γ ( 1 ) i 1 j ! i ! ( j + i ) ! B j + i , i , j 1 .

Extended Bernoulli Operational Matrices

We recollect the Bernoulli operational matrices of fractional-order integration and differentiation from [32]. A new operational matrix based on boundary conditions is developed in the same subsection.
Theorem 1.
Let B N γ ( t ) be the FOBFs vector, then
I v ( t ) B N γ ( t ) = P N × N ( v ( t ) , γ ) B M γ ( t ) ,
where P N × N ( v ( t ) , γ ) in (11) is a variable-order Riemann–Liouville integral operator, given by
P N × N ( v ( t ) , γ ) = w 0 , 0 , 0 ( v ( t ) , γ ) w 0 , 1 , 0 ( v ( t ) , γ ) w 0 , n , 0 ( v ( t ) , γ ) s = 0 1 w 1 , 0 , s ( v ( t ) , γ ) s = 0 1 w 1 , 1 , s ( v ( t ) , γ ) s = 0 1 w 1 , n , s ( v ( t ) , γ ) s = 0 n w n , 0 , s ( v ( t ) , γ ) s = 0 n w n , 1 , s ( v ( t ) , γ ) s = 0 n w n , n , s ( v ( t ) , γ ) .
Proof. 
Following the method discussed in [41], we reconstruct here the operational matrix of variable-order integration. Applying I v ( t ) to FOBFs, we obtain
I v ( t ) B i γ ( t ) = s = 0 i i s B i s γ I v ( t ) t γ s = s = 0 i i s B i s γ Γ ( γ s + 1 ) Γ ( γ s + 1 + v ( t ) ) t γ s + v ( t ) = s = 0 i η i , s ( v ( t ) , γ ) t γ s + v ( t ) , i = 0 , 1 , 2 , , n ,
where
η i , s ( v ( t ) , γ ) = i s B i s γ Γ ( γ s + 1 ) Γ ( γ s + 1 + v ( t ) ) .
Approximating t γ s + v ( t ) in terms of FOBFs, we obtain
t γ s + v ( t ) j = 0 n ϕ s , j ( v ( t ) , γ ) B j γ ( t ) .
Applying (11) in (9), we can obtain
I v ( t ) B i γ ( t ) s = 0 i η i , s ( v ( t ) , γ ) j = 0 n ϕ s , j ( v ( t ) , γ ) B j γ ( t ) = j = 0 n s = 0 i w i , j , s ( v ( t ) , γ ) B j γ ( t ) ,
where
w i , j , s ( v ( t ) , γ ) = η i , s ( v ( t ) , γ ) ϕ s , j ( v ( t ) , γ ) .
We can write (1) as
I v ( t ) B i γ ( t ) s = 0 i w i , 0 , s ( v ( t ) , γ ) , s = 0 i w i , 1 , s ( v ( t ) , γ ) , , s = 0 i w i , n , s ( v ( t ) , γ ) B N γ ( t ) , i = 0 , 1 , 2 , , n .
This implies that
P N × N ( v ( t ) , γ ) = w 0 , 0 , 0 ( v ( t ) , γ ) w 0 , 1 , 0 ( v ( t ) , γ ) w 0 , n , 0 ( v ( t ) , γ ) s = 0 1 w 1 , 0 , s ( v ( t ) , γ ) s = 0 1 w 1 , 1 , s ( v ( t ) , γ ) s = 0 1 w 1 , n , s ( v ( t ) , γ ) s = 0 n w n , 0 , s ( v ( t ) , γ ) s = 0 n w n , 1 , s ( v ( t ) , γ ) s = 0 n w n , n , s ( v ( t ) , γ ) .
Lemma 1.
Let B i γ ( t ) be a FOBF, then D v ( t ) B i γ ( t ) = 0 , i = 0 , 1 , , v ( t ) γ 1 , v ( t ) > 0 .
Proof. 
By applying the properties of a variable-order Caputo differential operator, one can obtain the required result, which has already been done in [32]. □
Theorem 2.
Let B N γ ( t ) be the FOBFs vector, then
D v ( t ) B N γ ( t ) = D N × N ( v ( t ) , γ ) B M γ ( t ) ,
where D N × N ( v ( t ) , γ ) is a variable-order Caputo differential operator, given by
D N × N ( v ( t ) , γ ) = 0 0 0 0 0 0 s = v ( t ) γ v ( t ) γ Φ v ( t ) γ , 0 , s ( v ( t ) , γ ) s = v ( t ) γ v ( t ) γ Φ v ( t ) γ , 1 , s ( v ( t ) , γ ) s = v ( t ) γ v ( t ) γ Φ v ( t ) γ , n , s ( v ( t ) , γ ) s = v ( t ) γ i Φ i , 0 , s ( v ( t ) , γ ) s = v ( t ) γ i Φ i , 1 , s ( v ( t ) , γ ) s = v ( t ) γ i Φ i , n , s ( v ( t ) , γ ) s = v ( t ) γ n Φ n , 0 , s ( v ( t ) , γ ) s = v ( t ) γ n Φ n , 1 , s ( v ( t ) , γ ) s = v ( t ) γ n Φ n , n , s ( v ( t ) , γ ) .
Proof. 
Applying I v ( t ) to FOBFs, as in [32], we obtain
D v ( t ) B i γ ( t ) = s = 0 i i s B i s γ D v ( t ) t γ s = s = v ( t ) γ i i s B i s γ Γ ( γ s + 1 ) Γ ( γ s + 1 v ( t ) ) t γ s v ( t ) = s = 0 i κ i , s ( v ( t ) , γ ) y γ s v ( t ) , i = v ( t ) γ , , n ,
where
κ i , s ( v ( t ) , γ ) = i s B i s γ Γ ( γ s + 1 ) Γ ( γ s + 1 v ( t ) ) .
Approximating t γ s v ( t ) in terms of FOBFs, we obtain
t γ s v ( t ) j = 0 n ζ s , j ( v ( t ) , γ ) B j γ ( t ) .
Applying (17) in (15), we can obtain
D v ( t ) B i γ ( t ) s = v ( t ) γ i κ i , s ( v ( t ) , γ ) j = 0 n ζ s , j ( v ( t ) , γ ) B j γ ( t ) = j = 0 n s = v ( t ) γ i Φ i , j , s ( v ( t ) , γ ) B j γ ( t ) ,
where
Φ i , j , s ( v ( t ) , γ ) = κ i , s ( v ( t ) , γ ) ζ s , j ( v ( t ) , γ ) .
We can write (2) as
D v ( t ) B i γ ( t ) s = 0 i Φ i , 0 , s ( v ( t ) , γ ) , s = 0 i Φ i , 1 , s ( v ( t ) , γ ) , , s = 0 i Φ i , n , s ( v ( t ) , γ ) B N γ ( t ) , i = v ( t ) γ , , n .
Furthermore, we can write
D v ( t ) B i γ ( t ) = [ 0 , 0 , 0 , , 0 ] B N γ ( t ) , i = 0 , 1 , , v ( t ) γ 1 .
From (20) and (21), we obtain
D N × N ( v ( t ) , γ ) = 0 0 0 0 0 0 s = v ( t ) γ v ( t ) γ Φ v ( t ) γ , 0 , s ( v ( t ) , γ ) s = v ( t ) γ v ( t ) γ Φ v ( t ) γ , 1 , s ( v ( t ) , γ ) s = v ( t ) γ v ( t ) γ Φ v ( t ) γ , n , s ( v ( t ) , γ ) s = v ( t ) γ i Φ i , 0 , s ( v ( t ) , γ ) s = v ( t ) γ i Φ i , 1 , s ( v ( t ) , γ ) s = v ( t ) γ i Φ i , n , s ( v ( t ) , γ ) s = v ( t ) γ n Φ n , 0 , s ( v ( t ) , γ ) s = v ( t ) γ n Φ n , 1 , s ( v ( t ) , γ ) s = v ( t ) γ n Φ n , n , s ( v ( t ) , γ ) .
Here, the following matrix corresponding to boundary conditions is newly developed.
Theorem 3.
Let B N γ ( t ) be the FOBFs vector, and ψ ( t ) be any function given by ψ ( t ) = m t n , where m = 0, 1, 2, … m is any real number and Z ( t ) = K N T B N γ ( t ) . Then,
ψ ( t ) 0 I 1 v ( t ) Z ( t ) = K N T Q N × N ( v ( t ) , ψ ) B N γ ( t ) ,
where Q N × N ( v ( t ) , ψ ) is given as
Q N × N ( v ( t ) , ψ ) = Ψ 0 , 0 Ψ 0 , 1 Ψ 0 , j Ψ 0 , n Ψ 1 , 0 Ψ 1 , 1 Ψ 1 , j Ψ 1 , n Ψ i , 0 Ψ i , 1 Ψ i , j Ψ i , n Ψ n , 0 Ψ n , 1 Ψ n , j Ψ n , n ,
where Ψ i , j can be obtained from (8).
Proof. 
Applying the operator 0 I 1 v ( t ) to a general term of B N γ ( t ) , we obtain
0 I 1 v ( t ) B i γ ( t ) = 1 Γ v ( t ) 0 1 ( 1 y ) v ( t ) 1 B i γ ( y ) d y = 1 Γ v ( t ) 0 1 ( 1 y ) v ( t ) 1 i = 0 n n i B n i γ y i γ d y = 1 Γ v ( t ) i = 0 n n i B n i γ 0 1 ( 1 y ) v ( t ) 1 y i γ d y .
Applying the following property of Beta function in (27), we obtain
β ( s , r ) = 0 1 x s 1 ( 1 x ) r 1 d x = Γ ( s ) Γ ( r ) Γ ( s + r )
0 I 1 v ( t ) B i γ ( t ) = i = 0 n n i B n i γ Γ γ i + 1 Γ γ i + v ( t ) + 1 = Ω i ;
thus, we obtain
ψ ( t ) 0 I 1 v ( t ) B i γ ( t ) = Ω i ψ ( t ) ,
which can be approximated as
Ω i ψ ( t ) = j = 0 n Ψ i , j B i γ ( t ) ,
where Ψ i , j can be obtained from (8). Hence, the desired result is obtained. □

4. Establishment of Numerical Algorithms

In this section, we present numerical algorithms based on the extended Bernoulli operational matrices constructed in the previous subsection for initial and boundary value problems.

4.1. Variable-Order Initial Value Problems

Consider the following generalized variable-order initial value single problem:
D v ( t ) y ( t ) + c y ( t ) = h ( t ) , c R , t [ 0 , 1 ] , y ( 0 ) = y 0 , y 0 R .
Let us assume that
D v ( t ) y ( t ) = K N T B N γ ( t ) .
By taking integration of order v ( t ) of (29), we obtain
y ( t ) = K N T P N × N ( v ( t ) , γ ) B N γ ( t ) + c 0 .
Applying the initial condition to (30), we obtain
y ( t ) = K N T P N × N ( v ( t ) , γ ) B N γ ( t ) + y 0 .
Therefore, (31) can be written as
y ( t ) = K N T P N × N ( v ( t ) , γ ) B N γ ( t ) + F N T B N γ ( t ) ,
where y 0 = F N T B N γ ( t ) , and F N T is the coefficient matrix to approximate the initial data. Inserting (29) and (32) into (28), we obtain
K N T B N γ ( t ) + c K N T P N × N ( v ( t ) , γ ) B N γ ( t ) + c F N T B N γ ( t ) G N T B N γ ( t ) = 0 ,
where h ( t ) = G N T B N γ ( t ) , and G N T denotes the coefficient matrix. This can be further simplified as
K N T + c K N T P N × N ( v ( t ) , γ ) + c F N T G N T B N γ ( t ) = 0 .
The implication of (33) is that
K N T + c K N T P N × N ( v ( t ) , γ ) + F N T G N T = 0 .
This equation can be solved by Matlab for the unknown matrix K N T , to obtain the solution.

4.2. Variable-Order Boundary Value Problems

Consider the following generalized variable-order boundary value problem:
D v ( t ) y ( t ) + c 1 D v 1 ( t ) y ( t ) + c 2 y ( t ) = g ( t ) , c 1 , c 2 R , t [ 0 , 1 ] , y ( 0 ) = y 0 , y ( 1 ) = y 1 , y 0 , y 1 R ,
where g ( t ) is a linear continuous real valued function defined on [ 0 , 1 ] . Let us assume that
D v ( t ) y ( t ) = K N T B N γ ( t ) .
By taking integration of order v ( t ) of (35), we obtain
y ( t ) = K N T P N × N ( v ( t ) , γ ) B N γ ( t ) + l 0 + l 1 t .
Applying the initial condition in (36), we obtain l 0 = y 0 , and using the boundary condition, we obtain
l 1 = y 1 y 0 K N T P N × N ( v ( 1 ) , γ ) B N γ ( 1 ) .
Inserting the values of l 0 and l 1 in (37), we obtain
y ( t ) = K N T P N × N ( v ( t ) , γ ) B N γ ( t ) + y 0 + t ( y 1 y 0 ) t K N T P N × N ( v ( 1 ) , γ ) B N γ ( 1 ) .
After simplification, we can write (38) as
y ( t ) = K N T P N × N ( v ( t ) , γ ) Q N × N ( v ( t ) , ψ ) B N γ ( t ) + H N T B N γ ( t ) ,
where y 0 + t ( y 1 y 0 ) = H N T B N γ ( t ) , and ψ ( t ) = t . By applying the variable-order derivative of order v 1 ( t ) to (38), we obtain
D v 1 ( t ) y ( t ) = K N T P N × N ( v ( t ) , γ ) Q N × N ( v ( t ) , ψ ) D N × N ( v 1 ( t ) , γ ) B N γ ( t ) + H N T D N × N ( v 1 ( t ) , γ ) B N γ ( t ) .
Inserting (35), (40), and (35) in (34), we obtain
K N T B N γ ( t ) + c 1 K N T P N × N ( v ( t ) , γ ) Q N × N ( v ( t ) , ψ ) D N × N ( v 1 ( t ) , γ ) B N γ ( t ) + c 1 H N T D N × N ( v 1 ( t ) , γ ) B N γ ( t ) + c 2 K N T P N × N ( v ( t ) , γ ) Q N × N ( v ( t ) , ψ ) B N γ ( t ) + c 2 H N T B N γ ( t ) J N T B N γ ( t ) = 0 .
The implication of (41) is that
K N T + K N T P N × N ( v ( t ) , γ ) Q N × N ( v ( t ) , ψ ) c 1 D N × N ( v 1 ( t ) , γ ) + c 2 I N × N + R N × N = 0 ,
where
R N × N = c 1 H N T D N × N ( v 1 ( t ) , γ ) c 2 H N T J N T .
This is a simple algebraic equation, and can be solved by Matlab for the unknown matrix K N T , to obtain the solution.

4.3. Convergence Analysis

We present analysis of the convergence of the proposed method.
Theorem 4.
If h L 2 [ 0 , 1 ] is enough smooth function, and can be approximated by means of Bernoulli polynomials as n = 0 N h n B n ( t ) , then the coefficient h n for n = 0 , 1 , 2 , . . . , N connected with these approximations can be written in the form
h n = 1 Γ ( n + 1 ) 0 1 h ( n ) ( t ) d t .
Proof. 
The proof has been given in [42]. □
Theorem 5.
If one approximates the function h ( t ) , which is smooth enough on t [ 0 , 1 ] , via using Bernoulli polynomials as presented in Theorem 4, then the coefficient h n decays, as described by
h n H n Γ ( n + 1 ) ,
where H n = sup t [ 0 , 1 ] | h ( n ) ( t ) | .
Proof. 
For proof, we refer to [43]. □
Theorem 6.
Let h ( t ) C [ 0 , 1 ] (with uniformly bounded derivatives) and P N [ h ] ( t ) be its truncated series using Bernoulli polynomials; then, the error bound can be derived by using
E n [ h ] ( t ) C H ^ ( 2 π ) N , t [ 0 , 1 ] ,
where H ^ denotes a bound for all the derivatives of the function h ( t ) that is h ( n ) ( t ) H ^ , for all n = 0 , 1 , 2 , . . . , N , and C > 0 is any constant.
Proof. 
See proof in [32]. □
Theorem 7.
Let y ( t ) be an enough smooth function, and y N ( t ) be the best approximate solution; then,
y ( t ) y N ( t ) C ^ G ^ ( 2 π ) N ,
where C ^ > 0 is any constant.
Proof. 
We write our considered problem (34) in variable operator form as
L y ( t ) = g ( t ) + f ( t , y ( t ) ) ,
where L = D v ( t ) . Applying L 1 on both sides of (42), we obtain
y ( t ) = L 1 [ g ( t ) ] + L 1 [ f ( t , y ( t ) ) ] = G ( t ) + F ( t , y ( t ) ) .
Approximating the functions y ( t ) and G ( t ) , using Bernoulli polynomials, we obtain
y n ( t ) = G N ( t ) + F ( t , y N ( t ) ) .
Then, from (43) and (44), we obtain
y ( t ) y N ( t ) = G ( t ) G n ( t ) + F ( t , y ( t ) ) F ( t , y N ( t ) ) G ( t ) G n ( t ) + F ( t , y ( t ) ) F ( t , y N ( t ) ) .
Using the Lipschitz condition with constant L F , we obtain, from (45),
y ( t ) y N ( t ) G ( t ) G n ( t ) + L F y ( t ) y N ( t ) ,
which yields
y ( t ) y N ( t ) 1 1 L F G ( t ) G N ( t ) 1 1 L F G ( t ) G N ( g ) ( t ) .
Using Theorem 6, from (46), we obtain
y ( t ) y N ( t ) C 1 L F G ^ ( 2 π ) N = C ^ G ^ ( 2 π ) N ,
where C 1 L F = C ^ , and G ^ denotes a bound for all the derivatives of the function g ( t ) , such that g ( n ) ( t ) G ^ , n = 0 , 1 , 2 , . . . , N . From these results, we deduce that the error of y ( t ) , which will give the required solution on using enough values of N, will depend directly on the approximation of the function g ( t ) . Hence, we conclude that only a small dimension of a Bernoulli operational matrix is needed, to obtain a satisfactory result. □

5. Numerical Examples

In this section, we apply the algorithms introduced in Section 4, and compare the obtained numerical approximation with the exact solution. In addition, the absolute error L = y ¯ y against various scale levels has been presented graphically, where y is the approximate solution and y ¯ is the exact solution. We used an HP-Cori 5 seventh generation machine, and Matlab 2016 computational software was used for numerical solutions.
Example 1.
Consider the generalized variable-order initial value problem given by
D v ( t ) y ( t ) + y ( t ) = h ( t ) , t [ 0 , 1 ] a n d 0 < v ( t ) 1 , y ( 0 ) = 1 ,
where
h ( t ) = 2 t 2 e t Γ ( 3 e t ) + t 1 e t Γ ( 2 e t ) + t e t Γ ( 1 e t ) + t 2 + t + 1 .
At v ( t ) = e t , the exact solution of (47) is given by
y ( t ) = t 2 + t + 1 .
We approximate the solution through our proposed numerical scheme. We compare the exact and numerical solution at scale level N = 2 at the given variable order v ( t ) = e t in Figure 1.
Example 2.
Consider another variable order initial value problem given by
D v ( t ) y ( t ) + 2 y ( t ) = h ( t ) , t [ 0 , 1 ] a n d 0 < v ( t ) 1 y ( 0 ) = 2 ,
where
h ( t ) = 4 t 2 ( t + 1 2 ) Γ ( 3 ( t + 1 2 ) ) 4 t 1 ( t + 1 2 ) Γ ( 2 ( t + 1 2 ) ) + 2 t ( t + 1 2 ) Γ ( 1 ( t + 1 2 ) ) + 4 t 2 8 t + 4 .
At v ( t ) = t + 1 2 , the exact solution of Equation (48) is given by
y ( t ) = 2 ( 1 t ) 2 .
We approximate the solution through our proposed numerical scheme. We compare the exact and numerical solution at scale level N = 6 at the given variable order v ( t ) = t + 1 2 in Figure 2.
Example 3.
Consider the generalized variable order boundary value problem given by
D v ( t ) y ( t ) + D v 1 ( t ) y ( t ) + y ( t ) = g ( t ) , t [ 0 , 1 ] , 1 < v ( t ) 2 a n d 0 < v 1 ( t ) 1 y ( 0 ) = 1 , y ( 1 ) = 16 ,
where
g ( t ) = 18 t 2 ( e t + 1 ) Γ ( 3 ( e t + 1 ) ) + 6 t 1 ( e t + 1 ) Γ ( 2 ( e t + 1 ) ) + t ( e t + 1 ) Γ ( 1 ( e t + 1 ) ) + 18 t 2 e t Γ ( 3 e t ) + 6 t 1 e t Γ ( 2 e t ) + t e t Γ ( 1 e t ) + 9 t 2 + 6 t + 1 .
The exact solution at v ( t ) = e t + 1 , and at v 1 ( t ) = e t of (49), is given by
y ( t ) = 9 t 2 + 6 t + 1 .
We approximate the solution through our proposed numerical scheme. We compare the exact and numerical solution at scale level N = 6 at the given variable order v ( t ) = e t in Figure 3.
Example 4.
Consider another variable-order boundary value problem given by
D v ( t ) y ( t ) + D v 1 ( t ) y ( t ) + 1 2 y ( t ) = g ( t ) , t [ 0 , 1 ] , 1 < v ( t ) 2 , a n d 0 < v 1 ( t ) 1 , y ( 0 ) = 1 , y ( 1 ) = 9 ,
where
g ( t ) = 8 t 2 ( t + 3 2 ) Γ ( 3 ( t + 3 2 ) ) + 4 t 1 ( t + 3 2 ) Γ ( 2 ( t + 3 2 ) ) + t ( t + 3 2 ) Γ ( 1 ( t + 3 2 ) ) + 8 t 2 ( t + 1 2 ) Γ ( 3 ( t + 1 2 ) ) + 4 t 1 ( t + 1 2 ) Γ ( 2 ( t + 1 2 ) ) + t ( t + 1 2 ) Γ ( 1 ( t + 1 2 ) ) + 2 t 2 + 2 t + 1 2 .
At v ( t ) = t + 3 2 and v 1 ( t ) = t + 1 2 , the exact solution of (50) is given by
y ( t ) = 4 t 2 + 4 t + 1 .
We approximate the solution through our proposed numerical scheme. We compare the exact and numerical solution at scale level N = 16 at the given variable order v ( t ) = t + 3 2 and v 1 ( t ) = t + 1 2 , in Figure 4.

6. Conclusions and Discussion

We developed a spectral numerical method for the numerical solutions of VOPs. In this regard, we used Bernoulli polynomials of fractional order to develop different operational matrices corresponding to variable order integration and differentiation. We also developed an operational matrix based on boundary conditions. By utilizing these extended Bernoulli operational matrices, we established numerical algorithms for VOPs, which reduced the given problems to algebraic equations. We solved these equations with the aid of Matlab, and plotted the results graphically. We discussed the convergence of the proposed method in detail. In addition, we applied the method to some problems, to show the efficiency and validity of the method. By comparing the exact and the numerical solutions, we showed that high accuracy can be obtained by increasing the scale level (see Figure 1, Figure 2, Figure 3 and Figure 4). We let y be the approximate solution, and y ¯ be the exact solution; then, the absolute error L = y ¯ y was plotted in the Figure 1, Figure 2, Figure 3 and Figure 4 for different scale levels. From the numerical point of view, it can be said that the proposed method is a powerful spectral method for the numerical investigation of various variable-order differential equations.

Author Contributions

S.Z. and S.A. wrote the draft. Z.A.K. edited the paper. S.Z. and S.A. included the numerical part. H.A. and Z.A.K. included the formal analysis. The revised version has been checked and approved by all of the authors. All authors have read and agreed to the published version of the manuscript.

Funding

The APC was funded by Princess Nourah bint Abdulrahman University.

Data Availability Statement

Not applicable.

Acknowledgments

Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2023R8). Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rose, B. Fractional Calculas and Its Applications; Wiley: New York, NY, USA, 1975. [Google Scholar]
  2. Rossikhin, Y.A.; Shitikova, M.V. Applications of fractional calculas to dynomical problem of linear and nonlinear heridatary mechanics of solids. Appl. Mech. Rev. 1997, 50, 15–67. [Google Scholar] [CrossRef]
  3. Mainardi, F. Fractional calculas: Some basics problems in continuum and statistical mechanics. In Fractals and Fractional Calculas in Continuum Mechanics; Carpinteri, A., Mainardi, F., Eds.; Springer: New York, NY, USA, 1997; pp. 291–384. [Google Scholar]
  4. He, J.H. Some applications of nonlinear fractional differential equations and their approximations. Bull. Sci. Technol. 1999, 15, 86–90. [Google Scholar]
  5. Bagley, R.L.; Torvik, P.J. Fractional calculas in the transient analysis of viscoelastically damped structures. AIAA J. 1985, 23, 918–925. [Google Scholar] [CrossRef]
  6. Miller, K.S.; Ross, B. An Introduction to the Fractional Calculas and Fractional Differential Equations; Wiley: New York, NY, USA, 1993. [Google Scholar]
  7. Miller, K.S. Fractional differential equations. J. Fract. Calc. Appl. 1993, 3, 49–57. [Google Scholar]
  8. Agarwal, R.; Belmekki, M.; Benchohra, M. A survey on similar differential equations and inclusions involving Riemann-Liouville fractional derivative. Adv. Differ. Equ. 2009, 10, 857–868. [Google Scholar]
  9. Kilbas, A.A.; Trujillo, J.J. Differential equation of fractional order, method, results and problems. Appl. Anal. 2002, 81, 435–493. [Google Scholar] [CrossRef]
  10. Erturk, V.S.; Momani, S. Solving systems of fractional differential equations using differential transform method. J. Comput. Appl. Math. 2008, 215, 142–151. [Google Scholar] [CrossRef]
  11. Odibat, Z.; Momani, S. Application of variational iteration method to nonlinear differential equations of fractional order. Int. J. Nonlinear Sci. Numer. Simul. 2006, 1, 15–27. [Google Scholar] [CrossRef]
  12. Abdulaziz, O.; Hashim, I.; Momani, S. Solving systems of fractional differential equations by homotopy-perturbation method. Phys. Lett. A 2008, 372, 451–459. [Google Scholar] [CrossRef]
  13. Saadatmandi, A.; Dehghan, M. A tau approach for solution of the space fractional diffusion equation. Comput. Math. Appl. 2011, 62, 1135–1142. [Google Scholar] [CrossRef]
  14. Saadatmandi, A.; Mohabbati, M. Numerical solution of fractional telegraph equation via the tau method. Math. Rep. 2015, 17, 155–166. [Google Scholar]
  15. Nemati, S. Numerical solution of Volterra-Fredholm integral equations using Legendre collocation method. J. Comput. Appl. Math. 2015, 278, 29–36. [Google Scholar] [CrossRef]
  16. Shah, K.; Khalil, H.; Khan, R.A. A generalized scheme based on shifted Jacobi polynomials for numerical simulation of coupled systems of multi-term fractional-order partial differential equations. LMS J. Comput. Math. 2017, 20, 11–29. [Google Scholar] [CrossRef]
  17. Shah, K.; Jarad, F.; Abdeljawad, T. Stable numerical results to a class of time-space fractional partial differential equations via spectral method. J. Adv. Res. 2020, 25, 39–48. [Google Scholar] [CrossRef] [PubMed]
  18. Bhrawy, A.H.; Taha, T.M.; Machado, J.A.T. A review of operational matrices and spectral techniques for fractional calculus. Nonlinear Dyn. 2015, 81, 1023–1052. [Google Scholar] [CrossRef]
  19. Yousefi, S.A.; Behroozifar, M. Operational matrices of Bernstein polynomials and their applications. Int. J. Syst. Sci. 2010, 41, 709–716. [Google Scholar] [CrossRef]
  20. Samko, S.G.; Rose, B. Integration and differentiation to a variable fractional order. Integral Transform. Spec. Funct. 1993, 1, 277–300. [Google Scholar] [CrossRef]
  21. Soon, C.M.; Coimbra, F.M.; Kobayashi, M.H. The variable viscoelasticity oscillator. Ann. Phys. 2005, 14, 378–389. [Google Scholar] [CrossRef]
  22. Lin, R.; Liu, F.; Anh, V.; Turner, I. Stability and convergence of a new explicit finite-difference approximation for the variable-order nonlinear fractional diffusion equation. Appl. Math. Comput. 2009, 212, 435–445. [Google Scholar] [CrossRef]
  23. Zhuang, P.; Liu, F.; Anh, V.; Turner, I. Numerical methods for the variable-order fractional advanced-diffusion equation with a nonlinear source term. Numer. Anal. 2009, 47, 1760–1781. [Google Scholar] [CrossRef]
  24. Chen, C.; Liu, F.; Anh, V.; Turner, I. Numerical schemes with high spatial accuracy for a variable-order anamalous subdiffusion equation. Sci. Comput. 2010, 32, 1740–1760. [Google Scholar]
  25. Amin, R.; Shah, K.; Ahmad, H.; Ganie, A.H.; Abdel-Aty, A.H.; Botmart, T. Haar wavelet method for solution of variable order linear fractional integro-differential equations. AIMS Math. 2022, 7, 5431–5443. [Google Scholar] [CrossRef]
  26. Bushnaq, S.; Shah, K.; Tahir, S.; Ansari, K.J.; Sarwar, M.; Abdeljawad, T. Computation of numerical solutions to variable order fractional differential equations by using non-orthogonal basis. AIMS Math. 2022, 7, 10917–10938. [Google Scholar] [CrossRef]
  27. Keshavarz, E.; Ordokhani, Y.; Razzaghi, M. A numerical solution for fractional optimal control problems via Bernoulli polynomials. J. Vib. Control 2016, 22, 3889–3903. [Google Scholar] [CrossRef]
  28. Sahu, P.K.; Mallick, B. Approximate solution of fractional order Lane-Emden type differential equation by orthonormal Bernoulli’s polynomials. Int. J. Appl. Comput. Math. 2019, 5, 89. [Google Scholar] [CrossRef]
  29. Behroozifar, M.; Habibi, N. A numerical approach for solving a class of fractional optimal control problems via operational matrix Bernoulli polynomials. J. Vib. Control 2018, 24, 2494–2511. [Google Scholar] [CrossRef]
  30. Phang, C.; Toh, Y.T.; Nasrudin, F.S.M. An operational matrix method based on poly-Bernoulli polynomials for solving fractional delay differential equations. Computation 2020, 8, 82. [Google Scholar] [CrossRef]
  31. Yuzbasi, S. Numerical solutions of fractional Riccati type differential equations by means of the Bernstein polynomials. Comput. Appl. Math. 2013, 219, 6328–6343. [Google Scholar]
  32. El-Gamel, M.; Adel, W.; El-Azab, M.S. Bernoulli polynomial and the numerical solution of high-order boundary value problems. Math. Nat. Sci. 2019, 4, 45–59. [Google Scholar] [CrossRef]
  33. Kreyszig, E. Introductory Functional Analysis with Applications; Wiley: New York, NY, USA, 1978. [Google Scholar]
  34. Nemati, S.; Torres, D.F. Application of bernoulli polynomials for solving variable-order fractional optimal control-affine problems. Axioms 2020, 9, 114. [Google Scholar] [CrossRef]
  35. Atanackovic, T.M.; Stankovic, B. On a differential equation with left and right fractional derivatives. Fract. Calc. Appl. Anal. 2007, 10, 139–150. [Google Scholar] [CrossRef]
  36. Zaslavsky, G.M. Chaos, fractional kinetics, and anomalous transport. Phys. Rep. 2002, 371, 461–580. [Google Scholar] [CrossRef]
  37. Metzler, R.; Klafter, J. The random walk’s guide to anomalous diffusion: A fractional dynamics approach. Phys. Rep. 2000, 399, 1–77. [Google Scholar] [CrossRef]
  38. Pandey, R.K.; Singh, O.P.; Baranwal, V.K. An analytic algorithm for the space-time fractional advection-dispersion equation. Comput. Phys. Commun. 2011, 182, 1134–1144. [Google Scholar] [CrossRef]
  39. Blaszczyk, T.; Bekus, K.; Szajek, K.; Sumelka, W. Approximation and application of the Riesz-Caputo fractional derivative of variable order with fixed memory. Meccanica 2022, 57, 861–870. [Google Scholar] [CrossRef]
  40. Pitolli, F.; Sorgentone, C.; Pellegrino, E. Approximation of the Riesz-Caputo derivative by cubic splines. Algorithms 2022, 15, 69. [Google Scholar] [CrossRef]
  41. Almeida, R.; Tavares, D.; Torres, D.F.M. The Variable-Order Fractional Calculus of Variations; Springer International Publishing: Cham, Switzerland, 2019. [Google Scholar]
  42. Tohidi, E.; Bhrawy, A.H.; Erfani, K. A collocation method based on Bernoulli operational matrix for numerical solution of generalized pantograph equation. Appl. Math. Model. 2013, 37, 4283–4294. [Google Scholar] [CrossRef]
  43. Tohidi, E.; Erfani, K.; Gachpazan, M.; Shateyi, S. A new Tau method for solving nonlinear Lane-Emden type equations via Bernoulli operational matrix of differentiation. J. Appl. Math. 2013, 2013, 276585. [Google Scholar] [CrossRef]
Figure 1. (a) Comparison between exact and numerical solution at N = 2 for Example 1; (b) Absolute error between exact and numerical solution at various values of N for Example 1.
Figure 1. (a) Comparison between exact and numerical solution at N = 2 for Example 1; (b) Absolute error between exact and numerical solution at various values of N for Example 1.
Fractalfract 07 00392 g001
Figure 2. (a) Comparison between exact and numerical solution at N = 6 for Example 2; (b) Absolute error between exact and numerical solution at various values of N of Example 2.
Figure 2. (a) Comparison between exact and numerical solution at N = 6 for Example 2; (b) Absolute error between exact and numerical solution at various values of N of Example 2.
Fractalfract 07 00392 g002
Figure 3. (a) Comparison between exact and numerical solution at N = 6 for Example 3; (b) Absolute error between exact and numerical solution at various values of N for Example 3.
Figure 3. (a) Comparison between exact and numerical solution at N = 6 for Example 3; (b) Absolute error between exact and numerical solution at various values of N for Example 3.
Fractalfract 07 00392 g003
Figure 4. (a) Comparison between exact and numerical solution at N = 6 for Example 4; (b) Absolute error between exact and numerical solution at various values of N for Example 4.
Figure 4. (a) Comparison between exact and numerical solution at N = 6 for Example 4; (b) Absolute error between exact and numerical solution at various values of N for Example 4.
Fractalfract 07 00392 g004
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

Khan, Z.A.; Ahmad, S.; Zeb, S.; Alrabaiah, H. Bernoulli-Type Spectral Numerical Scheme for Initial and Boundary Value Problems with Variable Order. Fractal Fract. 2023, 7, 392. https://doi.org/10.3390/fractalfract7050392

AMA Style

Khan ZA, Ahmad S, Zeb S, Alrabaiah H. Bernoulli-Type Spectral Numerical Scheme for Initial and Boundary Value Problems with Variable Order. Fractal and Fractional. 2023; 7(5):392. https://doi.org/10.3390/fractalfract7050392

Chicago/Turabian Style

Khan, Zareen A., Sajjad Ahmad, Salman Zeb, and Hussam Alrabaiah. 2023. "Bernoulli-Type Spectral Numerical Scheme for Initial and Boundary Value Problems with Variable Order" Fractal and Fractional 7, no. 5: 392. https://doi.org/10.3390/fractalfract7050392

Article Metrics

Back to TopTop