Abstract
Lane-Emden's equation has fundamental importance in the recent analysis of many problems in relativity and astrophysics including some models of density profiles for dark matter halos. An efficient numerical method is presented for linear and nonlinear Lane-Emden-type equations using the Bernstein polynomial operational matrix of integration. The proposed approach is different from other numerical techniques as it is based on the Bernstein polynomial integration matrix. Some illustrative examples are given to demonstrate the efficiency and validity of the proposed algorithm.
1. Introduction
In recent years, the studies of singular initial value problems in some special second-order ordinary differential equations (ODEs) have attracted the attention of many mathematicians and physicists. One of the most intriguing equations is the Lane-Emden-type equations which models many phenomena in mathematical physics and astrophysics. It is a nonlinear ordinary differential equation which describes the equilibrium density distribution in self-gravitating sphere of polytrophic isothermal gas and has a singularity at the origin. This equation has fundamental importance in the field of radiative cooling and modeling of clusters of galaxies. It has also proven to be most versatile in the examination of a variety of situations, including the analysis of isothermal cores, convective stellar interiors, and fully degenerate stellar configurations. Moreover, it has been recently observed [1–3] that the density profiles of dark matter halos are often modeled by the isothermal Lane-Emden equation with suitable boundary conditions at the origin. Since the solution is often given by some numerical approximation, the chosen method would implies some consequences on the physical interpretation of the dark matter evolution. In the following we will give an efficient method for computing its numerical solution.
Lane-Emden’s equations [4, 5] are categorized as nonlinear ordinary differential equations with singular initial values. The more general Cauchy problem in this category is the following equation: with initial conditions (ICs) where primes denote differentiation with respect to , is constant, and is a nonlinear function of and .
It has been shown [6] that there exists an analytic solution of (1), (2) in the neighbourhood of the singular point .
In the special case, where , , and IC (2) holds, we have one of the most studied cases For instance, with and , we get which in the form subject to IC was originally given by Lane [4] and (later) Emden [5].
The parameter has physical significance only in the range . The solution for a given index is known as polytropic index . Equation (3) with IC (5) has well-known analytical solutions [7] for while, for other values of , numerical solutions are still sought. The series solution can be found by perturbation techniques and Adomian decomposition methods (ADM). However, these solutions are often convergent in restricted regions. Thus, some techniques such as the Padé method are required to enlarge the convergent regions [8, 9].
Similarly, by choosing and in (1′) and (2), isothermal gas spheres equation are modeled by with IC A number of methods have recently been proposed to solve (1′), (6). They are quasilinearization methods [10–12], a piecewise linearization technique [13], and the Lagrangian-based analytic solution [14]. The approximate solutions were also given by homotopy analysis method (HAM) [15, 16], variational iteration method [17], and variational approach method [18].
A numerical method based on conversion into integral equations solved by Legendre wavelets is given in [19]. Hybrid functions have also been used in [20] to find the numerical solutions of (1) for some particular nonlinear cases.
In [21] the transform to (1′) is given to get subject to the conditions where dots denote differentiations with respect to . Then, an approximate solution of (8) is obtained in by variational iteration method, for special cases when and .
Legendre’s spectral method for solving only singular IVPs is given in [22]. In [23], modified homotopy analysis methods (MHAMs) enable to obtain approximate solution and to show that MHAM solution contains the previous solutions obtained by ADM and HPM.
A collocation method based on Chebyshev’s polynomials is proposed in [24]. In [25–27], three different methods are presented, to solve (1), based on the Hermite function collocation method, the Lagrangian method, and radial basis function approximation, respectively. The Jacobi-Gauss collocation method is given in [28]. In [29] the optimal homotopy asymptotic method is applied to obtain the analytic solution of singular Lane-Emden-type equation. The perturbation technique and delta-expansion method are presented in [30, 31], respectively.
The aim of the present paper is to apply the Bernstein polynomial operational matrix of integration for the first time, to propose a reliable numerical technique for solving linear and nonlinear Lane-Emden’s equations. Some special cases of the problem are solved to show its validity and efficiency in comparison with other existing numerical methods. The approximate solution, obtained by the proposed method, shows its superiority on the other existing numerical solution.
2. Bernstein’s Polynomials
A Bernstein polynomial [32] is a polynomial in the Bernstein form that is a linear combination of the Bernstein basis polynomials. The Bernstein basis polynomials of degree are defined by There are th degree Bernstein basis polynomials forming a basis for the linear space consisting of all polynomials of degree less than or equal to in R []-the ring of polynomials over the field R. For mathematical convenience, we usually set if or . Any polynomial in may be written as Then is called a polynomial in the Bernstein form or the Bernstein polynomial of degree . The coefficients are called Bernstein’s or Bezier’s coefficients. Often, the Bernstein basis polynomials are called the Bernstein polynomials. We will follow this convention as well. A function may be written as where and is the standard inner product on .
If (3) is truncated at , then we have where and are matrices given by For taking the collocation points, let be any point near to zero and other point as follows: Let us use the notation, for defining the Bernstein operational matrix as follows: For example, when , the Bernstein operational matrix is expressed as
3. Block Pulse Function and Operational Matrix of Integration
a set of block pulse functions (BPFs) is defined on as The functions are disjoint and orthogonal, that is, The block pulse operational matrix of the integration is defined [33] as following: where with In general the operational matrix of integration of the vector can be obtained as where is the operational matrix for integration.
The Bernstein polynomial can also be expanded and approximated into an -term block pulse function (BPF) as Let us consider that the matrix is the Bernstein polynomial operational matrix of the integration, then we have Now, we have From (25) and (18) we get Then, the Bernstein polynomial operational matrix of the integration is given by
4. Outline of the Method
In this section, the method presented in Section 3 is applied to solve the linear and nonlinear Lane-Emden equations. Letting (1′) can be written as where .
Since exact solutions for the case are known, we solve them first by the proposed algorithm developed in Section 3.
Let where is unknown, We have Assume Substituting (31)–(34) in (30), we get Solution of (35) yields the value of .
5. Numerical Results and Discussions
In this section some special cases of (1′) have been considered to illustrate the efficiency of the method.
5.1. Standard Lane-Emden Equation
Consider the standard Lane-Emden equation: with initial condition and , which has the exact solution for the case , 1, and 5 are known. Equation (36) with the initial conditions has been solved with the proposed method, and obtained results are presented in Figure 1 along with Table 1.
Here we can see that the function basically follows the same form as that for an index , with a few minor differences; however, the polytrope of index also terminates at a finite radius just as is observed in the relation for a polytrope of index . Though these two solutions for and share many characteristics, the solution for the polytrope of index contains some radically different and unexpected characteristics. In this case the behavior of the function is markedly different than that of its predecessors. Here the density of the star initially decreases rapidly as radius increases but slows rapidly once a -value of around three is reached. At this point the decrease slows continually. Though it may not be apparent on the graphic provided, the function never reaches 0. It is, therefore, evident that a polytropic star of index has an infinite radius, and in reality cannot exist.
5.2. Isothermal Gas Spheres Equation
Letting with , (1) can be written as with IC , . The isothermal gas spheres are modeled in [6]. Equation (38) is solved with the presented method, and the obtained solution is compared with the existing solutions. The plot of proposed and exact solution is given in Figure 2 and comparison has been done in Table 2.
5.3. Nonlinear Homogeneous Lane-Emden Equation
Let with , (1) be written as with IC and , where the exact solution is . We solve the above problem, by applying the technique described in Section 4 with 32, 128 and 256 and plotted in Figures 3 and 4, and comparison has been done in Table 3.
6. Conclusions
The Bernstein polynomial operational matrix of integrations has been applied for solving one of the most popular and intriguing differential equations, that is, the Lane-Emden equations. These results are useful in a few respects and deal with some actual state equation for stars. Though these two solutions for and share many characteristics, the solution for the polytrope of index contains some radically different and unexpected characteristics. In this case the behavior of the function is markedly different than that of its predecessors. Here the density of the star , where represents the central density of the star and that of a related dimensionless quantity, initially decreases rapidly as radius increases but slows rapidly once a -value of around three is reached. At this point the decrease slows continually. Though it may not be apparent on the graphic provided, the function never reaches 0. It is, therefore, evident that a polytropic star of index has an infinite radius and in reality cannot exist. Despite this fact, such a model provides important theoretical perspective concerning the theory, as one may view this as the border between polytropic one that are physically feasible. It is also of interest to note that such a stellar model has, in spite of the infinite radius, a finite mass. Additionally, other stellar models, which are created in a “layered” fashion where each layer consists of a polytrope of a different index, may also utilize this function for a portion of the star, in which case a finite radius would be possible. In addition to these relations, there are also a number of other conclusions that one can draw from the polytropic model of stars. For relations of this type, there exists a relation between the polytropic index, mass of a star, and the radius. It is perhaps evident in the discussion of the analytic solutions of the polytropic index that one could possibly infer a relation between the polytropic index of the star and the radius that one would calculate from that star. In the attempt to find a relation, the most immediate result is obtained from the simple equations of stellar state.