검색
Article Search

JMB Journal of Microbiolog and Biotechnology

OPEN ACCESS eISSN 0454-8124
pISSN 1225-6951
QR Code

Article

Kyungpook Mathematical Journal 2021; 61(2): 383-393

Published online June 30, 2021

Copyright © Kyungpook Mathematical Journal.

Numerical Solutions of Fractional Differential Equations with Variable Coecients by Taylor Basis Functions

Athassawat Kammanee

Applied Analysis Research Unit, Division of Computational Science, Faculty of Science,Prince of Songkla University, Hat Yai, Songkhla 90110 Thailand Centre of Excellence in Mathematics, CHE, 328 Si Ayutthaya Road, Phayathai, Ratchathewi, Bangkok, 10400, Thailand
e-mail : athassawat.k@psu.ac.th

Received: January 31, 2020; Accepted: September 8, 2020

In this paper, numerical techniques are presented for solving initial value problems of fractional differential equations with variable coefficients. The method is derived by applying a Taylor vector approximation. Moreover, the operational matrix of fractional integration of a Taylor vector is provided in order to transform the continuous equations into a system of algebraic equations. Furthermore, numerical examples demonstrate that this method is applicable and accurate.

Keywords: Taylor series, fractional differential equation, variable coefficient, numerical solution

Fractional differential equations (FDEs) are generalizations of differential equations that replace integral order derivatives by fractional order derivatives. In general, ordinary differential equations are applied on describing dynamic phenomena in various fields such as physics, biology and chemistry. However, for some complicated systems the common simple differential equations cannot provide agreeable results. Therefore, in order to obtain better models, FDEs are employed instead of integer order ones, see [3, 8, 16]. On the other hand, the FDEs are too complicated to solve by analytical methods and theoretical background for this problem is not well developed. Hence, in recent years mathematicians have discovered new methods of numerical solution. There are several methods to solve FDEs, such as variational iteration method [14, 15], Adomain decomposition method [2], fractional differential transformation method [1], fractional finite difference method [12], and wavelet method [9, 17].

Taylor series development can be very straightforward for representing a function as power series, and Taylor series are frequently employed to approximate solutions of complicated problems. There are several studies in which Taylor series methods are applied to solve problems in control theory [10] or in partial differential equations [4]. In the recent years, Taylor series have also been employed to solve FDEs numerically, with the Bagley-Torvik (B-T) equation as an example. However, the B-T equation is an FDE with constant coefficients [7]. Nevertheless, in this paper, Taylor series is the chief tool used to solve FDEs with variable coefficients numerically, by assuming that the solution can be expanded as a Taylor series.

In this paper, we introduce a novel method to approximate the solutions of FDEs with given initial values. In this technique, the solution is approximated by Taylor vectors. Moreover, an operational matrix to integrate the FDEs is provided, and is utilized to project a continuous space to a discrete space, and to form a system of algebraic equations. Some basic definitions and effective theorems of fractional calculus are introduced in Section 1. Section 2 presents an error analysis of our method. Due to the fact that solutions are approximated by Taylor series, a Taylor basis operational matrix of fractional integration will be provided in Section 3. In Section 4, numerical examples demonstrate obtaining approximate solutions. Finally, the Conclusion will be in Section 5.

Due to the fact that there are several definitions of fractional derivatives and integrals, this section is necessary to define the fractional calculus used. The Caputo derivative and the Riemann-Liouville integral are well-known and widely applied. In this paper, we focus on not only the Caputo's fractional derivative, but also on the Riemann-Liouville fractional integral.

Definition 2.1.([13])

The Caputo's fractional derivative of order α is defined as

Dαu(t)=1Γ(nα)0t u (n) (s) (ts) α+1n ds,  0n1<αn,  nN.

where α is the order of the derivative and n is the smallest integer which is greater than α.

Definition 2.2.([13])

The Riemann-Liouville fractional integral operator of order α ,Iα, is given by

Iαu(t)=1Γ(α)0t (ts) α1 u(s)ds,α>0u(t),α=0.

An important property of the Riemann-Liouville fractional integral that it is a linear operator [5], i.e.

Iα(λf(t)+g(t))=λIαf(t)+Iαg(t),

where λ is a constant. Moreover, a well-known Riemann-Liouville fractional integral formula regards its effects on powers of the integrand

Iαtq=Γ(q+1)Γ(q+1+α)tα+q,  for q>1.

Furthermore, Caputo's fractional derivative of order α also obeys

Dαu(t)=Inαdn u(t)dtn

where αR and n1<αn with nN. The relation between the Caputo fractional derivative and Riemann-Liouville integral operator is that they are "almost" inverses, except for integration constants that necessarily emerge:

  Dα(Iαu(t))=u(t)andIα(Dαu(t))=u(t)k=0n1uk(0)tkk!  for t>0.

Since the purpose of this paper is to find numerical solutions of FDEs, the error bounds need to be considered, which is now addressed. The Taylor basis vector is given by

Tm(t)=[1,t,t2,t3,...,tm]t

where m is a positive integer. Clearly TmH , where H=L2[0,1]. Let S=span {1,t,t2,...,tm} and y be an arbitrary element in H. Since S is a finite dimensional vector subspace of H, there exists a unique y0∈ S which is the best approximation of y, i.e.

miny^Syy^=yy0.

Since y0∈ S, there exits the unique coefficients a0,a1,....,am such that

yy0= k=0maktk=AtTm(t)

where AT=[a0,a1,a2,...,am].

By Taylor's theorem, see [11], for smooth enough yCm+1[0,1]. Then

y(t)=y0(t)+Rm(t)

where y0(t)= k=0my (k)(0)tkk! and Rm(t)=y(m+1)(c)tm+1(m+1)! for some cR.

Lemma 3.1. Let y0(t) be the best approximation of y∈ S and y(t)Cm+1[0,1] then

y(t)y0(t)HM(m+1)!12m+3

where M=supt[0,1]y(m+1)(t).

Proof. The proof is similar to those in [6, 7].

The next theorem is the main theorem in this paper. When a solution of an FDE is approximated by a truncated Taylor series, the error bounds for fractional integrals must be considered.

Theorem 3.2. Suppose that the conditions of Lemma 3.1 are satisfied. Then, for t[0,1],

Iαy(t)Iαy0(t)M(m+1)!Γ(α)12m+3.

Proof. Since the fractional integral is a linear operator, we have

Iαy(t)Iαy0(t)=Iα(y(t)y0(t))      1Γ(α)0t(ts)α1(y(s)y0(s))Hds      1Γ(α)01(ts)α1(y(s)y0(s))Hds      1Γ(α)01(y(s)y0(s)Hds.

Substituting inequality (3.4) into (3.5), we can achieve the desired result.

Now we apply Definition 1.2 of the Riemann-Liouville fractional integral Iα. The Taylor basis operational matrix representing the linear operation of fractional order integration Iα is defined by

IαTm(t)=[Iα(1),Iα(t),Iα(t2),....,Iα(tm)]t  =[Γ(1)Γ(α+1)tα,Γ(2)Γ(α+2)t1+α,Γ(3)Γ(α+3)t2+α,...,Γ(m+1)Γ(α+m+1)tm+α]t.

In this section, we apply the Taylor basis operational matrix of fractional order integration to solve four examples of fractional differential equations with variable coefficients. These problems are based on initial value problems. The examples demonstrate that our method is practically applicable. To obtain better results, we should increase the number of basis functions used in the approximation, or essentially truncate the Taylor series later. For convenience, the programs for computational solutions were written in MatLab.

Example 5.1. Consider the following fractional differential equation

D1/3u(t)+t1/3u(t)=f(t),  t[0,1],

with the initial condition is u(0)=0 and f(t)=32Γ(23)t2/3+t4/3. The exact solution is u(t)=t. This example is provided by [17].

We provide two alternative approaches to approximate solution. First, we assume that

D1/3u(t)=AtTm(t).

Applying the equation (2.6) with an initial condition, we have

u(t)=AtI1/3Tm(t).

Substituting equations (5.2) and (5.3) into equation (5.1), we obtain

AtTm(t)+t1/3AtI1/3Tm(t)=f(t).

In order to determine A, we collocation at the points ti=t0+ih with h=1/m and t0=0. For convenience, the coefficient in (5.1) can be set as

t1/3=t01/3000t11/3000tm11/3.

For collocation the right-hand side of (5.1) is similarly discretized to

F(t)=[f(t0),f(t1),...,f(tm1)]t.

Now the continuous problem has been projected to discrete space. Hence, we have algebraic equations with At to be solved from

(Tm(t)+t1/3I1/3Tm(t))A=F(t).

The eventual numerical solution isu(t)=AtI1/3Tm(t). The numerical implementations for m = 5, 10, and 15 are illustrated by their absolute errors in Fig.1(a), since the analytical solution in this case is known. In Fig.1(a), we can see that the numerical solutions had good accuracy. Furthermore, Table 1 compares these absolute errors to those of the numerical solution in [17]. Moreover, the absolute errors consistently diminished with the number of basis functions used.

Table 1 . The absolute error in Example 5.1 shown in comparison to the method of [17]..

tOurs (m=15)Ref.[17](m=64)
0.06258.745028e-0042.082093e-003
0.18752.498965e-0049.743606e-004
0.31251.480609e-0046.67794e-004
0.43751.037922e-0045.129034e-004
0.56257.883851e-0054.175219e-004
0.68756.289737e-0053.523496e-004
0.81255.238139e-0053.048147e-004
0.93753.629887e-0052.685403e-004

Figure 1. This absolute error in Example 5.1 with various numbers m of Taylor basis functions. (a)
u ( t ) = A t I 1 / 3 T m ( t )
, (b)
u ( t ) = A t I 1 T m ( t ) .
}

An alternative choice to solve this case is by setting

Du(t)=AtTm(t).

Then, we obtain

u(t)=AtI1Tm(t) andD1/3u(t)=AtI2/3Tm(t).

The approach to determine A is essentially unchanged, by employing collocation. In order to avoid a singular matrix, the collocation points are set at ti=t1+ih with h=1/m and t1=h for i=1,2,3,...,m. Then the coefficient matrix of (5.1) is

t1/3=t11/3000t21/3000tm1/3.

and the right-hand side of (5.1) can be restated as

F(t)=[f(t1),f(t2),...,f(tm)]t.

The system of an algebraic equation is analogous to that in (5.5). Finally, the solution is approximated by u(t)=AtI1Tm(t). With this latter approach, the approximate solution is very close to the exact solution. The absolute errors are shown in Fig 1(b). One can see that the errors are better than with the previous approach. For good results, we should set Dnu(t)=AtTm(t) with n=α where α is the order of the fractional differential equation.

The next example is more complicated than the previous, since the initial values are nonzero. Still the method of solution remains quite similar.

Example 5.2. Consider the following initial value problem

D2u(t)+cos(t)D3/2u(t)tu(t)=f(t),  t[0,1]

where f(t)=2+2cos(t)t2/3Γ(3/2)t3t with initial condition u(0)=1 and u'(0)=0. The exact solution is u(t)=t2+1.

The method to solve this problem is similar to Example 5.1. First, we set

D2u(t)=AtTm(t).

Then the initial conditions are applied to get

D3/2u(t)=AtI1/2Tm(t) u(t)=AtI2Tm(t)+1.

Applying the collocation points defined as Example 5.1, we let

B(t)=diag[cos(t0),cos(t1),...,cos(tm1)] C(t)=diag[t0,t1,...,tm1] E=[1,1,1,...,1]t andF(t)=[f(t0),f(t1),...,f(tm1)]t.

Substituting the equation (5.10)-(5.16) into (5.9), we obtain a system of algebraic equation

Tm(t)+B(t)I1/2Tm(t)C(t)(I2Tm(t)+E)A=F(t).

This system of algebraic equations is solved for vector A. Then, employing (5.12), we get the numerical approximation of u(t). The absolute errors with m = 5, 10 and 15 are exhibited in Fig.2. We can see that the absolute errors are very small, so this example corroborates that our method can work very well.

Figure 2. This absolute errors of Example 5.2 for various numbers m of the Taylor basis functions.

Example 5.3.([17]) Consider the following initial value problem

D2u(t)+sin(t)D1/2u(t)+tu(t)=f(t),  t[0,1]

where f(t)=t9t8+56t642t5+sin(t)(327686435t15/22048429t13/2) with initial condition u(0)=0 and u'(0)=0. The exact solution is u(t)=t8t7.

The method to solve this problem is similar to Example 5.1 . First, we set

D2(u(t))=AtTm(t).

Then the initial conditions are applied, we have

D1/2u(t)=AtI3/2Tm(t) u(t)=AtI2Tm(t).

Applying the collocation points defined as Example 5.1, we let

B(t)=diag[sin(t0),sin(t1),...,sin(tm1)] C(t)=diag[t0,t1,...,tm1] andF(t)=[f(t0),f(t1),...,f(tm1)]t.

align the equation (5.19)-(5.24) into (5.18), we obtain a system of algebraic equation

Tm(t)+B(t)I3/2Tm(t)+C(t)(I2Tm(t))A=F(t).

This is solved for vector A, and employing (5.21) we obtain the numerical approximation of u(t). The absolute errors with m = 5, 10 and 15 are shown in Fig.3. Moreover, Table 2 demonstrates the absolute errors in comparison to those in [17]. We can see that the absolute errors are very small, confirming that our method can work very well.

Table 2 . The absolute error in Example 5.3 shown in comparison to the method of [17]..

tOurs (m=15)Ref.[17](m=32)
0.06258.9369e-0134.4517e-012
0.18752.6704e-0098.3173e-008
0.31252.9526e-0071.5545e-006
0.43756.0751e-0069.6917e-006
0.56255.3743e-0054.4897e-005
0.68752.7960e-0041.8488e-004
0.81259.7785e-0045.2730e-004
0.93752.3574e-0038.3468e-004

Figure 3. This absolute errors of Example 5.3 for various numbers m of the Taylor basis functions.

Example 5.4. Consider the following initial value problem

Dαu(t)+etu(t)=2t+t2et,  t[0,1]

with initial condition u(0)=0.

The exact solution of this problem is in general unknown, but for α=1 it is u(t)=t2. The process to obtain an approximate solution is the same in Examples 5.1-5.3. Fig. 4 demonstrates that the approximate solutions appear to converge to the exact one, for the case α=1. For more detail see [5].

Figure 4. A comparison of the approximate solutions for different α values, with 15 Taylor basis functions.

The objective of this paper is to demonstrate numerical solutions of fractional differential equations with variable coefficients. The technique employs Taylor series approximations. Moreover, a convergence analysis with the Taylor basis was also proved. The operational matrix of fractional integration for a Taylor vector was provided. Furthermore, this method converts initial value problems into linear systems of algebraic equations. The method is computationally very easy and provides a structured approach to numerical approximate solutions. Numerical implementations were presented illustrating accuracy, application and efficiency of the approach.

The authors greatly acknowledge the valuable comment of Prof. Mohsen Razzaghi (Mississippi State University) and Assoc. Prof. Varayu Boonpongkrong (Prince of Songkla University) to obtain better result. Moreover, the author also gratefully acknowledge the copy-editing service of the Research and Development Office (RDO/PSU), and the helpful edits and comments by Dr. Seppo Karrila.

  1. A. Arikoglu and I. Ozkol, Solution of fractional differential equations by using differential transform method, Chaos Solitons Fract, 34(2007), 1473-1481.
    CrossRef
  2. S. El-Wakil, A. Elhanbaly and M. Abdou, Adomian decomposition method for solving fractional nonlinear differential equations, Appl. Math. Comput., 182(2006), 313-324.
    CrossRef
  3. M. Fouda, A. Elwakil, A. Radwan and A. Allagui, Power and energy analysis of fractional-order electrical energy storage devices, Energy, 111(2016), 785-792.
    CrossRef
  4. G. Groza and M. Razzaghi, A Taylor series method for the solution of the linear initial-boundary-value problems for partial differential equations, Comput. Math. Appl., 66(2013), 1329-1343.
    CrossRef
  5. M. K. Ishteva, Properties and applications of the Caputo fractional operator, Master’s thesis, University Karlsruhe, Germany, 2005.
  6. S. Kazema, S. Abbasbandya and S. Kumar, Fractional-order Legendre functions for solving fractional-order differential equations, Appl. Math. Model., 37(2013), 5498-5510.
    CrossRef
  7. V. S. Krishnasamy and M. Razzaghi, The numerical solution of the Bagley-Torvik equation with fractional Taylor method, J. Comput. Nonlinear Dynam., 11(2016), 051010, 6 pp.
    CrossRef
  8. P. Kumar, S. Kumar and B. Raman, A fractional order variational model for the robust estimation of optical flow from image sequences, Optik - International Journal for Light and Electron Optics, 127(2016), 8710-8727.
    CrossRef
  9. Y. Li and W. Zhao, Haar wavelet operational matrix of fractional order integration and its applications in solving the fractional order differential equations, Appl. Math. Comput., 216(2010), 2276-2285.
    CrossRef
  10. H. R. Marzban and M. Razzaghi, Analysis of time-delay systems via hybrid of block-pulse functions and Taylor series, J. Vib. Control, 11(2005), 1455-1468.
    CrossRef
  11. J. H. Mathews, Numerical methods for mathematics, Science, and Engineering, Prentice Hall, 1992.
  12. M. Meerschaert and C. Tadjeran, Finite difference approximations for two-sided space-fractional partial differential equations, Appl. Numer. Math., 56(2006), 80-90.
    CrossRef
  13. K. S. Miller and B. Ross, An introduction to the fractional calculus and fractional differential equations, John Wiley & Sons., 1993.
  14. Z. M. Odibat, A study on the convergence of variational iteration method, Math. Comput. Modelling, 51(2010), 1181-1192.
    CrossRef
  15. Z. M. Odibat and S. Momani, Application of variational iteration method to nonlinear differential equations of fractional order, Int. J. Nonlinear Sci. Numer. Simul., 7(2006), 27-34.
    CrossRef
  16. D. Rostamy and E. Mottaghi, Stability analysis of a fractional-order epidemics model with multiple equilibriums, Adv. Difference Equ., (2016), Paper No. 170, 11 pp.
    CrossRef
  17. M. Yi and J. Huang, Wavelet operational matrix method for solving fractional differ-ential equations with variable coefficients, Appl. Math. Comput., 230(2014), 383-394.
    CrossRef