Next Article in Journal
Analysis of B(s)0μ+μ Decays at the Large Hadron Collider
Next Article in Special Issue
On the Sums over Inverse Powers of Zeros of the Hurwitz Zeta Function and Some Related Properties of These Zeros
Previous Article in Journal
Pure Decoherence of the Jaynes–Cummings Model: Initial Entanglement with the Environment, Spin Oscillations and Detection of Non-Orthogonal States
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Algorithms for Approximation of Fractional Integrals and Derivatives Based on Quintic Spline Interpolation

by
Mariusz Ciesielski
Department of Computer Science, Czestochowa University of Technology, Dabrowskiego 73, 42-200 Czestochowa, Poland
Symmetry 2024, 16(2), 252; https://doi.org/10.3390/sym16020252
Submission received: 29 January 2024 / Revised: 12 February 2024 / Accepted: 15 February 2024 / Published: 18 February 2024

Abstract

:
Numerical algorithms for calculating the left- and right-sided Riemann–Liouville fractional integrals and the left- and right-sided fractional derivatives in the Caputo sense using spline interpolation techniques are derived. The spline of the fifth degree (the so-called quintic spline) is mainly taken into account, but the linear and cubic splines are also considered to compare the quality of the developed method and numerical calculations. The estimation of errors for the derived approximation algorithms is presented. Examples of the numerical evaluation of the fractional integrals and derivatives are executed using 128-bit floating-point numbers and arithmetic routines. For each derived algorithm, the experimental orders of convergence are calculated. Also, an illustrative computational example showing the action of the considered fractional operators on the symmetric function in the interval is presented.

1. Introduction

Fractional integral and differential operators are the most important elements of fractional calculus [1,2,3,4]. Many researchers are still looking for physical and geometrical interpretations for these operators. Fractional-order differential and/or integral equations are naturally related to modeling systems with memory (history), because the fractional operators used in them are usually nonlocal operators. In order to calculate, for example, the time or space fractional integrals and/or derivatives at a given time or a given point, then knowledge of the function at all previous times or positions is required. There are many applications of fractional calculus in the fields of science and engineering (see, e.g., recent works [5,6,7,8,9,10,11]), and it is impossible to list all their applications.
There are many kinds of definitions for fractional integrals and derivatives [1,2,3,4,12,13]. It is impossible to mention and characterize all of them. Generally speaking, these definitions are not equivalent to each other. This work focuses exclusively on the definitions of the left- and right-sided Riemann–Liouville fractional integrals ( I a + α and I b α ) and the left- and right-sided Caputo fractional derivatives (   C D a + α and   C D b α ). The mentioned operators of order α > 0 acting on a function y ( x ) on the interval [ a , b ] are defined as follows:
I a + α y x = 1 Γ α a x y ξ x ξ 1 α d ξ , for x > a ,
I b α y x = 1 Γ α x b y ξ ξ x 1 α d ξ , for x < b ,
  C D a + α y x : = I a + n α y n x = 1 Γ n α a x y n ξ x ξ α n + 1 d ξ , for n 1 < α < n , y n x , for α = n ,
  C D b α y x : = 1 n I b n α y n x = 1 n Γ n α x b y n ξ ξ x α n + 1 d ξ , for n 1 < α < n , 1 n y n x , for α = n ,
where n N , and Γ denotes the Euler Gamma function. If α = 0 , then I a + 0 y x = I b 0 y x =   C D a + 0 y x =   C D b 0 y x = y x .
With the development of fractional calculus, there is a need to develop more and more accurate methods for calculating the values of fractional operators for the given functions. If the exact forms of fractional operators (derivatives and integrals) acting on a function are not known, then their approximate values can be determined using numerical methods. The general rule in approximate calculations of the values of these operators is to replace the integrand function with simple interpolation functions for which known analytical forms of the fractional operators can be used. Often, piecewise-polynomial interpolants on the grid of points are used for this purpose. The fractional integration or differentiation of the polynomial interpolant instead of the given function has the consequence that approximation errors may occur, and hence, the errors must also be estimated.
The development of new and more accurate numerical methods for the approximation of fractional operators has been very popular in recent years. Here, it is worth mentioning the book written in 1974 by Oldham and Spanier [1], which describes several numerical schemes known as, for example, the L 1 , L 2 , R 1 and R 2 formulas. In later years, numerical methods of fractional integration and differentiation were developed and improved; reviews of different methods can be found in [13,14,15,16,17,18].
The polynomial interpolation of a finite set of data points resulting from the discretization of integrand functions is most often used in interpolating algorithms. This can lead to the construction of high-degree polynomials that, however, have a tendency to oscillate. Hence, splines [19,20,21,22] become useful for this purpose, especially those of odd degree. By definition, a spline is a set of combined piecewise polynomials. The most commonly used splines are of degree 3, but higher-degree splines allow more flexibility, and more data are required to determine them. However, such splines have a higher degree of smoothness, and it is worth using them in the interpolation. The application of second-degree splines for the approximation of fractional integral operators was considered, for example, in [18,23]. Ciesielski and Grodzki [24] developed numerical integration schemes for the left- and right-sided Riemann–Liouville and Riesz fractional integrals using, among other methods, cubic spline interpolation techniques. Also, the computational errors were estimated using analytical methods and then validated on examples by determining the experimental orders of convergence. In [25], numerical algorithms for evaluating the left- and right-sided Riemann–Liouville fractional integrals using Akima cubic spline interpolations [26] were derived. The coefficients of spline segments for the Akima cubic spline are determined locally, and there is no need to solve the system of linear equations to determine the spline coefficients.
The main contribution of this work consists of providing numerical algorithms for the approximation of the previously mentioned fractional integrals and derivatives (1)–(4), which are based on quintic spline interpolation, because it seems necessary to develop numerical algorithms with high accuracy and fast convergence. After this introduction, in Section 2, a general introduction to splines of any degree is presented, and three algorithms for constructing interpolation splines of the first, third and fifth degrees are derived in detail, along with an analysis of approximation errors. Section 3 presents numerical approaches to the fractional integration and differentiation of the considered kinds of splines. In Section 4, sample numerical calculations of the fractional operators, along with computational errors and experimental orders of convergence, are presented. Finally, Section 5 provides concluding remarks.

2. Algorithms for Spline Interpolation

Suppose that the integrand function y ( x ) in Equations (1)–(4) is defined on the interval [ a , b ] and is sufficiently smooth. Let us assume that the considered interval [ a , b ] is split into N equispaced sub-intervals [ x i , x i + 1 ] for i = 0 , 1 , , N 1 , with the length Δ x = ( b a ) / N . The coordinates of the nodal points are equal to x i = a + i Δ x for i = 0 , 1 , , N , wherein x N = b . The values of the function y ( x ) at the set of nodal points x i are tabulated as y i = y ( x i ) for i = 0 , 1 , , N .
The function y ( x ) is replaced by an interpolation spline [26,27] that is a set of piecewise polynomials linked in the set of points ( x 0 , y 0 ) , ( x 1 , y 1 ) , , ( x N , y N ) , defined as
y x s x = s 0 x , if x x 0 , x 1 , s 1 x , if x x 1 , x 2 ,   s i x , if x x i , x i + 1 ,   s N 1 x , if x x N 1 , x N ,
where
s i x = k = 0 p c k , i x x i k , for x x i , x i + 1 , i = 0 , 1 , , N 1 ,
are polynomials of degree p in each sub-interval. The coefficients c k , i , for k = 0 , 1 , , p , are the coefficients of polynomial s i ( x ) in the i-th sub-interval [ x i , x i + 1 ] . In further considerations, the number of segments (i.e., equispaced sub-intervals) N, the spline degree p, the location of nodes x i , for i = 0 , , N , and the tabulated function values y i are assumed to be known. It is easy to see that (for x i + 1 x i = Δ x )
s i x i = c 0 , i , for i = 0 , 1 , , N 1 ,
s i x i + 1 = k = 0 p c k , i x i + 1 x i k = k = 0 p c k , i Δ x k , for i = 0 , 1 , , N 1 .
An important feature of the spline s ( x ) is the fulfillment of the following interpolation conditions:
s i x i = y i and s i x i + 1 = y i + 1 , for i = 0 , 1 , , N 1 .
In addition, the spline s x C m a , b is m-times ( m 0 ) continuously differentiable at the nodal points. In this paper, three kinds of splines are considered, depending on the degree p:
  • p = 1 : The particular polynomials s i are line segments (linear spline), and m = 0 ;
  • p = 3 : The particular polynomials s i are polynomials of degree 3 (cubic spline), and m = 2 ;
  • p = 5 : The particular polynomials s i are polynomials of degree 5 (quintic spline), and m = 4 .
The determination of the spline coefficients c k , i in Equation (6) depends on the degree of spline interpolation that is used. For splines of degree p > 1 , the following continuity conditions (also known as smoothness conditions) at the nonboundary data points
s i l x i + 1 = s i + 1 l x i + 1
for i = 0 , , N 2 and l = 1 , , p 1 must be satisfied. The l-th derivative of the spline segments s i of degree p is defined as
s i l x = k = l p k ! k l ! c k , i x x i k l , if l = 1 , , p , 0 , if l > p .
In order to construct the complete spline s ( x ) (5) of degree p, a total of N · ( p + 1 ) coefficients c k , i , for i = 0 , , N 1 and k = 0 , 1 , , p , need to be determined, and hence, the same number of equations should be created. The interpolation conditions (10) and the values s i ( x i ) = y i and s i ( x i + 1 ) = y i + 1 , for i = 1 , , N 1 , provide ( N 1 ) · ( p + 1 ) equations in total from the nonboundary data points. The p + 1 missing equations are formed on the basis of the colloquially named endpoint conditions, where two of them result from the relations s 0 ( x 0 ) = y 0 and s N 1 ( x N ) = y N . The p 1 remaining equations can be provided by the choice of some derivatives of the polynomials at the boundary points, i.e., s 0 l x 0 and s N 1 l x N , for l = 1 , , p 1 . Such spline constructions, in which derivative information is involved, are called clamped spline interpolations. In the case of the quintic spline ( p = 5 ), it is necessary to set the values of four additional derivatives, and in this research, s 0 x 0 , s N 1 x N , s 0 x 0 and s N 1 x N are selected. Similarly, in the case of the cubic spline ( p = 3 ), the values of two additional derivatives of the first order s 0 x 0 and s N 1 x N are chosen. In contrast, for the linear spline, there is no need to specify additional dependencies. Often, in scientific and engineering works, the so-called natural splines are considered. Such splines are built by setting the highest-order derivatives to zero at the boundary nodes up to the required number of equations (e.g., for the quintic spline, s 0 3 x 0 = s 0 4 x 0 = s N 1 3 x N = s N 1 4 x N = 0 ). Basically, natural splines are characterized by lower approximation accuracy than the so-called clamped splines, and therefore, their consideration is omitted in this work. The appropriate choice of the endpoint conditions plays an important role in the quality of the spline approximation.
In the definition of the spline segment (6), one can also take ( x i + 1 x ) instead of ( x x i ) using the property of symmetry on the i-th interval [ x i , x i + 1 ] . The shapes of both complete splines will be the same, but the coefficients creating the particular segments of splines will have different values.
Below, detailed methods for constructing each kind of spline are presented. Based on the theoretical considerations in [26,27], certain simplifications were made, and the mathematical formulas were adapted for fractional integration and differentiation.

2.1. Quintic Spline Interpolation

First, the construction of the spline of degree five ( p = 5 ) is considered. In general, the values of 6 N coefficients c k , i (for k = 0 , , 5 and i = 0 , , N 1 ) need to be determined. In accordance with the above-mentioned considerations, here, a system of 6 N linear equations is constructed that satisfies both dependencies defined by Equation (9), written out using (7) and (8) as
c 0 , i = y i ,
c 0 , i + c 1 , i Δ x + c 2 , i Δ x 2 + c 3 , i Δ x 3 + c 4 , i Δ x 4 + c 5 , i Δ x 5 = y i + 1 ,
and dependencies (10), for l = 1 , , 4 , as
l = 1 : c 1 , i + 2 c 2 , i Δ x + 3 c 3 , i Δ x 2 + 4 c 4 , i Δ x 3 + 5 c 5 , i Δ x 4 = c 1 , i + 1 ,
l = 2 : 2 c 2 , i + 6 c 3 , i Δ x + 12 c 4 , i Δ x 2 + 20 c 5 , i Δ x 3 = 2 c 2 , i + 1 ,
l = 3 : 6 c 3 , i + 24 c 4 , i Δ x + 60 c 5 , i Δ x 2 = 6 c 3 , i + 1 ,
l = 4 : 24 c 4 , i + 120 c 5 , i Δ x = 24 c 4 , i + 1 ,
for i = 0 , 1 , , N 1 .
To solve a system of 6 N equations, four endpoint conditions also need to be taken into account:
s 0 x 0 = y 0 , s 0 x 0 = y 0 ,
s N 1 x N = y N , s N 1 x N = y N ,
but the details of their implementation will be provided later.
The system of Equations (12)–(17) is first reduced to a smaller number of equations by applying substitutions. Taking Equations (13)–(15) (where the coefficients c 0 , i from Equation (12) are first inserted into Equation (13)), the following system of equations is obtained:
c 1 , i + c 2 , i Δ x + c 3 , i Δ x 2 + c 4 , i Δ x 3 + c 5 , i Δ x 4 = y i + 1 y i Δ x ,
c 1 , i + 2 c 2 , i Δ x + 3 c 3 , i Δ x 2 + 4 c 4 , i Δ x 3 + 5 c 5 , i Δ x 4 = c 1 , i + 1 ,
c 2 , i + 3 c 3 , i Δ x + 6 c 4 , i Δ x 2 + 10 c 5 , i Δ x 3 = c 2 , i + 1 ,
for i = 0 , , N 1 . The solution of this system for the assumed unknowns c 3 , i , c 4 , i and c 5 , i is as follows:
c 3 , i = 6 c 1 , i 4 c 1 , i + 1 Δ x 2 + 3 c 2 , i + c 2 , i + 1 Δ x + 10 y i + 1 y i Δ x 3 ,
c 4 , i = 8 c 1 , i + 7 c 1 , i + 1 Δ x 3 + 3 c 2 , i 2 c 2 , i + 1 Δ x 2 15 y i + 1 y i Δ x 4 ,
c 5 , i = 3 c 1 , i 3 c 1 , i + 1 Δ x 4 + c 2 , i + c 2 , i + 1 Δ x 3 + 6 y i + 1 y i Δ x 5 .
Replacing i by i 1 in Equations (16) and (17) and reducing the constant numbers, these equations take the form
c 3 , i 1 + 4 c 4 , i 1 Δ x + 10 c 5 , i 1 Δ x 2 = c 3 , i ,
c 4 , i 1 + 5 c 5 , i 1 Δ x = c 4 , i .
Substituting Equations (23)–(25) into Equations (26) and (27), after simplifications, the following system of equations is obtained:
4 c 1 , i 1 + 4 c 1 , i + 1 c 2 , i 1 Δ x + 6 c 2 , i Δ x c 2 , i + 1 Δ x = 10 y i + 1 2 y i + y i 1 Δ x ,
7 c 1 , i 1 + 16 c 1 , i + 7 c 1 , i + 1 + 2 c 2 , i 1 Δ x 2 c 2 , i + 1 Δ x = 15 y i + 1 y i 1 Δ x ,
for i = 1 , , N 1 . This can also be written in the matrix form:
4 Δ x 7 2 Δ x · c 1 , i 1 c 2 , i 1 + 0 6 Δ x 16 0 · c 1 , i c 2 , i + 4 Δ x 7 2 Δ x · c 1 , i + 1 c 2 , i + 1 = 10 Δ x y i + 1 2 y i + y i 1 15 Δ x y i + 1 y i 1 .
The above system of equations consists of 2 ( N 1 ) equations and 2 ( N + 1 ) unknown coefficients c 1 , i and c 2 , i for i = 0 , 1 , , N . The missing four equations result from the endpoint conditions (18) and (19). By inserting Equation (11) into Equation (18), for node x 0 , one directly obtains
c 1 , 0 = y 0 , 2 c 2 , 0 = y 0 ,
while, for node x N , one obtains
c 1 , N 1 + 2 c 2 , N 1 Δ x + 3 c 3 , N 1 Δ x 2 + 4 c 4 , N 1 Δ x 3 + 5 c 5 , N 1 Δ x 4 = y N ,
2 c 2 , N 1 + 6 c 3 , N 1 Δ x + 12 c 4 , N 1 Δ x 2 + 20 c 5 , N 1 Δ x 3 = y N .
Next, by inserting Equations (23)–(25), for i = N 1 , into Equations (32) and (33), after simplifications, these equations are reduced to the following forms:
c 1 , N = y N , 2 c 2 , N = y N .
Both relationships (31) and (34) can also be written in matrix form as
1 0 0 1 · c 1 , 0 c 2 , 0 = y 0 y 0 / 2 , 1 0 0 1 · c 1 , N c 2 , N = y N y N / 2 .
In summary, based on the above relationships, the particular coefficients of the quintic spline segment s i , for p = 5 in Equation (6), are as follows: coefficients c 0 , i result directly from Equation (12), and the values of coefficients c 1 , i and c 2 , i , for i = 0 , , N , result from solving the following system of linear equations:
I 0 0 0 0 0 0 A 1 A 2 A 3 0   0 0 0 0 A 1 A 2 A 3   0 0 0 0 0 A 1 A 2   0 0 0           0 0 0 0   A 2 A 3 0 0 0 0 0   A 1 A 2 A 3 0 0 0 0 0 0 I · C 0 C 1 C 2 C 3 C N 2 C N 1 C N = D 0 D 1 D 2 D 3 D N 2 D N 1 D N ,
where
I = 1 0 0 1 , A 1 = 4 Δ x 7 2 Δ x , A 2 = 0 6 Δ x 16 0 , A 3 = 4 Δ x 7 2 Δ x ,
C i = c 1 , i c 2 , i , for i = 0 , 1 , , N ,
D 0 = y 0 y 0 / 2 , D N = y N y N / 2 , D i = 10 Δ x y i + 1 2 y i + y i 1 15 Δ x y i + 1 y i 1 , for i = 1 , 2 , , N 1 ,
whereas the remaining coefficients, c 3 , i , c 4 , i and c 5 , i , can be calculated on the basis of prior knowledge of coefficients c 1 , i and c 2 , i using Equations (23)–(25).
The above system of equations (36) is characterized by a block tridiagonal and diagonal dominant matrix of coefficients. Such a construction of the system of equations in which two sets of coefficients, c 1 , i and c 2 , i , are simultaneously determined makes it difficult to create a symmetric matrix of coefficients. One can notice an important feature of this matrix: it is a block tridiagonal-constant matrix (except the first and last rows) that involves 2 × 2-block sub-matrices. To numerically solve such a system of equations, one can use, e.g., the Thomas algorithm [20,21], which can be adapted to block tridiagonal matrices, or the Gaussian elimination algorithm with necessary pivoting (because the coefficient matrix contains zeros on the main diagonal resulting from matrix A 2 ). The additional coefficients c 1 , N and c 2 , N (not occurring in the general spline construction) are only used to determine the remaining coefficients c.
One can also notice in D 0 and D N (39) that the values of the first and second derivatives of the function y at the boundary nodes (i.e., y 0 , y N , y 0 and y N ) need to be specified and inserted into the system of equations. These values can be assumed as exact (if they can be calculated analytically for any functions whose first and second derivatives are known) or can be determined numerically based on the known values of the function y i , for i = 0 , , N , in each node (e.g., in the case of functions having complicated forms). In the case of a numerical approach, the forward and backward finite difference schemes of sixth-order accuracy (with uniform grid spacing) [28] are proposed to be used as follows:
y 0 1 Δ x 49 20 y 0 + 6 y 1 15 2 y 2 + 20 3 y 3 15 4 y 4 + 6 5 y 5 1 6 y 6 + O Δ x 6 ,
y N 1 Δ x 49 20 y N 6 y N 1 + 15 2 y N 2 20 3 y N 3 + 15 4 y N 4 6 5 y N 5 + 1 6 y N 6 + O Δ x 6 ,
y 0 1 Δ x 2 469 90 y 0 223 10 y 1 + 879 20 y 2 949 18 y 3 + 41 y 4 201 10 y 5 + 1019 180 y 6 7 10 y 7 + O Δ x 6 ,
y N 1 Δ x 2 469 90 y N 223 10 y N 1 + 879 20 y N 2 949 18 y N 3 + 41 y N 4 201 10 y N 5 + 1019 180 y N 6 7 10 y N 7 + O Δ x 6 ,
for N 7 .

2.2. Cubic Spline Interpolation

Compared to the quintic spline construction approach, the construction of the cubic spline ( p = 3 ) is a bit simpler because the method requires taking into account fewer interpolation conditions, as well as fewer terms of the interpolation polynomial. Other approaches to the construction of systems of equations for determining cubic spline coefficients have been presented in, e.g., [24,26].
In the case of cubic spline interpolation, the values of 4 N coefficients c k , i (for k = 0 , , 3 and i = 0 , , N 1 ) in Equation (6) should be determined. Hence, a system of 4 N linear equations should be built based on the conditions (9)
c 0 , i = y i ,
c 0 , i + c 1 , i Δ x + c 2 , i Δ x 2 + c 3 , i Δ x 3 = y i + 1 ,
and on two relations (10), for l = 1 , 2 ,
l = 1 : c 1 , i + 2 c 2 , i Δ x + 3 c 3 , i Δ x 2 = c 1 , i + 1 ,
l = 2 : 2 c 2 , i + 6 c 3 , i Δ x = 2 c 2 , i + 1 ,
for i = 0 , 1 , , N 1 .
Additionally, the following two endpoint conditions are included:
s 0 x 0 = y 0 ,
s N 1 x N = y N .
Here, the method of solving the system of equations is much simpler. From Equations (45) and (46) (after the previous insertion of the coefficients c 0 , i from Equation (44) into Equation (45)), the following system of linear equations is created:
c 1 , i + c 2 , i Δ x + c 3 , i Δ x 2 = y i + 1 y i Δ x ,
c 1 , i + 2 c 2 , i Δ x + 3 c 3 , i Δ x 2 = c 1 , i + 1 ,
for i = 0 , , N 1 , whose solution with respect to the unknowns c 2 , i and c 3 , i has the form
c 2 , i = 2 c 1 , i c 1 , i + 1 Δ x + 3 y i + 1 y i Δ x 2 ,
c 3 , i = c 1 , i + c 1 , i + 1 Δ x 2 2 y i + 1 y i Δ x 3 .
Next, the index i is replaced by i 1 in Equation (47) and hence yields
c 2 , i 1 + 3 c 3 , i 1 Δ x = c 2 , i .
After inserting Equations (52) and (53) into Equation (54) and after performing simplifications, the following system of N 1 equations is obtained:
c 1 , i 1 + 4 c 1 , i + c 1 , i + 1 = 3 y i + 1 y i 1 Δ x , for i = 1 , , N 1
with N + 1 unknown coefficients c 1 . Based on the endpoint conditions (48) and (49), two missing equations can be created (using a principle similar to that in the quintic spline construction), which finally take the form
c 1 , 0 = y 0 ,
c 1 , N = y N .
Equations (55)–(57) constitute the system of equations written in the matrix form:
1 0 0 0 0 0 0 1 4 1 0   0 0 0 0 1 4 1   0 0 0 0 0 1 4   0 0 0           0 0 0 0   4 1 0 0 0 0 0   1 4 1 0 0 0 0 0 0 1 · c 1 , 0 c 1 , 1 c 1 , 2 c 1 , 3 c 1 , N 2 c 1 , N 1 c 1 , N = d 0 d 1 d 2 d 3 d N 2 d N 1 d N ,
where
d i = y 0 , for i = 0 , 3 Δ x y i + 1 y i 1 , for i = 1 , 2 , , N 1 , y N , for i = N .
One can notice that the coefficient matrix of system (58) is positive definite. Moreover, when omitting the first and last rows and columns of this matrix, it is symmetric and tridiagonal, in which the non-zero entries are on only the diagonal and adjacent sub-diagonals.
The values of the coefficients c 1 , i , for i = 0 , , N , are determined on the basis of the solution of the above system of equations, and the coefficients c 0 , i , for i = 0 , , N 1 , are given in Equation (44), while the remaining coefficients c 2 , i and c 3 , i are calculated using Equations (52) and (53), knowing the values of the coefficients c 1 , i . In order to solve the tridiagonal system of equations, the Thomas algorithm is best to use in practice and has the computational complexity O(N). There is also one additional coefficient c 1 , N here, which is used to calculate the remaining coefficients. Therefore, the knowledge of all coefficients is sufficient to construct the complete cubic spline s ( x ) for p = 3 .
The values of the derivatives y 0 and y N occurring in (59) can be inserted directly if the first derivatives of the function y ( x ) in the nodes x 0 and x N can be derived analytically. Otherwise, numerical methods can be used. Here, the forward/backward finite difference schemes of fourth-order accuracy (with uniform grid spacing) in the form [28]
y 0 1 Δ x 25 12 y 0 + 4 y 1 3 y 2 + 4 3 y 3 1 4 y 4 + O Δ x 4 ,
y N 1 Δ x 25 12 y N 4 y N 1 + 3 y N 2 4 3 y N 3 + 1 4 y N 4 + O Δ x 4 ,
for the grid size N 4 are proposed for the application. Finite difference schemes of sixth-order accuracy (40) and (41) can also be used here, or even higher orders of accuracy, while a lower order of accuracy significantly reduces the accuracy of the approximation of the complete spline.

2.3. Linear Spline Interpolation

This kind of spline is the simplest form of interpolation. The linear interpolation polynomial in the sub-interval x [ x i , x i + 1 ] , for i = 0 , 1 , , N 1 , passes through the data points ( x i , y i ) and ( x i + 1 , y i + 1 ) , which means that the adjacent data points are connected by straight lines. Maintaining the same spline construction methodology as for the previous kinds of splines, based on (9) for p = 1 , one obtains
c 0 , i = y i ,
c 0 , i + c 1 , i Δ x = y i + 1 ,
for i = 0 , 1 , , N 1 . However, the dependencies (10) for p = 1 are omitted here. From the above system of equations, it directly follows that
c 1 , i = y i + 1 y i Δ x .
Therefore, the set of 2 N coefficients c k , i (for k = 0 , 1 and i = 0 , , N 1 ) in the complete spline is established.

2.4. Errors of Spline Interpolations

Based on the theorems in [29,30], one can determine the interpolation errors for the presented spline approximations. Here, the contents of these theorems have been adapted to a uniform grid and to the considered endpoint conditions for every kind of spline. The detailed proofs are quite lengthy, but the reader can deduce them from the proofs in [29].
Theorem 1. 
Let s ( x ) be the quintic spline that interpolates the function y x C 6 a , b on a uniform mesh with the step size Δ x , fulfilling the endpoint conditions (18) and (19). Then,
y r x s r x γ 5 , r y 6 x Δ x 6 r , for r = 0 , 1 , , 5 ,
where
γ 5 , 0 = 1 15360 , γ 5 , 1 = 5 30000 + 3 12960 , γ 5 , 2 = 11 5760 , γ 5 , 3 = 1 40 , γ 5 , 4 = 11 60 , γ 5 , 5 = 2 3 .
Theorem 2. 
Let ( x ) be the cubic spline that interpolates the function y x C 4 a , b on a uniform mesh with the step size Δ x , fulfilling the endpoint conditions (48) and (49). Then,
y r x s r x γ 3 , r y 4 x Δ x 4 r , for r = 0 , 1 , 2 , 3 ,
where
γ 3 , 0 = 5 384 , γ 3 , 1 = 9 + 3 216 , γ 3 , 2 = 1 3 , γ 3 , 3 = 1 .
Theorem 3. 
Let s ( x ) be the linear spline that interpolates the function y x C 2 a , b on a uniform mesh with the step size Δ x . Then,
y r x s r x γ 1 , r y 2 x Δ x 2 r , for r = 0 , 1 ,
where
γ 1 , 0 = 1 8 , γ 1 , 1 = 1 2 .
The above relations (65), (67) and (69) can be collectively written as
y r x s r x γ p , r y p + 1 x Δ x p + 1 r , for r = 0 , 1 , , p ,
where p 1 , 3 , 5 .

3. Numerical Approximations of Fractional Operators

After specifying the splines of various degrees ( p { 1 , 3 , 5 } ) that approximate the finite set of values of the function, the integrand functions in fractional operators (1)–(4) are replaced by piecewise-polynomial interpolants defined on the given grid of N + 1 points. Next, instead of the fractional integration or differentiation of the original function y ( x ) , the spline s ( x ) is integrated or differentiated. At this stage, these calculations of the fractional integrals and derivatives have already been performed analytically (i.e., the exact values have been obtained). Numerical errors in the calculation of these operators mainly result from the quality of the approximation of the integrand functions by the splines.
The numerical values of fractional calculus operators are determined in the set of data points x x 0 , x 1 , , x N . Let x R , for R = 0 , 1 , , N , denote any data point from this set.

3.1. Left- and Right-Sided Riemann–Liouville Fractional Integrals

The fractional integrals (1) and (2) are replaced by the formulas
I a + α y x I a + α s x = 1 Γ α a x s ξ x ξ 1 α d ξ ,
I b α y x I b α s x = 1 Γ α x b s ξ ξ x 1 α d ξ ,
and then, substituting the general form of the spline (5) into Equations (72) and (73) for x = x R , one obtains
I a + α s x x = x R = 0 , for R = 0 , i = 0 R 1 1 Γ α x i x i + 1 s i ξ x R ξ 1 α d ξ , for R = 1 , , N ,
I b α s x x = x R = i = R N 1 1 Γ α x i x i + 1 s i ξ ξ x R 1 α d ξ , for R = 0 , , N 1 , 0 , for R = N .
In further considerations, the cases in which the values of integrals are equal to zero are omitted.
By inserting Equation (6) into Equations (74) and (75), the formulas become
I a + α s x x = x R = i = 0 R 1 1 Γ α x i x i + 1 1 x R ξ 1 α k = 0 p c k , i ξ x i k d ξ = i = 0 R 1 k = 0 p c k , i 1 Γ α x i x i + 1 ξ x i k x R ξ 1 α d ξ ,
I b α s x x = x R = i = R N 1 1 Γ α x i x i + 1 1 ξ x R 1 α k = 0 p c k , i ξ x i k d ξ = i = R N 1 k = 0 p c k , i 1 Γ α x i x i + 1 ξ x i k ξ x R 1 α d ξ ,
or are written in the form
I a + α s x x = x R = i = 0 R 1 k = 0 p c k , i Φ a + α , k , i , R , for R = 1 , , N ,
I b α s x x = x R = i = M N 1 k = 0 p c k , i Φ b α , k , i , R , for R = 0 , , N 1 ,
where the integrals Φ a + α , k , i , R and Φ b α , k , i , R , for k = 0 , 1 , , p , relating to the point x R in the i-th sub-interval, can be determined analytically as
Φ a + α , k , i , R = k ! Δ x α + k R i α + k Γ α + k + 1 m = 0 k R i 1 m + α k m ! Γ α + m + 1 ,
Φ b α , k , i , R = k ! Δ x α + k 1 k + 1 i R α + k Γ α + k + 1 + m = 0 k 1 m i R + 1 m + α k m ! Γ α + m + 1 .
Remark: For example, in the case of Φ a + α , k , i , R , the particular integrals can be written by using the appropriate substitution:
Φ a + α , k , i , R = 1 Γ α x i x i + 1 ξ x i k x R ξ 1 α d ξ   = ξ = x i + η Δ x Δ x α + k 1 Γ α 0 1 η k R i η 1 α d η .
Next, integration by reduction is used; i.e., k-times (repeated) integration by parts takes place until η raised to a power becomes one. Finally, one obtains (80). Calculations for (81) are performed in a similar way.

3.2. Left- and Right-Sided Caputo Fractional Derivatives

Here, two cases are considered, depending on the value of α .

3.2.1. Case of n 1 < α < n , n N

Both fractional derivatives (3) and (4) are approximated as follows:
  C D a + α y x   C D a + α s x = I a + n α s n x = 1 Γ n α a x s n ξ x ξ α n + 1 d ξ ,
  C D b α y x   C D b α s x = 1 n I b n α s n x = 1 n Γ n α x b s n ξ ξ x α n + 1 d ξ .
Putting formula (5) into Equations (83) and (84) for x = x R , one obtains
  C D a + α s x x = x R = 0 , for R = 0 , i = 0 R 1 1 Γ n α x i x i + 1 s i n ξ x R ξ α n + 1 d ξ , for R = 1 , , N ,
  C D b α s x x = x R = i = R N 1 1 n Γ n α x i x i + 1 s i n ξ ξ x R α n + 1 d ξ , for R = 0 , , N 1 , 0 , for R = N .
Further, the appropriate cases for R = 0 and R = N are omitted. Here, the n-th-order derivative of the spline defined by Equation (11) is inserted in place of s i ( n ) into Equations (85) and (86). Hence, the approximations of the fractional differential operators take the form
  C D a + α s x x = x R = i = 0 R 1 1 Γ n α x i x i + 1 1 x R ξ α n + 1 k = n p k ! k n ! c k , i ξ x i k n d ξ = i = 0 R 1 k = n p c k , i k ! k n ! 1 Γ n α x i x i + 1 ξ x i k n x R ξ α n + 1 d ξ ,
  C D b α s x x = x R = i = R N 1 1 n Γ n α x i x i + 1 1 ξ x R α n + 1 k = n p k ! k n ! c k , i ξ x i k n d ξ = i = R N 1 k = n p c k , i k ! k n ! 1 n Γ n α x i x i + 1 ξ x i k n ξ x R α n + 1 d ξ ,
or are written as
  C D a + α s x x = x R = i = 0 R 1 k = n p c k , i k ! k n ! Φ a + n α , k n , i , R ,
  C D b α s x x = x R = i = R N 1 k = n p c k , i 1 n k ! k n ! Φ b n α , k n , i , R ,
where the integrals Φ a + and Φ b are defined by Equations (80) and (81), respectively.
For the linear spline ( p = 1 ) and 0 α < 1 , the numerical scheme (89) corresponds to the algorithm named L 1 in [1].

3.2.2. Case of α = n N

Here, the Caputo fractional derivatives (3) and (4) correspond to the dependencies
  C D a + α y x =   C D a + n y x   C D a + n s x = s n x ,
  C D b α y x =   C D b n y x   C D b n s x = 1 n s n x .
Hence, taking x = x R , it follows that
  C D a + n s x x = x R = n ! c n , R , for R = 0 , 1 , , N 1 , k = n p k ! k n ! c k , R 1 Δ x k n , for R = N ,
  C D b n s x x = x R = 1 n · n ! c n , R , for R = 0 , , N 1 , k = n p k ! k n ! c k , R 1 Δ x k n , for R = N .
The application of splines for the approximation of Caputo fractional derivatives has some limitations. As can be seen, if the order of this derivative is α > p , then the ( n + 1 ) -th-order derivative of the spline, where n 1 < α < n , n N (as well as when α = n N ), and higher-order derivatives are equal to zero. Hence, the choice of the appropriate kind of spline (here, p { 1 , 3 , 5 } ), depending on the derivative order α that satisfies the condition α p , is important.

3.3. Error Estimates for the Numerical Schemes

As is widely known, numerical methods may contain computational errors. Based on knowledge of the approximation errors of functions by using splines (see previous section), the error estimations for the calculation of fractional integrals and derivatives can be determined.
The approximation error for the left-sided Riemann–Liouville fractional integral I a + α y x x = x R (for R 1 ) can be determined in the following way:
E r r = I a + α y x x = x R I a + α s x x = x R = I a + α y x s x x = x R = 1 Γ α i = 0 R 1 x i x i + 1 y ξ s ξ x R ξ 1 α d ξ 1 Γ α i = 0 R 1 x i x i + 1 y ξ s ξ x R ξ 1 α d ξ 1 Γ α i = 0 R 1 y x ¯ i s x ¯ i x i x i + 1 1 x R ξ 1 α d ξ ,
where x ¯ i x i , x i + 1 . Assuming that y x ¯ s x ¯ = max i = 0 , 1 , , R 1 y x ¯ i s x ¯ i , for x ¯ x 0 , x R , the further estimation of E r r takes the form
E r r y x ¯ s x ¯ 1 Γ α i = 0 R 1 x i x i + 1 1 x R ξ 1 α d ξ = y x ¯ s x ¯ 1 Γ α x 0 x R 1 x R ξ 1 α d ξ = y x ¯ s x ¯ x R x 0 α Γ 1 + α .
After the insertion of relationship (71), for r = 0 , into Equation (96), one obtains
E r r γ p , 0 y p + 1 x ¯ Δ x p + 1 x R x 0 α Γ 1 + α , for p 1 , 3 , 5 ,
where y p + 1 x ¯ = max i = 0 , 1 , , R 1 y p + 1 x ¯ i . In the particular case of x R = x N , the term x R x 0 α in the above equation is replaced by b a α , and then the error value is the highest.
On the other hand, the approximation error for the calculation of the left-sided Caputo fractional derivative at the nodes x = x R , R = 1 , , N , is estimated as
E r r =   C D a + α y x x = x R   C D a + α s x x = x R =   C D a + α y x s x x = x R = I a + n α y n x s n x x = x R = 1 Γ n α i = 0 R 1 x i x i + 1 y n ξ s n ξ x R ξ α n + 1 d ξ = 1 Γ n α i = 0 R 2 x i x i + 1 y n ξ s n ξ x R ξ α n + 1 d ξ + 1 Γ n α x R 1 x R y n ξ s n ξ x R ξ α n + 1 d ξ = E r r 1 + E r r 2 ,
By using the concept of repeated integration by parts, the integral in the interval [ x i , x i + 1 ] can be written as
x i x i + 1 y n ξ s n ξ x R ξ α n + 1 d ξ = k = 0 n 1 1 k Γ n α Γ n k α y n 1 k ξ s n 1 k ξ x R ξ α n + k + 1 ξ = x i x i + 1 1 n Γ n α Γ α x i x i + 1 y ξ s ξ x R ξ α + 1 d ξ ,
and when the properties y l x i = s l x i , for i = 0 , , R 1 and l = 0 , , n 1 , are applied, then all terms under the sum sign disappear. Taking advantage of this fact, the error E r r 1 can be estimated as
E r r 1 = 1 Γ n α i = 0 R 2 x i x i + 1 y n ξ s n ξ x R ξ α n + 1 d ξ 1 Γ n α i = 0 R 2 1 n Γ n α Γ α x i x i + 1 y ξ s ξ x R ξ α + 1 d ξ = 1 n + 1 Γ α i = 0 R 2 x i x i + 1 y ξ s ξ x R ξ α + 1 d ξ 1 n + 1 Γ α i = 0 R 2 x i x i + 1 y ξ s ξ x R ξ α + 1 d ξ 1 n + 1 Γ α i = 0 R 2 y x ¯ i s x ¯ i x i x i + 1 1 x R ξ α + 1 d ξ ,
where x ¯ i x i , x i + 1 . Assuming that y x ¯ s x ¯ = max i = 0 , , R 2 y x ¯ i s x ¯ i , x ¯ x 0 , x R 1 , the further estimation of E r r 1 takes the form
E r r 1 y x ¯ s x ¯ 1 n + 1 Γ α i = 0 R 2 x i x i + 1 1 x R ξ α + 1 d ξ = y x ¯ s x ¯ 1 n + 1 Γ α x 0 x R 1 1 x R ξ α + 1 d ξ = y x ¯ s x ¯ 1 n + 1 Δ x α Γ 1 α 1 R α < y x ¯ s x ¯ 1 n + 1 Δ x α Γ 1 α .
In the case of the second part of the error (98), the following estimation is used:
E r r 2 = 1 Γ n α x R 1 x R y n ξ s n ξ x R ξ α n + 1 d ξ 1 Γ n α x R 1 x R y n ξ s n ξ x R ξ α n + 1 d ξ y n x ¯ R 1 s n x ¯ R 1 1 Γ n α x R 1 x R 1 x R ξ α n + 1 d ξ = y n x ¯ R 1 s n x ¯ R 1 Δ x n α Γ n α + 1 .
By inserting E r r 1 and E r r 2 into Equation (98) and using relationship (71), for r = 0 and r = n , respectively, the following formula for error estimation is obtained:
E r r < y x s x 1 n + 1 Δ x α Γ 1 α + y n x s n x Δ x n α Γ n α + 1 γ p , 0 y p + 1 x Δ x p + 1 1 n + 1 Δ x α Γ 1 α + γ p , n y p + 1 x Δ x p + 1 n Δ x n α Γ n α + 1 = y p + 1 x Δ x p + 1 α 1 n + 1 γ p , 0 Γ 1 α + γ p , n Γ n α + 1 ,
for p { 1 , 3 , 5 } .
If α = n 1 , then 1 / Γ 1 n = 0 , and hence, E r r γ p , n y p + 1 x Δ x p + 1 n .
For the right-sided fractional operators, the formulas are analogous.

4. Examples of Computations

The correctness and quality of the proposed numerical schemes have been verified on the first computational example. A polynomial of the seventh degree as the integrand function y ( x ) in all fractional operators is taken into account in the form
y x = x 7 3 x 6 11 x 5 + 27 x 4 + 47 x 3 60 x 2 72 x + 18 .
This polynomial is of a higher degree than the quintic spline. The endpoints of the considered interval [ a , b ] are as follows: a = 2 and b = 3 . The values of the function y ( x ) and its first and second derivatives at these endpoints are equal to y ( a ) = 10 , y ( a ) = 12 , y ( a ) = 412 , y ( b ) = 45 , y ( b ) = 27 and y ( b ) = 618 . These values can be used directly in the proposed methods, but in the computational example, they are calculated numerically using the finite difference schemes (60) and (61) or (40)–(43).
For functions of the polynomial type, one can easily find the analytical forms of the left- and right-sided Riemann–Liouville fractional integrals and Caputo fractional derivatives. For this purpose, the properties of the fractional integration and differentiation of the power functions ( x a ) β and ( b x ) β , for β > 1 and α > 0 , are recalled [3,13]:
I a + α x a β = Υ α + β β x a β + α ,
I b α b x β = Υ α + β β b x β + α ,
  C D a + α x a β = 0 , if β 0 , 1 , , n 1 , Υ β α β x a β α , if β N and β n or β N and β > n 1 ,
  C D b α b x β = 0 , if β 0 , 1 , , n 1 , Υ β α β b x β α , if β N and β n or β N and β > n 1 ,
where n = α , n 0 and
Υ γ β = Γ β + 1 Γ γ + 1 .
It should be noted that the values of Υ γ β , for γ = 1 , 2 , 3 , , are equal to zero.
In order to apply properties (105)–(108), the function y ( x ) (104) should be transformed and rewritten to include the expressions ( x a ) and ( b x ) (here, a = 1 and b = 3 , respectively) as
y x = x + 2 7 17 x + 2 6 + 109 x + 2 5 323 x + 2 4 + 431 x + 2 3 206 x + 2 2 + 12 x + 2 + 10 ,
y x = 3 x 7 + 18 3 x 6 124 3 x 5 + 402 3 x 4 596 3 x 3 + 309 3 x 2 27 3 x + 45 ,
and then, using (105)–(108), the analytical forms of all fractional operators are as follows:
I 2 + α y x = Υ 7 + α 7 x + 2 7 + α 17 Υ 6 + α 6 x + 2 6 + α + 109 Υ 5 + α 5 x + 2 5 + α 323 Υ 4 + α 4 x + 2 4 + α + 431 Υ 3 + α 3 x + 2 3 + α 206 Υ 2 + α 2 x + 2 2 + α + 12 Υ 1 + α 1 x + 2 1 + α + 10 Υ α 0 x + 2 α ,
I 3 α y x = Υ 7 + α 7 3 x 7 + α + 18 Υ 6 + α 6 3 x 6 + α 124 Υ 5 + α 5 3 x 5 + α + 402 Υ 4 + α 4 3 x 4 + α 596 Υ 3 + α 3 3 x 3 + α + 309 Υ 2 + α 2 3 x 2 + α 27 Υ 1 + α 1 3 x 1 + α + 45 Υ α 0 3 x α ,
  C D 2 + α y x = Υ ¯ 7 α 7 x + 2 7 α 17 Υ ¯ 6 α 6 x + 2 6 α + 109 Υ ¯ 5 α 5 x + 2 5 α 323 Υ ¯ 4 α 4 x + 2 4 α + 431 Υ ¯ 3 α 3 x + 2 3 α 206 Υ ¯ 2 α 2 x + 2 2 α + 12 Υ ¯ 1 α 1 x + 2 1 α + 10 Υ ¯ α 0 x + 2 α ,
  C D 3 α y x = Υ ¯ 7 α 7 3 x 7 α + 18 Υ ¯ 6 α 6 3 x 6 α 124 Υ ¯ 5 α 5 3 x 5 α + 402 Υ ¯ 4 α 4 3 x 4 α 596 Υ ¯ 3 α 3 3 x 3 α + 309 Υ ¯ 2 α 2 3 x 2 α 27 Υ ¯ 1 α 1 3 x 1 α + 45 Υ ¯ α 0 3 x α ,
where
Υ ¯ γ k = 0 , if k 0 , 1 , , n 1 , Υ γ k , otherwise , for n 1 α < n , n N , k N .
Hence, certain terms in Equations (114) and (115) may vanish.
In Figure 1, the plots of the left- and right-sided fractional integrals I 2 + α y x and I 3 α y x , (112) and (113), respectively, for α { 0 , 0.25 , 0.5 , 0.75 , 1 , 1.25 , 1.5 , 1.75 , 2 } , are shown. The cases for α = 0 correspond to the plot of the function y ( x ) (i.e., I 2 + 0 y x = I 3 0 y x = y x ), and, e.g., for α = 1 : I 2 + 1 y x | x = 3 = I 3 1 y x | x = 2 , which is identical to the classical integration of the function y ( x ) in the interval [ 2 , 3 ] . Also, it can be seen that, for α > 0 , I 2 + α y x | x = 2 = 0 and I 3 α y x | x = 3 = 0 hold. In Figure 2, the plots related to the fractional derivatives   C D 2 + α y x and   C D 3 α y x are presented. As before, it can be noted that   C D 2 + 0 y x =   C D 3 0 y x = y x . On the other hand, for, e.g., α { 1 , 2 } ,   C D 2 + 1 y x = y x ,   C D 2 + 2 y x = y x and   C D 3 1 y x = y x ,   C D 3 2 y x = y x occur. Moreover, for α N ,   C D 2 + α y x | x = 2 = 0 and   C D 3 α y x | x = 3 = 0 occur.
For each derived numerical scheme, the experimental order of convergence has been examined. Such tests make it possible to show the correctness and quality of these schemes based on sample calculations depending on, among other factors, the grid size N and order α . If the exact/analytical solutions of fractional integrals and derivatives are known, then one can determine the computational error of the numerical scheme. In the case of I a + α y x , the error is as follows:
e r r o r N = I a + α y x x = x R I a + α s x x = x R ,
where I a + α s x | x = x R denotes the approximate value of I a + α y x | x = x R that has been obtained on a grid of size N at a given data point x R by using the spline constructed by polynomials of degree p. The errors for the remaining operators are defined similarly. Based on the determined error values, the experimental order of convergence can be calculated using the following formula:
o r d e r N = log 2 e r r o r N / 2 e r r o r N .
In Table 1, the numerical errors (117) and the experimental orders of convergence (118) for the calculations of I 2 + α y x | x = 3 and I 3 α y x | x = 2 , for α { 0.25 , 0.5 , 0.75 , 1.0 , 1.25 , 1.5 ,   1.75 , 2.0 } and N = 125 , 250 , 500 , 1000 , 2000 , 4000 , using three kinds of splines are shown. Additionally, this table also provides the exact values of the calculated integrals. When α = 1 , then the values of the left- and right-sided fractional integrals are identical. On the other hand, Table 2 contains the same set of data for the left- and right-sided Caputo fractional derivatives, but they are calculated for the same internal point x = 1 , i.e.,   C D 2 + α y x | x = 1 and   C D 3 α y x | x = 1 (which corresponds to x = x R , R = N · 3 / 5 ). It is not possible to calculate fractional derivatives of order α > 1 in the case of the linear spline ( p = 1 ) or, analogously, α > 3 using the cubic spline and α > 5 using the quintic spline. Calculations for α > 2 have also been performed, but the results are omitted from both tables (due to lack of space).
Remarks on numerical calculations: All calculations were performed with quadruple floating-point precision. The numerical algorithms were implemented in C++11 using the quadmath library and compiled in the GCC (MinGW-w64) compiler. The mentioned library enables the use of the 128-bit floating-point type _ _float128 for real variables and allows calculations with 34 significant decimal digits. This is mainly visible in the case of calculations for N = 4000 using the quintic spline, where the error values are at the level of 10 18 . When the single or double floating-point precision types were used, then the calculations (especially regarding the order of convergence) were imprecise.
In the second example, for all fractional operators, the integrand function y ( x ) is of the form
y x = sin 3 π 2 x 3 3 π 2 x 3 .
Here, in the considered interval [ a , b ] , for a = 1 and b = 5 , this function is symmetric about the midpoint of the interval ( ( a + b ) / 2 = 3 ), i.e., y ( x ) = y ( a + b x ) , and moreover, y ( a ) = y ( b ) = 0 . So far, the analytical forms of fractional integrals and derivatives for the above function y ( x ) are not known. In Figure 3, the plots of the fractional integrals I 1 + α y x and I 5 α y x , for α { 0 , 0.25 , 0.5 , 0.75 , 1 , 1.25 , 1.5 , 1.75 , 2 } , are shown. To create these plots, numerical values calculated by the method using the quintic spline for the grid size N = 1000 were used. The plots of the integrand function y ( x ) are represented by the case for α = 0 . As can be seen in the presented plots of the left- and right-sided fractional integrals of the symmetric function about the midpoint of the interval [ a , b ] , both solutions are symmetrical; i.e., the following relationship occurs:
I a + α y x x = u = I b α y x x = a + b u , for u a , b ,
or in the discrete form as I a + α y x | x = x R = I b α y x | x = x N R , for R = 0 , , N . By analogy, in Figure 4, the plots related to the fractional derivatives   C D 1 + α y x and   C D 5 α y x are shown. Here, one can also notice the presence of symmetry, i.e.,
  C D a + α y x x = u =   C D b α y x x = a + b u , for u a , b .
Moreover, for α { 1 , 2 } , one can see that   C D 1 + 1 y x =   C D 5 1 y x = y x and   C D 1 + 2 y x =   C D 5 2 y x = y x .

5. Conclusions

Numerical schemes for evaluating the left- and right-sided integrals and derivatives of fractional order based on the interpolation of the integrand function by splines have been derived. The primary purpose of this work was to research the application of the quintic spline, but two remaining lower-degree splines (linear and cubic) were used for comparison purposes. The quintic spline creates a curve that appears to be seamless and has smooth characteristics compared to the cubic spline. Generally, if the spline is built with higher degrees of polynomials, then the curve is smoother and the approximation of the function by such a spline has smaller differences.
The analysis of the sample results presented in two tables (and others, but not shown in this paper) allows the conclusion that the absolute values of numerical errors tend to 0 as the grid size N increases in all cases, which means that the numerical results are in good agreement with the exact analytical solutions. Moreover, one can observe that as N increases, the values of the experimental order of convergence are stabilized and take the specified values: see Table 3. It should be pointed out that the numerical schemes that use the quintic spline give a higher order of convergence than other schemes. For example, the scheme of sixth order means that by doubling the number of nodes in the grid, the calculation errors decrease by 2 6 = 64 times, which significantly affects the quality of the calculations compared to other schemes. Furthermore, it can be stated that the experimental orders of convergence are consistent with analytical estimates (97) and (103).
In the case of schemes that use the quintic and cubic splines, a system of linear equations (in order to determine the spline interpolation coefficients) needs to be solved. From the computational point of view, such a procedure can be computationally time-consuming, which may indicate a disadvantage of these schemes. But one can use the Thomas algorithm of linear complexity to solve the block tridiagonal system of equations. Moreover, the global approximation properties of the cubic and quintic splines mean that the polynomial coefficients in each segment of any spline depend on all data points. The perturbation of one arbitrary data point or a slight change in the values of the endpoint conditions affect the construction of the whole spline s ( x ) . Hence, it is worth taking more precise numerical values of the endpoint conditions or, preferably, taking their exact values in the considered systems of linear equations.
Summing up, the developed approximation methods for the considered fractional operators that use the quintic spline interpolation seem to be correct, and they have a qualitative advantage over methods that use other splines of lower degrees. This confirms the efficiency and applicability of the derived methods. In future works, it will be worth focusing on applications of the developed numerical methods to solve differential or integral equations.

Funding

This research received no external funding.

Data Availability Statement

All data are contained within the article.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Oldham, K.; Spanier, J. The Fractional Calculus: Theory and Applications of Differentiation and Integration to Arbitrary Order; Academic Press: San Diego, CA, USA, 1974. [Google Scholar]
  2. Luchko, Y. General Fractional Integrals and Derivatives of Arbitrary Order. Symmetry 2021, 13, 755. [Google Scholar] [CrossRef]
  3. Kilbas, A.; Srivastava, H.; Trujillo, J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006. [Google Scholar]
  4. Podlubny, I. Fractional Differential Equations; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
  5. Sousa, J.V.d.C. Fractional p-Laplacian Equations with Sandwich Pairs. Fractal Fract. 2023, 7, 419. [Google Scholar] [CrossRef]
  6. Klimek, M. Spectrum of Fractional and Fractional Prabhakar Sturm-Liouville Problems with Homogeneous Dirichlet Boundary Conditions. Symmetry 2021, 13, 2265. [Google Scholar] [CrossRef]
  7. Błasik, M. The Implicit Numerical Method for the Radial Anomalous Subdiffusion Equation. Symmetry 2023, 15, 1642. [Google Scholar] [CrossRef]
  8. Shaikh, A.A.; Qureshi, A. Comparative analysis of Riemann-Liouville, Caputo-Fabrizio, and Atangana-Baleanu integrals. J. Appl. Math. Comput. Mech. 2022, 21, 91–101. [Google Scholar] [CrossRef]
  9. Ciesielski, M.; Siedlecka, U. Fractional Dual-Phase Lag Equation—Fundamental Solution of the Cauchy Problem. Symmetry 2021, 13, 1333. [Google Scholar] [CrossRef]
  10. Kukla, S.; Siedlecka, U.; Ciesielski, M. Fractional Order Dual-Phase-Lag Model of Heat Conduction in a Composite Spherical Medium. Materials 2022, 15, 7251. [Google Scholar] [CrossRef] [PubMed]
  11. Nasir, J.; Qaisar, J.; Butt, S.I.; Khan, K.A.; Mabela, R.M. Some Simpson’s Riemann-Liouville Fractional Integral Inequalities with Applications to Special Functions. J. Funct. Spaces 2022, 2022, 2113742. [Google Scholar] [CrossRef]
  12. de Oliveira, E.; Machado, J. A review of definitions for fractional derivatives and integral. Math. Probl. Eng. 2014, 2014, 238459. [Google Scholar] [CrossRef]
  13. Diethelm, K. The Analysis of Fractional Differential Equations; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
  14. Cai, M.; Li, C. Numerical approaches to fractional integrals and derivatives: A review. Mathematics 2020, 8, 43. [Google Scholar] [CrossRef]
  15. Baleanu, D.; Diethelm, K.; Scalas, E.; Trujillo, J. Fractional Calculus: Models and Numerical Methods; World Scientific: Singapore, 2012. [Google Scholar]
  16. Malinowska, A.; Odzijewicz, T.; Torres, D. Advanced Methods in the Fractional Calculus of Variations; Springer International Publishing: London, UK, 2015. [Google Scholar]
  17. Odibat, Z. Approximations of fractional integrals and Caputo fractional derivatives. Appl. Math. Comput. 2006, 178, 527–533. [Google Scholar] [CrossRef]
  18. Ramezani, M.; Mokhtari, R.; Haase, G. Some high order formulae for approximating Caputo fractional derivatives. Appl. Numer. Math. 2020, 153, 300–318. [Google Scholar] [CrossRef]
  19. Ahlberg, J.H.; Nilson, E.N.; Walsh, J.L. The Theory of Splines and Their Applications; Academic Press: New York, NY, USA; London, UK, 1967. [Google Scholar]
  20. Burden, R.; Faires, J.; Burden, A. Numerical Analysis, 10th ed.; Cengage Learning: Boston, MA, USA, 2016. [Google Scholar]
  21. Press, W.; Teukolsky, S.; Vetterling, W.; Flannery, B. Numerical Recipes: The Art of Scientific Computing, 3rd ed.; Cambridge University Press: New York, NY, USA, 2007. [Google Scholar]
  22. Schumaker, L.L. Spline Functions: Computational Methods; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2015. [Google Scholar]
  23. 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]
  24. Ciesielski, M.; Grodzki, G. Numerical approximations of the Riemann-Liouville and Riesz fractional integrals. Informatica 2024, in print. [Google Scholar] [CrossRef]
  25. Grodzki, G. Numerical approximation of the Riemann-Liouville fractional integrals using the Akima spline interpolation. J. Appl. Math. Comput. Mech. 2023, 22, 30–43. [Google Scholar] [CrossRef]
  26. Engeln-Müllges, G.; Uhlig, F. Numerical Algorithms with C; Springer: Berlin, Germany, 1996. [Google Scholar]
  27. Späth, H. One Dimensional Spline Interpolation Algorithms; CRC Press—Taylor & Francis Group: Boca Raton, FL, USA, 1995. [Google Scholar]
  28. Fornberg, B. Generation of finite difference formulas on arbitrarily spaced grids. Math. Comput. 1988, 51, 699–706. [Google Scholar] [CrossRef]
  29. Hall, C.A. On Error Bounds for Spline Interpolation. J. Approx. Theory 1968, 1, 209–218. [Google Scholar] [CrossRef]
  30. de Boor, C.A. Practical Guide to Splines, Revised Edition; Springer: New York, NY, USA; Berlin/Heidelberg, Germany, 2001. [Google Scholar]
Figure 1. Plots of integrals I 2 + α y x and I 3 α y x for function (104) and different orders of α .
Figure 1. Plots of integrals I 2 + α y x and I 3 α y x for function (104) and different orders of α .
Symmetry 16 00252 g001
Figure 2. Plots of derivatives   C D 2 + α y x and   C D 3 α y x for function (104) and different orders of α .
Figure 2. Plots of derivatives   C D 2 + α y x and   C D 3 α y x for function (104) and different orders of α .
Symmetry 16 00252 g002
Figure 3. Plots of integrals I 1 + α y x and I 5 α y x for function (119) and different orders of α .
Figure 3. Plots of integrals I 1 + α y x and I 5 α y x for function (119) and different orders of α .
Symmetry 16 00252 g003
Figure 4. Plots of derivatives   C D 1 + α y x and   C D 5 α y x for function (119) and different orders of α .
Figure 4. Plots of derivatives   C D 1 + α y x and   C D 5 α y x for function (119) and different orders of α .
Symmetry 16 00252 g004
Table 1. Results related to Riemann–Liouville fractional integrals.
Table 1. Results related to Riemann–Liouville fractional integrals.
α NLeft-Sided Riemann–Liouville Fractional Integral I 2 + α y x x = 3 Right-Sided Riemann–Liouville Fractional Integral I 3 α y x x = 2
Linear SplineCubic SplineQuintic SplineLinear SplineCubic SplineQuintic Spline
Error Order Error Order Error Order Error Order Error Order Error Order
0.25125 2.41675 × 10 2 - 1.04535 × 10 5 - 5.69516 × 10 9 - 1.57811 × 10 2 - 6.80603 × 10 6 - 5.57276 × 10 9 -
250 6.86729 × 10 3 1.815 1.03230 × 10 6 3.340 4.90212 × 10 11 6.860 4.49869 × 10 3 1.811 7.49419 × 10 7 3.183 4.70124 × 10 11 6.889
500 1.88377 × 10 3 1.866 7.71362 × 10 8 3.742 5.13316 × 10 13 6.577 1.23635 × 10 3 1.863 5.75466 × 10 8 3.703 4.80667 × 10 13 6.612
1000 5.05293 × 10 4 1.898 5.27856 × 10 9 3.869 6.50363 × 10 15 6.302 3.32029 × 10 4 1.897 3.98006 × 10 9 3.854 5.97696 × 10 15 6.329
2000 1.33463 × 10 4 1.921 3.48367 × 10 10 3.921 9.35790 × 10 17 6.119 8.77715 × 10 5 1.919 2.64009 × 10 10 3.914 8.51330 × 10 17 6.134
4000 3.48577 × 10 5 1.937 2.25936 × 10 11 3.947 1.43484 × 10 18 6.027 2.29381 × 10 5 1.936 1.71712 × 10 11 3.943 1.30003 × 10 18 6.033
0.50125 1.63053 × 10 2 - 1.32582 × 10 5 - 4.13856 × 10 9 - 1.01751 × 10 2 - 8.06872 × 10 6 - 3.90697 × 10 9 -
250 4.39242 × 10 3 1.892 1.06143 × 10 6 3.643 3.74296 × 10 11 6.789 2.75606 × 10 3 1.884 7.02674 × 10 7 3.521 3.37436 × 10 11 6.855
500 1.15081 × 10 3 1.932 7.24796 × 10 8 3.872 4.38185 × 10 13 6.416 7.24321 × 10 4 1.928 4.91460 × 10 8 3.838 3.79855 × 10 13 6.473
1000 2.96714 × 10 4 1.956 4.70229 × 10 9 3.946 6.09673 × 10 15 6.167 1.87104 × 10 4 1.953 3.21722 × 10 9 3.933 5.17726 × 10 15 6.197
2000 7.57427 × 10 5 1.970 2.99228 × 10 10 3.974 9.18566 × 10 17 6.053 4.78204 × 10 5 1.968 2.05529 × 10 10 3.968 7.74015 × 10 17 6.064
4000 1.92095 × 10 5 1.979 1.88860 × 10 11 3.986 1.42490 × 10 18 6.010 1.21378 × 10 5 1.978 1.29974 × 10 11 3.983 1.19807 × 10 18 6.014
0.75125 7.12111 × 10 3 - 9.97799 × 10 6 - 2.05688 × 10 9 - 3.09092 × 10 3 - 4.01756 × 10 6 - 1.70773 × 10 9 -
250 1.84844 × 10 3 1.946 7.14034 × 10 7 3.805 2.10930 × 10 11 6.608 8.18172 × 10 4 1.918 3.23904 × 10 7 3.633 1.56005 × 10 11 6.774
500 4.71369 × 10 4 1.971 4.65613 × 10 8 3.939 2.78012 × 10 13 6.245 2.10729 × 10 4 1.957 2.18291 × 10 8 3.891 1.91856 × 10 13 6.345
1000 1.19146 × 10 4 1.984 2.95257 × 10 9 3.979 4.11580 × 10 15 6.078 5.35530 × 10 5 1.976 1.39945 × 10 9 3.963 2.76659 × 10 15 6.116
2000 2.99742 × 10 5 1.991 1.85532 × 10 10 3.992 6.34116 × 10 17 6.020 1.35137 × 10 5 1.987 8.82904 × 10 11 3.986 4.23025 × 10 17 6.031
4000 7.52101 × 10 6 1.995 1.16215 × 10 11 3.997 9.88375 × 10 19 6.004 3.39674 × 10 6 1.992 5.53936 × 10 12 3.994 6.58293 × 10 19 6.006
1.00125 1.99648 × 10 3 - 3.40015 × 10 6 - 2.42291 × 10 10 - 1.99648 × 10 3 - 3.40015 × 10 6 - 2.42291 × 10 10 -
250 4.99780 × 10 4 1.998 2.18102 × 10 7 3.963 3.79766 × 10 12 5.995 4.99780 × 10 4 1.998 2.18102 × 10 7 3.963 3.79766 × 10 12 5.995
500 1.24986 × 10 4 2.000 1.37201 × 10 8 3.991 5.94311 × 10 14 5.998 1.24986 × 10 4 2.000 1.37201 × 10 8 3.991 5.94311 × 10 14 5.998
1000 3.12491 × 10 5 2.000 8.58907 × 10 10 3.998 9.29335 × 10 16 5.999 3.12491 × 10 5 2.000 8.58907 × 10 10 3.998 9.29335 × 10 16 5.999
2000 7.81245 × 10 6 2.000 5.37036 × 10 11 3.999 1.45265 × 10 17 5.999 7.81245 × 10 6 2.000 5.37036 × 10 11 3.999 1.45265 × 10 17 5.999
4000 1.95312 × 10 6 2.000 3.35682 × 10 12 4.000 2.27021 × 10 19 6.000 1.95312 × 10 6 2.000 3.35682 × 10 12 4.000 2.27021 × 10 19 6.000
1.25125 2.94905 × 10 5 - 5.04636 × 10 6 - 1.57623 × 10 9 - 5.49391 × 10 3 - 1.31980 × 10 5 - 2.21686 × 10 9 -
250 8.21939 × 10 6 1.843 3.63161 × 10 7 3.797 1.70155 × 10 11 6.533 1.38221 × 10 3 1.991 8.83867 × 10 7 3.900 2.70488 × 10 11 6.357
500 2.18938 × 10 6 1.909 2.35242 × 10 8 3.948 2.35877 × 10 13 6.173 3.46277 × 10 4 1.997 5.62397 × 10 8 3.974 3.92826 × 10 13 6.106
1000 5.78985 × 10 7 1.919 1.48421 × 10 9 3.986 3.57289 × 10 15 6.045 8.66327 × 10 5 1.999 3.53152 × 10 9 3.993 6.02658 × 10 15 6.026
2000 1.51795 × 10 7 1.931 9.29967 × 10 11 3.996 5.54430 × 10 17 6.010 2.16640 × 10 5 2.000 2.20992 × 10 10 3.998 9.37923 × 10 17 6.006
4000 3.87101 × 10 8 1.971 5.81622 × 10 12 3.999 8.65318 × 10 19 6.002 5.41656 × 10 6 2.000 1.38165 × 10 11 4.000 1.46461 × 10 18 6.001
1.50125 6.47994 × 10 4 - 1.48482 × 10 5 - 3.65727 × 10 9 - 8.25052 × 10 3 - 2.50930 × 10 5 - 4.47356 × 10 9
250 1.71560 × 10 4 1.917 1.02016 × 10 6 3.863 4.29330 × 10 11 6.413 2.07231 × 10 3 1.993 1.67526 × 10 6 3.905 5.57184 × 10 11 6.327
500 4.35821 × 10 5 1.977 6.52856 × 10 8 3.966 6.16466 × 10 13 6.122 5.18747 × 10 4 1.998 1.06460 × 10 7 3.976 8.16477 × 10 13 6.093
1000 1.09467 × 10 5 1.993 4.10500 × 10 9 3.991 9.43308 × 10 15 6.030 1.29734 × 10 4 1.999 6.68202 × 10 9 3.994 1.25601 × 10 14 6.022
2000 2.74055 × 10 6 1.998 2.56956 × 10 10 3.998 1.46728 × 10 16 6.007 3.24368 × 10 5 2.000 4.18075 × 10 10 3.998 1.95603 × 10 16 6.005
4000 6.85440 × 10 7 1.999 1.60660 × 10 11 3.999 2.29096 × 10 18 6.001 8.10946 × 10 6 2.000 2.61368 × 10 11 4.000 3.05474 × 10 18 6.001
1.75125 1.46683 × 10 3 - 2.58868 × 10 5 - 6.11752 × 10 9 - 1.07883 × 10 2 - 3.90746 × 10 5 - 7.12572 × 10 9 -
250 3.76033 × 10 4 1.964 1.75690 × 10 6 3.881 7.43135 × 10 11 6.363 2.70816 × 10 3 1.994 2.60169 × 10 6 3.909 9.01099 × 10 11 6.305
500 9.46089 × 10 5 1.991 1.12075 × 10 7 3.970 1.08058 × 10 12 6.104 6.77746 × 10 4 1.998 1.65199 × 10 7 3.977 1.32774 × 10 12 6.085
1000 2.36910 × 10 5 1.998 7.04090 × 10 9 3.993 1.65911 × 10 14 6.025 1.69481 × 10 4 2.000 1.03663 × 10 8 3.994 2.04555 × 10 14 6.020
2000 5.92525 × 10 6 1.999 4.40629 × 10 10 3.998 2.58264 × 10 16 6.005 4.23732 × 10 5 2.000 6.48547 × 10 10 3.999 3.18667 × 10 16 6.004
4000 1.48148 × 10 6 2.000 2.75483 × 10 11 4.000 4.03294 × 10 18 6.001 1.05935 × 10 5 2.000 4.05444 × 10 11 4.000 4.97689 × 10 18 6.001
2.00125 3.27639 × 10 3 - 3.81492 × 10 5 - 8.97159 × 10 9 - 1.32588 × 10 2 - 5.51500 × 10 5 - 1.01830 × 10 8 -
250 8.29774 × 10 4 1.981 2.57717 × 10 6 3.888 1.10742 × 10 10 6.340 3.32867 × 10 3 1.994 3.66768 × 10 6 3.910 1.29731 × 10 10 6.295
500 2.08111 × 10 4 1.995 1.64209 × 10 7 3.972 1.61914 × 10 12 6.096 8.33042 × 10 4 1.998 2.32809 × 10 7 3.978 1.91630 × 10 12 6.081
1000 5.20694 × 10 5 1.999 1.03130 × 10 8 3.993 2.48952 × 10 14 6.023 2.08315 × 10 4 2.000 1.46076 × 10 8 3.994 2.95419 × 10 14 6.019
2000 1.30200 × 10 5 2.000 6.45352 × 10 10 3.998 3.87650 × 10 16 6.005 5.20822 × 10 5 2.000 9.13870 × 10 10 3.999 4.60283 × 10 16 6.004
4000 3.25515 × 10 6 2.000 4.03469 × 10 11 4.000 6.05369 × 10 18 6.001 1.30208 × 10 5 2.000 5.71310 × 10 11 4.000 7.18879 × 10 18 6.001
α Analytical values of I 2 + α y x x = 3 calculated using (112)Analytical values of I 3 α y x x = 2 calculated using (113)
0.25 47.23170552069845290437487589936713.548112447243133497964663253209
0.50 44.95931443666292513543289075658118.729546832067732625877247675307
0.75 40.20732619698901168639162077383025.873320468390417138456826053977
1.00 35.56547619047619047619047619035435.565476190476190476190476190594
1.25 33.49552268543089996308643363244748.724522699297574882594335266746
1.50 35.88395833913140067441738823668466.494895409838463421125458683182
1.75 43.81749862013180293899423491329090.037106096993660710700647449116
2.00 57.539682539682539682539682539625120.287698412698412698412698412756
Table 2. Results related to Caputo fractional derivatives.
Table 2. Results related to Caputo fractional derivatives.
α NLeft-Sided Caputo Fractional Derivative   C D 2 + α y x x = 1 Right-Sided Caputo Fractional Derivative   C D 3 α y x x = 1
Linear SplineCubic SplineQuintic SplineLinear SplineCubic SplineQuintic Spline
Error Order Error Order Error Order Error Order Error Order Error Order
0.25125 7.84165 × 10 2 - 6.98882 × 10 6 - 5.55910 × 10 10 - 8.46350 × 10 2 - 6.83433 × 10 6 - 1.40106 × 10 9 -
250 2.49924 × 10 2 1.650 5.68971 × 10 7 3.619 1.29900 × 10 11 5.419 2.65102 × 10 2 1.675 5.47833 × 10 7 3.641 2.49565 × 10 11 5.811
500 7.84618 × 10 3 1.671 4.51782 × 10 8 3.655 2.76433 × 10 13 5.554 8.22011 × 10 3 1.689 4.35584 × 10 8 3.653 4.56394 × 10 13 5.773
1000 2.43616 × 10 3 1.687 3.53309 × 10 9 3.677 5.64871 × 10 15 5.613 2.52882 × 10 3 1.701 3.42284 × 10 9 3.670 8.41279 × 10 15 5.762
2000 7.50076 × 10 4 1.700 2.73386 × 10 10 3.692 1.12730 × 10 16 5.647 7.73116 × 10 4 1.710 2.66193 × 10 10 3.685 1.55540 × 10 16 5.757
4000 2.29439 × 10 4 1.709 2.09882 × 10 11 3.703 2.21425 × 10 18 5.670 2.35181 × 10 4 1.717 2.05280 × 10 11 3.697 2.87991 × 10 18 5.755
0.50125 3.71896 × 10 1 - 2.50923 × 10 5 - 2.45199 × 10 9 - 3.87777 × 10 1 - 2.74995 × 10 5 - 4.13307 × 10 9 -
250 1.35444 × 10 1 1.457 2.35615 × 10 6 3.413 6.21460 × 10 11 5.302 1.39254 × 10 1 1.478 2.47549 × 10 6 3.474 8.55722 × 10 11 5.594
500 4.88554 × 10 2 1.471 2.16262 × 10 7 3.446 1.48114 × 10 12 5.391 4.97795 × 10 2 1.484 2.22544 × 10 7 3.476 1.82243 × 10 12 5.553
1000 1.75120 × 10 2 1.480 1.95907 × 10 8 3.465 3.42745 × 10 14 5.433 1.77380 × 10 2 1.489 1.99345 × 10 8 3.481 3.93594 × 10 14 5.533
2000 6.25069 × 10 3 1.486 1.76026 × 10 9 3.476 7.80135 × 10 16 5.457 6.30629 × 10 3 1.492 1.77965 × 10 9 3.486 8.56945 × 10 16 5.521
4000 2.22468 × 10 3 1.490 1.57333 × 10 10 3.484 1.75798 × 10 17 5.472 2.23842 × 10 3 1.494 1.58453 × 10 10 3.489 1.87511 × 10 17 5.514
0.751251.34310- 5.19229 × 10 5 - 4.97092 × 10 9 -1.37524- 6.14400 × 10 5 - 8.28007 × 10 9 -
250 5.71054 × 10 1 1.234 5.78626 × 10 6 3.166 1.51641 × 10 10 5.035 5.78725 × 10 1 1.249 6.31959 × 10 6 3.281 1.98166 × 10 10 5.385
500 2.41617 × 10 1 1.241 6.27234 × 10 7 3.206 4.27870 × 10 12 5.147 2.43458 × 10 1 1.249 6.57509 × 10 7 3.265 4.94268 × 10 12 5.325
1000 1.01956 × 10 1 1.245 6.70419 × 10 8 3.226 1.16612 × 10 13 5.197 1.02400 × 10 1 1.249 6.87761 × 10 8 3.257 1.26179 × 10 13 5.292
2000 4.29571 × 10 2 1.247 7.11235 × 10 9 3.237 3.12427 × 10 15 5.222 4.30647 × 10 2 1.250 7.21248 × 10 9 3.253 3.26321 × 10 15 5.273
4000 1.80834 × 10 2 1.248 7.51469 × 10 10 3.243 8.29667 × 10 17 5.235 1.81095 × 10 2 1.250 7.57293 × 10 10 3.252 8.49994 × 10 17 5.263
1.00125 4.38955 - 1.36670 × 10 5 - 4.09600 × 10 9 -4.38955- 1.36670 × 10 5 - 4.09600 × 10 9 -
250 2.18769 1.005 8.53547 × 10 7 4.001 6.40000 × 10 11 6.0002.187691.005 8.53547 × 10 7 4.001 6.40000 × 10 11 6.000
500 1.09196 1.002 5.33367 × 10 8 4.000 1.00000 × 10 12 6.0001.091961.002 5.33367 × 10 8 4.000 1.00000 × 10 12 6.000
1000 5.4549 × 10 1 1.001 3.33339 × 10 9 4.000 1.56250 × 10 14 6.000 5.45495 × 10 1 1.001 3.33339 × 10 9 4.000 1.56250 × 10 14 6.000
2000 2.72624 × 10 1 1.001 2.08334 × 10 10 4.000 2.44141 × 10 16 6.000 2.72624 × 10 1 1.001 2.08334 × 10 10 4.000 2.44141 × 10 16 6.000
4000 1.36281 × 10 1 1.000 1.30208 × 10 11 4.000 3.81470 × 10 18 6.000 1.36281 × 10 1 1.000 1.30208 × 10 11 4.000 3.81470 × 10 18 6.000
1.25125-- 8.36678 × 10 4 - 9.64146 × 10 8 --- 7.65038 × 10 4 - 7.39989 × 10 8 -
250-- 1.21870 × 10 4 2.779 3.37429 × 10 9 4.837-- 1.16655 × 10 4 2.713 2.96113 × 10 9 4.643
500-- 1.79335 × 10 5 2.765 1.21552 × 10 10 4.795-- 1.75527 × 10 5 2.732 1.13927 × 10 10 4.700
1000-- 2.65243 × 10 6 2.757 4.44624 × 10 12 4.773-- 2.62455 × 10 6 2.742 4.30538 × 10 12 4.726
2000-- 3.93299 × 10 7 2.754 1.63924 × 10 13 4.761-- 3.91253 × 10 7 2.746 1.61319 × 10 13 4.738
4000-- 5.83913 × 10 8 2.752 6.06763 × 10 15 4.756-- 5.82409 × 10 8 2.748 6.01943 × 10 15 4.744
1.50125-- 7.72196 × 10 3 - 5.90738 × 10 7 --- 5.50777 × 10 3 - 5.35105 × 10 7 -
250-- 1.12814 × 10 3 2.775 2.54920 × 10 8 4.534-- 9.81527 × 10 4 2.488 2.42676 × 10 8 4.463
500-- 1.83845 × 10 4 2.617 1.11306 × 10 9 4.517-- 1.74190 × 10 4 2.494 1.08608 × 10 9 4.482
1000-- 3.14907 × 10 5 2.545 4.88926 × 10 11 4.509-- 3.08513 × 10 5 2.497 4.82977 × 10 11 4.491
2000-- 5.50177 × 10 6 2.517 2.15419 × 10 12 4.504-- 5.45886 × 10 6 2.499 2.14107 × 10 12 4.496
4000-- 9.68377 × 10 7 2.506 9.50577 × 10 14 4.502-- 9.65442 × 10 7 2.499 9.47679 × 10 14 4.498
1.75125-- 2.90741 × 10 2 - 3.04121 × 10 6 --- 2.68499 × 10 2 - 2.10060 × 10 6 -
250-- 5.98591 × 10 3 2.280 1.45340 × 10 7 4.387-- 5.83124 × 10 3 2.203 1.29579 × 10 7 4.019
500-- 1.24961 × 10 3 2.260 7.39805 × 10 9 4.296-- 1.23857 × 10 3 2.235 7.12385 × 10 9 4.185
1000-- 2.62077 × 10 4 2.253 3.84688 × 10 10 4.265-- 2.61252 × 10 4 2.245 3.79670 × 10 10 4.230
2000-- 5.50488 × 10 5 2.251 2.01436 × 10 11 4.255-- 5.49833 × 10 5 2.248 2.00459 × 10 11 4.243
4000-- 1.15690 × 10 5 2.250 1.05726 × 10 12 4.252-- 1.15634 × 10 5 2.249 1.05522 × 10 12 4.248
2.00125-- 1.21620 × 10 1 - 1.02400 × 10 5 --- 1.21620 × 10 1 - 1.02400 × 10 5 -
250-- 3.04013 × 10 2 2.000 6.40000 × 10 7 4.000-- 3.04013 × 10 2 2.000 6.40000 × 10 7 4.000
500-- 7.60008 × 10 3 2.000 4.00000 × 10 8 4.000-- 7.60008 × 10 3 2.000 4.00000 × 10 8 4.000
1000-- 1.90001 × 10 3 2.000 2.50000 × 10 9 4.000-- 1.90001 × 10 3 2.000 2.50000 × 10 9 4.000
2000-- 4.75000 × 10 4 2.000 1.56250 × 10 10 4.000-- 4.75000 × 10 4 2.000 1.56250 × 10 9 4.000
4000-- 1.18750 × 10 4 2.000 9.76562 × 10 12 4.000-- 1.18750 × 10 4 2.000 9.76562 × 10 12 4.000
α Analytical values of   C D 2 + α y x x = 1 calculated using (114)Analytical values of   C D 3 α y x x = 1 calculated using (115)
0.25 −65.695900671274686868366861533907−89.684783620466897066778246346165
0.50 −59.331281245578144164503719955315−69.874990609212284201036182289303
0.75 −41.076691104317504450100614025998−36.962637833302769019389855861950
1.00 −9.0000000000000000000000000000009.000000000000000000000000000000
1.25 29.66632212718141226876290946996383.928086254218424666184559890907
1.50 90.928292916416640368366975213304137.009559059007698495559102959142
1.75 156.918453309420023096180630755186186.059723786166269221860579765927
2.00 218.000000000000000000000000000000218.000000000000000000000000000000
Table 3. Experimental orders of convergence of numerical schemes that use different kinds of splines.
Table 3. Experimental orders of convergence of numerical schemes that use different kinds of splines.
Kind of SplineExperimental Order of Convergence
Riemann–Liouville Fractional Integrals Caputo Fractional Derivatives
linear spline ( p = 1 )2 2 α (for α 1 )
cubic spline ( p = 3 )4 4 α (for α 3 )
quintic spline ( p = 5 )6 6 α (for α 5 )
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

Ciesielski, M. Numerical Algorithms for Approximation of Fractional Integrals and Derivatives Based on Quintic Spline Interpolation. Symmetry 2024, 16, 252. https://doi.org/10.3390/sym16020252

AMA Style

Ciesielski M. Numerical Algorithms for Approximation of Fractional Integrals and Derivatives Based on Quintic Spline Interpolation. Symmetry. 2024; 16(2):252. https://doi.org/10.3390/sym16020252

Chicago/Turabian Style

Ciesielski, Mariusz. 2024. "Numerical Algorithms for Approximation of Fractional Integrals and Derivatives Based on Quintic Spline Interpolation" Symmetry 16, no. 2: 252. https://doi.org/10.3390/sym16020252

APA Style

Ciesielski, M. (2024). Numerical Algorithms for Approximation of Fractional Integrals and Derivatives Based on Quintic Spline Interpolation. Symmetry, 16(2), 252. https://doi.org/10.3390/sym16020252

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop