1 Introduction

Solving differential equations is an important issue in sciences because many physical phenomena are modelled using such equations. The Padé method is a well established resummation method from literature. It can increase the domain of convergence of truncate power series (Bararnia et al. 2012; Guerrero et al. 2013; Torabi and Yaghoobi 2011; Vazquez-Leal and Guerrero 2013). It is has been applied to the improve the accuracy of truncated power obtained by power series method (PSM) (Forsyth 1906; Geddes 1979; Ince 1956; Vazquez-Leal and Guerrero 2013), Adomian Decomposition method (ADM) (Wazwaz 2006; Wang et al. 2011), homotopy perturbation method (HPM) (Bararnia et al. 2012; Rashidi and Keimanesh 2010; Torabi and Yaghoobi 2011), homotopy analysis method (HAM) (Guerrero et al. 2013), differential transform method (DTM) (Rashidi and Keimanesh 2010; Rashidi et al. 2010; Rashidi and Pour 2010a, 2010b), among others, during the solution procedure for linear and nonlinear differential equations. Nonetheless, in this work, we propose that the solution of a differential equation can be directly expressed as a rational power series of the independent variable, in other words as a Padé approximant. The proposed procedure will be described by solving several nonlinear problems and comparing results with other semi-analytic methods. The direct application of Padé eradicates the necessity to obtain a power series solution (by some approximative method) to post-treat it with the Padé approximant. Instead, we substitute a Padé approximant of a given order directly to the nonlinear differential equation; it results a residual power series in terms of the independent variable. Next, from the lowest order, we equate each coefficient of such power series to zero, resulting a system of nonlinear algebraic equations (NAEs). Finally, we resolve the NAEs in order to minimize the residual error of the differential equation.

This paper is organized as follows. In Section 2, we introduce the basic concepts of the Padé approximant. Next, the procedure to approximate nonlinear differential equations with Padé is presented in Section 3. In Section 4 some cases study are presented. In Section 5, numerical simulations and a discussion about the results are provided. Finally, a brief conclusion is given in Section 6.

2 Padé approximant

Given an analytical function u(t) with Maclaurin’s expansion

u t = n = 0 u n t n ,0tT.
(1)

The Padé approximant to u(t) of order [L,M] which we denote by [L/M] u (t) is defined by (Baker 1975)

[ L / M ] u t = p 0 + p 1 t + + p L t L 1 + q 1 t + + q M t M ,
(2)

where we considered q0 = 1, and the numerator and denominator have no common factors.

The numerator and the denominator in (2) are constructed so that u(t) and [L/M] u (t) and their derivatives agree at t = 0 up to L + M. That is

u(t)- [ L / M ] u t =O t L + M + 1 .
(3)

From (3), we have

u t i = 1 M q i t i - i = 0 L p i t i =O t L + M + 1 .
(4)

From (4), we get the following systems

u L q 1 + + u L - M + 1 q M = - u L + 1 u L + 1 q 1 + + u L - M + 2 q M = - u L + 2 u L + M - 1 q 1 + + u L q M = - u L + M ,
(5)

and

p 0 = u 0 p 1 = u 1 + u 0 q 1 p L = u L + u L - 1 q 1 + + u 0 q L .
(6)

From (5), we calculate first all the coefficients q i ,1 ≤ iM. Then, we determine the coefficient p i ,0 ≤ iL from (6).

Note that for a fixed value of L + M + 1, the error (3) is smallest when the numerator and denominator of (2) have the same degree or when the numerator has degree one higher than the denominator.

3 Padé applied to solve nonlinear differential equations

It can be considered that a nonlinear differential equation can be expressed as

L 1 (u)+N(u)=0,wherexΩ,
(7)

having as boundary condition

B u , u η =0,wherexΓ,
(8)

where L1 and N, are a linear and a non-linear operator, respectively; B is a boundary operator, Γ is the boundary of domain Ω, and u/ η denotes differentiation along the normal drawn outwards from Ω.

Now, we assume that the solution for (7) can be written as

u(x)= i = 0 L v i ( x - x 0 ) i i = 0 M w i ( x - x 0 ) i ,
(9)

where v0,v1,… and w0,w1,… are unknowns to be determined by the Padé method, L, M are the order of the numerator and denominator, and x0 is an arbitrary constant.

There is not a systematic method to choose the optimal Padé order [L/M] for a given problem. However, usually, a finite number of terms are required in order to obtain a highly accurate Padé approximation. The basic process of direct Padé procedure can be described as:

  1. 1.

    The boundary conditions of (7) are substituted in (9) to generate an equation for each boundary condition. It is important to notice, that there is an algebraic equation for each boundary condition, hence, the rest of equations required to generate a NAEs (with the same number of variables and equations) are obtained from the next step.

  2. 2.

    u(x) from (9) is substituted into (7), then, we regroup the resulting equation in terms of the x-powers. It is important to notice that the operators L 1 and N will be applied to u(x). After this, the regrouping procedure will include the eradication of the denominator terms emanated from the Padé approximant (9). In this way, the resulting expression is a power series that represents the residual error of the differential equation (7).

  3. 3.

    In order to reduce the residual error; from the lowest order, we equate each coefficient of the x-powers in the resulting residual power series to zero to obtain an algebraic equation in terms of the unknown coefficients of (9).

  4. 4.

    Aforementioned steps generates a NAEs in terms of the unknowns from (9).

  5. 5.

    Finally, we solve the NAEs to obtain v 0,v 1,… and w 0,w 1,….

4 Cases study

In this section, we will solve several nonlinear problems of different types to show the validity and power of the direct application of Padé method to solve a broad spectrum of equations.

4.1 A boundary value problem

The Troesch’s equation is a boundary value problem (BVP) derived from research on the confinement of a plasma column by radiation pressure (Weibel 1959) and also from the theory of gas porous electrodes (Gidaspow and Baker 1973; Markin et al. 1966). The problem is expressed as

y =nsinh(ny),y(0)=0,y(1)=1,
(10)

where prime denotes differentiation with respect to x and n is known as Troesch’s parameter.

In order to facilitate the application of Padé method, we convert the hyperbolic-type nonlinearity from Troesch’s problem into a polynomial type nonlinearity (Chang 2010; Vazquez-Leal et al. 2012c), using the variable transformation

u(x)=tanh n 4 y ( x ) .
(11)

After using (11), we obtain the following transformed problem

1 - u 2 u +2u ( u ) 2 - n 2 u(1+ u 2 )=0,
(12)

where conditions are obtained by using variable transformation (11).

Then, substituting original boundary conditions y(0) = 0 and y (1) = 1 into (11), results

u(0)=0,andu(1)=tanh n 4 .
(13)

We suppose that solution for (12) has the following rational expression

u(x)= i = 0 L v i ( x - x 0 ) i i = 0 M w i ( x - x 0 ) i ,
(14)

where w0 = 1, x0 = 0, and L = M = 8.

Substituting (14) into (12), rearranging and equating terms having the same x-powers, we obtain

2 v 2 - 2 v 1 w 1 + 2 v 0 w 1 2 - 2 v 0 w 2 + 2 v 0 3 w 2 + 2 v 0 v 1 2 - 2 v 0 2 v 1 w 1 - 2 v 0 2 v 2 - n 2 v 0 3 - n 2 v 0 + 12 v 4 - 4 v 2 w 2 + 12 v 3 w 1 - 12 v 1 w 3 + 4 v 0 w 2 2 - 12 v 0 w 4 - 8 v 1 w 1 w 2 + 8 v 2 v 1 2 - 12 v 4 v 0 2 + 12 v 0 3 w 4 + 4 v 2 2 v 0 + 8 v 0 w 1 2 w 2 + 12 v 1 v 0 2 w 3 - 4 v 0 2 v 2 w 2 - 8 v 2 v 1 v 0 w 1 - 12 v 3 v 0 2 w 1 - v 2 n 2 - 3 n 2 v 0 w 2 - 3 v 2 v 0 2 n 2 - 3 n 2 v 0 w 1 2 - 3 v 1 2 v 0 n 2 - 3 v 1 n 2 w 1 - n 2 v 0 3 w 2 - 3 v 1 v 0 2 n 2 w 1 x + = 0 .
(15)

Next, equating coefficients of x in (15) to zero, we obtain the following system of nonlinear algebraic equations

x 0 : 2 v 2 - 2 v 1 w 1 + 2 v 0 w 1 2 - 2 v 0 w 2 + 2 v 0 3 w 2 + 2 v 0 v 1 2 - 2 v 0 2 v 1 w 1 - 2 v 0 2 v 2 - n 2 v 0 3 - n 2 v 0 = 0 , x 1 : 12 v 4 - 4 v 2 w 2 + 12 v 3 w 1 - 12 v 1 w 3 + 4 v 0 w 2 2 - 12 v 0 w 4 - 8 v 1 w 1 w 2 + 8 v 2 v 1 2 - 12 v 4 v 0 2 + 12 v 0 3 w 4 + 4 v 2 2 v 0 + 8 v 0 w 1 2 w 2 + 12 v 1 v 0 2 w 3 - 4 v 0 2 v 2 w 2 - 8 v 2 v 1 v 0 w 1 - 12 v 3 v 0 2 w 1 - v 2 n 2 - 3 n 2 v 0 w 2 - 3 v 2 v 0 2 n 2 - 3 n 2 v 0 w 1 2 - 3 v 1 2 v 0 n 2 - 3 v 1 n 2 w 1 - n 2 v 0 3 w 2 - 3 v 1 v 0 2 n 2 w 1 = 0 ,
(16)

Now, in order to consider the boundary conditions (13), we substitute them into (14) to obtain

v 0 = 0 , i = 0 8 v i 1 + i = 1 8 w i = tanh n 4 ,
(17)

corresponding to u (0) = 0 and u(1)=tanh n 4 , respectively.

Then, solving the system composed by (16) and (17), it results

v 0 = 0 , v 1 = . 119880474427 , v 2 = . 380280473821 , v 3 = . 564352544936 , v 4 = 0.706909216018 × 1 0 - 2 , v 5 = 0.0129612620679 , v 6 = - 0.591199285830 × 1 0 - 4 , v 7 = 0.896122363451 × 1 0 - 5 , v 8 = - 6.33691960724 × 1 0 - 7 , w 1 = 3.17216357074 , w 2 = 4.67075066552 , w 3 = - 0.0580095782038 , w 4 = - 0.0645500498446 , w 5 = 0.286395017212 e - 3 , w 6 = 0.449835719687 × 1 0 - 3 , w 7 = - 0.159764848819 × 1 0 - 5 , w 8 = - 0.459066511294 × 1 0 - 5 ,
(18)

and

v 0 = 0 , v 1 = 0.211300671328 , v 2 = 0 , v 3 = 0.0205074952135 , v 4 = 0 , v 5 = - 0.214876109142 × 1 0 - 4 , v 6 = 0 , v 7 = - 0.111221356703 × 1 0 - 4 , v 8 = 0 , w 1 = 0 , w 2 = - 0.0547303880429 , w 3 = 0 , w 4 = 0.109464583871 × 1 0 - 2 , w 5 = 0 , w 6 = - 0.270186358901 × 1 0 - 4 , w 7 = 0 , w 8 = - 3.83815897415 × 1 0 - 7 ,
(19)

for n = 0.5 and n = 1, respectively.

Finally, from (11) and (14), the proposed solution of Troesch’s problem is

y(x)= 4 n tanh - 1 i = 0 8 v i x i i = 0 8 w i x i ,0x1,
(20)

where (18) or (19) are used depending on the value of n.

4.2 Differential-algebraic equation

Consider the index one differential-algebraic equation system (DAEs) (Amat et al. 2012)

y - z = 0 , y ( 0 ) = 2 2 , y 2 + z 2 - 1 = 0 , z ( 0 ) = 2 2 ,
(21)

where prime denotes derivative with respect to t, and the exact solution is

y ( t ) = sin t + π 4 , z ( t ) = cos t + π 4 .
(22)

We suppose that solution for (21) has the following rational form

y ( t ) = i = 0 L 1 v 1 , i t i i = 0 M 1 w 1 , i ( t - t 0 ) i , z ( t ) = i = 0 L 2 v 2 , i t i i = 0 M 2 w 2 , i ( t - t 0 ) i ,
(23)

where w1,0 and w2,0 are considered as 1 to simplify the process of solution, and t0 = 0.

If we consider L1 = M1 = L2 = M2 = 12, and substituting (23) into (21); rearranging and equating terms having the same t-powers, we obtain

v 1 , 1 - v 2 , 0 - v 1 , 0 w 1 , 1 + - v 2 , 1 - 2 v 1 , 0 w 1 , 2 - v 1 , 0 w 1 , 1 w 2 , 1 + v 1 , 1 w 2 , 1 - 2 v 2 , 0 w 1 , 1 + 2 v 1 , 2 t + = 0 , - 1 + v 2 , 0 2 + v 1 , 0 2 + - 2 w 1 , 1 + 2 v 2 , 0 2 w 1 , 1 + 2 v 1 , 0 2 w 2 , 1 + 2 v 2 , 0 v 2 , 1 + 2 v 1 , 0 v 1 , 1 - 2 w 2 , 1 t + = 0 .
(24)

Next, equating coefficients of t in (24) to zero, we obtain the following system of nonlinear algebraic equations

t 0 : v 1 , 1 - v 2 , 0 - v 1 , 0 w 1 , 1 = 0 , t 1 : - v 2 , 1 - 2 v 1 , 0 w 1 , 2 - v 1 , 0 w 1 , 1 w 2 , 1 + v 1 , 1 w 2 , 1 - 2 v 2 , 0 w 1 , 1 + 2 v 1 , 2 = 0 , t 0 : - 1 + v 2 , 0 2 + v 1 , 0 2 = 0 , t 1 : - 2 w 1 , 1 + 2 v 2 , 0 2 w 1 , 1 + 2 v 1 , 0 2 w 2 , 1 + 2 v 2 , 0 v 2 , 1 + 2 v 1 , 0 v 1 , 1 - 2 w 2 , 1 = 0 .
(25)

Now, in order to consider the initial conditions from (21), we substitute them into (23) to obtain

v 1 , 0 = 2 2 , v 2 , 0 = 2 2 ,
(26)

corresponding to y(0)= 2 2 and z(0)= 2 2 , respectively.

Solving the NAEs composed by (25) and (26), it results the coefficients shown in Table 1.

Table 1 Coefficients from Padé approximant ( 27) for DAEs ( 21)

From (23) and Table 1, the proposed solution is

y ( t ) = i = 0 12 v 1 , i t i i = 0 12 w 1 , i t i , z ( t ) = i = 0 12 v 2 , i t i i = 0 12 w 2 , i t i ,
(27)

4.3 Asymptotic problem

The quadratic Riccati equation is a well known, and difficult to solve, asymptotic problem for approximative methods (Abbasbandy 2006, 2007; Tan and Abbasbandy 2008; Tsai and Chen 2010). The problem is expressed as follows

Y -2Y+ Y 2 -1=0,Y(0)=0,
(28)

where prime denotes differentiation with respect to t. The exact solution of (28), was found to be

Y(t)=1+ 2 tanh 2 t + 1 2 log 2 - 1 2 + 1 .
(29)

We suppose that solution for (28) has the following rational form

Y(t)= i = 0 L v i ( t - t 0 ) i i = 0 M w i ( t - t 0 ) i ,
(30)

where w0 = 1, t0 = 0, and L = M = 4.

Substituting (30) into (28), rearranging and equating terms having the same t-powers, we obtain the following system of equations

t 0 : - 1 + v 1 - v 0 w 1 - 2 v 0 + v 0 2 = 0 , t 1 : - 4 w 1 + 2 v 0 v 1 + 2 v 2 - 2 v 0 w 2 - 6 v 0 w 1 - 2 v 1 + 2 v 1 w 1 - 2 v 0 w 1 2 + 2 w 1 v 0 2 = 0 ,
(31)

In order to consider the initial condition of Y (0) = 0, we substitute it into (30) to obtain

v 0 w 0 = 0 ,
(32)

Then, using (32) and (31) and solving, results

Y ( t ) = t + 0.19047619 t 3 1 - t + 0.85714286 t 2 - 0.19047619 t 3 + 0.038095238 t 4 .
(33)

Now, we will obtain another Padé approximant from (29), for the expansion point Y (1.7) = 2.28577828560. Therefore, using such point as initial condition, we generate the following extra equation

v 0 w 0 = 2.28577828560 ,
(34)

Next, using (31) and (34) to obtain the coefficients from Padé expression (30), and substituting t by expansion point (t-1.7), results

[!b]

Y ( t ) = - 3.3000449 + 3.2857784 t + 1.9592386 t - 1.7 2 + 0.62586255 t - 1.7 3 + 0.087077272 t - 1.7 4 - 1.1858233 + 1.2857784 t + 0.85714286 t - 1.7 2 + 0.24491017 t - 1.7 3 + 0.038095238 t - 1.7 4 .
(35)

We can see in Figure 1 a comparison between (33) and (35) to exact solution (29). It results that changing the expansion point was useful to increase the domain of convergence of the Padé method for this case study. However, a systematic procedure to choose the optimal expansion point for general problems is a pending task for future research.

Figure 1
figure 1

Exact solution ( 29) (solid line), Padé approximations ( 33) (diamonds), ( 35) (circles), and a 250 terms power series solution (dash-dot).

5 Numerical simulation and discussion

On one side, semi-analytic methods like: generalized homotopy method (GHM) (Vazquez-Leal 2013), homotopy perturbation method (Araghi and Rezapour 2011; Araghi and Sotoodeh 2012; Bayat et al. 2013, 2014; Biazar and Eslami 2011; Biazar and Ghanbari 2012; Filobello-Nino et al. 2012a, 2012b; He 1999, 2009; Khan et al. 2012a, 2012b; Vazquez-Leal 2012; Vazquez-Leal et al. 2012a, 2012b, 2012d), homotopy analysis method (Hassana and El-Tawil 2011; He 2004; Rashidi et al2012a,2012b; Tan and Abbasbandy2008), variational iteration method (Abbasbandy2007; Chang 2010; Khan et al. 2012c), among others (Khan et al. 2012d), need an initial approximation for the sought solutions and the calculus of one or several adjustment parameters. If the initial approximation is properly chosen, the results can be highly accurate, nonetheless, there is not a general method to choose such initial approximation. This issue motivates the use of adjustment parameters obtained by minimizing the least-squares error with respect to the numerical solution. On the other side, the Padé method obtain its coefficients using a straightforward procedure. Furthermore, at least for low-order approximations, the solution can be easily obtained using the “solve” or “fsolve” commands of MAPLE or equivalent routines from Mathematica or MATLAB.

We presented several cases study to show the successful use of the Padé method to solve directly a wide variety of nonlinear problems. For instance, the Troesch’s BVP problem is a benchmark equation for numerical (Erdogan and Ozis 2011; Lin et al. 2008) and semi-analytical methods (Chang 2010; Deeba 2000; Feng et al. 2007; Hassana and El-Tawil 2011; Khuri 2003; Mirmoradia et al. 2009; Vazquez-Leal et al. 2012c) due to the numerical problems to solve it. Nevertheless, as shown in Table 2, the Padé approximation (20) is exact for n=0.5 compared to the numerical solution reported in (Erdogan and Ozis 2011; Lin et al. 2008). This result is relevant considering the high error values of the solutions reported using other semi-analytical methods: homotopy perturbation method (HPM) (Feng et al. 2007; Mirmoradia et al. 2009; Vazquez-Leal et al. 2012c), Adomian Decomposition method (ADM) (Deeba et al. 2000), homotopy analysis method (HAM) (Hassana and El-Tawil 2011) and Laplace decomposition transform method (LDTM) (Khuri 2003). All of them possess an average absolute relative error (A.A.R.E.) significantly larger that our results. A similar result was found for n=1 as presented in Table 3. Therefore, the direct Padé method can, potentially, be an excellent tool to solve nonlinear BVP problems described over finite intervals. It is important to remark that for boundary conditions over finite intervals, the traditional Padé approximant applied to the power series of the exact solution or to the exact solution, can only guarantee one boundary condition (traditionally at x=0). However, the proposed method build a restriction equation for each non-singular boundary conditions over the finite interval. Such equations are part of the NAEs that is resolved to provide the coefficients of the Padé approximant. Therefore, the resulting modified Padé expression fulfils all the boundary conditions.

Table 2 Comparison between ( 20), exact solution (Erdogan and Ozis2011; Lin et al.2008), and other reported approximate solutions
Table 3 Comparison between ( 20), exact solution (Erdogan and Ozis2011; Lin et al.2008), and other reported approximate solutions

Padé approximation (27) of DAEs problem (21) exhibited highly accurate results for a long period of time as depicted in Figure 2 and Table 4. The differential-algebraic nonlinear problems are of relevance on several fields of science, including microelectronics and chemistry. In addition, there is not any standard analytical method to solve this type of equations, this is what it makes the Padé method in an attractive tool to obtain approximate solutions for DAEs problems. Furthermore, the solution procedure of (21) shows that is possible - potentially - to approximate a wide variety of problems containing several variables.

Figure 2
figure 2

Exact solution ( 22) (solid circles) of DAEs ( 21) and Padé approximation ( 27) (solid line): a) y ( t ) and b) z ( t ).

Table 4 Relative error (R.E.) of exact solution ( 22) versus Padé approximation ( 27)

The accuracy of approximations (33) and (35) for the quadratic Riccati problem (28) is depicted in Figure 1. Moreover, we have suggested a strategy to increase the domain of convergence of the Padé method by changing its expansion point. As depicted in Figure 1, the approximation (35) obtained by expanding at t = 1.7 is far more accurate than (33) obtained by expanding at t = 1.7. It is important to notice that the expansion point was arbitrary choose for this case study; therefore, further work is required to deduce a systematic algorithm to choose optimal expansion points. Furthermore, in (Abbasbandy 2006) was reported a power series solution for the same equation with poor convergence, making necessary to solve the problem by a multi-stage version of HPM method. The advantage of our solution, in this case, is that we do not need to use a complicated segmented method; therefore, this approach generates simpler solutions. In addition, in (Tsai and Chen 2010) was reported the combination of Laplace Adomian Decomposition Method with Padé (LADM-Padé) of order [13/12] to obtain a similar result to our [4/4] order Padé solution. Furthermore, in (Abbasbandy 2007) was reported a power series solutions with short domain of convergence. A HAM solution in terms of exponential expressions was reported in (Tan and Abbasbandy 2008), presenting a high accurate solution with a larger domain than the proposed solution; for this case, we can increase the order of the Padé approximation to obtain a good agreement with HAM solution. Moreover, in order to show the advantage of the proposed method, we calculated 250 terms of the power series solution using the well established series method (using the command dsolve of Maple 16), resulting a poor region of convergence, followed by (33). Finally, as depicted in Figure 1, the best domain of convergence was obtained from the Padé approximant (35) due to the expansion point change.

The direct application of the Padé approximant to obtain rational solutions of nonlinear differential equations circumvent the old requirement of using Taylor series method (Vazquez-Leal et al. 2014), HPM, VIM, HAM, DTM, PSM, ADM and others, as tools to obtain a power series solutions to post-process later by the application Padé approximant. Therefore, this new straightforward methodology reduce the computational effort producing good results.

In general terms, we know from literature (Bararnia et al. 2012; Guerrero et al.2013; Torabi and Yaghoobi 2011; Vazquez-Leal and Guerrero 2013) that larger values for M and L, can lead to better results for Padé approximant, this considering that we count in advance with a suitable power series (large enough) obtained using an extra approximative method as aforementioned. Then, our proposal has a strong advantage because we do not require a power series to post-process with Padé approximant, because the method consist in the direct application of Padé. However, a systematic procedure to obtain the optimal order [L/M] is still a pending issue to study in a future research derived from this paper. Finally, in the present study, we restricted the research to nonsingular initial conditions and Dirichlet finite interval boundary conditions; nonetheless, further work is required to deal with singular initial condition problems, Neumann boundary conditions, infinity boundary conditions, among others.

6 Conclusions

This work presented the direct application of Padé method as a technique with high potential to solve nonlinear differential equations. Also, a comparison between the results of applying the proposed procedure and other semi-analytical was shown. The results showed that Padé is a powerful method to solve different nonlinear equations like the ones for: boundary value problems, differential-algebraic problems, and asymptotic problems. The method provided better results than many of the most used methods like: HPM, ADM, HAM, DTM, VIM, PSM, among others. Finally, further research should be performed to solve other kind of problems as: nonlinear fractional/partial differential equations, Pantograph equations, among others.