1 Introduction

Fractional differential equations are found to be an effective tool to describe certain physical phenomena such as damping laws, rheology, diffusion processes, and so on. Several methods have been developed to solve fractional differential equations. Lin and Xu [1] proposed the numerical solution for a time-fractional diffusion equation. In [2], an unconditionally stable finite element (FEM) approach for solving a one-dimensional Caputo-type fractional differential equation with singularity at the boundary was presented. Kexue and Jigen [3] discussed the Laplace transform (LT) method for solving fractional differential equations with constant coefficients. Jafari et al. [4] applied the homotopy analysis method to obtain the solution of a multi-order fractional differential equation in the Caputo sense. Merrikh-Bayat [5] developed a low-cost numerical algorithm to find the series solution of nonlinear fractional differential equations with delay. In [6], the Riemann-Liouville fractional integral for repeated fractional integration was expanded in block pulse functions to yield the block pulse operational matrices for the fractional order integration. Esmaeili et al. [7] developed a computational technique based on the collocation method and Muntz polynomials for the solution of fractional differential equations. In [8], three different numerical methods were used to solve a singularly perturbed Able Volterra integral equation, presented by a fractional differential equation. Ibrahim [9] discussed holomorphic solutions for nonlinear singular fractional differential equations.

Homotopy perturbation method (HPM) has been applied by several researchers to solve different kinds of functional equations. This method was further developed and improved by He [10] and applied to develop a coupling method for a homotopy technique [11], limit cycle and bifurcation of nonlinear problems [12], nonlinear wave equation [13], boundary value problems [14], chemical kinetics system [15], oscillators with discontinuities [16], Riccati equation with fractional orders [17], neutron transport equation [18], nonlinear singular fourth order four-point boundary value problems [19], systems of partial differential equations [20], nonlinear ill-posed operator equations [21] and stiff systems of ordinary differential equations [22].

The Laplace transform method has been applied to a wide class of ordinary differential equations (ODEs), partial differential equations (PDEs), integral equations (IEs) and integro-differential equations (IDEs). In these problems it is necessary to calculate the Laplace transform and inverse Laplace transform of certain functions. The inverse of Laplace transform is usually difficult to compute by using the techniques of complex analysis, and there exist numerous numerical methods for its evaluation [23, 24]. Sastre et al. [25] developed an application of Laguerre matrix polynomial series to the numerical inversion of Laplace transforms of matrix functions. Laguerre matrix polynomials were introduced in [26] and theorems for the expansion of matrix functions in series of Laguerre matrix polynomials can be found in [27, 28]. In [29], the dynamical differential equations with initial conditions were converted into the model of linear operator action, in which the linear operator is just the infinitesimal generator for the solver of the differential equations, and the resolvent of the linear operator is the Laplace transform of the solver of original differential equations. In [30], a method for the numerical inversion of Laplace transform on the real line of heavytailed (probability) density functions is presented. The method assumes a finite set of real values of the Laplace transform and chooses the analytical form of the approximant maximizing Shannon-entropy, so that positivity of the approximant itself is guaranteed. In [31], a Laplace homotopy perturbation method is employed for solving one-dimensional non-homogeneous partial differential equations with a variable coefficient. This method is a combination of the Laplace transform and the homotopy perturbation method (LHPM). LHPM presents an accurate methodology to solve non-homogeneous partial differential equations with a variable coefficient. Sheng et al. [32] proposed an application of numerical inverse Laplace transform algorithms and obtained an easy way to solve the complicated fractional-order differential equations numerically. Weeks numerical inversion of Laplace transform algorithm was established by using the Laguerre expansion and bilinear transformations [33]. The authors of [34] developed an accurate numerical inversion of Laplace transforms. Tagliani [35] proposed a numerical method for inversion of Laplace transform with probability densities. The maximum entropy technique provides an analytical form of the approximate solution. Fractional moments are mainly investigated. Entropy and cross-entropy convergence are proved. Valko et al. [36] proposed a new algorithm for the numerical inversion of Laplace transforms by using multi-precision computational environment and provided controlled accuracy, that is, the inversion can be carried out to yield any pre-specified number of significant digits. The fundamental collocation method was extended to handle two-dimensional transient heat conduction problems in solids in [37]. The method was applied in the Laplace transform domain, followed by an inversion technique to retrieve the time-domain solution. In [38], the authors developed a numerical algorithm for inverting a Laplace transform, based on Laguerre polynomial series expansion of the inverse function under the assumption that the Laplace transform is known on the real axis only. The main contribution of the paper is to provide computable estimates of truncation, discretization, conditioning and roundoff errors introduced by numerical computations. In the present work, we apply the Stehfest [39] algorithm for numerical inversion of Laplace transform.

In this paper, the method for numerical solution of fractional partial differential equations is based on Laplace transform (LT), the homotopy perturbation method (HPM) and Stehfest’s numerical algorithm for calculating inverse Laplace transform. The accuracy and efficiency of the method is verified by solving some examples of physical interest.

2 Homotopy perturbation technique

In this section, we describe the homotopy perturbation method [1016] for a general type of the nonlinear differential equation with boundary conditions

A(u)f(r)=0,rΩ,
(1)
B ( u , u n ) =0,rΓ,
(2)

where A is a general differential operator, B is a boundary operator, f(r) is a known analytical function and Γ is the boundary of the domain Ω. The operator A can be divided into two parts L and N, where L is a linear operator and N is a nonlinear operator. Therefore, Eq. (1) can be rewritten as follows:

L(u)+N(u)f(r)=0.
(3)

By the homotopy technique, we define a homotopy H(r,p):Ω×[0,1]R as follows:

H(u,p)=(1p) [ L ( u ) L ( u 0 ) ] +p [ A ( u ) f ( r ) ] =0,p[0,1],rΩ,
(4)

or

H(u,p)=L(u)L( u 0 )+pL( u 0 )+p [ N ( u ) f ( r ) ] =0,p[0,1],rΩ,
(5)

where p[0,1] is an embedding parameter, and u ¯ 0 is an initial approximation for Eq. (1) with

H(u,0)=L(u)L( u 0 )=0,H(u,1)=A(u)f(r)=0.
(6)

Note that the process of varying the values of p from zero to unity corresponds to that of u(r,p) from u ¯ 0 (r) to u(r). We assume that the solution of Eq. (1) can be written as a power series in p, that is,

v= k = 0 p k u k .
(7)

Substituting (7) in (5) and comparing the coefficients of powers of p yields a successive procedure to determine u k . Finally, by setting p=1 in (7), we obtain the solution of Eq. (1).

3 Preliminaries

In this section, we recall some basic concepts of fractional calculus [4044] and Laplace transform.

Definition 1 For μR, a function f:R R + is said to be in the space C μ if it can be written as f(x)= x p f 1 (x) with p>μ, f 1 (x)C[0,), and it is said to be in the space C μ m if f ( m ) C μ for mN{0}.

Definition 2 The Riemann-Liouville fractional integral of order α>0 for a function f C μ with μ1 is defined as

J α f ( t ) = 1 Γ ( α ) 0 t ( t τ ) α 1 f ( τ ) d τ , α > 0 , t > 0 , J 0 f ( t ) = f ( t ) .
(8)

Definition 3 The Riemann-Liouville fractional derivative of order α>0 for a function f C 1 m with mN{0} is defined as

D α f(t)= d m d t m J m α f(t),m1<αm,mN.
(9)

Definition 4 The Caputo fractional derivative of order α>0 for a function f C 1 m with mN{0} is defined as

D α f(t)={ J m α f ( m ) ( t ) , m 1 < α m , m N , d m f ( t ) d t m , α = m .
(10)

Definition 5 A two-parameter Mittag-Leffler function is defined by the following series:

E α , β (t)= k = 0 t k Γ ( α k + β ) .
(11)

Observe that E 1 , 1 (t)= e t , E 1 , 1 (t)= e t .

Definition 6 The Laplace transform of a function u(x,t), t0, denoted by φ(x,s), is defined by

L { u ( x , t ) } =φ(x,s)= 0 e s t u(x,t)dt,
(12)

where s is the transform parameter and is assumed to be real and positive.

Note that the Laplace transform of Mittag-Leffler function E α , β (t) is

L ( E α , β ( t ) ) = 0 e s t E α , β (t)dt= k = 0 Γ ( k + 1 ) s k + 1 Γ ( α k + β ) .
(13)

The Laplace transform of D α f(t) can be found as follows:

L ( D α f ( t ) ) = L ( J m α f ( m ) ( t ) ) = L [ 1 Γ ( m α ) 0 t ( t τ ) m α 1 f ( m ) ( τ ) d τ ] = 1 s m α L ( f ( m ) ( t ) ) = 1 s m α [ s m L ( f ( t ) ) s m 1 f ( 0 ) s m 2 f ( 0 ) s m 3 f ( 0 ) f m 1 ( 0 ) ] .
(14)

4 Description of the method

Consider the following linear fractional partial differential equation:

α u t α +A(x) u x +B(x) 2 u x 2 +C(x)u=h(x,t),(x,t)[0,1]×[0,T],
(15)

with the initial conditions

k u t k (x,0)= f k (x),k=0,1,,m1,
(16)

and the boundary conditions

u(0,t)= g 0 (t),u(1,t)= g 1 (t),t0,
(17)

where f k , k=0,1,,m1, h, g 0 , g 1 , A and B are known functions and T>0 is a real number and m1<αm. Now we explain the method of solution for solving initial-boundary value problem (15)-(17).

Taking the Laplace transform of problem (15)-(17) and using (14), we obtain

1 s m α [ s m Φ ( x , s ) s m 1 f 0 ( x ) s m 2 f 1 ( x ) s m 3 f 2 ( x ) f m 1 ( x ) ] + [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] Φ ( x , s ) = h ¯ ( x , s ) ,
(18)

where Φ(x,s) and h ¯ (x,s) denote the Laplace transform of u(x,t) and h(x,t), respectively, and

Φ(0,s)=L ( g 0 ( t ) ) ,Φ(1,s)=L ( g 1 ( t ) ) .
(19)

Rewriting Eq. (18), we have

s α Φ ( x , s ) = [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] Φ ( x , s ) + 1 s m α [ s m 1 f 0 ( x ) + s m 2 f 1 ( x ) + s m 3 f 2 ( x ) + + f m 1 ( x ) ] + h ¯ ( x , s ) .
(20)

According to HPM, we construct a homotopy for Eq. (20) as follows:

Φ ( x , s ) = p s α [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] Φ ( x , s ) + 1 s m [ s m 1 f 0 ( x ) + s m 2 f 1 ( x ) + s m 3 f 2 ( x ) + + f m 1 ( x ) + 1 s α h ¯ ( x , s ) ] .
(21)

Then the solution of Eq. (21) can be expressed as

Φ ¯ (x,s)= j = 0 p j Φ j (x,s),
(22)

where Φ j (x,s), j=0,1,2, , are the unknown functions. Substituting (22) in (21), we get

j = 0 p j Φ j ( x , s ) = p s α [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] j = 0 p j Φ j ( x , s ) + 1 s m [ s m 1 f 0 ( x ) + s m 2 f 1 ( x ) + s m 3 f 2 ( x ) + + f m 1 ( x ) + 1 s α h ¯ ( x , s ) ] ,
(23)

which, on comparing the coefficients of powers of p, yields

p 0 : Φ 0 ( x , s ) = 1 s m [ s m 1 f 0 ( x ) + s m 2 f 1 ( x ) + s m 3 f 2 ( x ) + + f m 1 ( x ) ] + 1 s α h ¯ ( x , s ) , p 1 : Φ 1 ( x , s ) = 1 s α [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] Φ 0 ( x , s ) , p 2 : Φ 2 ( x , s ) = 1 s α [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] Φ 1 ( x , s ) , p n + 1 : Φ n + 1 ( x , s ) = 1 s α [ A ( x ) x + B ( x ) 2 x 2 + C ( x ) ] Φ n ( x , s ) .
(24)

In the limit p1, we note that (24) becomes the approximate solution for the problem of (15)-(17) and is given by

H n (x,s)= j = 0 n Φ j (x,s).
(25)

Taking the inverse Laplace transform of (25), we obtain

u(x,t) u n (x,t)= L 1 ( H n ( x , s ) ) .
(26)

Applying Stehfest’s algorithm [39] to H n (x,s), the solution u(x,t) is found to be

u n (x,t)= ln ( 2 ) t j = 1 2 p d j H n ( x , j ln ( 2 ) t ) ,

where p is a positive integer and

d j = ( 1 ) j + p i = [ j + 1 2 ] min ( j , p ) i p ( 2 i ) ! ( p i ) ! i ! ( i 1 ) ! ( j i ) ! ( 2 i j ) ! .

Here [r] denotes the integer part of the real number r.

5 Numerical results

In this section, we show the efficiency and accuracy of the new Laplace homotopy perturbation method (LHPM) by applying it to several test problems.

Example 1 Consider the following initial-boundary value problem [45].

α u t α = 1 2 x 2 2 u x 2 ,0<t1,0x1,1<α2,
(27)
u(x,0)=x, u t (x,0)= x 2 ,u(0,t)=0,u(1,t)=1+ k = 0 t k α + 1 Γ ( k α + 2 ) .
(28)

We know that the exact solution of this problem is

u(x,t)=x+ x 2 k = 0 t k α + 1 Γ ( k α + 2 ) .
(29)

By using the method developed in the previous section (24), we find that

Φ 0 ( x , s ) = 1 s 2 ( s x + x 2 ) , Φ 1 ( x , s ) = 1 s α [ 1 2 x 2 2 x 2 Φ 0 ( x , s ) ] = x 2 s α + 2 , Φ 2 ( x , s ) = 1 S α [ 1 2 x 2 2 x 2 Φ 1 ( x , s ) ] = x 2 s 2 α + 2 , Φ n + 1 ( x , s ) = 1 s α [ 1 2 x 2 2 x 2 Φ n ( x , s ) ] = x 2 s ( n + 1 ) α + 2
(30)

and so on. By (25), we get

H n (x,s)= x s + x 2 s 2 ( 1 + 1 s α + 1 s 2 α + + 1 s n α ) .
(31)

Taking the inverse Laplace transform of (31), the approximate solution of (27)-(28) is given by

u n (x,t)= L 1 ( H n ( x , s ) ) =x+ x 2 k = 0 n t k α + 1 Γ ( k α + 2 ) ,
(32)

which, on taking the limit n, yields

u(x,t)= lim n u n (x,t)=x+ x 2 k = 0 t k α + 1 Γ ( k α + 2 ) .
(33)

Table 1 shows the absolute errors |u(x,t) u n (x,t)| using the LHPM with p=8, α=1.75,1.85,1.95, n=3 for various values of x and t. Clearly, it follows from the table that the numerical solutions are in good agreement with the exact solution.

Table 1 Absolute errors |u(x,t) u n (x,t)| by LHPM with p=8 , α=1.75,1.85,1.95 , n=3 for various values of x and t for Example 1

In Figure 1, we plot the logarithm of absolute errors obtained by the LHPM at x=0.5,1 with n=3, p=8 for various values of t. In Figure 2, we plot the numerical solution and the exact solution at x=0.5,1 with n=3, p=8 for various values of α and t.

Figure 1
figure 1

Logarithm of absolute errors obtained by the LHPM at x=0.5,1 with n=10 , p=8 for various values of t .

Figure 2
figure 2

The numerical solution and the exact solution at x=0.5,1 with n=3 , p=8 for various values of α and t .

Example 2 Let us consider the following fractional differential equation [45].

α u t α +x u x + 2 u x 2 =2 ( t α + x 2 + 1 ) ,0<t1,0x1,0<α1,
(34)

with the initial condition

u(x,0)= x 2
(35)

and the boundary conditions

u(0,t)=2 t 2 α Γ ( α + 1 ) Γ ( 2 α + 1 ) ,u(1,t)=1+2 t 2 α Γ ( α + 1 ) Γ ( 2 α + 1 ) .
(36)

The exact solution of the given problem is given by

u(x,t)= x 2 +2 t 2 α Γ ( α + 1 ) Γ ( 2 α + 1 ) .
(37)

By using the method presented in Section 4, namely (24), we obtain

Φ 0 ( x , s ) = x 2 s + 2 s α [ Γ ( α + 1 ) s α + 1 + x 2 + 1 s ] , Φ 1 ( x , s ) = 1 s α [ x x 2 x 2 ] Φ 0 ( x , s ) = ( x 2 + 1 ) ( 4 s 2 α + 1 + 2 s α + 1 ) , Φ 2 ( x , s ) = 1 s α [ x x 2 x 2 ] Φ 1 ( x , s ) = ( x 2 + 1 ) ( 8 s 3 α + 1 + 4 s 2 α + 1 ) , Φ n + 1 ( x , s ) = 1 s α [ x x 2 x 2 ] Φ n ( x , s ) = ( 1 ) n + 1 ( x 2 + 1 ) ( 2 n + 2 s ( n + 2 ) α + 1 + 2 n + 1 s ( n + 1 ) α + 1 ) ,
(38)

and so on.

As before, by using (25), we obtain

H n (x,s)= 2 Γ ( α + 1 ) s α + 1 + x 2 s + ( 1 ) n ( 1 + x 2 ) 2 n + 1 s ( n + 1 ) α + 1 .
(39)

Taking the inverse Laplace transform of (39) and taking the limit n, the approximate solution for problem (34)-(36) is given by

u(x,t)= lim n u n (x,t)= x 2 +2 t 2 α Γ ( α + 1 ) Γ ( 2 α + 1 ) .
(40)

In Table 2, we list the absolute errors using the LHPM with p=10, α=0.75,0.85,0.95, n=10 for various values of x and t. It can easily be seen from the table that the numerical solutions are in good agreement with the exact solution.

Table 2 Absolute errors by LHPM with p=10 , α=0.75,0.85,0.95 , n=10 for various values of x and t

In Figure 3, we plot the logarithm of absolute errors obtained by the LHPM at x=0.5,1 with n=10, p=10 for various values of t. In Figure 4, we plot the exact solution and the numerical solution obtained by the LHPM with x=0.1,1 for n=4,6,10, p=10, α=0.75 for various values of t. As we see from Figure 4, the numerical solutions are in good agreement with the exact solution as the value of n is increased.

Figure 3
figure 3

Logarithm of absolute errors obtained by the LHPM at x=0.5,1 with n=10 , p=10 for various values of t .

Figure 4
figure 4

The exact solution and the numerical solution obtained by the LHPM with x=0.1,1 for n=4,6,10 , p=10 , α=0.75 for various values of t .

Example 3 Consider the fractional differential equation [46]

α u t α + u x = t 1 α Γ ( 2 α ) sin(x)+tcos(x),t>0,0x1,0<α1,
(41)

with the initial condition

u(x,0)=0
(42)

and the boundary conditions

u(0,t)=0,u(1,t)=tsin(1).
(43)

The exact solution for this problem is

u(x,t)=tsin(x).
(44)

Following the method of Section 4 (24), we find that

Φ 0 ( x , s ) = 1 s α [ sin ( x ) s 2 α + cos ( x ) s 2 ] , Φ 1 ( x , s ) = 1 s α x Φ 0 ( x , s ) = 1 s 2 α [ cos ( x ) s 2 α sin ( x ) s 2 ] , Φ 2 ( x , s ) = 1 s α x Φ 1 ( x , s ) = 1 s 3 α [ sin ( x ) s 2 α cos ( x ) s 2 ] , Φ n ( x , s ) = 1 s α x Φ n 1 ( x , s ) = ( 1 ) n 1 s ( n + 1 ) α [ sin ( n π 2 + x ) s 2 α + cos ( n π 2 + x ) s 2 ] .
(45)

By means of (25), we obtain

H n (x,s)= 2 Γ ( α + 1 ) s α + 1 + x 2 s + ( 1 ) n ( 1 + x 2 ) 2 n + 1 s ( n + 1 ) α + 1 .
(46)

Taking the inverse Laplace transform of (46), the approximate solution of (41)-(43) is found to be

u n (x,t)= L 1 ( H n ( x , s ) ) ={ sin x s 2 + cos x s ( n + 1 ) α + 2 , n = 2 k , sin x ( 1 s 2 1 s ( n + 1 ) α + 2 ) , n = 2 k + 1 ,
(47)

which, on taking the limit n, gives

u(x,t)= lim n u n (x,t)=tsin(x).
(48)

In Table 3, we list the absolute errors using the LHPM with p=10, α=0.5,0.75,0.95, n=10 for various values of x and t. It follows from the table that the numerical solutions are in good agreement with the exact solution.

Table 3 Absolute errors by LHPM with p=10 , α=0.5,0.75,0.95 , n=10 for various values of x and t for Example 3

In Figure 5, we plot the logarithm of absolute errors obtained by the LHPM at x=0.5,1 with n=10, p=10 for various values of t. In Figure 6, we plot the exact solution and the numerical solution obtained by the LHPM with x=0.5,1 for n=2,3,9, p=10, α=0.25 for various values of t. Clearly, the numerical solutions are in good agreement with the exact solution as the value of n is increased.

Figure 5
figure 5

Logarithm of absolute errors obtained by the LHPM at x=0.5,1 with n=10 , p=10 for various values of t .

Figure 6
figure 6

The exact solution and the numerical solution obtained by the LHPM with x=0.5,1 for n=2,3,9 , p=10 , α=0.25 for various values of t .

Example 4 Consider the fractional differential equation

α u t α (x,t)+ u 2 (x,t)= 2 x t 2 α Γ ( 3 α ) + x 2 t 4 ,t>0,0x1,0<α1,
(49)

with the initial condition

u(x,0)=0
(50)

and the boundary conditions

u(0,t)=0,u(1,t)= t 2 .
(51)

The exact solution for this problem is

u(x,t)=x t 2 .
(52)

Taking the Laplace transform of problem (49)-(52) and using (24), we obtain

1 s 1 α [ s 1 Φ ( x , s ) ] +Ω(x,s)= 2 x s 3 α + 24 x 2 s 5 ,
(53)

where Φ(x,s) and h ¯ Ω(x,s) denote the Laplace transform of u(x,t) and u 2 (x,t), respectively, and

Φ(0,s)=0,Φ(1,s)= 2 s 3 .

According to HPM, we construct a homotopy for Eq. (53) as follows:

Φ(x,s)= 1 s α ( 2 x s 3 α p Ω ( x , s ) + 24 x 2 s 5 ) .
(54)

Following the method of Section 4 (24), we find that

Φ 0 ( x , s ) = 2 x s 3 + 4 ! x 2 s α + 5 , Φ 1 ( x , s ) = 1 s α ( 4 ! x 2 s 5 + ( 4 ! ) 2 x 2 Γ ( 2 α + 9 ) Γ 2 ( α + 5 ) s 2 α + 9 + 48 x 3 Γ ( α + 7 ) Γ ( α + 5 ) s α + 7 ) , Φ 2 ( x , s ) = 2 × 4 ! x 3 s 2 α + 7 Γ ( α + 5 ) ( Γ ( α + 7 ) + 4 ! Γ ( 2 α + 9 ) Γ ( 3 α + 11 ) Γ ( α + 5 ) Γ ( 3 α + 9 ) s 2 α + 4 Φ 2 ( x , s ) = + 2 x Γ ( α + 7 ) Γ ( 2 α + 8 ) Γ ( 2 α + 7 ) s α + 1 Φ 2 ( x , s ) = + 4 ! x Γ ( 2 α + 9 ) Γ ( α + 5 ) s α + 2 + ( 4 ! ) 2 x 3 Γ ( 2 α + 9 ) Γ ( 4 α + 13 ) Γ 2 ( α + 5 ) Γ ( 3 α + 9 ) s 3 α + 6 )
(55)

and so on.

By means of (25), we obtain

H 2 ( x , s ) = 2 x s 3 + 2 × 4 ! x 3 s 2 α + 7 Γ ( α + 5 ) ( 4 ! Γ ( 2 α + 9 ) Γ ( 3 α + 11 ) Γ ( α + 5 ) Γ ( 3 α + 9 ) s 2 α + 4 + 2 x Γ ( α + 7 ) Γ ( 2 α + 8 ) Γ ( 2 α + 7 ) s α + 1 + ( 4 ! ) 2 x 3 Γ ( 2 α + 9 ) Γ ( 4 α + 13 ) Γ 2 ( α + 5 ) Γ ( 3 α + 9 ) s 3 α + 6 ) .
(56)

Taking the inverse Laplace transform of (56), the approximate solution of (49)-(51) is found to be

u n ( x , t ) = L 1 ( H n ( x , s ) ) = x t 2 + 2 × 4 ! x 3 Γ ( 2 α + 9 ) Γ ( 3 α + 11 ) Γ 2 ( α + 5 ) Γ ( 3 α + 9 ) Γ ( 3 α + 11 ) t 3 α + 10 + 2 2 × 4 ! x 4 Γ ( α + 7 ) Γ ( 2 α + 8 ) Γ ( α + 5 ) Γ ( 2 α + 7 ) Γ ( 2 α + 8 ) t 2 α + 7 + 2 ( 4 ! ) 2 x 6 Γ ( 2 α + 9 ) Γ ( 4 α + 13 ) Γ 3 ( α + 5 ) Γ ( 3 α + 9 ) Γ ( 4 α + 13 ) t 4 α + 12 .
(57)

In Table 4, we list the absolute errors using the LHPM with α=0.8,0.85,0.90,0.95,0.99, n=2, x=0.5 for various values of t. It follows from the table that the numerical solutions are in good agreement with the exact solution.

Table 4 Absolute errors by LHPM with α=0.8,0.85,0.90,0.95,0.99 , n=2 , x=0.5 for various values of t for Example 4

6 Conclusions

In this paper, we have developed a new numerical method for solving fractional partial differential equations. This method is based on Laplace transform, the homotopy perturbation method and Stehfest’s numerical algorithm for calculating inverse Laplace transform. We demonstrate the efficiency and accuracy of the proposed method by applying it to three typical examples. It is found that the approximate solutions produced by our method are in complete agreement with the corresponding exact solutions. Moreover, in view of its simplicity, our method is applicable to a wide class of initial-boundary value problems occurring in applied sciences.