#### Abstract

The analytical solution of the partial differential equation with time- and space-fractional derivatives was derived by means of the homotopy decomposition method (HDM). Some examples are given and comparisons are made. The evaluations show that the homotopy decomposition method is extremely successful and suitable. The achieved results make the steadfastness of the HDM and its wider applicability to fractional differential equation obvious. Additionally, the adding up implicated in HDM is exceptionally undemanding and uncomplicated. It is confirmed that HDM is an influential and professional apparatus for FPDEs. It was also established that HDM is supplementary well organized than the ADM, VIM, HAM, and HPM.

#### 1. Introduction

Many observable fact in natural science, physics, chemistry, and other knowledge preserve to be illustrated incredibly fruitfully by representations using the supposition of derivatives and integrals with fractional order. Attention in the notion of differentiation and integration to noninteger order has existed since the progress of the conventional calculus [1–3]. By insinuation, mathematical modeling of many physical systems is governed by linear and nonlinear fractional differential equations in various applications in fluid mechanics, viscoelasticity, chemistry, physics, biology, and engineering. Since many fractional differential equations are nonlinear and do not have exact analytical solutions, various numerical and analytic methods have been used to solve these equations [4]. The Adomian decomposition method (ADM) [4], the homotopy perturbation method (HPM) [5], the variational iteration method (VIM) [6], homotopy analysis method [7, 8], and other methods have been used to provide analytical approximation to linear and nonlinear problems [9, 10]. However, the convergence region of the corresponding results is rather small [9, 10]. One of the popular FDE applications is anomalous diffusion; however, this problem can be effectively solved by radial basis function (RBF) collocation methods [11–13]. In this paper, we use homotopy decomposition method that was recently proposed in [14] to solve partial differential equation that arises in groundwater flow problem. The method was first used to solve time-fractional coupled-korteweg-de-vries equations [15]. The homotopy decomposition method is chosen to solve this nonlinear problem because of the following advantages that the method has over the existing methods. The method does not require the linearization or assumptions of weak nonlinearity [5]. The solutions are not generated in the form of general solution as in the Adomian decomposition method. With ADM, the recursive formula allows repetition of terms in the case of nonhomogeneous partial differential equation, this repetition leads to the noisy solution [16]. The solution obtained is noise-free compared to the variational iteration method [16]. No correctional function is required as in the case of the variational homotopy decomposition method [16]. No Lagrange multiplier is required in the case of the variational iteration method [6]. this method is more realistic compared to the method of simplifying the physical problems. If the exact solution of the partial differential equation exists, the approximated solution via the method converges to the exact solution [14]. A construction of a homotopy is not needed as in the case of the homotopy perturbation method, because in this case one needs first to continuously deform a difficult problem into another one, which is easy to solve [6]. HDM provides us with a convenient way to control the convergence of approximation series without adapting , as in the case of [17], which is a fundamental qualitative difference in analysis between HDM and other methods.

In this paper, two cases of special interest such as the time-fractional foam drainage equation and the space-fractional foam drainage equation are discussed in detail. The paper has been arranged as follows. History of the fractional derivative order is presented in Section 2. In Section 3 the homotopy decomposition method for solving fractional derivative order is described. Complexity of the homotopy decomposition method is discussed in Section 4. In Section 5 the application of HDM to solve the space- and time-fractional partial differential equation is discussed. Conclusions are presented in Section 6.

#### 2. History of the Fractional Derivative Order

There is in the literature numereous definitions about fractional derivatives [18–23]. The most popular ones are the Riemann-Liouville and the Caputo derivatives. For Caputo derivative we have

For the case of Riemann-Liouville derivative we have the following definition:

Lately, Jumarie (see [21, 22]) proposed a simple alternative definition to the Riemann-Liouville derivative:

#### 3. Basic Idea of the HDM [14, 15]

To demonstrate the fundamental design of this technique, we reflect on a universal nonlinear nonhomogeneous fractional partial differential equation with initial conditions of the following structure: subject to the initial condition where, indicates the Caputo or Riemann-Liouville fractional derivative operator, is a known function, is the general nonlinear fractional differential operator, and represents a linear fractional differential operator. The process of the HDM primary pace here is to change the fractional partial differential equation to the fractional partial integral equation by applying the inverse operator of on both sides of (4) to obtain [15]. In the case of Riemann-Liouville fractional derivative [15]

In the case of Caputo fractional derivative or in general by putting we obtain

In the homotopy perturbation method, the fundamental statement is that the solutions can be written as a power series in : The nonlinear term can be decomposed as where is an embedding parameter. is the He’s polynomials [17] that can be generated by

The homotopy decomposition method is obtained by the refined combination of homotopy technique with He’s polynomials [15] and is given by

Putting side by side expressions of identical powers of provides solutions of a variety of orders with the first term [15]

#### 4. Complexity of the Homotopy Decomposition Method

It is very important to test the computational complexity of a method or algorithm [15]. Complexity of an algorithm is the study of how long a program will take to run, depending on the size of its input and long of loops made inside the code [15]. We compute a numerical example which is solved by the homotopy decomposition method. The code has been presented with Mathematica 8 according to the following code [15].

*Step 1. *Set .

*Step 2. *Calculate the recursive relation after the comparison of the terms of the same power is done.

*Step 3. *If with being the ratio of the neighbourhood of the exact solution [15], then go to Step 4, else and go to Step 2.

*Step 4. *Print out
as the approximate of the exact solution.

Lemma 1. *If the exact solution of the fractional partial differential equation (4) exists, then
*

*Proof. *Let ; since the exact solution exists, then we have the following:

The last inequality follows from [15].

Lemma 2. *The complexity of the homotopy decomposition method is of order .*

*Proof. *The number of computations including product, addition, subtraction, and division are the following.

In Step 2 : 0 because it is obtained directly from the initial guess [15], : 3, : 3.

Now in Step 4 the total number of computations is equal to .

#### 5. Application

In this section we apply this method for solving partial differential equation with time- and space-fractional derivatives.

*Example 3. *Let us consider the fractional Riccati differential equation
subject to the initial condition

Following the discussion presented in Section 3, we obtain the following:

Comparing the terms of the same power of and using (18), we obtain the following integral equations:

And the following solutions are obtained:

Using the package Mathematica, in the same manner, one can obtain the rest of the components. But, here, 10 terms were computed and the asymptotic solution is given by

Now to access the accuracy of HDM, we compare the approximated solution (23) when with the exact solution given as follows:

Notice that when ,

Therefore, for any , we have
with being the Bernoulli number. Now also notice that the Taylor series of of order 10 at the origin gives exactly . Thus, it is worth concluding that when the approximated solution converges to the exact solution of Example 3.

*Remark 4. *Example 3 has been solved using HAM [24], ADM [25], VIM [26], and HPM [27, 28], and recently it was solved in [29]. Comparison of the results of applying the HDM with others methods leads to significant consequences.

An Eton proverb says “an image is equivalent to one thousand words.” The following figure shows the comparison of the approximated solution and the exact solution.

Figure 1 shows that the fractional solution decrease in the fractional order causes an increase in the function. HDM solutions indicate that the present algorithm performs with extreme efficiency, simplicity, and reliability. The results obtained from HDM are fully compatible with the exact solution when , and are more accurate than those obtained from existing methods.

*Example 5. *Consider the following form of the time-fractional equation:
with the initial condition

Following the steps of HDM, we obtain
Comparing the terms of the same power of and using (27), we obtain the following:
The following solutions are obtained:

Using the package Mathematica, in the same manner, one can obtain the rest of the components. But in this case, 5 terms were computed and the asymptotic solution is given by

Now notice that if we set , we recover the Taylor series of of order 4. Therefore, if using the package Mathematica, we recover

This is the exact solution of Example 5.

In this section, to access the accuracy of the HDM, we compare the approximation (32) with the exact solution; this is depicted in Figures 2 and 3.

From the Figure 2, it is obvious that when , the solution is nearly identical with the exact solution.

*Example 6. *Consider the fractional predator-prey equation
Following the homotopy decomposition method, presented in Section 3, we obtain the following system:

Comparing the terms of the same power of yields the following two sets of linear equation:

The following solutions are obtained:

Using the package Mathematica, in the same manner, one can obtain the rest of the components. But in this case, 3 terms were computed and the asymptotic solution is given by

Figures 4 and 5 show the numerical solutions for prey-predator population system with appropriate parameter. From the figures, we recognize that prey population density first increases with the spatial variables but will increase less than the predator population. However, the predator population density always increases with the spatial variables with the parameter we choose here. Analysis and results of prey-predator population system indicate that the fractional model matches the regular biological diffusion behavior observed in the field. From the figures, it is also clear to see the time evolution of prey-predator population density and we also know that the numerical solutions of fractional prey-predator population model are continuous with the parameters and .

To test the accuracy of the method used in this paper, we present the numerical result of the approximate solution of (27) and the numerical results of the exact solution in Table 1.

The numerical results show that the HPM and HDM are more accurate than the VIM in this case.

#### 6. Conclusion

In this paper, we have productively developed HDM for solving partial differential equation of space- and time-fractional derivatives. the dependability of the HDM and its wider applicability to fractional differential equation. It is consequently, that the HDM makes available more practical series solutions that converge very speedily in real physical problems. Also, the amount of the computational effort has been abridged. In the bargain, the computations concerned in HDM are very straightforward. It is established that HDM is a prevailing and resourceful instrument for FPDEs.

#### Conflict of Interests

The authors declare that there is no conflict of interests for this paper.

#### Authors’ Contribution

The first draft of this paper was portrayed by Abdon Atangana; the revised version was carefully corrected by Samir Brahim Belhaouari, and both authors read and submitted the final version.

#### Acknowledgment

The authors will like to thank the reviewer for his valuable spare time to read this paper and for his valuable comments and suggestions toward the enhancement of this paper.