Next Article in Journal
Existence of Solutions to a Class of Nonlinear Arbitrary Order Differential Equations Subject to Integral Boundary Conditions
Previous Article in Journal
FPAA-Based Realization of Filters with Fractional Laplace Operators of Different Orders
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Solution of Variable-Order Fractional Differential Equations Using Bernoulli Polynomials

by
Somayeh Nemati
1,†,
Pedro M. Lima
2,† and
Delfim F. M. Torres
3,*,†
1
Department of Applied Mathematics, Faculty of Mathematical Sciences, University of Mazandaran, Babolsar P.O. Box 47416-95447, Iran
2
Centro de Matemática Computacional e Estocástica, Instituto Superior Técnico, Universidade de Lisboa, Av. Rovisco Pais, 1049-001 Lisboa, Portugal
3
Center for Research and Development in Mathematics and Applications (CIDMA), Department of Mathematics, University of Aveiro, 3810-193 Aveiro, Portugal
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Fractal Fract. 2021, 5(4), 219; https://doi.org/10.3390/fractalfract5040219
Submission received: 31 October 2021 / Revised: 10 November 2021 / Accepted: 12 November 2021 / Published: 14 November 2021
(This article belongs to the Section Mathematical Physics)

Abstract

:
We introduce a new numerical method, based on Bernoulli polynomials, for solving multiterm variable-order fractional differential equations. The variable-order fractional derivative was considered in the Caputo sense, while the Riemann–Liouville integral operator was used to give approximations for the unknown function and its variable-order derivatives. An operational matrix of variable-order fractional integration was introduced for the Bernoulli functions. By assuming that the solution of the problem is sufficiently smooth, we approximated a given order of its derivative using Bernoulli polynomials. Then, we used the introduced operational matrix to find some approximations for the unknown function and its derivatives. Using these approximations and some collocation points, the problem was reduced to the solution of a system of nonlinear algebraic equations. An error estimate is given for the approximate solution obtained by the proposed method. Finally, five illustrative examples were considered to demonstrate the applicability and high accuracy of the proposed technique, comparing our results with the ones obtained by existing methods in the literature and making clear the novelty of the work. The numerical results showed that the new method is efficient, giving high-accuracy approximate solutions even with a small number of basis functions and when the solution to the problem is not infinitely differentiable, providing better results and a smaller number of basis functions when compared to state-of-the-art methods.

1. Introduction

In the last few decades, fractional calculus has attracted the attention of many scientists in different fields such as mathematics, physics, chemistry, and engineering. Due to the fact that fractional operators consider the evolution of the system, by taking the global correlation, and not only local characteristics, some physical phenomena are better described by fractional derivatives [1]. There are many definitions of fractional differentiation and integration in the literature (for details, see, e.g., [2,3,4,5]). However, the most commonly used are the definitions of the Caputo derivative and Riemann–Liouville fractional integral operators. For new fractional derivatives with nonlocal and nonsingular kernels, with applications in rheological models, we refer the reader to [6].
A recent generalization of the theory of fractional calculus is to allow the fractional order of the derivatives to be dependent on time, i.e., to be nonconstant or of variable order. In [7], the authors investigated operators when the order of the fractional derivative is variable with time [8,9].
The nonlocal properties of systems are more visible with variable-order fractional calculus, and many real-world phenomena in physics, mechanics, control, and signal processing have been described by this approach [10,11,12,13]. In particular, several applications of variable-order fractional calculus are found in engineering mechanics; see [14] for an application of variable-order fractional operators to model the microscopic structure of a material, [15] for an application of the Riesz–Caputo fractional derivative of space-dependent order in continuum elasticity, [16,17] for the nonlinear viscoelastic behavior of fractional systems with variable time-dependent fractional order, and [18] for the use of variable-order fractional calculus in the static response of nonlocal beams having either a porous or a functionally graded core.
Obtaining analytic solutions for such fractional differential equations (FDEs) is, however, very difficult. Therefore, in most cases, the exact solution is not known, and one needs to seek a numerical approximation. Therefore, many researchers have introduced and developed numerical methods in order to obtain approximated solutions for this class of equations. For example, in [19,20], Legendre polynomials were used to construct a numerical solution for a class of multiterm variable-order FDEs, while [21] used Legendre wavelets and operational matrices; References [22,23] used Chebyshev polynomials, respectively of the second and fourth kinds; Reference [24] used Bernstein polynomials. The book [25] showed the usefulness of numerical methods for approximating variable-order fractional operators in the framework of the calculus of variations; the paper [26] adopted Coimbra’s variable-order time-fractional operator, discussing the stability, convergence and solvability of a numerical scheme based on Fourier analysis. Reference [27] implemented a numerical method for solving a circulant Halvorsen system described by Caputo fractional variable-order derivatives. For multivariable-order differential equations with nonlocal and nonsingular kernels, we refer to [28], where a collocation method was developed based on Chebyshev polynomials of the fifth kind.
Here, we considered the following general form of a multiterm variable-order FDE:
0 C D t α ( t ) y ( t ) = F t , y ( t ) , 0 C D t α 1 ( t ) y ( t ) , 0 C D t α 2 ( t ) y ( t ) , , 0 C D t α k ( t ) y ( t ) , 0 < t 1 ,
with initial conditions
y ( i ) ( 0 ) = y 0 i , i = 0 , 1 , , n 1 ,
where n is the smallest positive integer number such that for all t [ 0 , 1 ] , one has 0 < α ( t ) n , 0 < α 1 ( t ) < α 2 ( t ) < < α k ( t ) < α ( t ) , and 0 C D t α ( t ) , 0 C D t α 1 ( t ) ,…, 0 C D t α k ( t ) are the (left) fractional derivatives of variable-order defined in the Caputo sense. Problems of the form (1) and (2) have a practical impact. Indeed, specific applications are found in noise reduction and signal processing [29,30], the processing of geographical data [31], and signature verification [32].
In recent years, Bernoulli polynomials have been shown to be a powerful mathematical tool in dealing with various problems of a dynamical nature, e.g., for solving numerically high-order Fredholm integrodifferential equations [33], pantograph equations [34], partial differential equations [35], linear Volterra and nonlinear Volterra–Fredholm–Hammerstein integral equations [36], as well as optimal control problems [37]. Here, we employ a spectral method based on Bernoulli polynomials in order to obtain numerical solutions to the problem (1) and (2). Our method consists of reducing the problem to a system of nonlinear algebraic equations. To do this, we introduced an accurate operational matrix of variable-order fractional integration for the Bernoulli polynomials’ basis vector. To the best of our knowledge, this is the first time in the literature that such a method for solving a general class of multiterm variable-order FDEs based on the Riemann–Liouville fractional integral of the basis vector has been introduced.
The rest of this paper is organized as follows. In Section 2, some preliminaries of variable-order fractional calculus are reviewed and some properties of the Bernoulli polynomials are recalled. Section 3 is devoted to introducing the operational matrix of variable-order fractional integration for Bernoulli polynomials. In Section 4, we present a new numerical method for solving the problem (1) and (2) by using the operational matrix technique and collocation points. Section 5 is concerned with presenting an error estimate for the numerical solution obtained by this new scheme. In Section 6, several multiterm variable-order FDEs are considered and solved, using the introduced method. Finally, concluding remarks are given in Section 7, where some possible future directions of research are also pointed out.

2. Preliminaries

In this section, a brief review of the necessary definitions and properties of the variable-order fractional calculus is presented. Furthermore, Bernoulli polynomials, and some of their properties, are recalled.

2.1. Some Preliminaries of Variable-Order Fractional Calculus

We followed the notations of [1].
Definition 1
(See, e.g., [1]). The left Riemann–Liouville fractional integral of order α ( t ) is defined by:
0 I t α ( t ) y ( t ) = 1 Γ ( α ( t ) ) 0 t ( t s ) α ( t ) 1 y ( s ) d s , t > 0 ,
where Γ ( · ) is the Euler gamma function.
Lemma 1
(See Chapter 1, Lemma 8, of [1]). Let y be the power function y ( t ) = t ν . Then, for ν > 1 , we have:
0 I t α ( t ) y ( t ) = Γ ( ν + 1 ) Γ ( ν + 1 + α ( t ) ) t ν + α ( t ) , α ( t ) 0 .
Definition 2
(See, e.g., [1]). The left Caputo fractional derivative of order α ( t ) is defined by:
0 C D t α ( t ) y ( t ) = 1 Γ ( n α ( t ) ) 0 t ( t s ) n α ( t ) 1 y ( n ) ( s ) d s , n 1 < α ( t ) < n , 0 C D t α ( t ) y ( t ) = y ( n ) ( t ) , α ( t ) = n .
For 0 α ( t ) n , n N , and γ > 0 , two useful properties of the Caputo derivative and Riemann–Liouville integral are:
0 I t γ ( 0 C D t γ y ( t ) ) = y ( t ) i = 0 γ 1 y ( i ) ( 0 ) t i i ! , t > 0 ,
0 I t n α ( t ) ( y ( n ) ( t ) ) = 0 C D t α ( t ) y ( t ) i = α ( t ) n 1 y ( i ) ( 0 ) t i α ( t ) Γ ( i + 1 α ( t ) ) , t > 0 ,
where · is the ceiling function.

2.2. Bernoulli Polynomials

Bernoulli polynomials build a family of independent polynomials that form a complete basis for the space L 2 [ 0 , 1 ] , which is the space of all square integrable functions on the interval [ 0 , 1 ] . The Bernoulli polynomial of degree m, β m ( t ) , is defined as follows [38]:
β m ( t ) = i = 0 m m i b m i t i ,
where b k , k = 0 , 1 , , m , are the Bernoulli numbers that appear in the series expansion of trigonometric functions [39] and can be defined by the following identity:
t e t 1 = i = 0 b i t i i ! .
The first four Bernoulli polynomials are:
β 0 ( t ) = 1 , β 1 ( t ) = t 1 2 , β 2 ( t ) = t 2 t + 1 6 , β 3 ( t ) = t 3 3 2 t 2 + 1 2 t .
The Bernoulli polynomials satisfy the following property [39]:
0 1 β i ( t ) β j ( t ) d t = ( 1 ) i 1 i ! j ! ( i + j ) ! b i + j , i , j 1 .
Any arbitrary function y L 2 [ 0 , 1 ] can be approximated using the Bernoulli polynomials as
y ( t ) m = 0 M a m β m ( t ) = A T B ( t ) ,
where
B ( t ) = [ β 0 ( t ) , β 1 ( t ) , , β M ( t ) ] T
and
A = [ a 0 , a 1 , , a M ] T .
The coefficient vector A in (7) is calculated by the following formula (see [37]):
A = D 1 y ( t ) , B ( t ) ,
where · , · is the inner product, defined for two arbitrary functions f , g L 2 [ 0 , 1 ] as
f ( t ) , g ( t ) = 0 1 f ( t ) g ( t ) d t
and D = B ( t ) , B ( t ) , which is calculated using (6).

3. Operational Matrix of Variable-Order Fractional Integration

The aim of this section is to introduce an accurate operational matrix of variable-order fractional integration for Bernoulli functions. To do this, we display the Bernoulli basis vector B ( t ) , given by (8), in terms of the Taylor basis functions, as follows:
B ( t ) = Q T ( t ) ,
where T is the Taylor basis vector
T ( t ) = [ 1 , t , t 2 , , t M ] T ,
and Q is the change-of-basis matrix, which is obtained using (5) as
Q = 1 0 0 0 0 0 1 2 1 0 0 0 0 1 6 1 1 0 0 0 0 1 2 3 2 1 0 0 b M M 1 b M 1 M 2 b M 2 M 3 b M 3 M 4 b M 4 1 .
It is obvious that the matrix Q is a nonsingular matrix. Therefore, we can write:
T ( t ) = Q 1 B ( t ) .
Taking (10) into account and by applying the left Riemann–Liouville fractional integral operator of order α ( t ) to the vector B ( t ) , we obtain
0 I t α ( t ) B ( t ) = 0 I t α ( t ) ( Q T ( t ) ) = Q ( 0 I t α ( t ) T ( t ) ) = Q S t α ( t ) T ( t ) ,
where S t α ( t ) is a diagonal matrix, which is obtained using Lemma 1 as follows:
S t α ( t ) = 1 Γ ( 1 + α ( t ) ) t α ( t ) 0 0 0 0 0 1 Γ ( 2 + α ( t ) ) t α ( t ) 0 0 0 0 0 2 Γ ( 3 + α ( t ) ) t α ( t ) 0 0 0 0 0 0 Γ ( M + 1 ) Γ ( M + 1 + α ( t ) ) t α ( t ) .
Finally, by using (11) into (12), we have:
0 I t α ( t ) B ( t ) = Q S t α ( t ) Q 1 B ( t ) = P t α ( t ) B ( t ) ,
where P t α ( t ) = Q S t α ( t ) Q 1 is a matrix of dimension ( M + 1 ) × ( M + 1 ) , which we call the operational matrix of variable-order fractional integration of order α ( t ) of Bernoulli functions. Since Q and Q 1 are lower triangular matrices and S t α ( t ) is a diagonal matrix, it is obvious that P t α ( t ) is also a lower triangular matrix. For example, with M = 2 , one has:
P t α ( t ) = p 1 , 1 0 0 p 2 , 1 1 Γ ( α ( t ) + 2 ) t α ( t ) 0 p 3 , 1 2 Γ ( α ( t ) + 3 ) 1 Γ ( α ( t ) + 2 ) t α ( t ) 2 Γ ( α ( t ) + 3 ) t α ( t ) ,
where
p 1 , 1 = 1 Γ ( α ( t ) + 1 ) t α ( t ) , p 2 , 1 = 1 2 Γ ( α ( t ) + 2 ) 1 2 Γ ( α ( t ) + 1 ) t α ( t ) , p 3 , 1 = 1 6 Γ ( α ( t ) + 1 ) 1 2 Γ ( α ( t ) + 2 ) + 2 3 Γ ( α ( t ) + 3 ) t α ( t ) .

4. Numerical Method

This section is devoted to presenting a new numerical method for solving the multiterm variable-order FDE (1) with initial conditions (2). To this aim, we set:
n : = max 0 < t 1 { α ( t ) } .
Then, by assuming y C n [ 0 , 1 ] , we considered an approximation of the n-th order derivative of the unknown function y using the Bernoulli functions as follows:
y ( n ) ( t ) = A T B ( t ) ,
where A is an ( M + 1 ) × 1 vector with unknown elements and B ( t ) is the Bernoulli basis vector given by (8). Taking into account the initial conditions (2) and using (3), (13) and (14), we obtain:
y ( t ) = 0 I t n ( y ( n ) ( t ) ) + i = 0 n 1 y ( i ) ( 0 ) t i i ! = A T ( 0 I t n B ( t ) ) + i = 0 n 1 y 0 i t i i ! = A T P t n B ( t ) + i = 0 n 1 y 0 i t i i ! .
In a similar way, using (4), (13), and (14), we obtain
0 C D t α ( t ) y ( t ) = A T P t n α ( t ) B ( t ) + i = α ( t ) n 1 y 0 i t i α ( t ) Γ ( i + 1 α ( t ) )
and
0 C D t α j ( t ) y ( t ) = A T P t n α j ( t ) B ( t ) + i = α j ( t ) n 1 y 0 i t i α j ( t ) Γ ( i + 1 α j ( t ) ) , j = 1 , , k .
By substituting the approximations given in (15)–(17) into Equation (1), we have:
F t , A T P t n B ( t ) + i = 0 n 1 y 0 i t i i ! , A T P t n α 1 ( t ) B ( t ) + i = α 1 ( t ) n 1 y 0 i t i α 1 ( t ) Γ ( i + 1 α 1 ( t ) ) , , A T P t n α k ( t ) B ( t ) + i = α k ( t ) n 1 y 0 i t i α k ( t ) Γ ( i + 1 α k ( t ) ) = A T P t n α ( t ) B ( t ) + i = α ( t ) n 1 y 0 i t i α ( t ) Γ ( i + 1 α ( t ) ) .
By using (18) at M + 1 collocation points, which are chosen as t j = j + 1 M + 2 , with j = 0 , 1 , , M , we obtain the following system of nonlinear algebraic equations:
A T P t j n α ( t j ) B ( t j ) + i = α ( t j ) n 1 y 0 i t j i α ( t j ) Γ ( i + 1 α ( t j ) ) = F t j , A T P t j n B ( t j ) + i = 0 n 1 y 0 i t j i i ! , A T P t j n α 1 ( t j ) B ( t j ) + i = α 1 ( t j ) n 1 y 0 i t j i α 1 ( t j ) Γ ( i + 1 α 1 ( t j ) ) , , A T P t j n α k ( t j ) B ( t j ) + i = α k ( t j ) n 1 y 0 i t j i α k ( t j ) Γ ( i + 1 α k ( t j ) ) .
System (19) includes M + 1 nonlinear algebraic equations in terms of the unknown parameters of vector A. After solving this system, an approximation of the solution of the problem (1) and (2) is given by (15).

5. Error Estimate

The purpose of this section is to obtain an estimate of the error norm for the approximate solution obtained by the proposed method in Section 4. We assume that f ( t ) = y ( n ) ( t ) is a sufficiently smooth function on [ 0 , 1 ] and q M ( t ) is the interpolating polynomial to f at points t s , where t s , s = 0 , 1 , , M , are the roots of the ( M + 1 ) -degree shifted Chebyshev polynomial in [ 0 , 1 ] . Then, according to the interpolation error, we have:
f ( t ) q M ( t ) = f ( M + 1 ) ( ξ ) ( M + 1 ) ! s = 0 M ( t t s ) , ξ ( 0 , 1 ) .
Therefore,
| f ( t ) q M ( t ) | max t ( 0 , 1 ) f ( M + 1 ) ( t ) ( M + 1 ) ! s = 0 M | t t s | .
We assume that there is a real number κ such that:
max t ( 0 , 1 ) f ( M + 1 ) ( t ) κ .
By using (21) in (20) and taking into consideration the estimates for Chebyshev interpolation nodes [40], we obtain:
| f ( t ) q M ( t ) | κ 2 2 M + 1 ( M + 1 ) ! .
As a consequence of (22), we obtain the following result.
Theorem 1.
Let f M ( t ) = A T B ( t ) be the Bernoulli functions’ expansion of a sufficiently smooth function f defined on [ 0 , 1 ] , where A and B ( t ) are given, respectively, by (8) and (9). Then, there exists a real number κ such that:
f ( t ) f M ( t ) κ 2 2 M + 1 ( M + 1 ) ! .
Proof. 
Let Π M be the space of all polynomials of degree M on t [ 0 , 1 ] . By definition, f M is the best approximation of f in Π M . Therefore, we have:
f ( t ) f M ( t ) 2 f ( t ) g ( t ) 2 ,
where g is any arbitrary polynomial in Π M . Therefore, we can write:
f ( t ) f M ( t ) 2 2 = 0 1 | f ( t ) f M ( t ) | 2 d t 0 1 | f ( t ) q M ( t ) | 2 d t ,
where q M is the interpolating polynomial of f, as discussed before. As a result, taking into consideration (22) in (24), we easily obtain (23). □
With the help of Theorem 1 and by assuming f ( t ) = y ( n ) ( t ) , we obtain the following result.
Theorem 2.
Let the exact solution y of the problem (1) and (2) be a real-valued sufficiently smooth function and y M be the approximate solution of this problem obtained by the method proposed in Section 4. Then, we have:
y ( t ) y M ( t ) 2 κ 2 2 M + 1 ( M + 1 ) ! ( n 1 ) ! 2 n ( 2 n 1 ) ,
where y is the exact solution and κ = max t ( 0 , 1 ) y ( n M + n ) ( t ) , n = max 0 < t 1 { α ( t ) } .
Proof. 
Let X be the space of all real-valued functions defined on [ 0 , 1 ] and 0 I t n : X X be the Riemann–Liouville integral operator. We use the following definition for the norm of the operator 0 I t n :
0 I t n 2 = sup g 2 = 1 0 I t n g 2 .
To continue the proof, first, we introduce an upper bound for 0 I t n 2 . To this end, using the definition of the left Riemann–Liouville integral operator and Schwarz’s inequality, we obtain:
0 I t n g 2 2 = 1 ( n 1 ) ! 0 t ( t s ) n 1 g ( s ) d s 2 2 = 1 ( n 1 ) ! 2 0 t ( t s ) n 1 g ( s ) d s 2 2 = 1 ( n 1 ) ! 2 0 1 0 t ( t s ) n 1 g ( s ) d s 2 d t 1 ( n 1 ) ! 2 0 1 0 t ( t s ) 2 n 2 d s 0 1 | g ( s ) | 2 d s d t = 1 ( n 1 ) ! 2 2 n ( 2 n 1 ) .
Therefore, we have:
0 I t n 2 1 ( n 1 ) ! 2 n ( 2 n 1 ) .
On the other hand, from Theorem 1, we have the following error bound:
y ( n ) ( t ) A T B ( t ) 2 κ 2 2 M + 1 ( M + 1 ) ! .
Finally, using (3), (15), (25) and (26), we obtain that:
y ( t ) y M ( t ) 2 = 0 I t n ( y ( n ) ( t ) ) + i = 0 n 1 y 0 i t i i ! 0 I t n ( A T B ( t ) ) + i = 0 n 1 y 0 i t i i ! 2 = 0 I t n ( y ( n ) ( t ) A T B ( t ) ) 2 0 I t n 2 y ( n ) ( t ) A T B ( t ) 2 κ 2 2 M + 1 ( M + 1 ) ! ( n 1 ) ! 2 n ( 2 n 1 ) ,
which completes the proof. □

6. Illustrative Examples

In this section, we apply our method to some variable-order FDEs and, moreover, to one variable-order fractional pantograph differential equation (Example 4), comparing the results with the ones obtained by existing methods in the literature. We implemented our method and performed our numerical simulations with Mathematica 12.
Example 1.
In our first example, we considered the following multiterm variable-order FDE [19,22,23]:
0 C D t 2 t y ( t ) + t 1 2 0 C D t t 3 y ( t ) + t 1 3 0 C D t t 4 y ( t ) + t 1 4 0 C D t t 5 y ( t ) + t 1 5 y ( t ) = g ( t ) , 0 < t 1 ,
where
g ( t ) = t 2 2 t Γ ( 3 2 t ) t 1 2 t 2 t 3 Γ ( 3 t 3 ) t 1 3 t 2 t 4 Γ ( 3 t 4 ) t 1 4 t 2 t 5 Γ ( 3 t 5 ) + t 1 5 2 t 2 2
with initial conditions y ( 0 ) = 2 and y ( 0 ) = 0 . The exact solution to this problem is y ( t ) = 2 t 2 2 . As can be seen, we have α ( t ) = 2 t . Therefore, to implement the proposed method, we introduce:
n = max 0 < t 1 { 2 t } = 2 .
We set M = 1 and suppose
y ( t ) = A T B ( t ) ,
where
A = a 0 , a 1 T and B ( t ) = 1 , t 1 2 T .
The operational matrices of variable-order fractional integration are given as follows:
P t 2 2 t = t 2 2 t Γ ( 3 2 t ) 0 t 2 2 t 2 Γ ( 4 2 t ) t 2 2 t 2 Γ ( 3 2 t ) t 2 2 t Γ ( 4 2 t ) , P t 2 t 3 = t 2 t 3 Γ 3 t 3 0 t 2 t 3 2 Γ 4 t 3 t 2 t 3 2 Γ 3 t 3 t 2 t 3 Γ 4 t 3 ,
P t 2 t 4 = t 2 t 4 Γ 3 t 4 0 t 2 t 4 2 Γ 4 t 4 t 2 t 4 2 Γ 3 t 4 t 2 t 4 Γ 4 t 4 , P t 2 t 5 = t 2 t 5 Γ 3 t 5 0 t 2 t 5 2 Γ 4 t 5 t 2 t 5 2 Γ 3 t 5 t 2 t 5 Γ 4 t 5 .
Furthermore, we have:
P t 2 = t 2 2 0 t 2 6 t 2 6 .
Now, using the initial conditions and the aforementioned operational matrices, we obtain the following approximations for y ( t ) and its variable-order derivatives:
y ( t ) = A T P t 2 B ( t ) + 2 , 0 C D t 2 t y ( t ) = A T P t 2 2 t B ( t ) + i = 2 t 1 y 0 i t i 2 t Γ ( i 2 t + 1 ) ,
0 C D t t 3 y ( t ) = A T P t 2 t 3 B ( t ) + i = t 3 1 y 0 i t i t 3 Γ ( i t 3 + 1 ) , 0 C D t t 4 y ( t ) = A T P t 2 t 4 B ( t ) + i = t 4 1 y 0 i t i t 4 Γ ( i t 4 + 1 ) , 0 C D t t 5 y ( t ) = A T P t 2 t 5 B ( t ) + i = t 5 1 y 0 i t i t 5 Γ ( i t 5 + 1 ) .
By substituting these approximations into (27), collocating the resulting equation at t 0 = 1 3 , t 1 = 2 3 , and finally, solving the obtained system, we obtain:
a 0 = 1 , a 1 = 0 .
Therefore, we have:
y ( t ) = [ 1 0 ] t 2 2 0 t 2 6 t 2 6 1 t 1 2 + 2 = 2 t 2 2 ,
which is the exact solution. In this case, since the exact solution is a second-order polynomial, we can obtain it by applying the numerical method with just two basis functions.
Example 2.
In our second example, we considered the following nonlinear variable-order FDE borrowed from [41]:
0 C D t α ( t ) y ( t ) + sin ( t ) y 2 ( t ) = g ( t ) , 0 < t 1 , 0 < α ( t ) 1 , y ( 0 ) = 0 ,
where
g ( t ) = Γ ( 9 2 ) Γ 9 2 α ( t ) t 7 2 α ( t ) + sin ( t ) t 7 .
The exact solution of this problem is y ( t ) = t 7 2 . By considering α ( t ) = 1 0.5 exp ( t ) , we solved this problem with different values of M. The numerical results are displayed in Figure 1 and Table 1. In Figure 1, the approximate solutions obtained with M = 1 , 2 , 3 , together with the exact solution of this problem, are plotted. Furthermore, by considering M = 2 , 6 , 10 , the absolute errors at some selected points are reported in Table 1. From these results, the convergence of the numerical solutions to the exact one can be easily seen.
Example 3.
Consider the following variable-order FDE taken from [42]:
0 C D t sin ( t ) y ( t ) + y ( t ) + e t y ( t 5 ) = g ( t ) , 0 < t 1 , y ( 0 ) = 0 ,
where
g ( t ) = Γ ( 4 ) Γ ( 4 sin ( t ) ) t 3 sin ( t ) + Γ ( 3 ) Γ ( 3 sin ( t ) ) t 2 sin ( t ) + e t ( t 15 + t 10 ) + t 3 + t 2 .
The exact solution of this problem is y ( t ) = t 3 + t 2 . To solve Problem (28), we applied the method with M = 1 and M = 2 . The numerical solution obtained with M = 1 , together with the exact solution are plotted in Figure 2. With M = 2 , according to the method described in Section 4, we set n = max 0 < t 1 { sin ( t ) } = 1 . Therefore, by assuming that
y ( t ) = A T B ( t ) ,
and using the initial condition, we have:
y ( t ) = A T P t 1 B ( t ) , 0 C D t sin ( t ) y ( t ) = A T P t 1 sin ( t ) B ( t ) , y ( t 5 ) = A T P t 5 1 B ( t 5 ) .
By substituting these approximations into (28) and using the collocation points t 0 = 1 4 , t 1 = 1 2 , and t 2 = 3 4 , we obtain a system of three nonlinear algebraic equations in terms of the elements of the vector A. By solving the resulting system, one obtains:
a 0 = 2 , a 1 = 5 , a 2 = 3 .
Finally, using these values, we obtain:
y ( t ) = 2 5 3 t 0 0 t 4 t 2 0 t 36 t 6 t 3 1 t 1 2 t 2 t + 1 6 = t 3 + t 2 ,
which is the exact solution.
Example 4.
Let us now consider the fractional pantograph differential equation:
0 C D t α ( t ) y ( t ) + y ( t ) 0.1 y ( 0.2 t ) = 0.1 e 0.2 t , 0 < t 1 , 0 < α ( t ) 1 , y ( 0 ) = 1 .
The exact solution of this problem, when α ( t ) = 1 , is y ( t ) = e t . By choosing M = 1 and α ( t ) = 1 , we set:
y ( t ) = A T B ( t ) .
Then, by considering the initial condition, we have:
y ( t ) = A T P t 1 B ( t ) + 1 , y ( 0.2 ) = A T P 0.2 t 1 B ( 0.2 t ) + 1 .
By substituting these approximations into (29), and using the collocation points
t 0 = 1 3 , t 1 = 2 3 ,
we obtain
a 0 = 0.620328 , a 1 = 0.621053 ,
which gives
y ( t ) = 0.620328 0.621053 t 0 t 4 t 2 1 t 1 2 + 1 = 0.310526 t 2 0.930854 t + 1 .
This approximate solution and the exact solution to the problem, corresponding to α = 1 , are displayed in Figure 3. By computing the L 2 -norm of the error for this approximation, we have:
e t ( 0.310526 t 2 0.930854 t + 1 ) 2 = 6.29 × 10 3 ,
which shows that the method gives a high-accuracy approximate solution, even with a small number of basis functions. A comparison of the absolute errors, obtained by the proposed method with M = 6 , 8 , 10 at some selected points, with the results proposed in [43], using modified hat functions, and those of [44], using Bernoulli wavelets, are reported in Table 2. From this table, it is seen that our method gave more accurate results with a smaller number of basis functions when compared to previous methods. Moreover, the approximate solutions obtained with M = 2 and different α ( t ) , along with the exact solution of corresponding first-order equation, are given in Figure 4. This figure shows that the numerical solution is close to the exact solution for the case α ( t ) = 1 when α ( t ) is close to one.
Example 5.
As our last example, consider the following variable-order FDE found in [45]:
0 C D t α ( t ) y ( t ) + 3 y ( t ) y ( t ) = e t 3 Γ ( 1 α ( t ) , t ) Γ ( 1 α ( t ) ) , 0 < t 1 ,
where α ( t ) = 0.25 ( 1 + cos 2 ( t ) ) and the initial condition is y ( 0 ) = 1 . The exact solution is y ( t ) = e t . We solved this problem using the proposed method in this paper with different values of M. A comparison of the absolute errors at some selected points, obtained by our method and the one of [45], based on a class of Lagrange polynomials, is given in Table 3.

7. Concluding Remarks

Many researchers have employed fractional differential equations (FDEs) in order to model and analyze various scientific phenomena. Typically, such FDEs do not have known analytical solutions, and approximate and numerical approaches have to be applied [46]. Here, a new numerical method, based on Bernoulli polynomials, was presented for solving multiterm variable-order fractional differential equations. The operational matrix of variable-order fractional integration for the Bernoulli basis functions was introduced, which is a lower triangular matrix and helps to reduce the computational effort of the method. Our scheme uses this matrix to give some approximations of the unknown solution of the problem and its variable-order fractional derivatives in terms of the Bernoulli functions. Substituting these approximations into the equation and using some collocation points allowed us to reduce the problem to a system of nonlinear algebraic equations, which greatly simplifies the problem. An error estimate of the method was proven, and the applicability of our method was illustrated by solving five illustrative examples. The obtained results confirmed the efficiency, accuracy, and high performance of our technique, when compared with the state-of-the-art numerical schemes available in the literature. We emphasize that the accuracy of our method is preserved even when the solution of the problem is not infinitely differentiable. This can be observed in Example 2, whose exact solution is t 7 2 .
We used a variable-order definition where the operator has no order memory, a so-called type-I operator. As future work, it would be interesting to extend the proposed numerical method to approximate variable-order derivatives with weak (type-II) and strong (type-III) variable-order definitions [18,47]. Other interesting lines of research include the stability analysis of the proposed numerical method and its application to different areas in science and engineering, for example in structural mechanics.

Author Contributions

Conceptualization, S.N., P.M.L. and D.F.M.T.; methodology, S.N., P.M.L. and D.F.M.T.; software, S.N.; validation, S.N., P.M.L. and D.F.M.T.; formal analysis, S.N., P.M.L. and D.F.M.T.; investigation, S.N., P.M.L. and D.F.M.T.; writing—original draft preparation, S.N., P.M.L. and D.F.M.T.; writing—review and editing, S.N., P.M.L. and D.F.M.T.; visualization, S.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Fundação para a Ciência e a Tecnologia (FCT, the Portuguese Foundation for Science and Technology) through CEMAT, Grant Number UIDB/04621/2020 (P.M.L.), and CIDMA, Grant Number UIDB/04106/2020 (D.F.M.T.).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors are grateful to the three anonymous reviewers for several constructive remarks, questions, and suggestions.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of the data; in the writing of the manuscript; nor in the decision to publish the results.

References

  1. Almeida, R.; Tavares, D.; Torres, D.F.M. The Variable-Order Fractional Calculus of Variations; Springer: Cham, Switzerland, 2019. [Google Scholar] [CrossRef] [Green Version]
  2. Samko, S.G.; Kilbas, A.A.; Marichev, O.I. Fractional Integrals and Derivatives; Translated from the 1987 Russian Original; Gordon and Breach: Yverdon, Switzerland, 1993. [Google Scholar]
  3. Podlubny, I. Fractional Differential Equations; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
  4. Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006. [Google Scholar]
  5. Mainardi, F. Fractional Calculus and Waves in Linear Viscoelasticity; Imperial College Press: London, UK, 2010. [Google Scholar] [CrossRef]
  6. Tuan, N.H.; Ganji, R.M.; Jafari, H. A numerical study of fractional rheological models and fractional Newell-Whitehead-Segel equation with nonlocal and nonsingular kernel. Chin. J. Phys. 2020, 68, 308–320. [Google Scholar] [CrossRef]
  7. Samko, S.G.; Ross, B. Integration and differentiation to a variable fractional order. Integr. Transf. Spec. Funct. 1993, 1, 277–300. [Google Scholar] [CrossRef]
  8. Odzijewicz, T.; Malinowska, A.B.; Torres, D.F.M. Noether’s theorem for fractional variational problems of variable order. Cent. Eur. J. Phys. 2013, 11, 691–701. [Google Scholar] [CrossRef] [Green Version]
  9. Chen, S.; Liu, F.; Burrage, K. Numerical simulation of a new two-dimensional variable-order fractional percolation equation in non-homogeneous porous media. Comput. Math. Appl. 2014, 67, 1673–1681. [Google Scholar] [CrossRef]
  10. Coimbra, C.F.M.; Soon, C.M.; Kobayashi, M.H. The variable viscoelasticity operator. Ann. Phys. 2005, 14, 378–389. [Google Scholar] [CrossRef]
  11. Odzijewicz, T.; Malinowska, A.B.; Torres, D.F.M. Fractional Variational Calculus of Variable Order. In Advances in Harmonic Analysis and Operator Theory. Operator Theory: Advances and Applications; Almeida, A., Castro, L., Speck, F.O., Eds.; Birkhäuser: Basel, Switzerland, 2013; Volume 229, pp. 291–301. [Google Scholar] [CrossRef] [Green Version]
  12. Ostalczyk, P.W.; Duch, P.; Brzeziński, D.W.; Sankowski, D. Order functions selection in the variable fractional-order PID controller. Advances in Modelling and Control of Non-integer-Order Systems. Lect. Notes Electr. Eng. 2015, 320, 159–170. [Google Scholar] [CrossRef]
  13. Rapaić, M.R.; Pisano, A. Variable-order fractional operators for adaptive order and parameter estimation. IEEE Trans. Autom. Contr. 2014, 59, 798–803. [Google Scholar] [CrossRef]
  14. Patnaik, S.; Semperlotti, F. Variable-order particle dynamics: Formulation and application to the simulation of edge dislocations. Philos. Trans. R. Soc. A 2020, 378, 20190290. [Google Scholar] [CrossRef]
  15. Blaszczyk, T.; Bekus, K.; Szajek, K.; Sumelka, W. Approximation and application of the Riesz-Caputo fractional derivative of variable order with fixed memory. Meccanica 2021, in press. [Google Scholar] [CrossRef]
  16. Di Paola, M.; Alotta, G.; Burlon, A.; Failla, G. A novel approach to nonlinear variable-order fractional viscoelasticity. Philos. Trans. R. Soc. A 2020, 378, 20190296. [Google Scholar] [CrossRef]
  17. Burlon, A.; Alotta, G.; Di Paola, M.; Failla, G. An original perspective on variable-order fractional operators for viscoelastic materials. Meccanica 2021, 56, 769–784. [Google Scholar] [CrossRef]
  18. Patnaik, S.; Jokar, M.; Semperlotti, F. Variable-order approach to nonlocal elasticity: Theoretical formulation, order identification via deep learning, and applications. Comput. Mech. 2021, in press. [Google Scholar] [CrossRef]
  19. El-Sayed, A.A.; Agarwal, P. Numerical solution of multiterm variable-order fractional differential equations via shifted Legendre polynomials. Math. Meth. Appl. Sci. 2019, 42, 3978–3991. [Google Scholar] [CrossRef]
  20. Wang, L.F.; Ma, Y.P.; Yang, Y.Q. Legendre polynomials method for solving a class of variable order fractional differential equation. CMES-Comp. Model. Eng. 2014, 101, 97–111. [Google Scholar] [CrossRef]
  21. Chen, Y.M.; Wei, Y.Q.; Liu, D.Y.; Yu, H. Numerical solution for a class of nonlinear variable order fractional differential equations with Legendre wavelets. Appl. Math. Lett. 2015, 46, 83–88. [Google Scholar] [CrossRef]
  22. 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] [Green Version]
  23. Nagy, A.M.; Sweilam, N.H.; El-Sayed, A.A. New operational matrix for solving multiterm variable order fractional differential equations. J. Comput. Nonlinear Dyn. 2018, 13, 11001–11007. [Google Scholar] [CrossRef]
  24. 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]
  25. Tavares, D.; Almeida, R.; Torres, D.F.M. Caputo derivatives of fractional variable order: Numerical approximations. Commun. Nonlinear Sci. 2016, 35, 69–87. [Google Scholar] [CrossRef] [Green Version]
  26. Shen, S.; Liu, F.; Chen, J.; Turner, I.; Anh, V. Numerical techniques for the variable order time fractional diffusion equation. Appl. Math. Comput. 2012, 218, 10861–10870. [Google Scholar] [CrossRef] [Green Version]
  27. Hammouch, Z.; Yavuz, M.; Özdemir, N. Numerical solutions and synchronization of a variable-order fractional chaotic system. Math. Model. Numer. Simul. Appl. 2021, 1, 11–23. [Google Scholar] [CrossRef]
  28. Ganji, R.M.; Jafari, H.; Baleanu, D. A new approach for solving multi variable orders differential equations with Mittag-Leffler kernel. Chaos Solitons Fractals 2020, 130, 109405. [Google Scholar] [CrossRef]
  29. Eghbali, A.; Johansson, H.; Saramäki, T. A method for the design of Farrow-structure based variable fractional-delay FIR filters. Signal Process. 2013, 93, 1341–1348. [Google Scholar] [CrossRef]
  30. Yu, C.; Teo, K.L.; Dam, H.H. Design of all pass variable fractional delay filter with signed powers-of-two coefficients. Signal Process. 2014, 95, 32–42. [Google Scholar] [CrossRef]
  31. Cooper, G.R.J.; Cowan, D.R. Filtering using variable order vertical derivatives. Comput. Geosci. 2004, 30, 455–459. [Google Scholar] [CrossRef]
  32. Tseng, C.-C. Design of variable and adaptive fractional order FIR differentiators. Signal Process. 2006, 86, 2554–2566. [Google Scholar] [CrossRef]
  33. Bhrawy, A.H.; Tohidi, E.; Soleymani, F. A new Bernoulli matrix method for solving high-order linear and nonlinear Fredholm integro-differential equations with piecewise intervals. Appl. Math. Comput. 2012, 219, 482–497. [Google Scholar] [CrossRef]
  34. 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]
  35. Toutounian, F.; Tohidi, E. A new Bernoulli matrix method for solving second order linear partial differential equations with the convergence analysis. Appl. Math. Comput. 2013, 223, 298–310. [Google Scholar] [CrossRef]
  36. Bazm, S. Bernoulli polynomials for the numerical solution of some classes of linear and nonlinear integral equations. J. Comput. Appl. Math. 2015, 275, 44–60. [Google Scholar] [CrossRef]
  37. 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]
  38. Costabile, F.; Dellaccio, F.; Gualtieri, M.I. A new approach to Bernoulli polynomials. Rend. Mat. Ser. VII 2006, 26, 1–12. [Google Scholar]
  39. Arfken, G. Mathematical Methods for Physicists, 3rd ed.; Academic Press: San Diego, CA, USA, 1985. [Google Scholar]
  40. Mason, J.C.; Handscomb, D.C. Chebyshev Polynomials; CRC Press LLC: Boca Raton, FL, USA, 2003. [Google Scholar]
  41. Hassani, H.; Dahaghin, M.S.; Heydari, H. A new optimized method for solving variable-order fractional differential equations. J. Math. Ext. 2017, 11, 85–98. [Google Scholar]
  42. Li, X.; Li, H.; Wu, B. A new numerical method for variable order fractional functional differential equations. Appl. Math. Lett. 2017, 68, 80–86. [Google Scholar] [CrossRef]
  43. Nemati, S.; Lima, P.; Sedaghat, S. An effective numerical method for solving fractional pantograph differential equations using modification of hat functions. Appl. Numer. Math. 2018, 131, 174–189. [Google Scholar] [CrossRef]
  44. Rahimkhani, P.; Ordokhani, Y.; Babolian, E. A new operational matrix based on Bernoulli wavelets for solving fractional delay differential equations. Numer. Algorithms 2017, 74, 223–245. [Google Scholar] [CrossRef]
  45. Sabermahani, S.; Ordokhani, Y.; Lima, P.M. A novel Lagrange operational matrix and Tau-collocation method for solving variable-order fractional differential equations. Iran J. Sci. Technol. Trans. Sci. 2020, 44, 127–135. [Google Scholar] [CrossRef]
  46. Nikan, O.; Jafari, H.; Golbabai, A. Numerical analysis of the fractional evolution model for heat flow in materials with memory. Alex. Eng. J. 2020, 59, 2627–2637. [Google Scholar] [CrossRef]
  47. Lorenzo, C.F.; Hartley, T.T. Variable order and distributed order fractional operators. Nonlinear Dyn. 2002, 29, 57–98. [Google Scholar] [CrossRef]
Figure 1. (Example 2) Comparison between the exact solution and numerical solutions with M = 1 , 2 , 3 .
Figure 1. (Example 2) Comparison between the exact solution and numerical solutions with M = 1 , 2 , 3 .
Fractalfract 05 00219 g001
Figure 2. (Example 3) Comparison between the exact solution and numerical solution with M = 1 .
Figure 2. (Example 3) Comparison between the exact solution and numerical solution with M = 1 .
Fractalfract 05 00219 g002
Figure 3. (Example 4) Comparison between exact and numerical solutions with M = 1 and α ( t ) = 1 .
Figure 3. (Example 4) Comparison between exact and numerical solutions with M = 1 and α ( t ) = 1 .
Fractalfract 05 00219 g003
Figure 4. (Example 4) Approximate solutions with M = 2 and different α ( t ) , together with the exact solution for α ( t ) = 1 .
Figure 4. (Example 4) Approximate solutions with M = 2 and different α ( t ) , together with the exact solution for α ( t ) = 1 .
Fractalfract 05 00219 g004
Table 1. (Example 2) Absolute errors at some selected points with different M.
Table 1. (Example 2) Absolute errors at some selected points with different M.
t M = 2 M = 6 M = 10
0.2 5.69 × 10 3 9.75 × 10 6 8.06 × 10 7
0.4 2.34 × 10 3 8.02 × 10 6 6.34 × 10 7
0.6 2.78 × 10 3 7.03 × 10 6 5.53 × 10 7
0.8 2.52 × 10 3 5.97 × 10 6 4.59 × 10 7
1.0 1.66 × 10 2 2.89 × 10 5 1.95 × 10 6
Table 2. (Example 4) Comparison of absolute errors, at some selected grid points, with α ( t ) = 1 .
Table 2. (Example 4) Comparison of absolute errors, at some selected grid points, with α ( t ) = 1 .
Method of [43]Method of [44]Present Method
t n = 64 k = 2 , M = 6 M = 6 M = 8 M = 10
2 2 1.18 × 10 9 1.05 × 10 8 8.61 × 10 9 1.37 × 10 11 5.56 × 10 13
2 3 5.39 × 10 10 5.79 × 10 9 1.01 × 10 8 1.57 × 10 11 4.25 × 10 13
2 4 1.17 × 10 9 2.00 × 10 8 9.30 × 10 9 1.59 × 10 11 2.42 × 10 13
2 5 5.34 × 10 10 3.70 × 10 9 6.47 × 10 9 1.21 × 10 11 1.29 × 10 13
2 6 2.27 × 10 9 2.03 × 10 8 3.83 × 10 9 7.58 × 10 12 6.72 × 10 14
Table 3. (Example 5) Comparison of the absolute errors at some selected grid points.
Table 3. (Example 5) Comparison of the absolute errors at some selected grid points.
Method of [45]Present Method
t M = 6 M = 10 M = 6 M = 8 M = 10
0.1 8.66 × 10 9 1.04 × 10 12 2.56 × 10 8 4.12 × 10 11 4.40 × 10 14
0.3 1.60 × 10 8 4.57 × 10 14 2.43 × 10 8 3.92 × 10 11 4.23 × 10 14
0.5 2.49 × 10 8 2.82 × 10 11 2.44 × 10 8 3.93 × 10 11 4.24 × 10 14
0.7 4.19 × 10 8 3.12 × 10 11 2.47 × 10 8 3.98 × 10 11 4.29 × 10 14
0.9 5.93 × 10 8 1.46 × 10 10 2.56 × 10 8 4.14 × 10 11 4.43 × 10 14
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Nemati, S.; Lima, P.M.; Torres, D.F.M. Numerical Solution of Variable-Order Fractional Differential Equations Using Bernoulli Polynomials. Fractal Fract. 2021, 5, 219. https://doi.org/10.3390/fractalfract5040219

AMA Style

Nemati S, Lima PM, Torres DFM. Numerical Solution of Variable-Order Fractional Differential Equations Using Bernoulli Polynomials. Fractal and Fractional. 2021; 5(4):219. https://doi.org/10.3390/fractalfract5040219

Chicago/Turabian Style

Nemati, Somayeh, Pedro M. Lima, and Delfim F. M. Torres. 2021. "Numerical Solution of Variable-Order Fractional Differential Equations Using Bernoulli Polynomials" Fractal and Fractional 5, no. 4: 219. https://doi.org/10.3390/fractalfract5040219

Article Metrics

Back to TopTop