Abstract

A numerical method to solve Lane-Emden equations as singular initial value problems is presented in this work. This method is based on the replacement of unknown functions through a truncated series of hybrid of block-pulse functions and Chebyshev polynomials. The collocation method transforms the differential equation into a system of algebraic equations. It also has application in a wide area of differential equations. Corresponding numerical examples are presented to demonstrate the accuracy of the proposed method.

1. Introduction

In recent years, studies on singular initial value problems in second-order ordinary differential equations have attracted much attention among mathematicians and physicists. One of the equations describing this type of problem is the Lane-Emden equation which can be written in the following form: where and are constants, and is a real-valued continuous function. This equation has been used in the fields of mathematical physics and astrophysics to model several problems such as the stellar structure theory, the thermal behavior of a spherical gas cloud, isothermal gas spheres, and the thermionic current theory [13].

On the other hand, another type of singular initial value problems of the Lane-Emden equation can also be given in the following form: where and are constants, is a continuous real-valued function, and .

Many methods have been used to solve Lane-Emden equations. However, most algorithms in current use to deal with Lane-Emden problems are based on either series solutions or perturbation techniques. For instance, approximate solutions to (1.1) were presented by Shawagfeh [4] and Wazwaz [5, 6] using the Adomian decomposition method which provides a convergent series solution. Ramos [7] presented a series approach to the Lane-Emden equation and made comparisons with He’s homotopy perturbation method. Dehghan and Shakeri [8] first applied exponential transformation to the Lane-Emden equation in order to address the difficulty of a singular point at and solve the resulting nonsingular problem using the variational iteration method. Yousefi [9] applied an integral operator, converted Lane-Emden equations to integral equations, and solved these integral equations using Legendre wavelets. Recently, Parand et al. [10] proposed an approximation algorithm for the solution of the nonlinear Lane-Emden type equation using Hermite functions collocation method. Moreover, Adibi and Rismani [11] introduced a modified Legendre-spectral method for solving (1.1). Wazwaz [12] applied the variational iteration method to solve the singular initial problems or boundary value problems of Emden-Fowler type of equations.

In this work, we present a reliable algorithm based on hybrid functions and the collocation method in order to obtain approximate solutions for (1.3).

The main advantage of our proposed method is its direct application to all types of differential equations whether linear or nonlinear, homogeneous or inhomogeneous, and with constant coefficients or with variable coefficients. Furthermore, the method can greatly reduce the size of computational work while still maintaining the numerical solution’s high accuracy because it does not employ numerical integration [9, 11, 13].

2. Properties of Hybrid Functions

2.1. Hybrid Functions of Block-Pulse and Chebyshev Polynomials

Hybrid functions , , , are defined on the interval as Here, are the well-known Chebyshev polynomials of order which satisfy the following recursive formula:

2.2. Function Approximation

A function defined over the interval 0 to may be expanded as where in which denotes the inner product.

If the infinite series in (2.3) is truncated, then (2.3) can be written as where In (2.5) and (2.6), , , , are the coefficients expansions of the function and , , , are defined in (2.1).

2.3. Operational Matrix of the Integration

The integration of the vector defined in (2.7) can be obtained as where is matrix, that is called the operational matrix for integration and is given in [14].

3. Numerical Solution Using the Hybrid Functions and the Collocation Method

We then consider the Lane-Emden equations given in (1.3). First, we assume that the unknown function is given by Then using Condition (1.4), we obtain Substituting (3.1) and (3.2) into (1.3), we obtain Rewriting (3.3) in the form We now collocate (3.4) at points as Suitable collocation points are zeros of Chebyshev polynomials System (3.5) consists of nonlinear equations which can be solved using conventional iterative methods such as Newton’s method or the simplex method.

4. Accuracy of Solution

We can easily verify the accuracy of the method. Given that the truncated hybrid functions series in (2.5) are an approximate solution of (1.3), it must have approximately satisfied these equations. Thus, for each If max ( is any positive integer) is prescribed, then the truncation limit is increased until the difference at each of the points becomes smaller than the prescribed .

Proposition 4.1. Let (Sobolev space) and be the best approximation polynomial of in -norm. Thus, the truncation error is where is a positive constant, which is dependent on the selected norm and independent of and (proof [15]).

Proposition 4.2. Let , then By using of Proposition 4.1, it is obvious [16].

5. Numerical Examples

In the section, we demonstrate the accuracy of the proposed method in solving the Lane-Emden equation. In all the examples, we use the relations shown in Section 3 to convert a differential equation to a system of nonlinear equations. The numerical results are presented in tabular form to illustrate the efficiency of the method. All computations were carried out using Matlab7.0.

Example 5.1. We consider the linear singular initial value problem [6] We applied the method presented in this paper and solved (5.1) with , . For this equation, we find Using (2.6), we obtain which is the exact solution.

Example 5.2. We consider the linear singular initial value problem [6, 13] The exact solution for this problem is . We assume that Using the boundary condition in (5.7)), we derive Now, by inserting (5.7)–(5.9) into (5.5), we obtain The collocation points are Using these points, we obtain By solving (5.12), we obtain the coefficients ’s. Using (5.9), we then derive the approximate solution. Table 1 shows the absolute error of the exact and approximate solution for , and , .

Example 5.3. We consider the nonlinear singular initial value problem [6, 10, 13] with the exact solution .

We solved (5.13) using the method presented in this paper. Table 2 shows the absolute errors of exact and approximate solutions in some points of the interval [] obtained by presented method for , . The comparison of absolute errors using present method and the method in [10] with is shown in Figure 1. It is easily found that the present approximations are more efficient.

6. Conclusion

We have solved the Lane-Emden equation by using hybrid functions and the collocation method. The properties of the hybrid functions are used to reduce the equation to the solution of nonlinear algebraic equations. Illustrative examples are given to demonstrate the validity and applicability of the proposed method. We believe that the proposed method is applicable to higher-order differential equations and to other sets of orthogonal polynomials.

Acknowledgment

C. Yang is grateful to the National Natural Science Foundation of China which provided support through Grant No. 40806011.