# Solving Linear and Nonlinear Fractional Differential Equations Using Spline Functions

Authors: Adel Al-Rabtah; Shaher Momani; Mohamed A. Ramadan
Journal: Abstract and Applied Analysis
 (2012)

---

## Abstract

Suitable spline functions of polynomial form are derived and used to solve linear and nonlinear
fractional differential equations. The proposed method is applicable for0<α≤1 and α≥1, where α denotes the order of the fractional derivative in the Caputo sense. The results obtained
are in good agreement with the exact analytical solutions and the numerical results presented
elsewhere. Results also show that the technique introduced here is robust and easy to apply.


---

## Body

## 1. Introduction

Mathematical modelling of complex processes is a major challenge for contemporary scientists. In contrast to simple classical systems, where the theory of integer-order differential equations is sufficient to describe their dynamics, fractional derivatives provide an excellent instrument for the description of memory and hereditary properties of various complex materials and systems. Therefore, the number of scientific and engineering problems involving fractional derivatives is already very large and still growing and perhaps the fractional calculus (i.e., derivatives and integrals of any real or complex order) will be the calculus of the twenty-first century [1–6].The analytic results on the existence and uniqueness of solutions to the fractional differential equations have been investigated by many authors (see, e.g., [7, 8]). During the last decades, several numerical and analytical methods have been proposed in the literature to solve fractional differential equations. The most commonly used ones are fractional difference method [9, 10], Adomian decomposition method [11], variational iteration method [12, 13], and Adams-Bashforth-Moulton method [14–16]. Recently, Lagrange multiplier method and the homotopy perturbation method are used to numerically solve multiorder fractional differential equations, see [17].In view of successful application of spline functions of polynomial form in system analysis [18], delay differential equations [19], and delay differential equations of fractional order [20], we hold that it should be applicable to solve linear and nonlinear fractional-order systems.In the present paper, we intend to extend the application of the spline functions of polynomial form to solve the fractional differential equations:(1.1)yα(x)=f(x,y(x)),y(0)=y0,
where α denotes the order of the fractional derivative in the Caputo sense.


## 2. The Spline Function Method of Polynomial Form

Recently, many studies were devoted to the problems of approximate solutions of system ordinary as well as delay differential equations by spline functions [18–21]. Micula et al. [18] considered the following system:(2.1)y′(x)=f1(x,y,z),y(x0)=y0,z′(x)=f2(x,y,z),z(x0)=z0,
where f1,f2∈Cr[0,1]×ℝ×ℝ,(x,y,z)∈[0,1]×ℝ×ℝ. They assumed that the functions fi(q),i=1,2, and q=0,1,…,r satisfy the Lipschitz condition of the form(2.2)|fi(q)(x,y1,z1)-fi(q)(x,y2,z2)|≤Li{|y1-y2|+|z1-z2|},
with constant Li for all (x,yi,zi)∈[0,1]×ℝ×ℝ. In their paper, they presented investigations to the extension of the spline functions form for approximating the solution of the system of initial value problems (2.1), with unique solutions y=y(x) and z=z(x).The spline functionsSΔ and S̃Δ to approximate y=y(x) and z=z(x), respectively, are defined in polynomial form as(2.3)SΔ(x)=Sk(x)=Sk-1(xk)+∑i=0rf1(i)(xk,Sk-1(xk),S̃k-1(xk))(x-xk)i+1(i+1)!,S̃Δ(x)=S̃k(x)=S̃k-1(xk)+∑i=0rf2(i)(xk,Sk-1(xk),S̃k-1(xk))(x-xk)i+1(i+1)!,
for x∈[xk,xk+1],k=0,1,…,n-1,S-1(x0)=y0,S̃-1(x0)=z0.Ramadan introduced in [19] the solution of the first-order delay differential equation of the form:(2.4)y′(x)=f(x,y(x),y(g(x))),a≤x≤b,y(a)=y0,y(x)=Φ(x),x∈[a*,a],a*<0,a*=inf⁡⁡{g(x):x∈[a,b]},
using the spline functions of the polynomial form, defined as(2.5)SΔ(x)=Sk(x)=Sk-1(xk)+∑i=0rMk(i)(x-xk)i+1(i+1)!,
where Mk(i)=f(i)(xk,Sk-1(xk),Sk-1(g(xk))), with S-1(x0)=y0,S-1(g(x0))=Φ(g(x0)).Ramadan in [21] considered the system of the initial value problem(2.6)y′′′(x)=f1(x,y,y′,z,z′),y(i)(x0)=y0(i),z′′′(x)=f2(x,y,y′,z,z′),z(i)(x0)=z0(i),
where f1,f2∈Cr([0,1]×ℝ(4)),i=0,1,2. The method in their work is based on polynomial splines, to approximate the solutions of the system.Ramadan et al. [20] presented an extension and generalization of the polynomial spline functions used in the case of [19], to approximate the solution of the first delay differential equation and to investigate the solution of the fractional ordinary differential equation given by(2.7)y(α)(x)=f(x,y(x)),a≤x≤b,y(a)=y0,α>1.The formulation of the method presented in [20] is based on the fractional generalization of Taylor’s theorem [22], which is presented in the following theoremTheorem 2.1.
Letα>0,n∈ℤ+, and f(x)∈C[α]+n+1([a,b]).  Then
(2.8)f(x)=∑k=-nn-1Da+α+kf(x0)Γ(α+k+1)(x-x0)α+k+Rn(x),
for all a≤x0<x≤b, where
(2.9)Rn(x)=Ja+α+nDa+α+nf(x)
is the remainder.Error estimation and convergence analysis of the proposed method was presented by Ramadan et al. [20]. In their work, they used α>1 and applied the method to solve two linear cases.The present paper is a sequel to this work [20], and we extend the application of spline functions method of polynomial form to a more general case incorporating nonlinearities as well. And we show that this analysis is also applicable in the case 0<α≤1, namely,(2.10)y(α)(x)=f(x,y(x)),a≤x≤b,y(a)=y0,α>0.
Let Δ be a uniform partition to the interval [a,b], defined by the nodes Δ:a=x0<x1<···<xk<xk+1<···<xn=b, where xk=x0+kh,k=0,1,…,n, and h=(b-a)/n.Define the form of fractional spline functionS(x) of polynomial form approximating the exact solution y by(2.11)SΔ(x)=Sk(x)=Sk-1(α-1)(xk)(x-xk)α-1Γ(α)+∑i=-n+1rMk(α+i-1)(x-xk)α+iΓ(α+i+1),n∈Z+,
where Mk(α)=f(α)(xk,Sk-1(xk)), with S-1(x0)=y0, for x∈[xk,xk+1].Definition 2.2.
Letα∈ℝ+. The operator Jaα, defined on L1[a,b] by
(2.12)Jaαf(x):=1Γ(α)∫axf(t)(x-t)1-αdt
for a≤x≤b, is called the Riemann-Lioville fractional integral operator of order α.
Forα=0, we set Ja0:=I, the identity operator.Definition 2.3.
The Caputo fractional derivative off(x), of order α>0 with a≥0, is defined as
(2.13)(Daαf)(x)=(Jam-αf(m))(x):=1Γ(m-α)∫axf(m)(t)(x-t)α+1-mdt
for m-1≤α≤m,m∈ℕ,x≥a,andf(x)∈C-1m.The Riemann-Liouville fractional operators may be extended to hold for large values ofα, so we denote α=⌊α⌋+β, where ⌊α⌋ is the integer part of α, and β=α-⌊α⌋, thus we give the following definition.Definition 2.4.
Ifα>0 and α∉ℕ, then we define
(2.14)Daαf=d⌊α⌋dx⌊α⌋Daβf=d⌊α⌋+1dx⌊α⌋+1Ja1-βf,
thus
(2.15)(Daαf)(x)=1Γ(m-α)dmdxm∫axf(t)(x-t)α+1-mdt
for any f∈Cm([a,b]), where m=⌊α⌋+1. If, on the other hand, α<0, then the definition becomes
(2.16)Daαf=Ja-αf.


## 3. Numerical Examples

To demonstrate the effectiveness of this scheme, we consider two kinds of systems: one is linear and the other is nonlinear. These examples are considered because closed form solutions are available for them, or they have also been solved using other numerical schemes. This allows one to compare the results obtained using this scheme with the analytical solution or the solutions obtained using other schemes.Example 3.1.
Consider the fractional differential equation(3.1)Dαy(x)=-y(x)+x4-12x3-3Γ(4-α)x3-α+24Γ(5-α)x4-α,0<α≤1,
with initial condition y(0)=0.The exact solution is(3.2)y(x)=x4-12x3.
The numerical results obtained, for different values of α, and for 0≤x≤1, are shown in Table 1 and Table 2, together with absolute errors, to illustrate the accuracy of the spline method of polynomial form. Figure 1(a) for α=0.5, Figure 1(b) for α=0.75, Figure 1(c) for α=0.9, and Figure 1(d) for α=1.0 show the approximate solutions compared to the exact solution, to better illustrate the accuracy of the method.Table 1
Solution of Example3.1 using α=0.5 and α=0.75.
xα=0.5α=0.75Appr. solutionAbsolute errorAppr. solutionAbsolute error0.00.00.00.00.00.10.04.0000×10-40.04.0000×10-40.2-3.5668×10-31.1668×10-3-2.8054×10-34.0543×10-40.3-5.6930×10-32.9299×10-4-5.8753×10-34.7533×10-40.4-6.8508×10-34.5080×10-4-6.7877×10-33.8767×10-40.52.2930×10-32.2930×10-39.7776×10-49.7776×10-40.62.8146×10-26.5464×10-32.6460×10-24.8601×10-30.78.3911×10-21.5311×10-28.1759×10-21.3159×10-20.81.8149×10-12.7885×10-21.8163×10-12.8034×10-20.93.3755×10-14.5954×10-23.4348×10-15.1882×10-21.05.6863×10-16.8632×10-25.8718×10-18.7178×10-2Table 2
Solution of Example3.1 using α=0.9, and α=1.
α=0.9α=1.0xAppr. solutionAbsolute errorAppr. solutionAbsolute error0.00.00.000.00.10.04.0000×10-4-1.0000×10-36.0000×10-40.2-2.4593×10-35.9337×10-5-2.9700×10-35.7000×10-40.3-5.4032×10-33.1688×10-6-5.6338×10-32.3383×10-40.4-6.0963×10-33.0367×10-4-5.9088×10-34.9117×10-40.51.3284×10-31.3284×10-31.5404×10-31.5404×10-30.62.5395×10-23.7951×10-32.4489×10-22.8891×10-30.77.7426×10-28.8255×10-37.3107×10-24.5075×10-30.81.7148×10-11.7883×10-21.5997×10-16.3700×10-30.93.2435×10-13.2755×10-23.0005×10-18.4533×10-31.05.5552×10-15.5518×10-25.1074×10-11.0736×10-2Approximate solutions for Example3.1.
(a)
Solution atα=0.5(b)
Solution atα=0.75(c)
Solution atα=0.9(d)
Solution atα=1.0Example 3.2.
Consider the following fractional Riccati equation:(3.3)Dαy(x)=-y(x)+1,1≤α<2,
subject to the initial condition y(0)=0.The exact solution, whenα=1, is  (3.4)y(x)=e2x-1e2x+1.
The numerical results obtained, for different values of α, and for 0≤x≤5, are shown in Table 3; the approximate solution for α=1 is compared to the exact solution, to illustrate the accuracy of the spline method of polynomial form.Table 3
Solution of Example3.2 using α=1.3, α=1.1, and α=1.
α=1.3α=1.1α=1xAppr. solutionAppr. solutionAppr. solutionAbsolute error0.00.000000.000000.000000.00.50.325380.410450.458333.7838×10-31.00.529500.677140.760956.4768×10-41.50.637090.818820.906038.7977×10-42.00.689870.890890.964373.3837×10-42.50.715080.927550.986601.5476×10-53.00.726990.946290.994978.4583×10-53.50.732590.955900.998116.4645×10-54.00.735220.960840.999293.6906×10-54.50.736460.963390.999731.8574×10-55.00.737030.964700.999908.7168×10-6Example 3.3.
Consider the following nonlinear fractional ordinary differential equation:(3.5)Dαy(t)=A(1-y)4,A∈R+,0<α≤1,
subject to the initial condition y(0)=β, where β is a real constant.This equation describes the cooling of a semi-infinite body by radiation, and the initial value problem has been solved numerically using the fractional difference method and Adomian decomposition method in [23].The exact solution, whenα=1,β=0, and A=1, is  (3.6)y(t)=1+3t-(1+6t+9t2)1/31+3t.In this paper, we use the spline function method of polynomial form, to solve the fractional differential equation (3.5), together with y(0)=β=0 and A=1. Table 4 shows the approximate solutions for (3.5) obtained for different values of α using the spline method of polynomial form. From the numerical results in Table 4, it is clear that the approximate solutions are in high agreement with the exact solutions, when α=1, and with those obtained in [23] using the fractional difference method and Adomian decomposition method.Table 4
Solution of Example3.3 using α=0.75, α=0.9, and α=1.
tα=0.75α=0.9α=1Appr. solutionAppr. solutionAppr. solutionAbsolute error0.00.000000.000000.000000.00.10.140540.102650.083839.3660×10-50.20.212900.172190.145131.1397×10-40.30.255360.222940.192721.1162×10-40.40.282150.261880.231221.0297×10-40.50.299770.292840.263299.3223×10-50.60.311650.318090.290598.4033×10-50.70.319800.339100.314257.5850×10-50.80.325440.356830.335046.8710×10-50.90.329390.371990.353526.2520×10-51.00.332150.385080.370105.7152×10-5


## 4. Conclusions

In this paper, we investigated the possibility of extending and generalizing the spline functions of polynomial fractional form given in Ramadan et al. [20] to be applicable for α≥1 as well as the case 0<α≤1. The method is tested by considering three test problems for three fractional ordinary differential equations. Two examples are of fractional order α, 0<α≤1 (Example 3.1 and 3), while Example 3.2 is of fractional order α where 1≤α<2. The obtained numerical results are in good agreement with the exact analytical solutions.



---

*Source: 426514-2012-03-08.xml*