fracdiff
Fractional order differentiation
Calling Sequence
Parameters
Description
Examples
References
fracdiff(f, x, ν, method = mth, methodoptions = mthopts)
f
-
algebraic expression
x
name
ν
real number, or a name representing a real number, not an integer
mth
(optional) method of calculation, can be direct (default), laplace or series
mthopts
(optional) list of options for the specified method of calculation
Given an algebraic expression, f, fracdiff computes the νth derivative of f with respect to x, where ν is not an integer. For integer (_nu_) order differentiation use diff - see also symbolic integer order differentiation.
By default, the direct method is used to calculate the fractional derivative using the Davison-Essex (D-E) definition, that is, first differentiate n times, then integrate n-ν times, where n = ceil(ν), using the standard formula for iterated integrals. The resulting D-E definition of fractional derivative is
diff(f(x),[x$nu]) = 1/GAMMA(n-nu)*Int((x-t)^(n-nu-1)*diff(f(t),[t$n]),t = 0 .. x);
ⅆνⅆxνf⁡x=∫0xx−tn−ν−1⁢ⅆnⅆtnf⁡tⅆtΓ⁡n−ν
where (see ceil) ν <= n. This definition handles differentiation orders ν > -1, and for integer values of ν it is valid only in a limiting sense.
In the literature, the term fractional derivative is sometimes reserved for the Riemann-Liouville (R-L) fractional derivative, defined by
diff(f(x),[x$nu]) = 1/GAMMA(n-nu)*Diff(Int((x-t)^(n-nu-1)*f(t),t = 0..x),[x$n]);
ⅆνⅆxνf⁡x=∂n∂xn∫0xx−tn−ν−1⁢f⁡tⅆtΓ⁡n−ν
The Davison-Essex and the Riemann-Liouville definitions are different in the following aspect: in the D-E formula, differentiation is performed first, then integration; in the R-L formula it is the other way around. The D-E definition implemented, thus, maps constants to zero, imitating integer order differentiation, while the R-L definition does not. This property of the D-E definition makes it suitable to work with initial value problems for fractional differential equations.
The laplace method calculates the Davison-Essex derivative via the Laplace transform. This method will not accept a symbol or name representing an unspecified real order of differentiation, unless assumptions are made about the symbol ν that allow the routines to deduce the numerical value of n = ceil(ν). The routines will attempt to calculate the derivative for any non-integer real-valued order.
The series method will calculate the derivative by first expanding the expression into a power series. If any term in the returned series is not of the form constant*(name - a)^constant, an error message will be returned. The terms are then differentiated using a simplified case of the Davison-Essex formula (where the function being differentiated is a monomial). The optional parameters for this method, to be specified in mthopts, are about=a and order=o, where a specifies the point about which to expand the series and o specifies the accuracy or order of the series. a defaults to 0 and o defaults to Order, the default order for series.
If ν is a negative number, integration is performed on the terms in the series. This method accepts symbolic values of ν, and returns a formula for the ν-th derivative. However, the values returned by this series approximation will become less accurate as ν increases, because terms that should normally be eliminated by differentiation will not be.
As is the case of the integer order derivative of a constant, the fractional order derivative of a constant is zero unless the differentiation order ν is zero.
For example, take f=1 in the Davison-Essex definition implemented in Maple, and compute the value at ν=0
diff⁡f⁡x,`$`⁡x,ν=1Γ⁡n−ν⁢int⁡x−tn−ν−1⁢diff⁡f⁡t,`$`⁡t,n,t=0..x
val≔eval⁡,f=1assumingν≤n
val≔pochhammer⁡1−ν,ν=−xn−ν⁢pochhammer⁡1−n,nΓ⁡n−ν⁢−n+ν
eval⁡val,ν=0
1=xn⁢pochhammer⁡1−n,nΓ⁡n⁢n
Note that in the left-hand side the computation was performed assuming that ν is an integer (see diff,symbolicorder). Recalling that n = ceil(nu), at ν=0 (ν an integer) the D-E definition is valid in a limiting sense
limit⁡,n=0
1=1
For ν > -1 and not an integer, the D-E fractional derivative of a constant is equal to zero. For example, for ν = 1/2, the right-hand side of val above becomes
limit⁡eval⁡rhs⁡val,ν=12,n=ceil⁡12
0
The fractional derivative of order 1/2 of the cosine function
fracdiff⁡cos⁡x,x,12
cos⁡x⁢FresnelS⁡x⁢2π−sin⁡x⁢FresnelC⁡x⁢2π⁢2
For some cases, as the first in this block, the result can only be approximated (series method)
fracdiff⁡sin⁡y,y,−65
Error, (in fracdiff) parameter -6/5 is <= -1
fracdiff⁡sin⁡y,y,−65,method=series
125⁢y115⁢Γ⁡4566⁢π⁢csc⁡π5−3125⁢y215⁢Γ⁡4522176⁢π⁢csc⁡π5+78125⁢y315⁢Γ⁡4517873856⁢π⁢csc⁡π5+O⁡y415
fracdiff⁡ln⁡x+1,x,23,method=series,methodoptions=about=2,order=4
x−213⁢3⁢Γ⁡232⁢π−x−243⁢3⁢Γ⁡238⁢π+x−273⁢3⁢Γ⁡2328⁢π+O⁡x−2103
fracdiff⁡exp⁡y,y,45,method=series,methodoptions=order=12
5⁢y15⁢Γ⁡45π⁢csc⁡π5+25⁢y65⁢Γ⁡456⁢π⁢csc⁡π5+125⁢y115⁢Γ⁡4566⁢π⁢csc⁡π5+625⁢y165⁢Γ⁡451056⁢π⁢csc⁡π5+3125⁢y215⁢Γ⁡4522176⁢π⁢csc⁡π5+15625⁢y265⁢Γ⁡45576576⁢π⁢csc⁡π5+78125⁢y315⁢Γ⁡4517873856⁢π⁢csc⁡π5+390625⁢y365⁢Γ⁡45643458816⁢π⁢csc⁡π5+1953125⁢y415⁢Γ⁡4526381811456⁢π⁢csc⁡π5+9765625⁢y465⁢Γ⁡451213563326976⁢π⁢csc⁡π5+48828125⁢y515⁢Γ⁡4561891729675776⁢π⁢csc⁡π5+O⁡y565
The routines have limited ability to deal with symbolic fractional order; mainly they need to know the ceiling (least integer upper bound) for the order.
assume⁡α≤1
additionally⁡0<α
assume⁡0<m
fracdiff⁡xm,x,α,method=laplace
Γ⁡m~+1⁢x−α~+m~Γ⁡1−α~+m~
fracdiff⁡xm,x,α
This example also shows the simplified case of the Davison-Essex formula used to calculate the derivatives of the monomials in the series method.
Benghorbal, M. Power Series Solution of Fractional Differential Equations and Symbolic Derivatives. PhD Thesis, University of Western Ontario, Canada, 2004.
Davison, M., and Essex, G. C. "Fractional Differential Equations and Initial Value Problems." The Mathematical Scientist, (December 1998): 108-116.
Liouville, J. Collected Works.
See Also
diff
diff,symbolicorder
int
inttrans
Download Help Document