Background

The study of singular initial value problems modelled by second-order nonlinear ordinary differential equations has attracted many mathematicians and physicists. One of the equations in this category is the following Lane-Emden-type equation:

y ' ' x + α x y ' x + f x , y = g x , α x 0 ,
(1)

with the initial conditions (IC)

y 0 = a , y ' 0 = 0 ,
(2)

where the prime denotes the differentiation with respect to x, α is a constant, f(x,y) is a nonlinear function of x and y. It is well known that an analytic solution of the Lane-Emden-type equation (Equation 1) is always possible[1] in the neighbourhood of the singular point x=0 for the above IC. It is named after the astrophysicists Jonathan H. Lane and Robert Emden[2] as it was studied by them.

Taking α=2, f(x,y)=yn, g(x)=0 and α=1 in Equations 1 and 2, respectively, we get

y ' ' x + 2 x y ' x + y n = 0 , x 0 ,
(3)

which may also be written as

1 x 2 d d x x 2 d y d x + y n = 0 ,
(4)

subject to IC

y 0 = 1 , y ' 0 = 0.
(5)

Classically, Equations 4 and 5 are known as the Lane-Emden equation. In astrophysics, this equation is Poisson's equation for the gravitational potential θ of a self-gravitating, spherically symmetric polytropic fluid. Physically, hydrostatic equilibrium connects the gradient of the potential, the density and the gradient of the pressure, whereas Poisson's equation connects the potential with the density.

Its solution provides the run of pressure P and density ρ with radius r, where x and y are interpreted as x = r 4 π G ρ 0 2 n + 1 P 0 1 / 2 and y = ρ ρ 0 1 / n = θ θ 0 , respectively.

The subscript ‘0’ refers to the values at the centre of the sphere. It is assumed that θ=0 when ρ=0 (at the surface of the sphere). If m(r) is the mass of the sphere at radius r, then d θ d r = G m r r 2 = g , where g is the acceleration due to gravity and G is the universal gravitational constant. The number n is the polytropic index in which the pressure and density of the gas are related by the well-known polytropic equation P = K ρ 1 + 1 / n , where K is a constant. The gravitational potential of the degenerate white-dwarf stars can be modelled by the so-called white-dwarf equation[3] obtained from Equations 1 and 2 by choosing α=2, f x , y = y 2 C 3 / 2 and α=1. Similarly, isothermal gas spheres[1] are modelled by

y ' ' x + 2 x y ' x + e y x = 0 , x 0 , w i t h I C y 0 = 0 , y ' 0 = 0.
(6)

The solutions of the Lane-Emden equation for a given index n are known as polytropes of index n. In Equation 3, the parameter n has physical significance in the range 0≤n≤5, and Equation 3 with IC (Equation 5) has analytical solutions for n=0, 1, 5[3], and for other values of n, numerical solutions are sought.

However, the singularity at x=0 poses a challenge to the numerical solution of not only the Lane-Emden equation but also to a variety of non-linear problems in quantum mechanics and astrophysics such as the scattering length calculations in the variable phase approach. The series solution can be found by perturbation techniques and the Adomian decomposition method (ADM). However, these solutions are often convergent in restricted regions. Thus, some techniques such as Pade's method is required to enlarge the convergent regions[1, 4, 5].

Recently, a number of algorithms have been proposed to solve Equation 1 with α = 2 , f x , y = f y , a function of y alone and g x = 0 . They are the quasilinearization method[68], reducing the second-order Lane-Emden equation to a first order by Lie group analysis and then determining the power series solution of the resulting reduced equation[9], the homotopy analysis method (HAM)[10] and a variational approach using a semi-inverse method to obtain variational principle[11] and may employ the Ritz technique to obtain approximate solutions[12]. Later, Ramos[13] obtained series solutions of the Lane-Emden equation (Equation 3) based on either Volterra integral equation formulation or the expansion of the dependent variable in the original ordinary differential equation and compared them with series solutions obtained by means of integral or differential equations based on a transformation of the dependent variables.

In the same year, Youseffi[14], using the integral operator, L α · = 0 x x α 0 x t α · d t d x , converted the Lane-Emden equation (Equation 1) to an integral equation and then, using Legendre wavelets, obtained an approximate solution for 0 x 1 .

Dehghan and Shakeri[15] applied the transformation x = e t to Equation 1 (with α = 2 , f x , y = f y and g x = 0 ) to get

y ¨ t + y ˙ t + e 2 t f y t = 0 ,
(7)

subject to the conditions

lim t y t = a , lim t e t y t = 0 ,
(8)

where the symbol  · denotes the differentiations with respect to t. Equation 7 is free of singularity at the origin. Then, they applied variational iteration method (VIM) to Equation 7 to obtain an approximate solution in [0,1], for special cases when f y = y n , n = 0 , 1 , 5 .

Singh et al.[16] proposed an efficient analytic algorithm for Lane-Emden equations using modified homotopy analysis method (MHAM), which is different from other analytic techniques as it itself provided a convenient way to adjust convergence regions even without the Pade technique.

Recently, Parand et al.[17] proposed an approximation algorithm for the solution of Lane-Emden-type equations using Hermite collocation method. This method reduces the solution of a problem to the solution of a system of algebraic equations.

The aim of the present paper is to propose a new analytic algorithm based on the hybrid of variational iteration method, an auxiliary parameter γ and the Adomian polynomials to solve Lane-Emden-type equations. Some illustrative examples are given to demonstrate the efficiency of the proposed algorithm. The analytic approximate solutions obtained by the proposed method contain Shawagfeh's[4], Wazwaz's[5] and Ramos's[13] solutions given by ADM and series expansion, respectively. Moreover, they are convergent in considerably larger regions even without the Pade technique.

Results and discussion

In this section, we apply our proposed algorithm to solve Lane-Emden-type equations arising in astrophysics and discuss our results. In the following examples, y n x will denote the approximate solution of the problem under consideration, obtained by truncating series (52) at level n. Also, the absolute error is defined as E n γ = y exact x y n x and E n * γ = 10 E n γ .

Example 1. The thermal behaviour of a spherical cloud of a gas under the mutual attraction of its molecules and subject to classical laws of thermodynamics is modelled by the Lane-Emden equation[1, 4]:

y ' ' x + 2 x y ' x + y μ x = 0 , w i t h I C y 0 = a , y ' 0 = 0 ; x 0 , μ 0
(9)

By choosing y 0 x = u 0 x = a , g x = 0 and ϕ y = y μ in Equation 59, we get

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 2 s d d s i = 0 n u i s + i = 0 n A i u 0 , u 1 , , u i
(10)

where A n s are calculated by the formula

A n u 0 , u 1 , , u n = 1 n ! d n d η n k = 0 n η k u k μ η = 0 , n 0 .
(11)

The first few polynomials are given as follows:

A 0 = u 0 μ , A 1 = μ u 0 μ 1 u 1 , A 2 = 1 2 μ u 0 μ 2 ( ( μ 1 ) u 1 2 + 2 u 0 u 2 ) , A 3 = 1 6 μ u 0 μ 3 ( ( 2 3 μ + μ 2 ) u 1 3 + 6 ( μ 1 ) u 0 u 1 u 2 + 6 u 0 2 u 3 ) , .

Solving Equation 10 and using Equation 11, the various iterations are

u 1 x = 1 6 a μ x 2 γ ,
u 2 x = 1 120 a μ 1 x 2 γ 20 a γ 1 + μ a μ x 2 γ ,
u 3 x = 1 15 , 120 a μ 2 x 2 γ 2 , 520 a 2 γ 1 2 + 252 μ a μ + 1 x 2 γ 1 γ + μ a 2 μ 8 μ 5 x 4 γ 2 , .

Hence, the solution y x is given by

y ( x ) = a 1 6 a μ x 2 γ + 1 120 a μ 1 x 2 γ 20 a γ 1 + μ a μ x 2 γ 1 15 , 120 a μ 2 x 2 γ ( 2 , 520 a 2 γ 1 2 + 252 μ a μ + 1 × x 2 γ 1 γ + μ a 2 μ 8 μ 5 x 4 γ 2 ) + .
(12)

Taking a = 1 and γ = 1 , the solution (12) reduces to the solution obtained by Wazwaz[5] using ADM. Thus, we can say that our solution (12) of the problem (9) contains the solution of the problem (9) obtained by using ADM.

Case (i)

For μ = 0 and a = 1 , the solution series (12) reduces to

y x = 1 γ x 2 6 + m = 1 γ 1 u m x ,
(13)

which converges to the exact solution 1 x 2 6 for γ = 1 .

The solution series (13) is truncated at m = 20 and the dependence of the associated error E n γ on γ is shown in Figure1. Our solution compares very well with that of MHAM solution[16] at the same level of truncation, obvious from Figures three and four of[16]. The region of convergence of the solution series (13) truncated at m = 20 depends on the convergence-control parameter γ, so we plot the γ-curve for y 20 1 in Figure2. As discussed in[1820], the interval of convergence is determined by the flat portion of the γ-curve. It is clear from Figure2 that the admissible values of γ are contained in 0.3 , 1.7 .

Figure 1
figure 1

Errors E 20 (0.88) and E 20 (0.83).

Figure 2
figure 2

γ -curve for the 20th-order approximation.

Case (ii)

For μ = 1 and a = 1 , the solution is given by

y ( x ) = 1 1 6 x 2 γ + 1 120 x 2 γ 20 1 γ + x 2 γ 1 15 , 120 x 2 γ ( 2 , 520 γ 1 2 + 252 x 2 ( γ 1 ) γ + 3 x 4 γ 2 ) +
m = 0 1 m 2 m + 1 ! x 2 m = sin x x , as γ 1 ,
(14)

which is the exact solution. Dehghan and Shakeri[15] obtained an approximate solution (not exact) valid only for 0 x < 1 , using VIM. Truncating the solution series (14) at level m = 18 , the dependence of regions of convergence R γ is shown in Figure3 and error E n γ on γ is shown in Figures4 and5. The 18th-order solution from our method converges to the exact solution in the interval 0 , 19 as shown in Figure5, whereas the 19th-order solution from MHAM converges to the exact solution in the interval 0 , 10 (cf. Figure five in[16]). From Figure5, we see that our solution is more accurate than that of MHAM (cf. Figure six in[16]).

Figure 3
figure 3

Exact and approximate solutions y ( x ) and y 18 ( x ).

Figure 4
figure 4

Error E 18 (1).

Figure 5
figure 5

Error E 18 (0.892).

Case (iii)

In this case, we analyze the effect of IC (Equation 9) on the convergence region R γ of the solution of Equation 9 when μ = 2 , through Figures6,7 and8. Figures6,7 and8 depict the approximate solution y 12 x at a = 1 , a = 5 and a = 10 , respectively. From the figures, it is observed that when the value of a increases monotonically, the region of convergence decreases monotonically.

Figure 6
figure 6

Approximate solution y 12 ( x ) when a= 1,μ= 2.

Figure 7
figure 7

Approximate solution y 12 ( x ) when a= 5,μ= 2.

Figure 8
figure 8

Approximate solution y 12 ( x ) when a= 10,μ= 2.

Case (iv)

In this case, we study the effect of γ on the convergence region R γ of the solution of Equation 9 for μ = 2.5 and μ = 3.5 through Figures9 and10, respectively, for a = 1 . Liao[10] has also solved the above two problems. For μ = 2.5 , the 10th-order approximate solution from our method converges in the interval 0 , 7.5 and the same order approximate solution from HAM converges in the interval 0 , 5.4 (cf. Figure one in[10]). For μ = 3.5 , the 20th-order approximate solution from our method converges in the interval 0 , 10 , whereas the 24th-order approximate solution from HAM converges in the interval 0 , 9.8 (cf. Figure two in[10]).

Figure 9
figure 9

Approximate solution y 10 ( x ),  μ  = 2.5.

Figure 10
figure 10

Approximate solution y 20 ( x ),μ= 3.5.

Case (v)

In this case, we compare the solution of Equation 9 to the solution obtained by Parand et al.[17] for μ = 3 and μ = 4 through Tables1 and2, respectively. Tables1 and2 show that the solution obtained by our proposed algorithm is more accurate as compared to that obtained by Parand et al.[17].

Table 1 Comparison between the solutions obtained by the proposed method and Parand et al. for μ=3
Table 2 Comparison between the solutions obtained by the proposed method and Parand et al. for μ=4

Case (vi)

For μ = 5 , and a = 1 , the solution series (12) reduces to

y x = 1 1 6 x 2 γ + γ x 2 6 + γ x 2 6 + γ x 4 24 + γ x 2 6 + γ x 2 3 + γ x 4 12 γ 2 x 2 6 γ 2 x 4 12 5 γ 2 x 6 432 +
1 x 2 6 + x 4 24 5 x 6 432 + 35 x 8 10 , 368 + = 1 + x 2 3 1 / 2 , as γ 1 ,
(15)

which is the exact solution, whereas Dehghan and Shakeri[15] obtained an approximate solution using VIM valid for a restricted region 0 x 1 . Figure11 shows the admissible values of γ for μ = 3 , y 0 = a , y ' 0 = 0 , and 5.

Figure 11
figure 11

γ -curves for the eighth-order approximation for μ=3(red), 4(blue) and 5(green).

Example 2. (Isothermal gas sphere equation). The isothermal gas spheres are modelled by Davis[1, 9]:

y ' ' x + 2 x y ' x + e y x = 0 , w i t h I C y 0 = 0 , y ' 0 = 0 ,
(16)

By choosing y 0 x = u 0 x = 0 , g x = 0 and applying the proposed hybrid algorithm, we get

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 2 s d d s i = 0 n u i s + i = 0 n A i u 0 , u 1 , , u i d s .
(17)

The A n s are calculated by the formula

A n u 0 , u 1 , , u n = 1 n ! d n d η n E x p k = 0 n η k u k η = 0 , n 0 .
(18)

Solving Equation 17 and using Equation 18, the various iterations are

u 1 x = 1 6 x 2 γ ,
u 2 x = γ 1 6 x 2 + 1 6 x 2 γ + 1 120 x 4 γ ,
u 3 x = γ 1 6 x 2 + 1 3 x 2 γ + 1 60 x 4 γ 1 6 x 2 γ 2 1 60 x 4 γ 2 1 1 , 890 x 6 γ 2 , .

Hence, the solution y x is given by

y ( x ) = 1 6 x 2 γ + γ 1 6 x 2 + 1 6 x 2 γ + 1 120 x 4 γ + γ ( 1 6 x 2 + 1 3 x 2 γ + 1 60 x 4 γ 1 6 x 2 γ 2 1 60 x 4 γ 2 1 1 , 890 x 6 γ 2 ) + .
(19)
1 6 x 2 + 1 120 x 4 1 1 , 890 x 6 + 61 1 , 632 , 960 x 8 + , as γ 1 ,
(20)

which is the same as the solution obtained by Wazwaz[5], Liao[10], Ramos[13] and Singh et al.[16] by using ADM, HAM, series expansion and MHAM, respectively. However, Equation 20 is valid in the restricted region 0 x < 3.5 . By choosing suitable values of γ , the region of convergence of Equation 20 may be enlarged as shown in Figure12. Liao[10] has also solved this problem. The 20th-order solutions from our method and HAM (cf. Figure seven in[10]) both converges in the interval 0 , 14 . Thus, the solution obtained by our method is comparable with that obtained by HAM[10].

Figure 12
figure 12

Approximate solution y 20 ( x ).

Example 3. (The white-dwarf equation)[3].

y ' ' x + 2 x y ' x + y 2 C 3 / 2 = 0 , w i t h I C y 0 = 1 , y ' 0 = 0 ,
(21)

models the gravitational potential of the degenerate white-dwarf stars.

By choosing y 0 x = u 0 x = 1 , g x = 0 and applying the proposed algorithm, we get

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 2 s d d s i = 0 n u i s + i = 0 n A i u 0 , u 1 , , u i d s .
(22)

The A n s are calculated by the formula

A n u 0 , u 1 , , u n = 1 n ! d n d η n k = 0 n η k u k 2 C η = 0 , n 0 .
(23)

The first few polynomials are given as follows:

A 0 = u 0 2 C 3 / 2 , A 1 = 3 2 u 1 u 0 2 C 1 / 2 , A 2 = 3 2 u 2 u 0 2 C 1 / 2 + 3 8 u 1 2 u 0 2 C 1 / 2 , A 3 = 3 2 u 3 u 0 2 C 1 / 2 + 3 4 u 1 u 2 u 0 2 C 1 / 2 1 16 u 1 3 u 0 2 C 3 / 2 , .

Solving Equation 22 and using Equation 23, the various iterations are

u 1 x = 1 6 1 C 3 / 2 x 2 γ ,
u 2 x = 1 6 1 C 3 / 2 x 2 γ 1 γ + 1 40 1 C 2 x 4 γ 2 ,
u 3 ( x ) = 1 6 1 C 3 / 2 x 2 γ + 1 6 1 C 3 / 2 x 2 γ 2 ( 2 γ ) + 1 20 1 C 2 x 4 γ 2 ( 1 γ ) 1 5 , 040 1 C 5 / 2 x 6 γ 3 5 1 C + 14 , .

Hence, the solution y x is given by

y ( x ) = 1 1 6 1 C 3 / 2 x 2 γ 1 6 1 C 3 / 2 x 2 γ ( 1 γ ) + 1 40 1 C 2 x 4 γ 2 1 6 1 C 3 / 2 x 2 γ + 1 6 1 C 3 / 2 x 2 γ 2 ( 2 γ ) + 1 20 1 C 2 x 4 γ 2 ( 1 γ ) 1 5 , 040 1 C 5 / 2 x 6 γ 3 5 1 C + 14 + .
(24)

As γ 1 , we have

y x = 1 1 6 q 3 x 2 + 1 40 q 4 x 4 1 5 , 040 q 5 x 6 5 q 2 + 14 + ,
(25)

where q = 1 C in Equation 25.

Equation 25 is the same as obtained by[5, 10, 13]. Figure13 shows the approximate solution y 10 x for C = 0.4 , whereas Figure14 shows the approximate solution y 18 x for C = 0 . Note that for a small value of C, Equation 25 is not valid in the whole region with y x C as shown in Figures13 and14. Liao[10] has also solved this problem for C = 0.4 and C = 0. For C = 0.4, the 10th-order approximate solution from our method converges in the interval ⊆ [0, 4.5], whereas the same order approximate solution from HAM (cf. Figure four in[10]) converges in the interval ⊆ [0, 4]. Similarly, for C = 0, the 18th-order solution from our method and that from HAM (cf. Figure five in[10]) both converge in the interval ⊆ [0, 10]. Thus, the solution obtained by our method for C = 0 is comparable with that obtained by HAM[10].

Figure 13
figure 13

Approximate solution y 10 ( x ),C= 0.4.

Figure 14
figure 14

Approximate solution y 18 ( x ),C= 0.

Example 4. Consider the following Lane-Emden-type equation:

y ' ' x + 2 x y ' x 6 y x 4 y x ln y x = 0 , w i t h I C y 0 = 1 , y ' 0 = 0 , x 0
(26)

having y x = e x 2 as the exact solution.

Choosing the initial approximation y0(x) = u0(x) = 1, g(x) = 0 and applying the proposed hybrid algorithm, the correction functional for Equation 26 is

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 2 s d d s i = 0 n u i s 6 i = 0 n u i s 4 i = 0 n A i u 0 , u 1 , , u i d s .
(27)

The A n s are calculated by the formula

A n u 0 , u 1 , , u n = 1 n ! d n d λ n k = 0 n η k u k ln k = 0 n η k u k η = 0 , n 0 .
(28)

Solving Equation 27 and using Equation 28, the various iterations are

u 1 x = x 2 γ ,
u 2 x = 1 γ u 1 x + 1 2 x 4 γ 2 ,
u 3 x = 1 γ 2 u 1 x + 2 1 γ u 2 x + 1 6 x 6 γ 3 , .

Hence, the solution y(x) is given by

y x = 1 + x 2 γ + x 2 γ 1 γ + 1 2 x 4 γ 2 + x 2 γ 1 γ 2 + x 4 γ 2 1 γ + 1 6 x 6 γ 3 + .
(29)

As γ  → 1, we have

y x = 1 + x 2 + 1 2 x 4 + 1 6 x 6 + = e x 2 .
(30)

which is the exact solution.

Table3 shows that the solution obtained by the proposed hybrid approach is more accurate in comparison to that obtained by Parand et al.[17].

Table 3 Comparison between the solutions obtained by proposed method and Parand et al. for Example 4

Example 5. Consider the following problem[14, 16, 21]:

y ' ' x + 2 x y ' x 2 2 x 2 + 3 y x = 0 , w i t h I C y 0 = 1 , y ' 0 = 0 , 0 x 1
(31)

having y x = e x 2 as the exact solution.Choosing the initial approximation y0(x)=μ0(x)=1, g(x)=0 and applying the proposed hybrid algorithm, the correction functional for Equation 31 is

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 2 s d d s i = 0 n u i s 2 2 s 2 + 3 i = 0 n u i s d s .
(32)

Solving Equation 32, we obtain

u 1 x = γ x 2 + x 4 5 ,
u 2 x = γ x 2 + x 4 5 x 2 γ + x 4 γ 10 + 13 x 6 γ 105 + x 8 γ 90 ,
u 3 ( x ) = γ x 2 + x 4 5 2 x 2 γ + x 4 γ 5 + 26 x 6 γ 105 + x 8 γ 45 + x 2 γ 2 2 x 4 γ 2 5 43 x 6 γ 2 210 + x 8 γ 2 210 + 59 x 10 γ 2 11 , 550 + .

Hence,

λ ' ' s α s λ ' s λ s s 2 | s = x = 0
+ x 8 γ 45 + x 2 γ 2 2 x 4 γ 2 5 43 x 6 γ 2 210 + x 8 γ 2 210 + 59 x 10 γ 2 11 , 550 + x 12 γ 2 3 , 510 ) +
1 + x 2 + x 4 2 ! + = e x 2
(33)

γ = 1which is the exact solution of Equation 31. Thus, our algorithm gives the exact solution of the problem. Yousefi[14] obtained an approximate solution of the above problem using Legendre wavelets. The error E7(1.0099) is of the order 10e − 11, whereas that of the Legendre wavelet method is 10e − 10, so our algorithm gives better approximation even at the truncation level m=7. The dependence of error E n (γ) on γ is shown in Figure15. Table4 shows that the eighth-order approximate solution obtained by the proposed hybrid approach for the optimal value of γ = 1.01294 is more accurate in comparison to that obtained by Parand et al.[17]. The optimal value of γ = 1.01294 is obtained from minimizing the eighth-order square residual J8(γ) using Equations 49 to 51.

Figure 15
figure 15

Errors E 7 (1) and E 7 * (1.0099).

Table 4 Comparison between the solutions obtained by the proposed method and Parand et al. for Example 5

In the next two examples, we consider the non-homogeneous Lane-Emden equations.

Example 6. Consider the following non-homogeneous Lane-Emden equation[14, 16]:

y ' ' x + 2 x y ' x + y x = 6 + 12 x + x 2 + x 3 , 0 x < 1
(34)

with IC y(0) = 0, y’(0) = 0, having y(x) = x2 + x3 as the exact solution.

By choosing y0(x) = u0(x) = 0, g0(x) = 6, g1(x) = 12x + x2, g2(x) = x3 and g i (x) = 0, 3 ⩽ i ⩽ m, and applying our proposed algorithm, we get

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 2 s d d s i = 0 n u i s + i = 0 n u i s G n s d s .
(35)

Solving Equation 35, the various iterations are

u 1 x = x 2 γ ,
u 2 x = γ γ 1 x 2 + x 3 + γ 1 x 4 20 ,
u 3 x = 1 840 x 2 γ γ 1 840 x 28 x 3 + 840 γ 1 + x 4 γ + 42 x 2 2 γ 1 , .

Hence, the solution y(x) of Equation 34 is given by

y ( x ) = x 2 γ + γ γ 1 x 2 + x 3 + γ 1 x 4 20 + 1 840 x 2 γ ( γ 1 ) ( 840 x 28 x 3 + 840 γ 1 + x 4 γ + 42 x 2 2 γ 1 ) + .
(36)

Choosing the auxiliary parameter γ = 1, in Equation 36, we get the exact solution y(x) = x2 + x3. Thus, we obtain the exact solution at level m = 2, when γ = 1.

Example 7. Consider the following non-homogeneous Lane-Emden equation[14, 16]:

y ' ' x + 8 x y ' x + x y x = x 5 x 4 + 44 x 2 30 x , 0 x < 1
(37)

with IC y(0) = 0, y’(0) = 0, having y(x) = x4 − x3 as the exact solution.

By choosing y0(x) = u0(x) = 0, g0(x) = 30x − 44x2, g1(x) = x4 − x5 and g i (x) = 0, 2 ⩽ i ⩽ m, and applying the proposed hybrid algorithm, we get

u n + 1 x = γ 0 x s 2 x s d 2 d s 2 i = 0 n u i s + 8 s d d s i = 0 n u i s + s i = 0 n u i s G n s d s .
(38)

Solving Equation 38, the various iterations are

u 1 x = x 4 x 3 γ ,
u 2 x = γ x 4 x 3 x 6 78 + x 7 98 + x 3 γ x 4 γ + x 6 γ 78 x 7 γ 98 ,

a = 10

Hence, the solution y(x) of Equation 37 is given by

y x = x 4 x 3 γ + γ x 4 x 3 x 6 78 + x 7 98 + x 3 γ x 4 γ + x 6 γ 78 x 7 γ 98 + x 4 x 3 , a s γ 1 ,
(39)

which is the exact solution of Equation 37. Thus, we obtain the exact solution at level m = 1, when γ  → 1.

Conclusions

A new hybrid algorithm is proposed to solve nonlinear differential equations. The algorithm is applied to solve Lane-Emden-type equations. The equation has a singularity at x = 0, thus poses a challenge to its numerical solution. VIM has been applied to solve nonlinear differential equations, but it has its own limitations since the series solution obtained by VIM has a relatively smaller region of convergence and noise terms appear in the successive approximations. To overcome these difficulties, we introduce an auxiliary parameter γ (as suggested by Geng[22]) and expand the nonlinear terms using the Adomian polynomials to propose our algorithm. This algorithm has advantages over the previous ones as (1) it increases the region of convergence (of the solution series) even without the Pade technique and (2) the computation of various iterates becomes much simpler since the nonlinear terms are replaced by their Adomian polynomial representations.

The accuracy and efficiency of the algorithm is established by means of several examples given in the ‘Results and discussion’ section. These examples show that we can enlarge the convergence region of the solution by the auxiliary parameter γ even without the Pade technique. From the illustrative examples, we conclude that the results obtained from the proposed algorithm are better than those obtained from ADM, HAM, series expansion, Legendre wavelet methods and Hermite collocation method. Figures2 and11 illustrate that the region of admissible values of γ shrinks as nonlinearity increases.

Methods

The VIM is well established[23]. The main drawbacks of the solution obtained by standard VIM is that it is convergent in a small region and noise terms appear in the successive approximations as shown in[15, 21]. To enlarge the convergence region and remove the noise terms appearing in the sequence of successive approximations, we modify the standard VIM by introducing an auxiliary parameter γ, expanding the nonlinear term Ny n in terms of the Adomian polynomials and decomposing g(x) as finite sum. This idea was motivated by the work of Liao[10, 1820] and Singh et al.[16].

Consider the following differential equation:

L y + N y = g x , x Ω ,
(40)

where L and N are linear and nonlinear differential operators, respectively, and g(x) is the source term.

Decomposing the source term g(x) as g x = i = 0 m g i x , we construct a sequence {G n (x)}, where

G n x = i = 0 m χ n i + 2 g i x ,
(41)

and

χ n = { 0 n 1 1 n > 1.
(42)

The sequence G n (x)  → g(x) as n  → ∞.

Geng[22] introduced an auxiliary parameter γ ≠ 0 by adding and subtracting Ly in Equation (40) as follows:

L y L y + γ L y + N y g x = 0 .
(43)

The addition and subtraction of Ly is done to facilitate the computation of λ(s).

We construct the correction functional for Equation (43) as follows:

y n + 1 x = y n x + 0 x λ s L y n L y ˜ n + γ L y ˜ n s + N y ˜ n s G ˜ n s d s ,
(44)

where λ(s) is a general Lagrange multiplier which is identified optimally via variational theory[18], the subscript n denotes the n th approximation, and n is considered as a restricted variation, i.e. δỹ n  = 0.

Once the λ(s) is computed, we discard the added and subtracted terms from Equation 44 to get

y n + 1 x = y n x + γ 0 x λ s L y n s + N y n s G n s d s , n = 0 , 1 , 2 , .
(45)

In our proposed algorithm, this will be called as the first step.

Following Abbasbandy[24], we decompose y n (x) as

y n x = i = 0 n u i x ,
(46)

and expand nonlinear terms Ny n (x) in terms of Adomian's polynomials as

N y n x = N i = 0 n u i x = i = 0 n A i u 0 , u 1 , , u i ,
(47)

where A i s are Adomian's polynomials which are calculated by the algorithm (Equation 48) constructed by Adomian[25, 26]:

A n u 0 , u 1 , , u n = 1 n ! d n d η n N k = 0 n η k u k η = 0 , n 0 .
(48)

Expressing the nonlinear term Ny n (x) by Equation 47 will be referred as the second step.

Substituting Equations 46 and 47 in Equation 45 and solving, we get the various iterates u i (x)

These iterates u i (x) are now substituted in Equation 46 to obtain the n th-order approximate solution y n (x). Substituting the n th-order approximate solution y n (x) in Equation 40, we obtain the following residual:

R n x , γ = L y n x + N y n x g x .
(49)

In order to find the optimal value of γ, we first construct the functional (called the square residual error),

J n γ = Ω R n 2 x , γ d x
(50)

and then minimizing it, we get

J n γ = 0.
(51)

Substituting the optimal values of γ obtained from Equation 51 into Equation 46, the n th-order approximate solution y n is obtained. Now, taking the limit as n  → ∞, we obtain the following series representation of the solution:

y x = lim n y n x = lim n i = 0 n u i x .
(52)

The novelty of our proposed algorithm is that (1) we decompose the source term as a finite sum and construct a sequence (Equation 42) converging to g(x), (2) using the sequence {G n (x)}, a new correction functional (Equation 45) is constructed and (3) we combine the first and second steps to yield a new hybrid algorithm for nonlinear differential equations.

For the Lane-Emden-type equations (Equation 1), we construct the correction functional as follows:

y n + 1 x = y n x + 0 x λ s d 2 y n d s 2 + α s d y n d s d 2 y ˜ n d s 2 + α s d y ˜ n d s + γ d 2 y ˜ n d s 2 + α s d y ˜ n d s + f s , y ˜ n G ˜ n s d s ,
(53)

The optimal value of λ(s) is calculated from Equation 53 as shown in the following steps:

δ y n + 1 x = δ y n x + δ 0 x λ s d 2 y n d s 2 + α s d y n d s d 2 y ˜ n d s 2 + α s d y ˜ n d s + γ d 2 y ˜ n d s 2 + α s d y ˜ n d s + f s , y ˜ n G ˜ n s d s ,
= δ y n x + δ 0 x λ s d 2 y n d s 2 + α s d y n d s d s

Integration by parts yields

δ y n + 1 x = 1 λ ' s + α s λ s | s = x δ y n x + λ s | s = x δ d y n d s | s = x + 0 x δ y n λ ' ' s α s λ ' s λ s s 2 × d s = 0.

Thus, the stationary conditions are obtained as

1 λ ' s + α s λ s | s = x = 0 , λ s | s = x = 0 , × λ " s α s λ ' s λ s s 2 | s = x = 0
(54)

Solving Equation 54, the Lagrange multiplier is obtained and given by Equation 55:

λ s = { s ln s x α = 1 , s 1 α s α 1 α x α 1 α 1.
(55)

Hence, the iteration formula (53) reduces to

y n + 1 x = y n x + γ 0 x λ s d 2 y n d s 2 + α s d y n d s + f s , y n G n s d s
(56)

where λ(s) is given by Equation 55.

Applying the second step of the proposed algorithm, Equation 56 becomes

u n + 1 x = γ 0 x λ s d 2 d s 2 i = 0 n u i s + α s d d s i = 0 n u i s + f s , i = 0 n u i s G n s d s
(57)

We restrict ourselves to three different choices of the function f(x, y) = h(x), ϕ(y) and h(x)ϕ(y). Their respective correction functionals, obtained from Equation 57, are given as

u n + 1 x = γ 0 x λ s d 2 d s 2 i = 0 n u i s + α s d d s i = 0 n u i s + h s G n s d s ,
(58)
u n + 1 x = γ 0 x λ s d 2 d s 2 i = 0 n u i s + α s d d s i = 0 n u i s + i = 0 n A i u 0 , u 1 , , u i G n s d s ,
(59)

and

u n + 1 x = γ 0 x λ s d 2 d s 2 i = 0 n u i s + α s d d s i = 0 n u i s + h s i = 0 n A i u 0 , u 1 , , u i G n s d s ,
(60)

where

A n u 0 , u 1 , , u n = 1 n ! d n d η n ϕ i = 0 n η i u i η = 0 .
(61)

Theorem: Taking u0(x) = a and assuming that the series y x = i = 0 u i x converges, where un+1(x) are given by either Equations 58, 59 or 60, then it must be the solution of the Lane-Emden equation (Equation 1).

Proof: As limit n  → ∞, Equations 58, 59 and 60 will reduce to

0 = γ 0 x λ s d 2 y d s 2 + α s d y d s + f s , y g s d s ,

thus proving the theorem since y(0) = u0(0) = a and u n (0) = 0, n ≥ 1.

Authors’ information

VKB and RKP are senior research fellows in the Department of Applied Mathematics, Indian Institute of Technology (BHU), Varanasi, India. MPT is an assistant professor in the Department of Mathematics, U.P. College, Varanasi, India. OPS is a professor in the Department of Applied Mathematics, Indian Institute of Technology (BHU), Varanasi, India.