Next Article in Journal
A Study of Fuzzy Fixed Points and Their Application to Fuzzy Fractional Differential Equations
Previous Article in Journal
Fractal Sturm–Liouville Theory
Previous Article in Special Issue
New Fractional Integral Inequalities Involving the Fox-H and Meijer-G Functions for Convex and Synchronous Functions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Approximation of Fractional Caputo Derivative of Variable Order and Variable Terminals with Application to Initial/Boundary Value Problems

Institute of Structural Analysis, Poznan University of Technology, Piotrowo 5 Street, 60-965 Poznań, Poland
*
Author to whom correspondence should be addressed.
Fractal Fract. 2025, 9(5), 269; https://doi.org/10.3390/fractalfract9050269
Submission received: 25 March 2025 / Revised: 18 April 2025 / Accepted: 19 April 2025 / Published: 22 April 2025

Abstract

:
This article presents a method for the approximate calculation of fractional Caputo derivatives, including a crucial aspect of the ability to handle arbitrary—even variable—terminals and order. The proposed method involves rearranging the fractional operator as a series of higher-order derivatives considered at a specific point. We demonstrate the effect of the number of terms included in the series expansion on the solution accuracy and error analysis. The advantage of the method is its simplicity and ease of implementation. Additionally, the method allows for a quick estimation of the fractional derivative by using a few first terms of the expansion. The elaborated algorithm is tested against a comprehensive series of illustrative examples, providing very good agreement with the exact/reference solutions. Furthermore, the application of the proposed method to fractional boundary/initial value problems is included.

1. Introduction

Fractional calculus (FC) has recently become a powerful modelling tool in science cf. review papers [1], with applications found, for instance, in the modelling of nano-structures [2,3], in phenomena observed in materials [4,5] or electrical systems [6]. This increasing attractiveness of FC comes from its fundamental property, namely, that one can define infinitely many fractional (differential and integer) operators (FOs). Let us mention here some of them, like those proposed by Liouville [7], Riemann [8], Grunwald [9], Letnikov [10] or more recently by Caputo–Fabrizio [11], Lazopoulos [12], Gerasimov–Caputo [13], and Katugampola [14]. This flexibility of FC means that fractional differential equations (integral or differo/integral) (FDEs) do not have, in general, analytical solutions [15,16]—it is therefore necessary to look for robust numerical methods to obtain their solutions (especially for practical cases).
The numerical schemes for an FDE depend on its specific type and especially on the applied FO [17,18]. Examples of FDEs with the Caputo operator include methods such as the Runge–Kutta methods [19], multistep methods [20], higher order ADI numerical difference formula [21], Gauss–Jacobi quadrature rule [22], Bernstein polynomials method [23], wavelet-based collocation method [24], trapezoidal rule [25], and central difference scheme [26]. For an FDE with Riemann–Liouville, one can distinguish methods such as quadratic interpolation [27], the Adomian decomposition method [28], the finite element method [29], and the Kansa method [30]. Additionally, for other types of FDE with different FOs, tailored methods have also been developed. These include the variational finite difference method for the Riesz operator [31], a specialised method for the Ψ -Caputo derivative [32,33], the Laplace transform for conformable derivatives [34], and quadrature-based approaches [35,36].
However, none of these methods can be considered universal, so there is a continuous need for new concepts, especially those that enable easy implementation and the obtaining of solutions for a broad class of problems—preferably those characteristic of real-life applications (such as, for instance, the analysis of mechanical structures like nanobeams [37,38] or the modelling of epidemic spread [39,40]). Furthermore, it is usually assumed that fractional operators operate on the entire domain (to capture global interactions) and are of constant order. However, some phenomena in physics may be better described when the terminals of the fractional operator are variable [41] and/or the fractional order is variable [1,42].
With respect to the above discussion, the novelty of this work is an extension of the method presented in [43], designated for the approximate calculation of the Riemann–Liouville operator by a series of integer order derivatives evaluated at a single point, which significantly simplifies numerical implementation. Additionally, the method allows for a natural truncation of the series, providing controlled approximation. However, the method needs the input function to be analytic and relies on the evaluation of multiple higher-order derivatives at a single point. This may limit its applicability in cases where the function is not smooth or is only available in discrete form. Nevertheless, these limitations are not critical in settings where the input function is known analytically. For instance, in fractional finite element methods [1], where smooth shape functions (often polynomials) with known derivatives are employed, as well as in spectral methods [44], the need to evaluate higher-order derivatives does not pose a significant challenge. This method can be applied efficiently and accurately to such applications.
Herein, we generalise the above methodology to the case of the approximate calculation of Caputo derivatives of variable order and/or variable terminals [45], which, to the best of the authors’ knowledge, cannot be found in the literature. The method is based on the variable change and the expansion of the sub-integral function by means of the Taylor series, resulting in the transformation of the fractional operator into a series of higher-integer-order derivatives. The work is supported by illustrative examples and a demonstration of its applications in solving fractional initial/boundary value problems.
The paper is structured as follows. Section 2 presents preliminaries on fractional calculus. Section 3 is devoted to the Taylor series-based method of fractional Caputo derivative approximation. Section 4 provides illustrative examples of fractional operator approximation, and Section 5 demonstrates the application of the proposed method to initial/boundary value problems. Section 6 concludes the article.

2. Fractional Calculus

This section is devoted to presenting some required preliminaries of fractional calculus—definitions of Riemann–Liouville integrals and Caputo derivatives [15].

2.1. Riemann-Liouville Fractional Integral

The left and right Riemann–Liouville fractional integrals of order α > 0 of a given function f are defined by
a I x α f ( x ) = 1 Γ ( α ) a x ( x τ ) α 1 f ( τ ) d τ , for x > a ,
and
x I b α f ( x ) = 1 Γ ( α ) x b ( τ x ) α 1 f ( τ ) d τ , for x < b ,
respectively, where Γ is Euler’s gamma function.

2.2. Caputo Fractional Derivative

The left and right Caputo derivatives of order α > 0 of a given function f are defined by
a C D x α f ( x ) = 1 Γ ( n α ) a x ( x τ ) n α 1 f ( n ) ( τ ) d τ , for x > a ,
and
x C D b α f ( x ) = ( 1 ) n Γ ( n α ) x b ( τ x ) n α 1 f ( n ) ( τ ) d τ , for x < b ,
respectively, where n 1 < α n , n N . In particular, we consider an extension of the definition of the Caputo derivative by variable order α ( x ) and variable terminals ( a ( x ) and b ( x ) ), then
D x α a ( x ) C f ( x ) = 1 Γ ( n α ( x ) ) a ( x ) x ( x τ ) n α ( x ) 1 f ( n ) ( τ ) d τ , for x > a ( x ) ,
and
x C D b ( x ) α ( x ) f ( x ) = ( 1 ) n Γ ( n α ( x ) ) x b ( x ) ( τ x ) n α ( x ) 1 f ( n ) ( τ ) d τ , for x < b ( x ) .
Figure 1 illustrates how the left/right derivative of Caputo operates on the function f ( x ) . In the case of a fixed terminal a / b , it operates on the entire ‘past’/‘future’ of the function in the interval a , b . In contrast, with a variable/fixed boundary a ( x ) / b ( x ) , it operates on some fragment of the ‘past’/‘future’ of f ( x ) —in Figure 1, an example is shown when a fixed horizon is set, i.e., a ( x ) = x and b ( x ) = x + .

3. Taylor Series-Based Approximation

3.1. Riemann–Liouville Integral

It is assumed that f ( t ) is an analytical function and can be represented by a convergent power series,
f ( t ) = k = 0 ( 1 ) k f ( k ) ( x ) k ! ( x t ) k .
Substituting the representation in Equation (7) into the integral expressions in Equation (1) and (2), and applying term-by-term fractional integration, leads directly to fractional Riemann–Liouville integral expanded into a series involving integer order derivatives [43], as follows:
a I x α f ( x ) = 1 Γ ( α ) k = 0 ( 1 ) k k ! ( k + α ) ( x a ) k + α f ( k ) ( x ) ,
and right
x I b α f ( x ) = 1 Γ ( α ) k = 0 1 k ! ( k + α ) ( b x ) k + α f ( k ) ( x )
fractional integrals, respectively.
However, from the numerical point of view, one usually considers an approximation of the fractional integral that takes a finite sum of higher-integer-order derivatives, for left,
a I x α f ( x ) 1 Γ ( α ) k = 0 m 1 ( 1 ) k k ! ( k + α ) ( x a ) k + α f ( k ) ( x ) ,
and right,
x I b α f ( x ) 1 Γ ( α ) k = 0 m 1 1 k ! ( k + α ) ( b x ) k + α f ( k ) ( x )
Riemann–Liouville fractional integrals.

3.2. Caputo Fractional Derivative

We derive an analogous formula as presented in Section 3.1, albeit for the approximation of the Caputo derivative allowing for variable order and/or variable terminals.
First, the fractional derivatives (Equations (5) and (6)) are transformed by adopting new variables,
t 1 = ( x τ ) n α ( x ) and t 2 = ( τ x ) n α ( x ) .
Then, their differentials are as follows:
d t 1 = ( n α ( x ) ) ( x τ ) n α ( x ) 1 d τ d t 2 = ( n α ( x ) ) ( τ x ) n α ( x ) 1 d τ .
Next, for the Caputo derivative, we use a new variables Equation (12) and their differentials Equation (13) to rewrite Equations (5) and (6) as follows:
D x α ( x ) a ( x ) C f ( x ) = 1 Γ ( n α ( x ) ) a ( x ) x ( x τ ) n α ( x ) 1 f ( n ) ( τ ) d τ = = 1 Γ ( n + 1 α ( x ) ) 0 ( x a ( x ) ) n α f ( n ) ( x t 1 1 n α ( x ) ) d t 1 ,
x C D b ( x ) α ( x ) f ( x ) = ( 1 ) n Γ ( n α ( x ) ) x b ( x ) ( τ x ) n α ( x ) 1 f ( n ) ( τ ) d τ = ( 1 ) n Γ ( n + 1 α ( x ) ) 0 ( b ( x ) x ) n α ( x ) f ( n ) ( x + t 2 1 n α ( x ) ) d t 2 .
Next, we use an approximation based on the Taylor series [46,47] to expand the functions f ( n ) ( x t 1 1 n α ( x ) ) and f ( n ) ( x + t 2 1 n α ( x ) ) around a point x,
f ( n ) ( x t 1 1 n α ( x ) ) = f ( n ) ( x ) t 1 1 n α ( x ) f ( n + 1 ) ( x ) + t 1 2 n α ( x ) 1 2 ! f ( n + 2 ) ( x ) t 1 3 n α ( x ) 1 3 ! f ( n + 3 ) ( x ) + = k = 0 ( 1 ) k t 1 k n α ( x ) k ! f ( k + n ) ( x ) ,
and
f ( n ) ( x + t 2 1 n α ( x ) ) = f ( n ) ( x ) + t 2 1 n α ( x ) f ( n + 1 ) ( x ) + t 2 2 n α ( x ) 1 2 ! f ( n + 2 ) ( x ) + t 2 3 n α ( x ) 1 3 ! f ( n + 3 ) ( x ) + = k = 0 t 2 k n α ( x ) k ! f ( k + n ) ( x ) .
Substituting Equation (16) into Equation (14) and Equation (17) into Equation (15) and then integrating leads to the expression of the Caputo fractional derivatives as an infinite sum of higher-integer-order derivatives as follows, for the left
D x α a ( x ) C f ( x ) = 1 Γ ( n + 1 α ( x ) ) 0 ( x a ( x ) ) n α ( x ) f ( n ) ( x t 1 1 n α ( x ) ) d t 1 = 1 Γ ( n + 1 α ( x ) ) 0 ( x a ( x ) ) n α ( x ) k = 0 ( 1 ) k t 1 k n α ( x ) k ! f ( k + n ) ( x ) d t 1 = 1 Γ ( n + 1 α ( x ) ) k = 0 ( 1 ) k k ! n α ( x ) k + n α ( x ) ( x a ( x ) ) k + n α ( x ) f ( k + n ) ( x ) ,
and right
x C D b ( x ) α ( x ) f ( x ) = ( 1 ) n Γ ( n + 1 α ( x ) ) 0 ( b ( x ) x ) n α ( x ) f ( n ) ( x + t 2 1 n α ( x ) ) d t 1 = ( 1 ) n Γ ( n + 1 α ( x ) ) 0 ( b ( x ) x ) n α ( x ) k = 0 t 2 k n α ( x ) k ! f ( k + n ) ( x ) d t 2 = 1 Γ ( n + 1 α ( x ) ) k = 0 ( 1 ) n k ! n α ( x ) k + n α ( x ) ( b ( x ) x ) k + n α ( x ) f ( k + n ) ( x )
Caputo fractional derivatives, respectively. However, since we consider an approximation of a fractional derivative, we take a finite sum of higher-integer-order derivatives, for left
D x α ( x ) a ( x ) C f ( x ) 1 Γ ( n + 1 α ( x ) ) k = 0 m 1 ( 1 ) k k ! n α ( x ) k + n α ( x ) ( x a ( x ) ) k + n α ( x ) f ( k + n ) ( x ) ,
and right
x C D b ( x ) α ( x ) f ( x ) 1 Γ ( n + 1 α ( x ) ) k = 0 m 1 ( 1 ) n k ! n α ( x ) k + n α ( x ) ( b ( x ) x ) k + n α ( x ) f ( k + n ) ( x )
Caputo fractional derivatives, respectively.

4. Application Examples for Fractional Derivatives

In the following, we present two examples, including in one of them a detailed discussion about the effect of the parameter m on the resulting accuracy of the solution. We consider various combinations with constant/variable terminal a ( x ) of the fractional derivative and constant/variable fractional order α ( x ) . It is clear that computational time increases for a larger value of parameter m; however, this is case-dependent (both from the considered problem and hardware perspectives), and is not scaled linearly.
Example 1. 
The left Caputo fractional derivative of the function f ( x ) = sin ( x ) is defined as
D x α ( x ) a ( x ) C sin ( x ) = 1 Γ ( 1 α ( x ) ) a ( x ) x ( x τ ) α ( x ) cos ( τ ) d τ , x 0 , 3 π and α ( x ) ( 0 , 1 ,
and after changing the variable (Equation (14)),
D x α ( x ) a ( x ) C sin ( x ) = 1 Γ ( 1 α ( x ) ) 0 ( x a ) 1 α ( x ) cos ( x t 1 1 1 α ( x ) ) d t 1 , x a ( x ) , 3 π and α ( x ) ( 0 , 1 .
Next, using Equation (20), its approximation is defined as
D x α ( x ) a ( x ) C sin ( x ) = 1 Γ ( 2 α ( x ) ) k = 0 m 1 ( 1 ) k k ! 1 α ( x ) k + 1 α ( x ) ( x a ( x ) ) k + 1 α ( x ) sin ( k + 1 ) ( x ) , x a ( x ) , 3 π and α ( x ) ( 0 , 1 .
First, we consider a constant terminal of a fractional derivative equal to zero ( a = 0 ), and a constant order of fractional derivative α = { 1.0 , 0.8 , 0.6 , 0.4 , 0.2 } . The exact solution of Equation (22) is known only for that case, and it is as follows (taken from [48]):
D x α 0 C sin ( x ) = x 1 α E 2 , 2 α ( x 2 ) ,
where E α , β is the Mittag–Leffler function given by
E α , β ( x ) = α , β x k Γ ( α k + β ) .
Figure 2 shows the comparison of the exact solution of Equation (25) and the results of the approximation according to Equation (24) for m = 31 .
Furthermore, Figure 3 shows the influence of the number of terms m = { 1 , 5 , 11 , 15 , 21 , 25 , 31 } taken in the expansion of Equation (24)1 on the accuracy of the approximation, for α = 0.8 and α = 0.2 . Additional, Table 1 and Table 2 present (for α = 0.8 and α = 0.2 , respectively) the approximation errors
e r r ( x ) = s e ( x ) s a ( x )
on different coordinates x = { π / 4 , π / 2 , π , 2 π , 3 π } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (24)2, where s e ( x ) is the exact solution of Equation (25) and s a is an approximated solution of Equation (24)1.
The following can be noticed:
  • The Taylor series-based approximation of the fractional derivative (or integral) becomes more accurate as m increases.
  • When the x-coordinate is close to the fractional derivative interval limit ( a = 0 in the example presented), a faster convergence is observed compared to the x-coordinate far from this point. Therefore, for the x-coordinate close to the point a (or b for a right-hand fractional operator), a low-order Taylor expansion can provide sufficient accuracy. On the other hand, for x far from point a (or b), higher-order terms become more significant and a higher-order Taylor series is required to maintain sufficient accuracy.
  • Faster convergence is observed for a fractional derivative order α closer to the value n ( α = 0.8 compared to α = 0.2 in the example presented).
  • Obviously, with an integer-order derivative (or integral) α = n (and α = 1 in this example), m = 1 provides an exact solution, and there is no need for m > 1 , since the higher-order terms will be equal to 0 and will not affect the obtained solution.
It should be added that for a 0 , an analytical solution of Equation (22) is undetermined, and numerical methods are necessary. Thus, Figure 4 shows an example of the solution for different values of the terminal of the derivative a = { 0.3 π , 0.2 π , 0.1 π , 0 , 0.1 π , 0.2 π , 0.3 π } (and constant order α = 0.2 ) applying the method introduced in this paper. To demonstrate that the proposed method works well in such applications, the solutions received are compared with those obtained by the Gauss–Jacobi quadrature method in [22].
Next, Figure 5 shows a comparison of the results for constant ( a = 0 ) and variable ( a ( x ) = x 2 ) terminals of a fractional derivative, while the order of fractional derivative α is constant. Meanwhile, Figure 6 shows the results extended by also adopting α as the following functions:
α ( x ) = 1 0.3 π x , α ( x ) = 0.4 x ( x 3 π ) π 2 + 0.1 .
Since it is assumed that x 0 , 3 π , then 0.1 α ( x ) 1.0 for all x. The α ( x ) function is plotted in Figure 6. In the adopted variable derivative terminal, instead of a fixed starting point (as in the case of a ( x ) = a = const ), the size of the horizon from the point x is fixed ( a ( x ) = x 2 ).
Example 2. 
The left and right fractional Caputo derivatives of the functions f 1 ( x ) = x 2 and f 2 ( x ) = ( 1 x ) 2 with variable fractional order α ( x ) are defined as:
D x α ( x ) 0 C f 1 ( x ) = D x α ( x ) 0 C x 2 = 1 Γ ( 1 α ( x ) ) 0 x 2 x ( x τ ) α ( x ) d τ , x C D 1 α ( x ) f 2 ( x ) = x C D 1 α ( x ) ( 1 x ) 2 = 1 Γ ( 1 α ( x ) ) x 1 2 ( 1 x ) ( x τ ) α ( x ) d τ , x 0 , 1 and α = 5 x + 1 10 .
Since it is assumed that x 0 , 1 , then 0.1 α ( x ) 0.6 for all x. Using Equations (20) and (21), the approximation of Equation (29) is defined as:
D x α ( x ) 0 C x 2 = 1 Γ ( 2 α ( x ) ) k = 0 m 1 ( 1 ) k k ! 1 α ( x ) k + 1 α ( x ) x k + 1 α ( x ) ( x 2 ) ( k + 1 ) , x C D 1 α ( x ) ( 1 x ) 2 = 1 Γ ( 2 α ( x ) ) k = 0 m 1 1 k ! 1 α ( x ) k + 1 α ( x ) ( 1 x ) k + 1 α ( x ) ( ( 1 x ) 2 ) ( k + 1 ) , x 0 , 1 and α = 5 x + 1 10 .
The exact solution is (taken from [49]):
0 C D x α ( x ) x 2 = 2 Γ ( 3 α ( x ) ) x 2 α ( x ) , x C D 1 α ( x ) ( 1 x ) 2 = 2 Γ ( 3 α ( x ) ) ( 1 x ) 2 α ( x ) .
Figure 7 shows the comparison of the exact solution of Equation (31) for a variable α ( x ) , as well as the constant α = { 0.1 , 0.6 } and results of the approximation according to Equation (30) for m = 2 .

5. Fractional Boundary/Initial-Value Problems

In the following, we present two examples of the application of the proposed approximation method of fractional operators in the fractional boundary/initial value problems.
Example 3. 
Consider the fractional boundary value problem,
0 C D x y ( x ) + c y ( x ) = x + c x α + 1 Γ ( α + 2 ) , x 0 , 1 , y ( 0 ) = 0 ; y ( 1 ) = 1 Γ ( α + 2 ) , α ( 1 , 2 , c R .
Let us solve Equation (32) using the weighted residual method, namely the Galerkin method. Hence, the approximate solution y m ( x ) of Equation (32)1 is a linear combination of the basis functions ϕ i ,
y ( x ) y m ( x ) = i = 1 m w i ϕ i ,
where w i are the nodal values of function y ( x ) . Basis functions are constructed such that each basic function has a value of 1 at its associated node and 0 at all other nodes. These functions are built on m Chebyshev nodes of the second kind [50,51] to minimise the problem of the Runge phenomenon [52,53], which is a problem of oscillation at the edges of an interpolation interval that occurs when interpolating with polynomials of a high degree for equally spaced interpolation points.
To simplify the derivation of the solution, and due to the fact that Chebyshev nodes are defined in the interval 1 , 1 , the natural coordinates ξ are used. The coordinate transformation is described as
x = x m x 1 2 ξ + x m + x 1 2 ,
or alternatively as
ξ = 2 x x m x 1 x m + x 1 x m x 1 ,
where x m and x 1 are the coordinates at last and first node. In the example presented, we have x 1 = 0 , x m = 1 , therefore
x = 1 2 ( ξ + 1 ) ,
and
ξ = 2 x 1 .
Then, the left Caputo fractional derivative of the approximate solution y m ( x ) is
0 C D x y m ( x ) = j = 1 m w j Γ ( n + 1 α ) k = 0 m 1 ( 1 ) k k ! n α k + n α x k + n α ϕ j ( k + n ) ( x ) ,
and in natural coordinates (Equation (37)),
0 C D x y m ( ξ ) = j = 1 m w j Γ ( n + 1 α ) k = 0 m 1 ( 1 ) k k ! n α k + n α 1 2 ( ξ + 1 ) k + n α 2 k + n ϕ j ( k + n ) ( ξ ) .
The residual function of Equation (32)1 is
R ( ξ , w j ) = D x 0 C y m ( ξ ) + c y m ( ξ ) 1 2 ( ξ + 1 ) c 1 2 ( ξ + 1 ) α + 1 Γ ( α + 2 ) = j = 1 m w j 1 Γ ( n + 1 α ) k = 0 m 1 ( 1 ) k k ! n α k + n α 1 2 ( ξ + 1 ) k + n α 2 k + n ϕ j ( k + n ) ( ξ ) + c ϕ j ( ξ ) + 1 2 ( ξ + 1 ) c ( 1 2 ( ξ + 1 ) ) α + 1 Γ ( α + 2 ) .
Finally, the weighted residual equation (weak integral form) is
0 1 R ( x , w j ) ϕ i ( x ) d x = 1 2 1 1 R ( ξ , w j ) ϕ i ( ξ ) d ξ = 0
for j = 1 , 2 , , m , which results in the transformation of a fractional differential problem into a system of m algebraic equations for unknown w i . Utilising matrix notation, we have
{ K } { w } = { F } ,
where
K i j = 1 2 1 1 1 Γ ( n + 1 α ) k = 0 m 1 ( 1 ) k k ! n α k + n α 1 2 ( ξ + 1 ) k + n α 2 k + n ϕ j ( k + n ) ( ξ ) + c ϕ j ( ξ ) ϕ i ( ξ ) d ξ ,
and
F i = 1 2 1 1 1 2 ( ξ + 1 ) + c ( 1 2 ( ξ + 1 ) ) α + 1 Γ ( α + 2 ) ϕ i ( ξ ) d ξ .
Following this procedure, one can perform numerical integration using the Gauss–Legendre quadrature method. Then, the analytical integration of a given function g ( ξ ) over the domain space ξ 1 , 1 is replaced by the weighted sum
1 1 g ( ξ ) d ξ = i = 1 n G g ( ξ i G ) w i G ,
where w i G are the quadrature weights, ξ i G are the location of integration points and n G N is the number of integration points. In the study, n G = m is adopted.
The boundary conditions in Equation (32)3 imply w 1 = 1 and w m = 1 Γ ( α + 2 ) , and they are included by modifying the matrix K and the vector F , which leads to a system of equations,
K i j w i = F i ( K i 1 w 1 + K i m w m ) ,
for j = 2 ÷ m 1 , and i = 2 ÷ m 1 . After including the boundary conditions, a system of m 2 equations remains to be solved to determine the values of w i . We solve the linear system of equations using LU factorisation.
Appendix A contains the obtained approximate solutions for m = 5 and c = 2.0 , and different values of fractional derivative order α = { 1.2 , 1.4 , 1.6 , 1.8 , 2.0 } . Furthermore, the exact solution of Equation (32) (taken from [54]) is
y ( x ) = x α + 1 Γ ( α + 2 ) .
Figure 8 shows the comparison of the exact (Equation (47)) and approximated solutions. In addition, Table 3 and Table 4 collect (for α = 1.8 and α = 1.2 , respectively) the approximation errors at different coordinates x = { 0.25 , 0.5 , 0.75 } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain in Equation (32)2. The best approximation was obtained for m = 15 while increasing the value of m to 21 or more, resulting in a poorer fit. When the order of the derivative α is close to n, a good alignment of the approximate solution with the exact one is obtained more quickly.
Example 4. 
Consider the fractional initial-value problem,
D x α ( x ) a ( x ) C y ( x ) = 2 Γ ( 2 α ( x ) ) x + α ( x ) 1 2 α ( x ) , x 0 , 1 , y ( 0 ) = 0 ,
with the following terminal a ( x ) and fractional order α ( x ) ,
a ( x ) = x 1 , a ( x ) = x 0.5 , a ( x ) = 0 , and α ( x ) = 10 7 x 10 , α ( x ) = 0.75 .
To obtain the approximate solution, the same procedure as described in Example 3 was adopted. Furthermore, the exact solution of Equation (48) is known only for a ( x ) = x 1 , and it is (regardless of α ( x ) ),
y ( x ) = x 2 .
Figure 9 shows the comparison of the known exact solution of Equation (50) and the approximated solution for m = 5 .

6. Conclusions

The paper presents a method for approximating fractional Caputo derivatives of variable order and/or variable terminals. The procedure involves rearranging the fractional derivative as a sum of higher-integer-order derivatives. The accuracy of the presented method depends on
  • the number of terms m included in the expansion—approximation becomes more accurate as m increases;
  • the proximity of the x coordinate to the limit of the fractional derivative interval (points a or b)—for x close to points a or b, a low-order Taylor expansion m can provide sufficient accuracy, and for x far from points a or b, a higher-order Taylor series m is required to maintain sufficient accuracy;
  • order α of fractional derivative—faster convergence is observed for α closer to value n. Additionally, with the derivative of integer order α = n (or integral), m = 1 provides an exact solution, and there is no need for m > 1 , since the higher-order terms will be equal to 0 and will not affect the obtained solution.
  • The examples presented demonstrate very good agreement with the exact/reference solutions. The advantage of the proposed method is its simplicity and ease of implementation. It is particularly useful when the exact solution of the fractional derivative/integral is impossible to obtain.
Furthermore, the presented method was used to solve the fractional initial/boundary value problems with the weighted residual (Galerkin) method. When the order of the derivative, denoted by α , approaches the value of n, the approximate solution aligns more rapidly with the exact solution.

Author Contributions

P.S. software, investigation, writing—original draft, funding acquisition, visualization; W.S. conceptualisation, formal analysis, writing—original draft. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in whole by the National Science Centre, Poland, grant number 2022/45/N/ST8/02421. For the purpose of Open Access, the authors have applied a CC-BY public copyright license to any Author Accepted Manuscript (AAM) version arising from this submission.

Data Availability Statement

The datasets used in this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

The following are the approximated solutions Equation (33) obtained for the fractional boundary-value problem described in Example 3, for m = 5 , c = 2.0 and different values of fractional derivative order α ,
  • for α = 2.0 ,
    y m ( x ) = 1 48 ξ 3 + 3 ξ 2 + 3 ξ + 1 ,
  • for α = 1.8 ,
    y m ( x ) = 0.00137405401461438 ξ 4 + 0.0210595261735355 ξ 3 + 0.0772385823955651 ξ 2 + 0.0854554811707933 ξ + 0.0306504789633781 ,
  • for α = 1.6 ,
    y m ( x ) = 0.00292145084707635 ξ 4 + 0.019596028981649 ξ 3 + 0.0928745019133292 ξ 2 + 0.114920191459471 ξ + 0.0445631693748676 ,
  • for α = 1.4 ,
    y m ( x ) = 0.00420989231269292 ξ 4 + 0.0157735720392837 ξ 3 + 0.108089697644564 ξ 2 + 0.151943763970542 ξ + 0.0638375306779543 ,
  • for α = 1.2 ,
    y m ( x ) = 0.0041252508156403 ξ 4 + 0.00908804752001091 ξ 3 + 0.120318324086142 ξ 2 + 0.197185517074371 ξ + 0.0900804913238804 .

References

  1. Patnaik, S.; Hollkamp, J.; Semperlotti, F. Applications of variable-order fractional operators: A review. Proc. R. Soc. Math. Eng. Sci. 2020, 476, 20190498. [Google Scholar] [CrossRef] [PubMed]
  2. Chandel, V.; Wang, G.; Talha, M. Advances in modelling and analysis of nano structures: A review. Nanotechnol. Rev. 2020, 9, 230–258. [Google Scholar] [CrossRef]
  3. Shaat, M.; Ghavanloo, E.; Fazelzadeh, S. Review on nonlocal continuum mechanics: Physics, material applicability, and mathematics. Mech. Mater. 2020, 150, 103587. [Google Scholar] [CrossRef]
  4. Failla, G.; Zingales, M. Advanced materials modelling via fractional calculus: Challenges and perspectives. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2020, 378, 20200050. [Google Scholar] [CrossRef]
  5. Qu, P.; Sun, Y.; Sumelka, W. Review on stress-fractional plasticity models. Materials 2022, 15, 7802. [Google Scholar] [CrossRef]
  6. Barbero, G.; Evangelista, L.R.; Zola, R.S.; Lenzi, E.K.; Scarfone, A.M. A brief review of fractional calculus as a tool for applications in physics: Adsorption phenomena and electrical impedance in complex fluids. Fractal Fract. 2024, 8, 369. [Google Scholar] [CrossRef]
  7. Liouville, J. Memoire sur le calcul des differentielles a indices quelconques. J. l’Éc. Polytech. 1832, 13, 71–162. [Google Scholar]
  8. Riemann, B. Versuch Einer Allgemeinen Auffassung der Integration und Differentiation; Gesammelte Werke; Teubner: Leipzig, Germany, 1892; (published posthumously). [Google Scholar]
  9. Grunwald, A. Uber ”begrenzte” derivationen und deren anwendung. Z. Math. Phys. 1867, 12, 441–480. [Google Scholar]
  10. Letnikov, A. Theory of differentiation with an arbitrary index. Mat. Sb. 1868, 3, 1–66. [Google Scholar]
  11. Caputo, M.; Fabrizio, M. A new definition of fractional derivative without singular kernel. Prog. Fract. Differ. Appl. 2015, 1, 73–85. [Google Scholar]
  12. Lazopoulos, K.; Lazopoulos, A. On fractional bending of beams with λ-fractional derivative. Arch. Appl. Mech. 2019, 90, 573–584. [Google Scholar] [CrossRef]
  13. Mohammadjani, R.; Shariyat, M. Nonlinear thermomechanical vibration mitigation analysis in rotating fractional-order viscoelastic bidirectional fg annular disks under nonuniform shocks. J. Therm. Stress. 2020, 43, 829–873. [Google Scholar] [CrossRef]
  14. Zhang, X.-M. The non-uniqueness of solution for initial value problem of impulsive differential equations involving higher order katugampola fractional derivative. Adv. Differ. Equ. 2020, 2020, 85. [Google Scholar] [CrossRef]
  15. Podlubny, I. Fractional Differential Equations: An Introduction to Fractional Derivatives, Fractional Differential Equations, to Methods of Their Solution and Some of Their Applications; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
  16. Kilbas, A.; Srivastava, H.; Trujillo, J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006. [Google Scholar]
  17. Jin, B. Fractional Differential Equations; Springer eBook Collection; Springer: Cham, The Netherlands, 2021. [Google Scholar]
  18. Balanchandran, K. An Introduction to Fractional Differential Equations; Industrial and Applied Mathematics; Springer: Singapore, 2023. [Google Scholar]
  19. Ghoreishi, F.; Ghaffari, R.; Saad, N. Fractional order runge–kutta methods. Fractal Fract. 2023, 7, 245. [Google Scholar] [CrossRef]
  20. Songsanga, D.; Ngiamsunthorn, P.S. Single-step and multi-step methods for caputo fractional-order differential equations with arbitrary kernels. AIMS Math. 2022, 7, 15002–15028. [Google Scholar] [CrossRef]
  21. Wu, L.; Zhai, S. A new high order adi numerical difference formula for time-fractional convection-diffusion equation. Appl. Math. Comput. 2020, 387, 124564. [Google Scholar] [CrossRef]
  22. Jahanshahi, S.; Babolian, E.; Torres, D.; Vahidi, A. A fractional gauss–jacobi quadrature rule for approximating fractional integrals and derivatives. Chaos Solitons Fractals 2017, 102, 295–304. [Google Scholar] [CrossRef]
  23. Kadkhoda, N. A numerical approach for solving variable order differential equations using bernstein polynomials. Alex. Eng. J. 2020, 59, 3041–3047. [Google Scholar] [CrossRef]
  24. Kaiser, T.; Remmers, J.J.C.; Geers, M.G.D. An adaptive wavelet-based collocation method for solving multiscale problems in continuum mechanics. Comput. Mech. 2022, 70, 1335–1357. [Google Scholar] [CrossRef]
  25. Odibat, Z. Approximations of fractional integrals and Caputo fractional derivatives. Appl. Math. Comput. 2006, 178, 527–533. [Google Scholar] [CrossRef]
  26. Ying, Y.; Lian, Y.; Tang, S.; Liu, W.K. High-order central difference scheme for caputo fractional derivative. Comput. Methods Appl. Mech. Eng. 2017, 317, 42–54. [Google Scholar] [CrossRef]
  27. Blaszczyk, T.; Siedlecki, J.; Ciesielski, M. Numerical algorithms for approximation of fractional integral operators based on quadratic interpolation. Math. Methods Appl. Sci. 2018, 41, 3345–3355. [Google Scholar] [CrossRef]
  28. Hu, Y.; Luo, Y.; Lu, Z. Analytical solution of the linear fractional differential equation by adomian decomposition method. J. Comput. Appl. Math. 2008, 215, 220–229. [Google Scholar] [CrossRef]
  29. Roop, J.P. Computational aspects of fem approximation of fractional advection dispersion equations on bounded domains in r2. J. Comput. Appl. Math. 2006, 193, 243–268. [Google Scholar] [CrossRef]
  30. Pang, G.; Chen, W.; Fu, Z. Space-fractional advection–dispersion equations by the kansa method. J. Comput. Phys. 2015, 293, 280–296. [Google Scholar] [CrossRef]
  31. Oskouie, M.F.; Ansari, R.; Rouhi, H. Vibration analysis of fg nanobeams on the basis of fractional nonlocal model: A variational approach. Microsyst. Technol. 2018, 24, 2775–2782. [Google Scholar] [CrossRef]
  32. Asanov, A.; Almeida, R.; Malinowska, A. Fractional differential equations and volterra–stieltjes integral equations of the second kind. Comput. Appl. Math. 2019, 38, 160. [Google Scholar] [CrossRef]
  33. Almeida, R.; Jleli, M.; Samet, B. A numerical study of fractional relaxation–oscillation equations involving ψ-caputo fractional derivative. Rev. Real Acad. Cienc. Exactas Fisicas Nat. Ser. Mat. 2018, 113, 1873–1891. [Google Scholar] [CrossRef]
  34. Eltayeb, H.; Mesloub, S. A note on conformable double laplace transform and singular conformable pseudoparabolic equations. J. Funct. Spaces 2020, 2020, 8106494. [Google Scholar] [CrossRef]
  35. Sabir, A.; ur Rehman, M. A numerical method based on quadrature rules for ψ-fractional differential equations. J. Comput. Appl. Math. 2023, 419, 114684. [Google Scholar] [CrossRef]
  36. ur Rehman, M.; Idrees, A.; Saeed, U. A quadrature method for numerical solutions of fractional differential equations. Appl. Math. Comput. 2017, 307, 38–49. [Google Scholar] [CrossRef]
  37. Rahimi, Z.; Sumelka, W.; Yang, X.-J. Linear and non-linear free vibration of nano beams based on a new fractional non-local theory. Eng. Comput. 2017, 34, 1754–1770. [Google Scholar] [CrossRef]
  38. Stempin, P.; Sumelka, W. Formulation and experimental validation of space-fractional timoshenko beam model with functionally graded materials effects. Comput. Mech. 2021, 68, 697–708. [Google Scholar] [CrossRef]
  39. Khan, A.A.; Amin, R.; Ullah, S.; Sumelka, W.; Altanji, M. Numerical simulation of a caputo fractional epidemic model for the novel coronavirus with the impact of environmental transmission. Alex. Eng. J. 2022, 61, 5083–5095. [Google Scholar] [CrossRef]
  40. Wu, Z.; Cai, Y.; Wang, Z.; Wang, W. Global stability of a fractional order sis epidemic model. J. Differ. Equ. 2023, 352, 221–248. [Google Scholar] [CrossRef]
  41. Sumelka, W.; Blaszczyk, T. Fractional continua for linear elasticity. Arch. Mech. 2014, 66, 147–172. [Google Scholar]
  42. Sun, H.; Chen, W.; Chen, Y. Variable-order fractional differential operators in anomalous diffusion modeling. Phys. A Stat. Mech. Its Appl. 2009, 388, 4586–4592. [Google Scholar] [CrossRef]
  43. Samko, S.; Kilbas, A.; Marichev, O. Fractional Integrals and Derivatives: Theory and Applications; Gordon and Breach: Amsterdam, The Netherlands, 1993. [Google Scholar]
  44. Adel, M.; Khader, M.M.; Algelany, S.; Aldwoah, K. An accurate approach to simulate the fractional delay differential equations. Fractal Fract. 2023, 7, 671. [Google Scholar] [CrossRef]
  45. Sumelka, W. Thermoelasticity in the framework of the fractional continuum mechanics. J. Therm. Stress. 2014, 37, 678–706. [Google Scholar] [CrossRef]
  46. Taylor, B. Methodus Incrementorum Directa & Inversa; Typis Pearsonianis: London, UK, 1715. [Google Scholar]
  47. Simmons, G. Calculus with Analytic Geometry; McGraw-Hill Education: New York, NY, USA, 1995. [Google Scholar]
  48. ur Rehman, M.; Khan, R.A. Numerical solutions to initial and boundary value problems for linear fractional partial differential equations. Appl. Math. Model. 2013, 37, 5233–5244. [Google Scholar] [CrossRef]
  49. Tavares, D.; Almeida, R.; Torres, D.F. Caputo derivatives of fractional variable order: Numerical approximations. Commun. Nonlinear Sci. Numer. Simul. 2016, 35, 69–87. [Google Scholar] [CrossRef]
  50. Čebyšev, P.L. Théorie des Mécanismes Connus Sous le Nom de Parallélogrammes; Imprimerie de l’Académie Impériale des Sciences: St. Petersbourg, Russia, 1853. [Google Scholar]
  51. Čebyšev, P.L. Sur les Questions de Minima qui se Rattachent a la Représentation Approximative des Fonctions; Imprimerie de l’Académie Impériale des Sciences: St. Petersbourg, Russia, 1859. [Google Scholar]
  52. Runge, C. Über Empirische Funktionen und die Interpolation Zwischen äquidistanten Ordinaten, Zeitschrift für Mathematik und Physik; B.G. Teubner: Leipzig, Germany, 1901; Volume 46, pp. 224–243. [Google Scholar]
  53. Epperson, J.F. On the runge example. Am. Math. Mon. 1987, 94, 329–341. [Google Scholar] [CrossRef]
  54. ur Rehman, M.; Khan, R.A. A numerical method for solving boundary value problems for fractional differential equations. Appl. Math. Model. 2012, 36, 894–907. [Google Scholar] [CrossRef]
Figure 1. The left and right Caputo fractional derivatives as operations on the “past” and the “future” of f ( x ) in the case of fixed (a and b) and variable/moving ( a ( x ) = x and b ( x ) = x + ) terminals of fractional derivatives.
Figure 1. The left and right Caputo fractional derivatives as operations on the “past” and the “future” of f ( x ) in the case of fixed (a and b) and variable/moving ( a ( x ) = x and b ( x ) = x + ) terminals of fractional derivatives.
Fractalfract 09 00269 g001
Figure 2. Example 1: Comparison of the exact solution of Equation (25) for α = { 1.0 , 0.8 , 0.6 , 0.4 , 0.2 } (black solid lines) and results of the approximation according to Equation (24) for m = 31 and a = 0 (dashed lines).
Figure 2. Example 1: Comparison of the exact solution of Equation (25) for α = { 1.0 , 0.8 , 0.6 , 0.4 , 0.2 } (black solid lines) and results of the approximation according to Equation (24) for m = 31 and a = 0 (dashed lines).
Fractalfract 09 00269 g002
Figure 3. Example 1: Comparison of the exact solution of Equation (25) (black solid lines) and results of the approximation according to Equation (24) for different numbers of m terms included in the extension ( m = { 1 , 5 , 11 , 15 , 21 , 25 , 31 } ) and a = 0 (dashed lines), for α = 0.8 (on the left) and α = 0.2 (on the right).
Figure 3. Example 1: Comparison of the exact solution of Equation (25) (black solid lines) and results of the approximation according to Equation (24) for different numbers of m terms included in the extension ( m = { 1 , 5 , 11 , 15 , 21 , 25 , 31 } ) and a = 0 (dashed lines), for α = 0.8 (on the left) and α = 0.2 (on the right).
Fractalfract 09 00269 g003
Figure 4. Example 1: Comparison of solution of Equation (22) for a = { 0.3 π , 0.2 π , 0.1 π , 0 , 0.1 π , 0.2 π , 0.3 π } and α = 0.2 using the approximation according to Equation (24) for m = 31 (dashed lines) and the Gauss–Jacobi quadrature method [22] (black solid lines).
Figure 4. Example 1: Comparison of solution of Equation (22) for a = { 0.3 π , 0.2 π , 0.1 π , 0 , 0.1 π , 0.2 π , 0.3 π } and α = 0.2 using the approximation according to Equation (24) for m = 31 (dashed lines) and the Gauss–Jacobi quadrature method [22] (black solid lines).
Fractalfract 09 00269 g004
Figure 5. Example 1: Comparison of solution of Equation (22) for the constant/variable terminal of the derivative ( a ( x ) = 0 and a ( x ) = x 2 ), and constant derivative order α = { 1.0 , 0.8 , 0.6 , 0.4 , 0.2 } using the approximation according to Equation (24) (dashed lines) and Gauss–Jacobi quadrature method [22] (grey solid lines).
Figure 5. Example 1: Comparison of solution of Equation (22) for the constant/variable terminal of the derivative ( a ( x ) = 0 and a ( x ) = x 2 ), and constant derivative order α = { 1.0 , 0.8 , 0.6 , 0.4 , 0.2 } using the approximation according to Equation (24) (dashed lines) and Gauss–Jacobi quadrature method [22] (grey solid lines).
Fractalfract 09 00269 g005
Figure 6. Example 1: Comparison of solution of Equation (22) using the approximation according to Equation (24) for the constant/variable terminal of the derivative ( a ( x ) = 0 —solid lines and a ( x ) = x 2 —dashed lines), and the constant/variable derivative order α ( x ) (the line colours in the top figure correspond to the colours of α ( x ) plotted in the bottom figure).
Figure 6. Example 1: Comparison of solution of Equation (22) using the approximation according to Equation (24) for the constant/variable terminal of the derivative ( a ( x ) = 0 —solid lines and a ( x ) = x 2 —dashed lines), and the constant/variable derivative order α ( x ) (the line colours in the top figure correspond to the colours of α ( x ) plotted in the bottom figure).
Fractalfract 09 00269 g006
Figure 7. Example 2: Comparison of the exact solution of Equation (31) for a variable α ( x ) and constant α = { 0.1 , 0.6 } (black solid lines) and results of the approximation according to Equation (30) for m = 2 (dashed lines).
Figure 7. Example 2: Comparison of the exact solution of Equation (31) for a variable α ( x ) and constant α = { 0.1 , 0.6 } (black solid lines) and results of the approximation according to Equation (30) for m = 2 (dashed lines).
Fractalfract 09 00269 g007
Figure 8. Example 3: Solution of fractional BVP Equation (32) for α = { 1.2 , 1.4 , 1.6 , 1.8 , 2.0 } and c = 2.0 : comparison of the exact solution of Equation (47) (black solid lines) and the approximated solution Equation (33) for w i being a solution of the system of equations Equation (46), for m = 5 (dashed lines).
Figure 8. Example 3: Solution of fractional BVP Equation (32) for α = { 1.2 , 1.4 , 1.6 , 1.8 , 2.0 } and c = 2.0 : comparison of the exact solution of Equation (47) (black solid lines) and the approximated solution Equation (33) for w i being a solution of the system of equations Equation (46), for m = 5 (dashed lines).
Fractalfract 09 00269 g008
Figure 9. Example 4: Approximated solution of initial value problem Equation (48) (for m = 5 ) for different terminals a ( x ) and different fractional orders ( α ( x ) = 10 7 x 10 —dashed lines, and α ( x ) = 0.75 —solid lines)—cf. Equation (49), and comparison with the known exact solution of Equation (50) (black solid line).
Figure 9. Example 4: Approximated solution of initial value problem Equation (48) (for m = 5 ) for different terminals a ( x ) and different fractional orders ( α ( x ) = 10 7 x 10 —dashed lines, and α ( x ) = 0.75 —solid lines)—cf. Equation (49), and comparison with the known exact solution of Equation (50) (black solid line).
Fractalfract 09 00269 g009
Table 1. Example 1: The approximation errors Equation (27) on different x coordinates x = { π / 4 , π / 2 , π , 2 π , 3 π } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (24)2, for a = 0 and α = 0.8 .
Table 1. Example 1: The approximation errors Equation (27) on different x coordinates x = { π / 4 , π / 2 , π , 2 π , 3 π } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (24)2, for a = 0 and α = 0.8 .
m err ( π / 4 ) err ( π / 2 ) err ( π ) err ( 2 π ) err ( 3 π ) err ( x )
1 7.24 × 10−22.67 × 10−14.01 × 10−1−6.28 × 10−17.52 × 10−14.44
5 6.19 × 10−53.50 × 10−35.18 × 10−2−2.672.06 × 1016.79 × 101
11 −2.16 × 10−11−7.56 × 10−8−4.14 × 10−51.71 × 10−1−1.97 × 1015.69 × 101
15 −3.33 × 10−16−1.04 × 10−11−7.07 × 10−84.90 × 10−3−3.078.14
21 −1.11 × 10−16−5.00 × 10−169.35 × 10−13−4.29 × 10−63.23 × 10−27.64 × 10−2
25 −1.11 × 10−16−5.00 × 10−164.44 × 10−16−1.61 × 10−86.23 × 10−41.38 × 10−3
31 −1.11 × 10−16−5.00 × 10−162.22 × 10−161.25 × 10−12−5.63 × 10−71.15 × 10−6
35 −1.11 × 10−16−5.00 × 10−162.22 × 10−162.11 × 10−15−2.83 × 10−95.53 × 10−9
41 −1.11 × 10−16−5.00 × 10−162.22 × 10−163.33 × 10−163.86 × 10−137.53 × 10−13
Table 2. Example 1: The approximation errors of Equation (27) on different x coordinates x = { π / 4 , π / 2 , π , 2 π , 3 π } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (24)2, for a = 0 and α = 0.2 .
Table 2. Example 1: The approximation errors of Equation (27) on different x coordinates x = { π / 4 , π / 2 , π , 2 π , 3 π } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (24)2, for a = 0 and α = 0.2 .
m err ( π / 4 ) err ( π / 2 ) err ( π ) err ( 2 π ) err ( 3 π ) err ( x )
11.55 × 10−18.82 × 10−12.34−4.386.142.82 × 101
51.89 × 10−41.62 × 10−23.69 × 10−1−2.86 × 1012.78 × 1028.77 × 102
11−6.98 × 10−11−3.71 × 10−7−3.09 × 10−41.93−2.84 × 1027.95 × 102
15−5.55 × 10−16−5.18 × 10−11−5.34 × 10−75.61 × 10−2−4.49 × 1011.16 × 102
21−1.11 × 10−16−1.33 × 10−157.13 × 10−12−4.96 × 10−54.76 × 10−11.10
25−1.11 × 10−16−1.33 × 10−151.94 × 10−15−1.87 × 10−79.23 × 10−32.02 × 10−2
31−1.11 × 10−16−1.33 × 10−151.67 × 10−161.46 × 10−11−8.37 × 10−61.69 × 10−5
35−1.11 × 10−16−1.33 × 10−151.67 × 10−16−2.21 × 10−14−4.22 × 10−88.15 × 10−8
41−1.11 × 10−16−1.33 × 10−151.67 × 10−16−3.63 × 10−148.20 × 10−121.50 × 10−11
Table 3. Example 3: The approximation errors on different x coordinates x = { 0.25 , 0.5 , 0.75 } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (32)2, for α = 1.8 .
Table 3. Example 3: The approximation errors on different x coordinates x = { 0.25 , 0.5 , 0.75 } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (32)2, for α = 1.8 .
m err ( 0.25 ) err ( 0.5 ) err ( 0.75 ) err ( x )
3−2.92 × 10−6−1.08 × 10−2−1.57 × 10−29.67 × 10−2
5−1.22 × 10−4−6.21 × 10−5−3.98 × 10−57.14 × 10−4
7−1.14 × 10−5−1.50 × 10−5−5.91 × 10−61.06 × 10−4
9−3.35 × 10−6−3.22 × 10−6−2.79 × 10−62.94 × 10−5
11−1.62 × 10−6−1.51 × 10−6−8.13 × 10−71.10 × 10−5
15−3.17 × 10−7−3.37 × 10−7−2.12 × 10−72.53 × 10−6
21−7.95 × 10−6−1.45 × 10−5−1.90 × 10−51.38 × 10−4
254.93 × 10−38.91 × 10−31.15 × 10−28.61 × 10−2
31−8.77 × 10−31.95 × 10−24.81 × 10−26.69 × 10−1
Table 4. Example 3: The approximation errors on different x coordinates x = { 0.25 , 0.5 , 0.75 } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (32)2, for α = 1.2 .
Table 4. Example 3: The approximation errors on different x coordinates x = { 0.25 , 0.5 , 0.75 } , as well as the Euclidean norm of the error vector e r r ( x ) for x belonging to the domain Equation (32)2, for α = 1.2 .
m err ( 0.25 ) err ( 0.5 ) err ( 0.75 ) err ( x )
3−1.09 × 10−2−1.96 × 10−2−1.76 × 10−21.43 × 10−1
5−6.33 × 10−4−2.95 × 10−4−5.48 × 10−44.70 × 10−3
7−6.33 × 10−5−1.10 × 10−4−4.31 × 10−58.09 × 10−4
9−2.62 × 10−5−1.77 × 10−5−2.48 × 10−52.40 × 10−4
11−1.34 × 10−5−1.22 × 10−5−9.22 × 10−69.43 × 10−5
15−2.82 × 10−6−2.89 × 10−6−2.09 × 10−62.32 × 10−5
21−4.59 × 10−4−7.58 × 10−4−9.30 × 10−46.99 × 10−3
252.60 × 10−14.32 × 10−15.31 × 10−13.96
31−1.49 × 10−32.66 × 10−28.76 × 10−21.57
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

Stempin, P.; Sumelka, W. Approximation of Fractional Caputo Derivative of Variable Order and Variable Terminals with Application to Initial/Boundary Value Problems. Fractal Fract. 2025, 9, 269. https://doi.org/10.3390/fractalfract9050269

AMA Style

Stempin P, Sumelka W. Approximation of Fractional Caputo Derivative of Variable Order and Variable Terminals with Application to Initial/Boundary Value Problems. Fractal and Fractional. 2025; 9(5):269. https://doi.org/10.3390/fractalfract9050269

Chicago/Turabian Style

Stempin, Paulina, and Wojciech Sumelka. 2025. "Approximation of Fractional Caputo Derivative of Variable Order and Variable Terminals with Application to Initial/Boundary Value Problems" Fractal and Fractional 9, no. 5: 269. https://doi.org/10.3390/fractalfract9050269

APA Style

Stempin, P., & Sumelka, W. (2025). Approximation of Fractional Caputo Derivative of Variable Order and Variable Terminals with Application to Initial/Boundary Value Problems. Fractal and Fractional, 9(5), 269. https://doi.org/10.3390/fractalfract9050269

Article Metrics

Back to TopTop