- Research
- Open access
- Published:

# Analysis of the new homotopy perturbation method for linear and nonlinear problems

*Boundary Value Problems*
**volume 2013**, Article number: 61 (2013)

## Abstract

In this article, a new homotopy technique is presented for the mathematical analysis of finding the solution of a first-order inhomogeneous partial differential equation (PDE) {u}_{x}(x,y)+a(x,y){u}_{y}(x,y)+b(x,y)g(u)=f(x,y). The homotopy perturbation method (HPM) and the decomposition of a source function are used together to develop this new technique. The homotopy constructed in this technique is based on the decomposition of a source function. Various decompositions of source functions lead to various homotopies. Using the fact that the decomposition of a source function affects the convergence of a solution leads us to development of a new method for the decomposition of a source function to accelerate the convergence of a solution. The purpose of this study is to show that constructing the proper homotopy by decomposing f(x,y) in a correct way determines the solution with less computational work than using the existing approach while supplying quantitatively reliable results. Moreover, this method can be generalized to all inhomogeneous PDE problems.

## 1 Introduction

Many problems in the fields of physics, engineering and biology are modeled by linear and nonlinear PDEs. In recent years, the homotopy perturbation method (HPM) has been employed to solve these PDEs [1–6]. HPM has been used extensively to solve nonlinear boundary and initial value problems. Therefore HPM is of great interest to many researchers and scientists. HPM, first presented by Ji Huan He [7–9], is a powerful mathematical tool to investigate a wide variety of problems arising in different fields. It is obtained by successfully coupling homotopy theory in topology with perturbation theory. In HPM, a complicated problem under study is continuously deformed into a simple problem which is easy to solve to obtain an analytic or approximate solution [10].

In this work, a new homotopy perturbation technique is proposed to find the solution u(x,y) based on the decomposition of a right-hand side function f(x,y) which leads to the construction of new homotopies. It is shown that decomposing f(x,y) in a correct way, requiring less computational work than the existing approach, helps us to determine the solution. The results reveal that the proposed method is very effective and simple.

The paper is organized as follows. In Section 2, an analysis of the new homotopy perturbation method is given. The construction of a new homotopy based on the decomposition of a source function for a first-order inhomogeneous PDE is covered in Section 3. Some examples are given to illustrate the construction of a new homotopy in Section 4. Finally, some concluding remarks are given in Section 5.

## 2 New homotopy perturbation method

To illustrate the basic ideas of the homotopy analysis method, we consider the following nonlinear differential equation:

with the boundary conditions

where *A* is a general differential operator, *B* is a boundary operator, f(r) is a known analytical function, and Γ is the boundary of domain Ω.

The operator *A* in (1) can be rewritten as a sum of *L* and *N*, where *L* and *N* are linear and nonlinear parts of *A*, respectively, as follows:

By the homotopy technique, we construct the homotopy

which is equivalent to

where

*p* is an embedding parameter, {u}_{0} is an initial approximation of (1), which satisfies the boundary conditions. As *p* changes from zero to unity, v(r,p) changes from {u}_{0} to u(r). In this technique, the convergence of a solution depends on the choice of {u}_{0}, that is, we can have different approximate solutions for different {u}_{0}.

Let us decompose the source function as f(r)={f}_{1}(r)+{f}_{2}(r). If we take

in (3), we obtain the following homotopy:

which is equivalent to

Obviously, from (6) we have

As the embedding parameter *p* changes from zero to unity, v(r,p) changes from {L}^{-1}({f}_{1}(r)) to u(r).

According to He’s homotopy perturbation method, we can first use the embedding parameter *p* as a small parameter and assume that the solution of (6) can be written as a power series in *p* as follows:

Setting p=1, we get the approximate solution of (1)

In the next section, it is shown that the decomposition of the right-hand side function has a great effect on the amount of calculation and the speed of convergence of the solution.

## 3 Construction of a new homotopy based on the decomposition of a source function

Let us consider the following boundary value problem with the following inhomogeneous PDE:

where *a*, *b*, *g* and *f* are continuous functions in some region of the plane and g(0)=0. By solving this boundary value problem by the homotopy perturbation method, we obtain an approximate or exact solution u(x,y). Before proceeding further, let us introduce the integral operator *S* defined in the following form:

Then the derivative of operator *S* with respect to *y* is defined as

Rewriting f(x,y) as a sum of two functions f(x,y)={f}_{1}(x,y)+{f}_{2}(x,y) and then constructing a homotopy in equation (6), we have

which is equivalent to

Substituting (7) into (12), and equating the coefficient of the terms by the same power in *p*, we have

If there exists the relationship

between {f}_{1}(x,y) and {f}_{2}(x,y), then we have from (13)

and

Hence the approximate or exact solution of problem (8)-(9) is obtained as

and the source function is obtained from (14) in the following form:

Therefore equation (15) is a necessary condition to accelerate the convergence. If equation (15) has a solution, then we obtain the approximate or exact solution of problem (8)-(9) in two steps.

However, it is not always possible to decompose the source function f(x,y) in such a way that the functions {f}_{1}(x,y) and {f}_{2}(x,y) have the relationship in (14). If we have such a case, then we are looking for an arbitrary P(x,y) such that the functions {f}_{1}(x,y) and {f}_{2}(x,y) have the following relationship:

In this case, we get the approximate or exact solution of the problem in more than two steps. Moreover, we can get the solution in the form of series.

## 4 Analysis of the new homotopy perturbation method for linear problems

In this section we illustrate the theory of the new homotopy perturbation method given in Sections 2 and 3 for some special f(x,y) in the following linear problem:

where *a* and *b* are constants.

### 4.1 Case 1: the source function f(x,y) is a polynomial

We consider that h(y)=0 and f(x,y) is an *n* th-order polynomial in problem (17)-(18). Hence f(x,y) can be written in the following form:

where {A}_{\alpha \beta} are constants and *α*, *β* are natural numbers.

If the polynomial f(x,y) is decomposed as

from (15), we can get the solution of the problem in two steps. We take {f}_{1}(x,y) as an *n* th-order polynomial given as

where {c}_{\alpha \beta} are constants. Then S({f}_{1}(x,y)) becomes

and {S}_{y}({f}_{1}(x,y)) becomes

In order to determine the unknown coefficients {c}_{\alpha \beta} in terms of {A}_{\alpha \beta}, we substitute (21), (22), and (23) into (20)

and then using (19), we get the following equations:

Then we obtain

As a result, constructing the following homotopy:

leads us to reaching the solution in two steps.

### 4.2 Case 2: the source function f(x,y) is a sum of two functions r(x) and t(y)

Let us take f(x,y)=r(x)+t(y) in problem (17)-(18). Since f(x,y) is a continuous function, r(x) and t(y) are also continuous functions. Based on (15), f(x,y)=r(x)+t(y) is decomposed as follows:

Then we can get the solution of the problem in two steps. Hence the function f(x,y) can be rewritten in the following form:

Since f(x,y)=r(x)+t(y), we have

The solutions of the above ordinary differential equation are

and

On the other hand, we have

and

If either (28) or (29) satisfy equation (30), and equation (31) has a solution, then it is possible to decompose the function f(x,y) to accelerate the convergence of the solution. As a result, by constructing the following homotopy:

we reach the solution in two steps.

## 5 Numerical examples

### 5.1 Example 1

Consider the inhomogeneous linear boundary value problem (BVP) with constant coefficients

By constructing the following homotopy:

which is equivalent to

we get the functions {r}_{1}(x), {t}_{1}(y) as it is explained in Section 4.2. It is obvious that {t}_{1}(y)={e}^{y} satisfies equation (30). Moreover, from equation (31), {r}_{1}(x) can be found as follows:

If we put the function {r}_{1}(x) and {t}_{1}(y) in the homotopy (33) or (34), we get

and we get the following:

Hence, the solution u(x,y) becomes

which is the exact solution of the problem with minimum amount of calculation.

### 5.2 Example 2

Consider the following inhomogeneous linear BVP with variable coefficients:

In this problem, the right-hand side functionf(x,y) is a third-order polynomial. From (15), we have

Based on the source function f(x,y)=2{y}^{2}+2x{y}^{2}, if we take {f}_{1}(x,y) as

and substitute (40) into (39), we obtain

Based on these results, we have {f}_{1}(x,y)=2{y}^{2}, {f}_{2}(x,y)=2x{y}^{2} and the homotopy is constructed in the following form:

and we get the following:

Hence, we obtain the exact solution in the following form:

with short-length calculation.

### 5.3 Example 3

Let us find the solution of following BVP:

As in the previous examples, using (15) we get

Based on the source function f(x,y)=y{e}^{xy}+x, we conclude that {f}_{1}(x,y) is in the following form:

Substituting (45) into (44), we obtain

Now, these results let us take {f}_{1}(x,y)=y{e}^{xy}, {f}_{2}(x,y)=x and construct the homotopy in the following form:

which leads to the following equations:

Hence, the exact solution becomes

which is obtained by minimum amount of calculations.

### 5.4 Example 4

Let us find the solution of the following first-order non-linear BVP:

Using (15) we get

Based on the source function f(x,y)=-{e}^{2x}+3{e}^{x}-1, we find {f}_{1}(x,y) is in the following form:

Substituting (50) into (49), we obtain

Now we can take {f}_{1}(x,y)={e}^{x}, {f}_{2}(x,y)=-{e}^{2x}+2{e}^{x}-1 and construct the homotopy in the following form:

which leads to the following equations:

Hence, we obtain the exact solution

with short-length calculation.

## 6 Conclusion

In this paper, we employ a new homotopy perturbation method to obtain the solution of a first-order inhomogeneous PDE. In this method, each decomposition of the source function f(x,y) leads to a new homotopy. However, we develop a method to obtain the proper decomposition of f(x,y) which lets us obtain the solution with minimum computation and accelerate the convergence of the solution. This study shows that the decomposition of the source function has a great effect on the amount of computations and the acceleration of the convergence of the solution. Comparing to the standard one, decomposing the source function f(x,y) properly is a simple and very effective tool for calculating the exact or approximate solutions with less computational work.

## References

Biazar J, Azimi F: He’s homotopy perturbation method for solving Helmoltz equation.

*Int. J. Contemp. Math. Sci.*2008, 3: 739-744.Biazar J, Ghazvini H: Convergence of the homotopy perturbation method for partial differential equations.

*Nonlinear Anal., Real World Appl.*2009, 10: 2633-2640. 10.1016/j.nonrwa.2008.07.002Sweilam NH, Khader MM: Exact solutions of some coupled nonlinear partial differential equations using the homotopy perturbation method.

*Comput. Math. Appl.*2009, 58: 2134-2141. 10.1016/j.camwa.2009.03.059Biazar J, Ghazvini H: Homotopy perturbation method for solving hyperbolic partial differential equations.

*Comput. Math. Appl.*2008, 56: 453-458. 10.1016/j.camwa.2007.10.032Junfeng L: An analytical approach to the sine-Gordon equation using the modified homotopy perturbation method.

*Comput. Math. Appl.*2009, 58: 2313-2319. 10.1016/j.camwa.2009.03.071Neamaty A, Darzi R: Comparison between the variational iteration method and the homotopy perturbation method for the Sturm-Liouville differential equation.

*Bound. Value Probl.*2010., 2010: Article ID 317369He JH: Homotopy perturbation technique.

*Comput. Methods Appl. Mech. Eng.*1999, 178: 257-262. 10.1016/S0045-7825(99)00018-3He JH: A coupling method of homotopy technique and a perturbation technique for non-linear problems.

*Int. J. Non-Linear Mech.*2000, 35: 37-43. 10.1016/S0020-7462(98)00085-7He JH: Homotopy perturbation method: a new nonlinear analytical technique.

*Appl. Math. Comput.*2003, 135: 73-79. 10.1016/S0096-3003(01)00312-5He JH: Comparison of homotopy method and homotopy analysis method.

*Appl. Math. Comput.*2004, 156: 527-539. 10.1016/j.amc.2003.08.008

## Acknowledgements

Dedicated to Professor Hari M Srivastava.

The research was supported by parts by the Scientific and Technical Research Council of Turkey (TUBITAK).

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

### Authors’ contributions

The authors declare that the study was realized in collaboration with the same responsibility. All authors read, checked and approved the final manuscript.

An erratum to this article is available at http://dx.doi.org/10.1186/s13661-015-0323-7.

## 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.

## About this article

### Cite this article

Demir, A., Erman, S., Özgür, B. *et al.* Analysis of the new homotopy perturbation method for linear and nonlinear problems.
*Bound Value Probl* **2013**, 61 (2013). https://doi.org/10.1186/1687-2770-2013-61

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/1687-2770-2013-61