1 Introduction

In the past several decades, the investigation of traveling-wave solutions for nonlinear equations has played an important role in the study of nonlinear physical phenomena. Nonlinear wave phenomena of dispersion, dissipation, diffusion, reaction, and convection are very important in nonlinear wave equations. In recent years, many authors paid attention to study solitonic solutions of nonlinear equations by using a variety of powerful methods such as the variational iteration method (VIM) [1, 2] and homotopy perturbation method (HPM) [3, 4]. Exp-function method [58], sine-cosine method [9], and homogeneous balance method [1012] have been proposed for obtaining exact and approximate analytic solutions.

The aim of this paper is to directly apply the optimal HAM [13, 14] to reconsider the traveling-wave solution of the Kawahara equation. The method used here contains three convergence-control parameters to accelerate the convergence of homotopy series solution. The optimal convergence-control parameters can be determined by minimizing the averaged residual error. The results obtained in this paper show that the solutions given by the optimal HAM give much better approximations and converge much faster than those given by the usual HAM. The homotopy analysis method (HAM) [1518] is a general analytic approach to get series solutions of various types of nonlinear equations, including algebraic equations, ordinary differential equations, partial differential equations, differential-integral equations, differential-difference equation, and coupled equations of them.

2 The homotopy analysis method

In this paper, we use the homotopy analysis method to solve the problem.

This method was proposed by the Chinese mathematician Liao [15]. We apply Liao’s basic ideas to the nonlinear partial differential equations. Let us consider the nonlinear partial differential equation

ND ( u ( x , t ) ) =0.
(2.1)

Based on the constructed zero-order deformation equation, we give the following zero-order deformation equation in the similar way:

(1q)L ( U ( x , t ; q ) u 0 ( x , t ) ) =qhND ( U ( x , t ; q ) ) ,q[0,1],h0.
(2.2)

L is an auxiliary linear integer-order operator and it possesses the property L(C)=0. U is an unknown function. Expanding U in Taylor series with respect to q, one has

U(x,t;q)= u 0 (x,t)+ m = 1 u m (x,t) q m ,
(2.3)

where

u m (x,t)= m U ( x , t ; q ) q m | q = 0 .
(2.4)

As h=1, Eq. (2.2) becomes

(1q)L ( U ( x , t ; q ) u 0 ( x , t ) ) +qNDU(x,t;q)=0,q[0,1],
(2.5)

which is used mostly in the homotopy perturbation method (HPM) [1922]. Thus, HPM is a special case of HAM.

Differentiating the equation m times with respect to the embedding parameter q and then setting q=0 and finally dividing them by m!, we have the m th-order deformation equation

L [ u m ( x , t ) χ m u m 1 ( x , t ) ] =h R m [ u m 1 ( x , t ) ] ,
(2.6)

where

R m [ u m 1 ( x , t ) ] = 1 ( m 1 ) ! m 1 N D ( U ( x , t ; q ) ) q m 1 | q = 0
(2.7)

and

χ m ={ 0 , m 1 , 1 , m > 1 .
(2.8)

These equations can be easily solved with software such as Maple, Matlab and so on.

The m th-order deformation Eq. (2.6) is linear, and thus can be easily solved, especially by means of a symbolic computation software such as Maple, Matlab and so on.

3 Test problem

We first consider the modified Kawahara equation [23]

u t + u 2 u x +p u x x x +q u x x x x x =0,
(3.1)

where p, q are nonzero real constants. We solve the nonlinear partial differential equation with the HAM method. We consider Eq. (3.1) with initial condition

u(x,0)= 3 p 10 q sec h 2 (Kx),
(3.2)

where K= 1 2 p 5 q is constant. The exact solution is given for modified Kawahara equation by [23]

u(x,t)= 3 p 10 q sec h 2 ( K ( x c t ) )
(3.3)

with c= 25 q 4 p 2 25 q .

Furthermore, Eq. (3.1) suggests defining the nonlinear fractional partial differential operator

N D ( u ( x , t ; q ) ) = u t ( x , t ; q ) + ( u ( x , t ; q ) ) 2 u x ( x , t ; q ) + p u x x x ( x , t ; q ) + q u x x x x x ( x , t ; q ) .
(3.4)

Applying the above definition, we construct the zeroth-order deformation equation

(1q)L ( u ( x , t ; q ) u 0 ( x , t ) ) =hqNDu(x,t;q).
(3.5)

For q=0 and q=1 respectively, we can write

u(x,t;0)= u 0 (x,t)=u(x,0),v(x,t;1)=u(x,t).
(3.6)

According to Eqs. (2.6)-(2.7), we gain the m th-order deformation equation

L ( u m ( x , t ) x m u m 1 ( x , t ) ) =hNR ( u m 1 ( x , t ) ) ,
(3.7)

where

N R ( u m ( x , t ) ) = D t u m 1 ( x , t ) + i = 0 j u i u j i j = 0 m 1 ( u m 1 j ) x ( x , t ) + p ( u m 1 ) x x x ( x , t ) + q ( u m 1 ) x x x x x ( x , t ) .
(3.8)

Now, the solution of Eq. (3.7) for m1 becomes

u m (x,t)= χ m u m 1 (x,t)+h L 1 NR [ u m 1 ( x , t ) ] .
(3.9)

From Eqs. (3.1), (3.6), and (3.9), for h=1, we now successively get

As shown in Table 1, we note through the results of the preceding table that the solutions we have obtained are very precise and that we have compared our solution (HAM) to HPM and exact solution. HAM is easily more than the other method. It is obvious that two components only were sufficient to determine the exact solution of Eq. (3.1). Figures 1 and 2 show the evolution results. From Figures 1 and 2, it is easy to conclude that the solution continuously depends on the derivative. Where, Figures 1 and 2 are approximation and exact solution respectly. The exact solution of this test problem is as follows [23]:

u(x,t)= 3 p 10 q sec h 2 ( K ( x c t ) ) .
Figure 1
figure 1

The surface of the exact solutions to Eq. ( 3.1 ) obtained in this work.

Figure 2
figure 2

The approximation solutions to Eq. ( 3.1 ) obtained in this work.

Table 1 The numerical results for the approximate solutions obtained by HPM [4] and HAM in comparison with the exact solutions of ( 3.1 )

4 Conclusions

In this paper, we applied the homotopy analysis method to the Kawahara equation. The homotopy analysis method was successfully used to obtain the exact solutions of Kawahara equation. As a result, some new generalized solitary solutions with parameters are obtained. It may be important to explain some physical phenomena by setting the parameters as special values. Finally, the method is straightforward, concise, and is a powerful mathematical method for solving nonlinear problems.