#### Abstract

This paper presents a computational approach for solving a class of nonlinear Volterra integro-differential equations of fractional order which is based on the Bernoulli polynomials approximation. Our method consists of reducing the main problems to the solution of algebraic equations systems by expanding the required approximate solutions as the linear combination of the Bernoulli polynomials. Several examples are given and the numerical results are shown to demonstrate the efficiency of the proposed method.

#### 1. Introduction

In real world, for modeling and analysing a huge size of problems we need fractional calculus. Fractional calculus finds its application in many fields of sciences and engineering, including fluid flow, electrical networks, fractals theory, control theory, electromagnetic theory, probability, statistics, optics, potential theory, biology, chemistry, diffusion, and viscoelasticity [1–4].

In recent years, fractional differential equations (FDEs) and fractional integro-differential equations (FIDEs) have become the focus of interest for many researchers in different disciplines of science and technology because of the fact that a realistic modeling of a physical phenomenon having dependence not only on the time instant but also on the previous time history that can be successfully achieved by using fractional calculus. However, besides modeling, the solution techniques and their reliabilities are most important to catch critical points at which a sudden divergence, convergence, or bifurcation starts. Therefore, high accuracy solutions are always needed. For this purpose several techniques were proposed to solve the fractional order differential equations (or integro-differential equations). The most commonly used ideas are Adomian decomposition method (ADM) [5], variational iteration method (VIM) [6], fractional differential transform method (FDTM) [7], fractional difference method (FDM) [8], and power series method [9].

On the other hand, since the beginning of 1994, Laguerre, Legendre, Taylor, Fourier, Hermite, and Bessel (matrix and collocation) methods have been used in the works [10–15] to solve linear differential, integral, and integro-differential-difference equations and their systems. Also, the Bernoulli (matrix and collocation) methods have been used to find the approximate solutions of differential and integro-differential equations [16–18]. To the best of our knowledge these polynomials have had no results for solving FIDEs. Moreover, according to the discussions in [18], Bernoulli polynomials have some certain properties that encourage us to use them for solving any applied mathematics problem. These subjects motivate us to present a new numerical scheme for solving FIDEs.

In this paper, by using the Bernoulli polynomials as the test functions and collocating the following FIDE (subject to sufficient initial or boundary conditions) at the Legendre Gauss collocation points and also approximating the existing integrals by the Gauss quadrature rule, we find the numerical solution of the following FIDE:

The rest of this paper is organized as follows. Some preliminaries about the fractional calculus and also the Bernoulli polynomials together with the Gauss quadrature rule are provided in the next Section. Section 3 contains the basic idea of the paper. In Section 4, several numerical examples are given to show the robustness of the proposed idea. The provided numerical examples show the efficiency of the proposed idea with regard to some methods in the literature. In the last section, we provide the conclusions.

#### 2. Preliminaries

In this section, we deal with several basic definitions and properties of fractional calculus theory and also some useful information about the Bernoulli polynomials together with the Legendre Gauss quadrature rule which are further used hereafter.

*Definition 1. *A real function , , is said to be in the space , , if there exists a real number , , such that , where , and it is said to be in the space if and only if , .

Clearly, is a vector space and the set of spaces is ordered by inclusion according to

*Definition 2. *The Riemann-Liouville fractional integral operator of order for a function in , where , is defined as

*Definition 3. *The fractional derivative of in the Caputo sense is defined as
for , , and .

It should be mentioned that, for , the Caputo differential operator coincides with the classical differential operator of integer order. Some properties of the Caputo fractional derivative, which are needed here, are as follows: where the ceiling function denotes the smallest integer greater than or equal to and the floor function denotes the largest integer less than or equal to .

Similar to the integer order differentiation, the Caputo fractional differential operator is a linear operation; in other words where and are constants.

*Definition 4. *The Bernoulli polynomials play an important role in different areas of mathematics, including number theory and the theory of finite differences. The classical Bernoulli polynomials are usually defined by means of the following relations:
Also the Bernoulli polynomials can be represented in the form

*Definition 5. *The Legendre Gauss quadrature rule can be defined as follows [11]:
where for are the roots of the th Legendre polynomial and .

#### 3. Basic Idea

In this section, we consider the basic equation (1) with some appropriate initial or boundary conditions. Our aim is to approximate the solution by the truncated Bernoulli series . Moreover, we use Legendre Gauss collocation nodes and also the Legendre Gauss quadrature rule for approximating the existing integrals. Then, the basic equation (1) will be transformed to a nonlinear system of algebraic equations. The solutions of this algebraic system are . Therefore, an approximate solution of (1) will be obtained in the form . Before presenting our main idea, we provide the Caputo fractional derivative representation of in the following lemma.

Lemma 6. *Let be approximated by the Bernoulli polynomials as and also suppose that ; then
**
where is given by
*

*Proof. *Because of the linearity of the Caputo fractional differential operator we have
According to (5) and the structure of the Bernoulli polynomials,

Also for and using (5) we reach the following result:
A combination of (12) and (14) leads to the desired result.

In this part, we turn to approximate the solution of problem (1). For this purpose, substituting approximations and in (1) yields

By collocating the above equation at points we have where for denote the roots of the shifted Legendre polynomial in the interval . Also, in order to use the Legendre Gauss quadrature for approximating the abovementioned involved integrals, we should transfer -interval into -interval by the following change of variable:

For each value of the abovementioned equation may be restated as follows:

Therefore, applying Gaussian integration formula yields where all of the ’s are the zeros of the Legendre polynomial and the ’s are the corresponding weights. Together with equations of supplementary conditions, we get nonlinear algebraic equations which can be solved for the unknown , , by using any appropriate iterative method. Consequently may be obtained. In the next section, we will show the applicability of the proposed method by examining several numerical examples.

#### 4. Numerical Examples

In this section, several numerical examples are given to illustrate the accuracy and effectiveness of the proposed method, and all of them are performed on a computer using some programs written in MAPLE 13. In this regard, we have reported in the tables the values of the exact solution and the polynomial approximate solution at any selected points of the given interval . It should be noted that, in the first example, we provide an interesting example in which our method reaches the exact solution in the polynomial form. Moreover, in the second and third examples our method reaches the same results of [19] by using lower values of approximation. Also in the last numerical example, our results are superior with respect to the CAS wavelet method [20]. Before presenting our numerical examples, we should recall that the MAPLE software for solving nonlinear system of algebraic equations suggests the command. As per our experience for solving such nonlinear systems, this command is very efficient and easy to handle.

*Example 1 (see [19]). *As in the first example, we consider the following initial value problem of FIDE:

For solving this example, we apply our proposed method for . In other words,

By using (19), we have
Initial condition yields the following equation:
Now, by solving the system which contains (22) and (23) we reach the following solution:
Therefore,
which is the exact solution.

*Example 2 (see [19]). *As in the second example, we consider the following fractional integro-differential equation:
with the following boundary conditions:

The exact solution of this FIDE is , when . For solving this problem, we apply our method for different values of . In Table 1, we provide the numerical results , where () for , of our presented method (PM) together with numerical results , where for , of the Legendre collocation method (LCM) [19]. It is obvious that our method reaches the same results of [19] with lower degree of approximation. Moreover, our method has superior results with regard to the Adomian decomposition method (ADM) [5] as shown in [19]. In addition, the numerical results associated with our presented method, LCM, and generalized differential transform method (GDTM) [7] for and are given in Table 2. As shown in Table 2 of [19], the ADM has very weak approximations with regard to GDTM and LCM. Therefore, we do not consider ADM in Table 2. From this table, one can find that our results are the same as those of LCM, but GDTM results are away from our proposed technique and LCM results. These facts confirm the effectiveness of our idea. For showing the reliability of our approach, we provide Figure 1. In this figure, we depict the numerical solution for different kinds of such as 3.25, 3.50, 3.75, and 4.

*Example 3 (see [19]). *As in the third example, we consider the following nonlinear fractional integro-differential equation:
subject to the boundary conditions

The exact solution of this problem for , that is, the classical boundary value problem, is . Similar to the previous example, for solving this example, we apply our presented technique for different values of . In Table 3, we provide the numerical results , where () for , of our presented method (PM) together with numerical results , where for , of the LCM in the case of . From this table, it is obvious that our method reaches the same results of [19] with lower degree of approximation. Moreover, in this table the numerical results , where () for , of our presented method (PM) together with the numerical results , where for , of the LCM and GDTM in the case of are given.

*Example 4 (see [20]). *As in the final example, let us consider the following nonlinear fractional integro-differential equation of order :
with the supplementary conditions

The exact solution of this problem is . Again, we solve this problem by using our basic idea in Section 3. For making a real comparison with a new technique, CAS wavelet method (CASWM) [20], we should assume that and then solve the abovementioned problem. Therefore, in Table 4, we provide the numerical results , where () for , of our presented method (PM) together with the numerical results , where for , of the CASWM. From this table the efficiency of the presented method could be seen obviously.

#### 5. Conclusions

In this paper, the Bernoulli polynomials and Legendre Gauss quadrature rule together with the Legendre Gauss collocation nodes are used to reduce the nonlinear fractional integro-differential equations with appropriate initial or boundary conditions to the solution of system of nonlinear algebraic equations. From the computational point of view, the solution obtained by this method is in excellent agreement with those obtained by previous works and also it is efficient to use. One issue of future work is to develop a similar technique to solve some interesting nonlinear fractional partial integro-differential equations. In addition, the method can also be extended to the system of nonlinear fractional integro-differential equations, but some modifications are required.

#### Conflict of Interests

The authors declare that they do not have any conflict of interests in their submitted paper.