Skip to main content

Theory and Modern Applications

A shifted Legendre spectral method for fractional-order multi-point boundary value problems

Abstract

In this article, a shifted Legendre tau method is introduced to get a direct solution technique for solving multi-order fractional differential equations (FDEs) with constant coefficients subject to multi-point boundary conditions. The fractional derivative is described in the Caputo sense. Also, this article reports a systematic quadrature tau method for numerically solving multi-point boundary value problems of fractional-order with variable coefficients. Here the approximation is based on shifted Legendre polynomials and the quadrature rule is treated on shifted Legendre Gauss-Lobatto points. We also present a Gauss-Lobatto shifted Legendre collocation method for solving nonlinear multi-order FDEs with multi-point boundary conditions. The main characteristic behind this approach is that it reduces such problem to those of solving a system of algebraic equations. Thus we can find directly the spectral solution of the proposed problem. Through several numerical examples, we evaluate the accuracy and performance of the proposed algorithms.

1 Introduction

Fractional calculus, as generalization of integer order integration and differentiation to its non-integer (fractional) order counterpart, has proved to be a valuable tool in the modeling of many phenomena in the fields of physics, chemistry, engineering, aerodynamics, electrodynamics of complex medium, polymer rheology, etc. [1–9]. This mathematical phenomenon allows to describe a real object more accurately than the classical integer methods. The most important advantage of using FDEs in these and other applications is their non-local property. It is well known that the integer order differential operator is a local operator, but the fractional-order differential operator is non-local. This means that the next state of a system depends not only upon its current state but also upon all of its historical states. This makes studying fractional order systems an active area of research.

Spectral methods are a widely used tool in the solution of differential equations, function approximation, and variational problems (see, e.g., [10, 11] and the references therein). They involve representing the solution to a problem in terms of truncated series of smooth global functions. They give very accurate approximations for a smooth solution with relatively few degrees of freedom. This accuracy comes about because the spectral coefficients, a n , typically tend to zero faster than any algebraic power of their index n. According to different test functions in a variational formulation, there are three most common spectral schemes, namely, the collocation, Galerkin and tau methods. Spectral methods have been applied successfully to numerical simulations of many problems in science and engineering, see [12–15].

Spectral tau method is similar to Galerkin methods in the way that the differential equation is enforced. However, none of the test functions need to satisfy the boundary conditions. Hence, a supplementary set of equations are needed to apply the boundary conditions (see, e.g., [10] and the references therein). In the collocation methods [16, 17], there are basically two steps to obtain a numerical approximation to a solution of differential equation. First, an appropriate finite or discrete representation of the solution must be chosen. This may be done by polynomials interpolation of the solution based on some suitable nodes such as the well known Gauss or Gauss-Lobatto nodes. The second step is to obtain a system of algebraic equations from discretization of the original equation.

Doha et al. [18] proposed an efficient spectral tau and collocation methods based on Chebyshev polynomials for solving multi-term linear and nonlinear FDEs subject to initial conditions. Furthermore, Bhrawy et al. [19] proved a new formula expressing explicitly any fractional-order derivatives of shifted Legendre polynomials of any degree in terms of shifted Legendre polynomials themselves, and the multi-order fractional differential equation with variable coefficients is treated using the shifted Legendre Gauss-Lobatto quadrature. Saa-datmandi and Dehghan [20] and Doha et al. [21] derived the shifted Legendre and shifted Chebyshev operational matrices of fractional derivatives and used together spectral methods for solving FDEs with initial and boundary conditions respectively. In [18, 22, 23], the authors have presented spectral tau method for numerical solution of some FDEs. Recently, Esmaeili and Shamsi [24] introduced a direct solution technique for obtaining the spectral solution of a special family of fractional initial value problems using a pseudo-spectral method, and Pedas and Tamme [25] developed the spline collocation method for solving FDEs subject to initial conditions.

Multi-point boundary value problems appear in wave propagation and in elastic stability. For examples, the vibrations of a guy wire of a uniform cross-section, composed of m sections of different densities can be molded as a multipoint boundary value problem. The multi-point boundary conditions can be understood in the sense that the controllers at the end points dissipate or add energy according to censors located at intermediate points. Rehman and Khan [26] introduced a numerical scheme, based on the Haar wavelet operational matrices of integration for solving linear multi-point boundary value problems for fractional differential equations with constant and variable coefficients. Moreover, Rehman and Khan [27] derived a Legendre wavelet operational matrix of fractional order integration and applied it to solve FDEs with initial and boundary value conditions. In fact, the numerical solutions of multi-point boundary value problems for FDEs have received much less attention. In this study, we focus on providing a numerical scheme, based on spectral methods, to solve multi-point boundary conditions for linear and nonlinear FDEs.

In this article, we are concerned with the direct solution technique for solving the multi-term FDEs subject to multi-point boundary conditions, using the shifted Legendre tau (SLT) approximation. This technique requires a formula for fractional-order derivatives of shifted Legendre polynomials of any degree in terms of shifted Legendre polynomials themselves which is proved in Bhrawy et al. [19]. Another aim of this article is to propose a suitable way to approximate the multi-term FDEs with variable coefficients subject to multi-point boundary conditions, using a quadrature shifted Legendre tau (Q-SLT) approximation, this approach extended the tau method for variable coefficients FDEs by approximating the weighted inner products in the tau method by using the shifted Legendre-Gauss-Lobatto quadrature.

Moreover the treatment of the nonlinear multi-order fractional multi-point value problems; with leading fractional-differential operator of order ν (m - 1 < ν ≤ m), on the interval [0, t] is described, by shifted Legendre collocation (SLC) method to find the solution u N (x). More precisely, such a technique is performed in two successive steps, the first one to collocate the nonlinear FDE specified at (N - m + 1) points; we use the (N - m + 1) nodes of the shifted Legendre-Gauss-Lobatto interpolation on the interval [0, t], these equations together with m equations comes form m multi-point boundary conditions generate (N + 1) nonlinear algebraic equations, in general this step is cumbersome, and the second one to solve these nonlinear algebraic equations using Newton's iterative method. The structure of this technique is similar to that of the two-step procedure proposed in [18, 20] for the initial boundary value problem and in [21] for the two-point boundary value problem. To the best of the our knowledge, such approaches have not been employed for solving fractional differential equations with multi-point boundary conditions. Finally, the accuracy of the proposed algorithms are demonstrated by test problems.

The remainder of the article is organized as follows. In the following section, we introduce some notations and summarize a few mathematical facts used in the remainder of the article. In Section 3, we consider the SLT method for the multi-term FDEs subject to multi-point boundary conditions, and in Section 4, we construct an algorithm for solving linear multi-order FDEs with variable coefficients subject to multi-point boundary conditions by using the Q-SLT method. In Section 5, we study the general nonlinear FDEs subject to multi-point boundary conditions by SLC method. In Section 6, we present some numerical results. Finally, some concluding remarks are given in Section 7.

2 Preliminaries and notations

2.1 The fractional derivative in the Caputo sense

In this section, we first review the basic definitions and properties of fractional integral and derivative for the purpose of acquainting with sufficient fractional calculus theory. Many definitions and studies of fractional calculus have been proposed in the past two centuries (see, e.g., [8]). The two most commonly used definitions are the Riemann-Liouville operator and the Caputo operator. We give some definitions and properties of the fractional calculus.

Definition 2.1 The Riemann-Liouville fractional integral operator of order μ (μ ≥ 0) is defined as

J μ f ( x ) = 1 Γ ( μ ) ∫ 0 x ( x - t ) μ - 1 f ( t ) d x , μ > 0 , x > 0 , J 0 f ( x ) = f ( x ) .
(1)

Definition 2.2 The Caputo fractional derivatives of order μ is defined as

D μ f ( x ) = J m - μ D m f ( x ) = 1 Γ ( m - μ ) ∫ 0 x ( x - t ) m - μ - 1 d m d t m f ( t ) d t , m - 1 < μ ≤ m , x > 0 ,
(2)

where Dmis the classical differential operator of order m.

For the Caputo derivative we have

D μ x β = 0 , for β ∈ N 0 and β < μ , Γ ( β + 1 ) Γ ( β + 1 - μ ) x β - μ , for β ∈ N 0 and β ≥ μ or β ∉ N and β > μ .
(3)

We use the ceiling function ⌈μ⌉ to denote the smallest integer greater than or equal to μ, and the floor function ⌊μ⌋ to denote the largest integer less than or equal to μ. Also N = {1,2,...} and N0 = {0,1,2,...}. Recall that for μ ∈ N, the Caputo differential operator coincides with the usual differential operator of an integer order.

2.2 Properties of shifted Legendre polynomials

Let L i (x) be the standard Legendre polynomial of degree i, then we have that

L i ( - x ) = ( - 1 ) i L i ( x ) , L i ( - 1 ) = ( - 1 ) i , L i ( 1 ) = 1 .
(4)

Let w(x) = 1, then we define the weighted space L w 2 ( - 1 , 1 ) ≡ L 2 ( - 1 , 1 ) as usual, equipped with the following inner product and norm

( u , v ) = ∫ - 1 1 u ( x ) v ( x ) w ( x ) d x , u = ( u , u ) 1 / 2 .

The set of Legendre polynomials forms a complete L2(-1, 1)-orthogonal system, and

L i ( x ) 2 = h i = 2 2 i + 1 .
(5)

If we define the shifted Legendre polynomial of degree i by L t , i ( x ) = L i ( 2 x t - 1 ) ,t>0, then the analytic form of the shifted Legendre polynomials Lt,i(x) of degree i is given by

L t , i ( x ) = ∑ k = 0 i ( - 1 ) i + k ( i + k ) ! x k ( i - k ) ! ( k ! ) 2 t k .
(6)

Next, let w t (x) = w(x) = 1, then we define the weighted space L w t 2 [ 0 , t ] in the usual way, with the following inner product and norm

( u , v ) w t = ∫ 0 t u ( x ) v ( x ) w t ( x ) d x , u w t = ( u , u ) w t 1 / 2 .
(7)

The set of shifted Legendre polynomials forms a complete L w t 2 [ 0 , t ] -orthogonal system. According to (5), we have

L t , i ( x ) w t 2 = t 2 h i = h t , i .
(8)

The shifted Legendre expansion of a function u ( x ) ∈ L w t 2 [ 0 , t ] is

u ( x ) = ∑ j = 0 ∞ a j L t , j ( x ) ,

where the coefficients a j are given by

a j = 1 h t , j ∫ 0 t u ( x ) L t , j ( x ) d x , j = 0 , 1 , 2 , … .
(9)

In practice, only the first (N + 1)-terms shifted Legendre polynomials are considered. Hence we can write

u N ( x ) ≃ ∑ j = 0 N a j L t , j ( x ) .
(10)

Lemma 2.1 Let Lt,i(x) be a shifted Legendre polynomials then

D μ L t , i ( x ) = 0 , i = 0 , 1 , … , μ - 1 , μ > 0 .
(11)

where

D μ f ( x ) = 1 Γ ( μ - μ ) ∫ 0 x ( x - t ) μ - μ - 1 f ( μ ) ( t ) d t , μ - 1 < μ ≤ μ ,
(12)

is the usual Caputo fractional derivative of order μ of the function f(x) and ⌈μ⌉ denote the smallest integer greater than or equal to μ.

Proof. This lemma can be easily proved by using (6).

Next, the fractional derivative of order μ in the Caputo sense for the shifted Legendre polynomials expanded in terms of shifted Legendre polynomials can be represented formally in the following theorem.

Theorem 2.2 The fractional derivative of order μ in the Caputo sense for the shifted Legendre polynomials is given by

D μ L t , i ( x ) = ∑ l = 0 ∞ Π μ ( i , l ) L t , l ( x ) , i = μ , μ + 1 , … ,
(13)

where

Π μ ( i , l ) = ∑ k = μ i ( - 1 ) i + k ( 2 l + 1 ) ( i + k ) ! ( k - l - μ + 1 ) l t μ ( i - k ) ! k ! Γ ( k - μ + 1 ) ( k - μ + 1 ) l + 1 .
(14)

(For the proof, see, [19].)

3 A shifted Legendre tau method

Prompted by the application of multi-point boundary value problems to applied mathematics and physics, these problems have provoked a great deal of attention by many authors (see, for instance, [28–34] and references therein). In pursuit of this, we use the shifted Legendre tau method to solve numerically the following FDE:

D ν u ( x ) + ∑ i = 1 r - 1 γ i D β i u ( x ) + γ r u ( x ) = g ( x ) , in x ∈ I = [ 0 , t ] ,
(15)

subject to the multi-point boundary conditions

u ( q 0 ) ( 0 ) = s 0 , u ( q i ) ( x i ) = s i , u ( q m - 1 ) ( t ) = s m - 1 , x i ∈ 0 , t , i = 1 , 2 , … , m - 2 , 0 ≤ q 0 , q 1 , … , q m - 1 ≤ m - 1 ,
(16)

where 0 < β1 < β2 < ⋯ < βr-1< ν, m - 1 < ν ≤ m are constants. Moreover, Dνu(x) = u(ν)(x) denotes the Caputo fractional derivative of order ν for u(x), γ i , i = 1, 2,..., r are constant coefficients, s0,..., sm-1are given constants and g(x) is a given source function.

The existence and uniqueness of solutions of FDEs have been studied by the authors of [33–36].

Let us first introduce some basic notation that will be used in the sequel. We set

S N [ 0 , t ] = s pan L t , 0 ( x ) , L t , 1 ( x ) , … , L t , N ( x ) ,
(17)

then the shifted Legendre-tau approximation to (15) subject to (16) is to find u N ∈ S N [0,t] such that

D ν u N , L t , k ( x ) w t + ∑ i = 1 r - 1 γ i D β i u N , L t , k ( x ) w t + γ r u N , L t , k ( x ) w t = g , L t , k ( x ) w t , N , k = 0 , 1 , … , N - m ,
(18)

and

u N ( q 0 ) ( 0 ) = s 0 , u N ( q i ) ( x i ) = s i , u N ( q m - 1 ) ( t ) = s m - 1 , x i ∈ 0 , t , i = 1 , 2 , … , m - 2 .
(19)

Here, the main idea is that we employ a truncated series of shifted Legendre polynomials to approximate the unknown function, and the fractional-differential operator of this truncated series is expanded by shifted Legendre polynomials themselves (see, Theorem 2.2), and then the coefficients of this series are taken to be equal to the coefficients of the right-hand side expansion. Let us denote

u N ( x ) = ∑ j = 0 N a j L t , j ( x ) , a = ( a 0 , a 1 , … , a N ) T , g k = ( g , L t , k ) w t , k = 0 , 1 , … , N - m , g = ( g 0 , g 1 , … , g N - m , s 0 , s 1 , … , s m - 1 ) T ,

then (18), (19) can be written as

∑ j = 0 N a j D ν L t , j ( x ) , L t , k ( x ) w t + ∑ i = 1 r - 1 γ i D β i L t , j ( x ) , L t , k ( x ) w t + γ r L t , j ( x ) , L t , k ( x ) w t = g , L t , k ( x ) w t , k = 0 , 1 , … , N - m ,
(20)
∑ j = 0 N a j L t , j ( q 0 ) ( 0 ) = s 0 , ∑ j = 0 N a j L t , j ( q i ) ( x i ) = s i , i = 1 , 2 , … , m - 2 , ∑ j = 0 N a j L t , j ( q m - 1 ) ( t ) = s m - 1 .
(21)

We define the following square matrices

A = ( a k j ) 0 ≤ k , j ≤ N , B i = ( b k j i ) 0 < k , j < N ; i = 1 , 2 , … , r - 1 , C = ( c k j ) 0 ≤ k , j ≤ N , D = ( d k j ) 0 ≤ k , j ≤ N .

Therefore (20) and (21), are equivalent to the matrix equation

A + ∑ i = 1 r - 1 γ i B i + γ r C + D a = g .
(22)

where the nonzero elements of matrices A, Bi, i = 1, 2,..., r - 1, C, and D are given explicitly in the following theorem.

Theorem 3.1 If we denote a k j = ( D ν L t , j ( x ) , L t , k ( x ) ) w t , b k j i = ( D β i L t , j ( x ) , L t , k ( k ) ) w t , c k j = ( L t , j ( x ) , L t , k ( x ) ) w t , for 0 ≤ k ≤ N-m, 0 ≤ j ≤ N, then the nonzero elements of (a kj ), ( b k j i ) , (c kj ) are given by

a k j = h t , k Π v ( j , k ) , k = 0 , 1 , … , N - m , j = m , m + 1 , … , N ,
(23)
b k j i = h t , k Π β i ( j , k ) , k = 0 , 1 , … , N - m , j = β i , β i + 1 , … , N , i = 1 , 2 , … , r - 1 ,
(24)
c k k = h t , k , k = 0 , 1 , … , N - m .
(25)

Moreover, if we denote by d kj , 0 ≤ k, j ≤ N the elements of the square matrix corresponding to the multi-point boundary conditions, then the nonzero elements of d kj are given by

d N - m + 1 , j = ( - 1 ) ( j - q 0 ) Γ ( j + q 0 + 1 ) t q 0 Γ ( j - q 0 + 1 ) Γ ( q 0 + 1 ) , j = 0 , 1 , … , N , d k j = ∑ l = q k - N + m - 1 j ( - 1 ) j + l Γ ( j + l + 1 ) x k - N + m - 1 l - q k - N + m - 1 t l Γ ( j - l + 1 ) Γ ( l + 1 ) Γ ( l - q k - N + m - 1 + 1 ) , k = N - m + 2 , N - m + 3 , … , N - 1 , d N , j = Γ ( j + q m - 1 + 1 ) t q m - 1 Γ ( j - q m - 1 + 1 ) Γ ( q m - 1 + 1 ) , j = 0 , 1 , … , N ,
(26)

Proof. The square matrix A is defined from the bilinear form:

a k j = D ν L t , j ( x ) , L t , k ( x ) w t , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N , 0 , k = N - m + 1 , … , N , j = 0 , 1 , … , N ,

and its nonzero elements are

a k j = D ν L t , j ( x ) , L t , k ( x ) w t = ∫ 0 t D ν L t , j ( x ) L t , k ( x ) w t ( x ) d x , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N ,

Immediately, if we set μ = ν in Theorem 2.2, and we consider the only the first (N + 1)-terms shifted Legendre polynomials in relation (13), then we obtain

a k , j = ∫ 0 t ∑ l = 0 N Π ν ( j , l ) L t , l ( x ) L t , k ( x ) w t ( x ) d x , k = 0 , 1 , … , N - m , j = ν , ν + 1 , … , N ,

where Π ν (j, l) is given in (14). By the orthogonality of the shifted Legendre polynomials (8), we immediately with direct calculation observe that the nonzero elements of a kj can be given as (23). The matrix Bifor i = 1, 2,..., r - 1 and C defined by the bilinear forms:

b k j i = D β i L t , j ( x ) , L t , k ( x ) w t , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N , 0 , otherwise ,
c k j = L t , j ( x ) , L t , k ( x ) w t , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N , 0 , otherwise ,

then due to (7) and making use of the orthogonality relation of shifted Legendre polynomials (8), and after some manipulation, one can show that the nonzero elements of b k j i ;i=1,2,…,m-1, and c kj are given explicitly as (24) and (25), respectively.

The matrix D corresponding to the treatment of multi-point boundary conditions (21), its elements can be written as

d k j = 0 , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N , D ( q 0 ) L L , j ( 0 ) , k = N - m + 1 , j = 0 , 1 , … , N , D ( q i ) L L , j ( x i ) , k = N - m + 2 , N - m + 3 , … , N - 1 , j = 0 , 1 , … , N , D ( q m - 1 ) L L , j ( t ) , k = N , j = 0 , 1 , … , N ,

or in more convenient form

d k j = 0 , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N , D ( q k - N + m - 1 ) L t , j ( 0 ) , k = N - m + 1 , j = 0 , 1 , … , N , D ( q k - N + m - 1 ) L t , j ( x k - N + m - 1 ) , k = N - m + 2 , N - m + 3 , … , N - 1 , j = 0 , 1 , … , N , D ( q k - N + m - 1 ) L t , j ( L ) , k = N , j = 0 , 1 , … , N ,
(27)

If we use the analytical form of shifted Legendre polynomial of degree i (6) and in virtue of (4), then it can be easily shown that

D q 0 L t , j ( 0 ) = ( - 1 ) j - q 0 Γ ( j + q 0 + 1 ) t q 0 Γ ( j - q 0 + 1 ) Γ ( q 0 + 1 ) ,
(28)
D q i L t , j ( x i ) = ∑ l = q i j ( - 1 ) j + l Γ ( j + l + 1 ) x i l - q i t l Γ ( j - l + 1 ) Γ ( l + 1 ) Γ ( l - q i + 1 ) ,
(29)
D q m - 1 L t , j ( t ) = Γ ( j + q m - 1 + 1 ) t q m - 1 Γ ( j - q m - 1 + 1 ) Γ ( q m - 1 + 1 ) .
(30)

The substitution by (28), (29), and (30) into (27), gives the nonzero elements of d kj as mentioned in (26).

4 A quadrature shifted Legendre tau method

In this section, we use the Q-SLT method to solve numerically the following FDE with variable coefficients

D ν u ( x ) + ∑ i = 1 r - 1 γ i ( x ) D β i u ( x ) + γ r ( x ) u ( x ) = g ( x ) , x in I = [ 0 , t ] ,
(31)

subject to the multi-point boundary conditions (16).

It is worthy to mention that the pure spectral-tau technique is rarely used in practice, since for variable coefficient terms and a general right-hand side function g one is unable to compute exactly its representation by Legendre polynomials. In fact, the so-called pseudospectral-tau (quadrature-tau) method is used to treat the variable coefficient terms and right-hand side, (see for instance, Funaro [17]. In fact, Doha et al. [37] used a quadrature Jacobi dual-Petrov-Galerkin method for solving some ordinary differential equations with variable coefficients but by considering their integrated forms. Moreover, Bhrawy et al. [19] introduced a quadrature shifted Legendre tau method for developing a direct solution technique for solving multi-order fractional differential equations with variable coefficients with respect to initial conditions.

If we denote by xN,j(xt,N,j), 0 ≤ j ≤ N, and ϖ N,j (ϖt,N,j), (0 ≤ j ≤ N), the nodes and Christoffel numbers of the standard (respectively shifted) Legendre-Gauss-Lobatto quadratures on the intervals [-1, 1] and [0, t], respectively. Then one can easily show that

x t , N , j = t 2 ( x N , j + 1 ) , ϖ t , N , j = t 2 ϖ N , j , 0 ≤ j ≤ N ,
(32)

and if S N [0, t] denotes the set of all polynomials of degree at most N, then it follows that for any ϕ ∈ S2N+ 1[0, t],

∫ 0 t w t ( x ) ϕ ( x ) d x = t 2 ∫ - 1 1 w ( x ) ϕ t 2 ( x + 1 ) d x = t 2 ∑ j = 0 N ϖ N , j ϕ t 2 ( x N , j + 1 ) = ∑ j = 0 N ϖ t , N , j ϕ ( x t , N , j ) .
(33)

According to Legendre-Gauss-Lobatto quadrature, x N,j are the zeros of (1 - x2)∂ x L N , and

ϖ N , j = 2 N ( N + 1 ) 1 ( L N ( x N , j ) ) 2 , 0 ≤ j ≤ N .

We define the discrete inner product and norm as follows:

( u , v ) w t , N = ∑ k = 0 N u ( x t , N , k ) v ( x t , N , k ) ϖ t , N , k , u w t , N = ( u , u ) w t , N .
(34)

Obviously,

( u , v ) w t , N = ( u , v ) w t ∀ u , v ∈ S 2 N - 1 .
(35)

Thus, for any u ∈ S N [0, t], the norms u w t , N and u w t coincide.

Associating with this quadrature rule, we denote by I N L t the shifted Legendre-Gauss-Lobatto interpolation,

I N L t u ( x t , N , j ) = u ( x t , N , j ) , 0 ≤ j ≤ N .

The quadrature tau method for (31) subject to (16) is to find u N ∈ S N [0, t] such that

D ν u N , L t , k ( x ) w t + ∑ i = 1 r - 1 γ i ( x ) D β i u N , L t , k ( x ) w t , N + γ r ( x ) u N , L t , k ( x ) w t , N = g , L t , k ( x ) w t , N , k = 0 , 1 , … , N - m ,
(36)

and

∑ j = 0 N a j L t , j ( q 0 ) ( 0 ) = s 0 , ∑ j = 0 N a j L t , j ( q i ) ( x i ) = s i , i = 1 , 2 , … , m - 2 , ∑ j = 0 N a j L t , j ( q m - 1 ) ( t ) = s m - 1 .
(37)

where (.,.) is the discrete inner product defined in (34). Let us denote

u N ( x ) = ∑ j = 0 N a j L t , j ( x ) , a = ( a 0 , a 1 , … , a N ) T ,

then equation (36) can be written as

∑ j = 0 N a j D ν L t , j ( x ) , L t , k ( x ) w t + ∑ i = 1 r - 1 γ i ( x ) D β i L t , j ( x ) , L t , k ( x ) w t , N + γ r ( x ) L t , j ( x ) , L t , k ( x ) w t , N = g , L t , k ( x ) w t , N , k = 0 , 1 , … , N - m ,
(38)

Now it is not difficult to show, by using (13), that the variational formulation (38) is equivalent to

∑ j = 0 N a j D ν L t , j ( x ) , L t , k ( x ) w t + ∑ i = 1 r - 1 γ i ( x ) ∑ l = 0 N Π β i ( j , l ) L t , l ( x ) , L t , k ( x ) w t , N + γ r ( x ) L t , j ( x ) , L t , k ( x ) w t , N = g , L t , k ( x ) w t , N , k = 0 , 1 , … , N - m ,
(39)

subject to (37) which may be written in more convenient form (27). Let us denote

g k = ( g , L t , k ) w t , N , k = 0 , 1 , … , N - m , g = ( g 0 , g 1 , … , g N - m , s 0 , … , s m - 1 ) T , E i = ( e k j i ) 0 < k , j < N ; i = 1 , 2 , … , r - 1 , F = ( f k j ) 0 < k , j < N ,

where

e k j i = γ i ( x ) ∑ l = 0 N Π β i ( j , l ) L t , l ( x ) , L t , k ( x ) w t , N , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N i = 1 , 2 , … , r - 1 , 0 , otherwise , f k j = γ r ( x ) L t , j ( x ) , L t , k ( x ) w t , N , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N , 0 , otherwise .

Thereby, we can write (39) and its multi-point boundary conditions in the following matrix algebraic system form

A + ∑ i = 1 r - 1 E i + F + D a = g ,
(40)

where A and D are given in Theorem 3.1, while Ei; i = 1, 2,..., r - 1, and F are given explicitly in the following theorem.

Theorem 4.1 If we denote e k j i = ( γ i ( x ) D β i L t , j ( x ) , L t , k ( x ) ) w t , N , k = 0, 1, ..., N - m, j = 0,1,..., N, i = 1,2,..., r - 1, and f k j = ( γ r ( x ) L t , j ( x ) , L t , k ( x ) ) w t , N , k = 0,1,..., N - m, j = 0,1,..., N,, then the nonzero elements of ( e k j i ) ; i = 1, 2,..., r - 1 and (c kj ) are given by

e k j i = ∑ p = 0 N ϖ t , N , p γ i ( x t , N , p ) ∑ l = 0 N Π β i ( j , l ) L t , l ( x t , N , p ) L t , k ( x t , N , p ) , k = 0 , 1 , … , N - m , j = β i , β i + 1 , … , N , i = 1 , 2 , … , r - 1 , f k j = ∑ p = 0 N ϖ t , N , p γ r ( x t , N , p ) L t , j ( x t , N , p ) L t , k ( x t , N , p ) , k = 0 , 1 , … , N - m , j = 0 , 1 , … , N .

Proof. The proof of this theorem can be accomplished by following the same procedure used in proving Theorem 3.1.

Remark 4.2 In the case of γ i (x) ≠ 0, i = 1, ..., r, the linear system (40), can be solved by forming explicitly the LU factorization; i.e., A+ ∑ i = 1 r - 1 E i +F+D=LU. The expense of calculating LU factorization is O(N3) operations and the expense of solving the linear system (35), provided that the factorization is known, is O(N2).

5 A shifted Legendre collocation method for nonlinear multi-order FDE

Since the collocation methods approximate differential equations in physical space, it is very easy to implement and adaptable to various of problems, including variable coefficient and nonlinear differential equations (see, for instance [16]). In this section, we use the shifted Legendre collocation method to numerically solve the nonlinear multi-order FDE with multi-point boundary conditions, namely

D ν u ( x ) = F ( x , u ( x ) , D δ 1 u ( x ) , … , D δ k u ( x ) ) , x ∈ I ,
(41)

subject to (16), where m - 1 < ν ≤ m, 0 < δ1 < δ2 < ··· < δ k < ν.

We approximate the solution in the form u N ( x ) = ∑ j = 0 N a j L t , j ( x ) , then, making use of formula (13) enables us to express explicitly the derivatives D ν u ( x ) , D δ 1 u ( x ) ,…, D δ k u ( x ) in terms of the expansion coefficients a j and the shifted Legendre polynomials.

The shifted Legendre collocation method for (41) is to find u N (x) ∈ S N [0, t] such that

∑ j = 0 N a j D ν L t , j ( x t , N - m + 1 , k ) = F x t , N - m + 1 , k , ∑ j = 0 N a j L t , j ( x t , N - m + 1 , k ) , ∑ j = 0 N a j D δ 1 L t , j ( x t , N - m + 1 , k ) , … , ∑ j = 0 N a j D δ k L t , j ( x t , N - m + 1 , k ) , k = 0 , 1 , … , N - m .
(42)

The previous equation means (41) is satisfied exactly at the collocation points x L , N - m + 1 , k ( α , β ) , k = 0, 1,..., N - m. equation (42) constitutes a system of N - m + 1 nonlinear algebraic equations in the unknown expansion coefficients a j ; j = 0,1,..., N, also the treatment of the multi-point boundary condition (16) constitutes m linear algebraic equations in the unknown expansion coefficients a j ; j = 0,1,..., N (see, equation (21)), the combination of these two algebraic systems can be solved by using any standard iteration technique, like Newton's iteration method.

Remark 5.1 The algorithms introduced in this article can be well suited for handling general linear and nonlinear fractional-order differential equations with initial or two-point boundary conditions.

6 Numerical results

In this section, we give some numerical results obtained by using the algorithms presented in the previous sections.

We consider the following examples.

Example 1 Consider the linear fractional differential equation

D ν u ( x ) + a D ν 2 u ( x ) + b D ν 1 + c u ( x ) = f ( x ) , 0 < ν 1 ≤ 1 , 1 < ν 2 ≤ 2 , 3 < ν ≤ 4 ,
(43)

and

f ( x ) = 2 a Γ ( 3 - ν 2 ) x 2 - ν 2 + 2 b Γ ( 3 - ν 1 ) x 2 - v 1 - b Γ ( 2 - ν 1 ) x 1 - ν 1 + c ( x 2 - x ) ,

subject to the following three types of four-point boundary conditions:

  • The first type:

    u ( 0 ) = 0 , u ′ ( 0 . 25 ) = - 0 . 5 , u ′ ( 0 . 50 ) = 2 , u ( 1 ) = 0 .
    (44)
  • The second type:

    u ″ ( 0 ) = 2 , u ′ ( 0 . 35 ) = - 0 . 3 , u ′ ( 0 . 75 ) = 0 . 5 , u ″ ( 1 ) = 2 .
    (45)
  • The third type:

    u ( 0 ) = 0 , u ′ ( 0 . 35 ) = - 0 . 3 , u ″ ( 0 . 75 ) = 2 , u ‴ ( 1 ) = 0 .
    (46)

The analytic solution of this problem is u(x) = x2 - x. Regarding problem (43) subject to the three types of multi-point boundary conditions (44)-(46), we study two different cases of a, b, c, ν 1, ν 2 , and ν.

  • Case I: a = 1, b = 1, c = 1, ν1 = 0.77, ν2 = 1.44, and ν = 3.91.

  • Case II: a = 6, b = -3, c = -4, ν1 = 0.5, ν2 = 1.5, and ν = 3.5.

Table 1 lists the maximum absolute errors using SLT method, with various choices of N, for solving equation (43) subject to the first type of multi-point boundary conditions (44) and the two previous cases. While in Table 2, we present the maximum absolute errors using SLT method, with various choices of N, for equation (43) subject to the second type of multi-point boundary conditions (45). Moreover, the maximum absolute errors, using SLT method for equation (43) subject to the third type of multi-point boundary conditions (46) and the two cases of a, b, c, ν1, ν2, ν with various choices of N are presented in Table 3.

Table 1 Maximum absolute error using SLT of (43), (44) for Case I and Case II and various choices of N
Table 2 Maximum absolute error using SLT of (43)-(45) for Case I and Case II and various choices of N
Table 3 Maximum absolute error using SLT of (43)-(46) for Case I and Case II and various choices of N

Example 2 Consider the initial value problem of fractional-order

D ν u ( x ) + u ( x ) = x 2 + 2 Γ ( 3 - ν ) x 2 - ν , u ( 0 ) = 0 ,
(47)

whose exact solution is given by u(x) = x2.

In the case of ν = 0.01, 0.10, 0.50, 0.99, the maximum absolute errors of u(x) - u N (x) for the initial value problem (47) by using the SLT method with various choices of N is shown in Figure 1.

Figure 1
figure 1

Maximum absolute error of u ( x ) - u N ( x ) for different values of ν and various choices of N for Example 2.

Example 3 Consider the boundary value problem for fractional differential equation with variable coefficients

D ‴ u ( x ) + sin ( x ) D 1 2 u ( x ) + e 3 x u ( x ) = f ( x ) ,
(48)

subject to the following two types of three-point boundary conditions:

  • The first type:

    u ′ ( 0 ) = 0 , u ( 0 . 5 ) = - 1 256 , u ′ ( 1 ) = 1 ,
    (49)
  • The second type:

    u ( 0 ) = 0 , u ′ ( 0 . 5 ) = - 3 64 , u ″ ( 1 ) = 14 ,
    (50)

and

f ( x ) = 336 x 6 - 210 x 5 + e 3 x ( x 8 - x 7 ) + sin ( x ) π 32768 6435 x 15 2 - 2048 429 x 13 2 .

One can easily check that u(x) = x8 - x7 is the unique analytical solution.

In Table 4, we list the L w L 2 , L w L ∞ , and H w L 1 errors of (48) subject to the first type of boundary conditions, using the Q-SLT method with various choices of N. It is notice that only a small number of shifted Legendre polynomials is needed to obtain a satisfactory result. The results of L w L 2 , L w L ∞ , and H w L 1 errors of (48) subject to the second type of boundary conditions is given in Table 5. The approximate solution obtained by the Q-SLT method at N = 8 for (48) with the second type of boundary conditions is shown in Figure 2 to make it easier to compare with the analytic solution.

Table 4 L w L 2 , L w L ∞ , and H w L 1 errors using Q-SLT method of (48), (49) for N = 4, 8, 12, 16
Table 5 L w L 2 , L w L ∞ , and H w L 1 errors using Q-SLT method of (48)-(50) for N = 4, 8, 12, 16
Figure 2
figure 2

Comparison of the approximate solution u N ( x ) at N = 8 and u ( x ) for Example 3.

Example 4 In this example, we consider the following nonlinear differential equation

D 2 . 2 u ( x ) + D β u ( x ) + D α u ( x ) + u ( x ) 3 = f ( x ) ,
(51)
0 < α ≤ 1 , 1 < β ≤ 2 ,

where

f ( x ) = 2 x 0 . 8 Γ ( 1 . 8 ) + 2 x 3 - β Γ ( 4 - β ) + 2 x 3 - α Γ ( 4 - α ) + x 9 27 ,

subject to the following three types of three point boundary conditions

  • The first type:

    u ( 0 ) = 0 , u ′ ( 0 . 6 ) = 9 25 , u ( 1 ) = 1 3 ,
    (52)
  • The second type:

    u ″ ( 0 ) = 0 , u ′ ( 0 . 6 ) = 9 25 , u ( 1 ) = 1 3 ,
    (53)
  • The third type:

    u ( 0 ) = 0 , u ′ ( 0 . 7 ) = 49 100 , u ″ ( 1 ) = 2 .
    (54)

The exact solution of (51) is u ( x ) = x 3 3 .

In this example we take α = 1.25, and β = 0.75. The absolute errors of u(x) - u N (x) for (51) subject to (52) and (53) for N = 20 are shown in Figures 3 and 4, respectively. Absolute errors between exact and numerical solutions of (51) subject to (54), using the SLC method for various choices of N, are introduced in Table 6.

Figure 3
figure 3

Absolute value of u ( x ) - u N ( x ) for the first type of boundary conditions at N = 20 for Example 4.

Figure 4
figure 4

Absolute value of u ( x ) - u N ( x ) for the second type of boundary conditions at N = 20 for Example 4.

Table 6 Absolute error of u(x) - u N (x) using SLC of (51) subject to the third type of boundary conditions for various choices of N

7 Conclusion

We have presented some accurate direct solvers for the multi-term linear fractional-order differential equations with multi-point boundary conditions by using shifted Legendre tau approximation. The fractional derivatives are described in the Caputo sense. Moreover, we developed a new approach implementing shifted Legendre tau method in combination with the shifted Legendre collocation technique for the numerical solution of fractional-order differential equations with variable coefficients. To our knowledge, this is the first study concerning the Legendre spectral methods for solving multi-term FDEs with multi-point boundary conditions.

In this article, we proposed a numerical algorithm to solve the general nonlinear high-order multi-point FDEs, using Gauss-collocation points and approximating directly the solution using the shifted Legendre polynomials. The numerical results given in the previous section demonstrate the good accuracy of these algorithms. Moreover, the algorithms introduced in this article can be well suited for handling general linear and nonlinear m th-order differential equations with m initial conditions. The solutions obtained using the suggested algorithms show that these algorithms with a small number of shifted Legendre polynomials are giving a satisfactory result. Illustrative examples presented to demonstrate the validity and applicability of the algorithms.

References

  1. Agarwal RP, Andrade B, Cuevas C: Weighted pseudo-almost periodic solutions of a class of semilinear fractional differential equations. Nonlinear Anal Real World Appl 2010, 11: 3532–3554. 10.1016/j.nonrwa.2010.01.002

    Article  MATH  MathSciNet  Google Scholar 

  2. Agarwal RP, Lakshmikantham V, Nieto JJ: On the concept of solution for fractional differential equations with uncertainty. Nonlinear Anal 2010, 72: 2859–2862. 10.1016/j.na.2009.11.029

    Article  MATH  MathSciNet  Google Scholar 

  3. Garrappa R, Popolizio M: On the use of matrix functions for fractional partial differential equations. Math Comput Simul 2011, 81: 1045–1056. 10.1016/j.matcom.2010.10.009

    Article  MATH  MathSciNet  Google Scholar 

  4. Hilfer R: Applications of Fractional Calculus in Physics. World Scientific, New Jersey; 2000.

    Google Scholar 

  5. Khan Y, Faraz N, Yildirim A, Wu Q: Fractional variational iteration method for fractional initial-boundary value problems arising in the application of nonlinear science. Comput Math Appl 2011, 62: 2273–2278. 10.1016/j.camwa.2011.07.014

    Article  MATH  MathSciNet  Google Scholar 

  6. Odibat Z: On Legendre polynomial approximation with the VIM or HAM for numerical treatment of nonlinear fractional differential equations. J Comput Appl Math 2011, 235: 2956–2968. 10.1016/j.cam.2010.12.013

    Article  MATH  MathSciNet  Google Scholar 

  7. Petras I: A note on the fractional-order Chua's system. Chaos Solitons Fractals 2008, 38: 140–147. 10.1016/j.chaos.2006.10.054

    Article  Google Scholar 

  8. Podlubny I: Fractional Differential Equations, vol. 198 of Mathematics in Science and Engineering. Academic Press Inc., San Diego, CA; 1999.

    Google Scholar 

  9. Samko SG, Kilbas AA, Marichev OI: Fractional Integrals and Derivatives: Theory and Applications. Gordon and Breach, Yverdon 1993.

    Google Scholar 

  10. Canuto C, Hussaini MY, Quarteroni A, Zang TA: Spectral Methods in Fluid Dynamics. Springer, New York; 1988.

    Chapter  Google Scholar 

  11. Canuto C, Hussaini MY, Quarteroni A, Zang TA: Spectral Methods: Fundamentals in Single Domains. Springer-Verlag, New York; 2006.

    Google Scholar 

  12. Doha EH, Bhrawy AH, Hafez RM: A Jacobi-Jacobi dual-Petrov-Galerkin method for third- and fifth-order differential equations. Math Comput Model 2011, 53: 1820–1832. 10.1016/j.mcm.2011.01.002

    Article  MATH  MathSciNet  Google Scholar 

  13. Doha EH, Bhrawy AH, Saker MA: Integrals of Bernstein polynomials: an application for the solution of high even-order differential equations. Appl Math Lett 2011, 24: 559–565. 10.1016/j.aml.2010.11.013

    Article  MATH  MathSciNet  Google Scholar 

  14. Doha EH, Bhrawy AH, Saker MA: On the Derivatives of Bernstein Polynomials: An application for the solution of higher even-order differential equations. Boundary Value Problems 2011, 2011: 16. 10.1186/1687-2770-2011-16

    Article  MathSciNet  Google Scholar 

  15. Liu GR, Wu TY: Multiple boundary value problems by differential quadrature method. Math Comput Model 2002, 35: 215–227. 10.1016/S0895-7177(01)00160-1

    Article  MATH  Google Scholar 

  16. Bhrawy AH, Alofi AS: A Jacobi-Gauss collocation method for solving nonlinear Lane-Emden type equations. Commun Nonlinear Sci Numer Simulat 2012, 17: 62–70. 10.1016/j.cnsns.2011.04.025

    Article  MATH  MathSciNet  Google Scholar 

  17. Funaro D: Polynomial approximation of differential equations. In Lecturer Notes in Physics. Springer-Verlag, Berlin; 1992.

    Google Scholar 

  18. Doha EH, Bhrawy AH, Ezz-Eldien SS: Efficient Chebyshev spectral methods for solving multi-term fractional orders differential equations. Appl Math Model 2011, 35: 5662–5672. 10.1016/j.apm.2011.05.011

    Article  MATH  MathSciNet  Google Scholar 

  19. Bhrawy AH, Alofi AS, Ezz-Eldien SS: A quadrature tau method for variable coefficients fractional differential equations. Appl Math Lett 2011, 24: 2146–2152. 10.1016/j.aml.2011.06.016

    Article  MATH  MathSciNet  Google Scholar 

  20. Saadatmandi A, Dehghan M: A new operational matrix for solving fractional-order differential equations. Comput Math Appl 2010, 59: 1326–1336. 10.1016/j.camwa.2009.07.006

    Article  MATH  MathSciNet  Google Scholar 

  21. Doha EH, Bhrawy AH, Ezz-Eldien SS: A Chebyshev spectral method based on operational matrix for initial and boundary value problems of fractional order. Comput Math Appl 2011, 62: 2364–2373. 10.1016/j.camwa.2011.07.024

    Article  MATH  MathSciNet  Google Scholar 

  22. Ghoreishi F, Yazdani S: An extension of the spectral Tau method for numerical solution of multi-order fractional differential equations with convergence analysis. Comput Math Appl 2011, 61: 30–43. 10.1016/j.camwa.2010.10.027

    Article  MATH  MathSciNet  Google Scholar 

  23. Vanani SK, Aminataei A: Tau approximate solution of fractional partial differential equations. Comput Math Appl 2011, 62: 1075–1083. 10.1016/j.camwa.2011.03.013

    Article  MATH  MathSciNet  Google Scholar 

  24. Esmaeili S, Shamsi M: A pseudo-spectral scheme for the approximate solution of a family of fractional differential equations. Commun Nonlinear Sci Numer Simulat 2011, 16: 3646–3654. 10.1016/j.cnsns.2010.12.008

    Article  MATH  MathSciNet  Google Scholar 

  25. Pedas AA, Tamme E: On the convergence of spline collocation methods for solving fractional differential equations. J Comput Appl Math 2011, 235: 3502–3514. 10.1016/j.cam.2010.10.054

    Article  MATH  MathSciNet  Google Scholar 

  26. Rehman M, Khan RA: A numerical method for solving boundary value problems for fractional differential equations. Appl Math Model 2012, 36: 894–907. 10.1016/j.apm.2011.07.045

    Article  MATH  MathSciNet  Google Scholar 

  27. Rehman M, Khan RA: The Legendre wavelet method for solving fractional differential equations. Commun Nonlinear Sci Numer Simulat 2011, 16: 4163–4173. 10.1016/j.cnsns.2011.01.014

    Article  MATH  Google Scholar 

  28. Chen A, Chen Y: Existence of solutions to nonlinear Langevin equation involving two fractional orders with boundary value conditions. Boundary Value Problems 2011, 2011: 17. 10.1186/1687-2770-2011-17

    Article  Google Scholar 

  29. Chen SH, Hu T, Chen L: Existence results for n-point boundary value problem of second order ordinary differential equations. J Comput Appl Math 2005, 180: 425–432. 10.1016/j.cam.2004.11.010

    Article  MATH  MathSciNet  Google Scholar 

  30. Gupta CP: A generalized multi-point boundary value problem for second kind for a Sturm-Liouville operator. Appl Math Comput 1998, 89: 133–146. 10.1016/S0096-3003(97)81653-0

    Article  MATH  MathSciNet  Google Scholar 

  31. Liu Y, Weiguo Z, Chunfang S: Monotone and convex positive solutions for fourth-order multi-point boundary value problems. Boundary Value Problems 2011, 2011: 21. 10.1186/1687-2770-2011-21

    Article  Google Scholar 

  32. Ma R: Existence of solutions of nonlinear m-point boundary value problem. J Math Anal Appl 2001, 256: 556–567. 10.1006/jmaa.2000.7320

    Article  MATH  MathSciNet  Google Scholar 

  33. Salem HAH: On the fractional order m-point boundary value problem in reflexive Banach spaces and weak topologies. J Comput Appl Math 2009, 224: 565–572. 10.1016/j.cam.2008.05.033

    Article  MATH  MathSciNet  Google Scholar 

  34. Webb TRL: Positive solutions of some three-point value problem via fixed point index theory. Nonlinear Anal 2001, 47: 4319–4332. 10.1016/S0362-546X(01)00547-8

    Article  MATH  MathSciNet  Google Scholar 

  35. Bai Z, Zhang Y: The existence of solutions for a fractional multi-point boundary value problem. Comput Math Appl 2010, 60: 2364–2372. 10.1016/j.camwa.2010.08.030

    Article  MATH  MathSciNet  Google Scholar 

  36. Rehman M, Khan RA: Existence and uniqueness of solutions for multipoint boundary value problems for fractional differential equations. Appl Math Lett 2010, 23: 1038–1044. 10.1016/j.aml.2010.04.033

    Article  MATH  MathSciNet  Google Scholar 

  37. Doha EH, Bhrawy AH, Hafez RM: A Jacobi dual-Petrov-Galerkin method for solving some odd-order ordinary differential equations. Abs Appl Anal 2011, 2011: 21.

    MathSciNet  Google Scholar 

Download references

Acknowledgements

This study was supported by the Deanship of Scientific Research of Northern Border University under grant 035/432. The authors would like to thank the editor and the reviewers for their constructive comments and suggestions to improve the quality of the article.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ali H Bhrawy.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

The authors have equal contributions to each part of this article. All the authors read and approved the final manuscript.

Authors’ original submitted files for images

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

Bhrawy, A.H., Al-Shomrani, M.M. A shifted Legendre spectral method for fractional-order multi-point boundary value problems. Adv Differ Equ 2012, 8 (2012). https://doi.org/10.1186/1687-1847-2012-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/1687-1847-2012-8

Keywords