Abstract

In this paper, we present a numerical scheme for finding numerical solution of a class of weakly singular nonlinear fractional integro-differential equations. This method exploits the alternative Legendre polynomials. An operational matrix, based on the alternative Legendre polynomials, is derived to be approximated the singular kernels of this class of the equations. The operational matrices of integration and product together with the derived operational matrix are utilized to transform nonlinear fractional integro-differential equations to the nonlinear system of algebraic equations. Furthermore, the proposed method has also been analyzed for convergence, particularly in context of error analysis. Moreover, results of essential numerical applications have also been documented in a graphical as well as tabular form to elaborate the effectiveness and accuracy of the proposed method.

1. Introduction

In this study, the operational alternative Legendre method is introduced and employed to solve a class of nonlinear fractional integro-differential equations with weakly singular kernel:where and (sufficiently smooth operators) are considered to be nonlinear. are the Caputo fractional derivative operators, is the ceiling function of , is a continuous function, and is an unknown function to be determined.

These equations come from the mathematical modeling of various phenomena, such as radiative equilibrium, heat conduction problems, elasticity, and fracture mechanics (see [15]). Since the numerical solution of the nonlinear fractional equations is almost a new subject and because of having a singular kernel, there are many schemes for solving this kind of equations. Heydari et al. have utilized the Chebyshev wavelet method to solve systems of the linear and nonlinear singular fractional Volterra integro-differential equations (see [6]). Mohammadi has applied the block pulse functions for the linear and nonlinear singular fractional integro-differential equations (see [7]). Zhao et al. have proposed the piecewise polynomial collocation method for solving the fractional integro-differential equations with weakly singular kernels (see [8]). In [9, 10], the operational Tau method has been used to solve this kind of equations. A spectral method based on the Chebyshev polynomials of the second kind has been applied in [11]. Yi et al. have dealt with the CAS wavelets and Legendre wavelets method for solving the linear and nonlinear fractional weakly singular integro-differential equations (see [12, 13]), and so on (see [1416]).

In this paper, application of the alternative Legendre polynomials is extended to solve the nonlinear weakly singular fractional order integro-differential equations. For this purpose, the fractional operational matrices of integration and product are derived. Also, an operational matrix is derived to approximate the integral part with the singular kernel in equation (1). The matrices and approximations resulted are substituted into the given equation to convert it into the nonlinear system of algebraic equations. The nonlinear systems can be solved by the well-known Newton iteration method. Also, error analysis and convergence analysis of the proposed method are presented.

2. Definitions of Fractional Derivatives and Integrals

Definition 1. Riemann–Liouville fractional integral of order (see [17]):where is the gamma function.

Definition 2. Caputo’s fractional derivative of order (see [17]):Specially, the operator satisfies the following properties ( is a constant) (see [18]):

3. Alternative Legendre Polynomials and Their Operational Matrices

The set of alternative Legendre polynomials of degree in (see [19]) is given by

They are orthogonal over the interval with respect to the weight function and satisfy the property as follows:

Equation (6) may be rewritten as Rodrigues’s type:

Integrating equation (8) from 0 to 1, we have

Suppose the alternative Legendre polynomials vector as

Equation (10) can be rewritten as the formwhereand is the upper triangular matrix defined by

A square integrable function can be expressed in terms of the alternative Legendre polynomials basis as follows:

In practice, only the first term of alternative Legendre polynomials is considered. Hence, one haswhere , are called alternative Legendre polynomials coefficients, and .

In implementing the operations on the alternative Legendre basis, we frequently encounter the integration and the product of the vector and also it is necessary to evaluate the integration, the product of the vector . For this purpose, some operational matrices will be derived. To pursue, we need the following lemmas. The proofs of these lemmas are quite easy by using the definition.

Lemma 1. Let and be the kth and jth alternative Legendre polynomials, respectively. Then, the product of and can be written aswhere .

Lemma 2. Let be a positive integer, then we have

Lemma 3. Let , , and be , , and alternative Legendre polynomials, respectively. Then, we haveThe alternative Legendre polynomials operational matrix of fractional integration is shown by the following theorem.

Theorem 1. Let be the alternative Legendre polynomials vector obtained by equation (10), then we have the following:where is the alternative Legendre polynomials operational matrix of fractional integration of order in whichThe following theorem presents a general formula for finding the operational matrix of the product.

Theorem 2. Let be an arbitrary vector, then we havewhere is the alternative Legendre polynomials operational matrix of the product in whichThe values of are calculated by using Lemma 3.

Proof. (see [20]).

Theorem 3. Suppose that , and , thenwhere is a matrix and its elements are as follows:

Proof. According to the definition of the vector , one hasUsing equation (6) leads toUsing equation (15), we can approximate in terms of alternative Legendre polynomials as follows:where, by Lemma 2, one can obtainTherefore,So, equation (25) can be written as follows:This proof is completed.

4. Solution of Nonlinear Fractional Integro-Differential Equations with Weakly Singular Kernel

To explain the implementation process of the proposed method, the following case of equation (1) is considered:where and are the positive integers.

By applying the introduced matrices and the basis vector in the previous section, the terms of the equations under investigation may be approximated in terms of the alternative Legendre polynomials as follows.

can be approximated as

By applying the fractional integral operator of order to equation (28), an approximation of unknown function results as follows:where is a known vector and .

Using Theorem 2, we can obtainwhere and are and order, the alternative Legendre polynomials operational matrix of the product.

Using Theorem 3 and equation (35), the integral parts in equation (31) are approximated as follows:

After substituting approximations equations (32)–(36) into equation (31), the main equation is converted into the following nonlinear algebraic equation:

Equation (37) is collocated at the Gauss–Chelyshkov nodes (see [21]). By solving the nonlinear systems of the generated algebraic equations, the unknown vector can be determined. The resultant nonlinear systems can be solved by the Newton iteration method.

5. Error Analysis and Convergence

5.1. Error Estimate

Assume that is the space of functions and are the continuous derivatives,for all such that , then we have the following theorem.

Theorem 4. Suppose that and are expansion in terms of alternative Legendre polynomials. Then, for ,where is a constant such that

Proof. Assuming that are the interpolating polynomials to at points ( are the roots of the shifted Chebyshev polynomials of degree ), one hasThe estimates for Chebyshev interpolation nodes is that (see [22])As discussed in [20], is the unique best approximation of , then we getTherefore,This proof is completed.

5.2. Convergence Analysis

Before the convergence analysis, we firstly transform equation (1) into an equivalent nonlinear Volterra integral equation with the same initial condition (2).

Theorem 5. If the right-hand side of equation (1) is continuous, then equations (1) and (2) are equivalent nonlinear Volterra integral equations as follows:where

Proof. Applying the Riemann–Liouville integral operator to both sides of equation (1), we havewhere is defined by equation (46).
Using the Dirichlet’s formula to the last part of the right-hand side of equation (48), we getLet , then equation (49) will bewhere is the beta function.
This proof is completed.
Let be the approximation of and be the alternative Legendre approximation of and suppose the nonlinear terms and are satisfied in Lipschitz condition such that

Theorem 6. The solution of the nonlinear fractional order integro-differential equation (45) by using alternative Legendre polynomials approximations is convergent when .

Proof. where and .
Using Theorem 4 and equation (51), we obtainCombining Theorem 4 and equation (52) together, one hasCombining equations (53)–(55), we can get the relationship between the convergence order and as follows:From equation (56), one has when .
This proof is completed.
Note: the conditions of Theorem 6 are the same as Theorems 4 and 5.
By combining Theorems 5 and 6, we can easily obtain the following theorem.

Theorem 7. The solution of the nonlinear fractional order integro-differential equation (1) by using alternative Legendre polynomials approximations is convergent when .

6. Numerical Examples

In this section, some numerical examples are presented to illustrate the proposed alternative Legendre polynomials method. In order to demonstrate the error of the method, the notation is shown aswhere and are the exact solution and the numerical solution, respectively, . All algorithms are performed by Mathematica 10.0.

Example 1. Consider the following nonlinear fractional order integro-differential equation with weakly singular kernel (see [23]):wherewith initial value .
The exact solution of this equation is . The absolute errors between the numerical solutions and the exact solution with different values of are displayed in Table 1 and compared with the results obtained by MHFs (modification of hat functions) (see [23]). From Table 1, it can be seen that the absolute errors become smaller and smaller with increasing. Satisfactory results would be acquired by a small number of alternative Legendre polynomials. Figure 1 shows the comparison of obtained by our method and MHFs for different on logarithmic scale. From Figure 1, we find that are smaller than that, and the accuracy of our method is higher.

Example 2. Consider the nonlinear fractional integro-differential equation with weakly singular kernel as follows (see [23]):where , with .
The exact solution of the nonlinear equation for is . The numerical solutions and comparisons are given in Table 2 and Figure 2. The absolute errors for are listed in Table 2. It can be seen that the values of the absolute errors decay as increases from 5 to 8. The comparisons of obtained by our method and MHFs for different on logarithmic scale are plotted in Figure 2. This figure shows good coincidence between the numerical and exact solutions.
According to Figure 2, it can be deduced that the results obtained by the alternative Legendre polynomials method are more precise than those obtained by MHFs. Figure 3 displays the numerical results for and the exact result for . It shows that the numerical solutions converge to the exact solution as .

Example 3. Consider this equation:wherewith initial value .
The exact solution of this equation is . The figures of the numerical solutions and the exact solution for the problem with different are shown in Figures 47. From Figures 47, we can see that the approximate solutions are getting close to the exact solutions with increasing.

Example 4. Consider the following nonlinear fractional integro-differential equation with weakly singular kernel:where , such that .
The exact solution is if , and is a positive integer. The graphs of for different on logarithmic scale are depicted in Figures 810. From Figures 810, one can find that for large , the error norm becomes smaller and their logarithm behaves approximately as a linear function of , which means that the error norm decreases linearly.

Example 5. As the last example, consider the nonlinear fractional integro-differential equation with weakly singular kernel as follows:where , such that .
The exact solution of this equation is also for . The approximate solutions are plotted in Figure 11 for the values of and . Figure 11 shows that the exact and approximate solutions are in good agreement when . It also illustrates that the numerical solutions converge to the exact solution as .

7. Conclusion

The alternative Legendre polynomials operational matrix method has been developed for solving the weakly singular nonlinear integro-differential equations with fractional derivatives. The method exploits the operational matrices of the fractional integration and the product of alternative Legendre polynomials as the primary underlying tool. A given nonlinear equation is converted into a nonlinear system of algebraic equations. The method has also been analyzed for error and convergence. A new operational matrix is obtained to approximate the integral parts with the singular kernels. To illustrate the reliability and efficiency of the suggested approach, the alternative Legendre operational matrices and the relevant approximations are employed to solve several examples. In the examples in which the order of the fractional derivatives is known, the numerical results show good agreement between the numerical and exact solutions. When the order of the fractional derivative is uncertain, the numerical solutions for the various values of approach to the exact solutions as . The results obtained by our method are also compared with those obtained by some existing methods. From the tables and figures, it can be concluded that the results obtained by the suggested method are more precise than those. The results confirm the ability of the alternative Legendre polynomials method to solve the nonlinear fractional integro-differential equations with weakly singular kernels.

Data Availability

No data were used to support the study.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (Grant no. 12004027), the Fundamental Research Funds for the Central Universities.