# Lane–Emden equation

In astrophysics, the Lane–Emden equation is a dimensionless form of Poisson's equation for the gravitational potential of a Newtonian self-gravitating, spherically symmetric, polytropic fluid. It is named after astrophysicists Jonathan Homer Lane and Robert Emden. The equation reads

${\frac {1}{\xi ^{2}}}{\frac {d}{d\xi }}\left({\xi ^{2}{\frac {d\theta }{d\xi }}}\right)+\theta ^{n}=0,$ where $\xi$ is a dimensionless radius and $\theta$ is related to the density, and thus the pressure, by $\rho =\rho _{c}\theta ^{n}$ for central density $\rho _{c}$ . The index $n$ is the polytropic index that appears in the polytropic equation of state,

$P=K\rho ^{1+{\frac {1}{n}}}\,$ where $P$ and $\rho$ are the pressure and density, respectively, and $K$ is a constant of proportionality. The standard boundary conditions are $\theta (0)=1$ and $\theta '(0)=0$ . Solutions thus describe the run of pressure and density with radius and are known as polytropes of index $n$ . If an isothermal fluid (polytropic index tends to infinity) is used instead of a polytropic fluid, one obtains the Emden–Chandrasekhar equation.

## Applications

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. Thus, if we have a further equation that dictates how the pressure and density vary with respect to one another, we can reach a solution. The particular choice of a polytropic gas as given above makes the mathematical statement of the problem particularly succinct and leads to the Lane–Emden equation. The equation is a useful approximation for self-gravitating spheres of plasma such as stars, but typically it is a rather limiting assumption.

## Derivation

### From hydrostatic equilibrium

Consider a self-gravitating, spherically symmetric fluid in hydrostatic equilibrium. Mass is conserved and thus described by the continuity equation

${\frac {dm}{dr}}=4\pi r^{2}\rho$

where $\rho$  is a function of $r$ . The equation of hydrostatic equilibrium is

${\frac {1}{\rho }}{\frac {dP}{dr}}=-{\frac {Gm}{r^{2}}}$

where $m$  is also a function of $r$ . Differentiating again gives

{\begin{aligned}{\frac {d}{dr}}\left({\frac {1}{\rho }}{\frac {dP}{dr}}\right)&={\frac {2Gm}{r^{3}}}-{\frac {G}{r^{2}}}{\frac {dm}{dr}}\\&=-{\frac {2}{\rho r}}{\frac {dP}{dr}}-4\pi G\rho \end{aligned}}

where the continuity equation has been used to replace the mass gradient. Multiplying both sides by $r^{2}$  and collecting the derivatives of $P$  on the left, one can write

$r^{2}{\frac {d}{dr}}\left({\frac {1}{\rho }}{\frac {dP}{dr}}\right)+{\frac {2r}{\rho }}{\frac {dP}{dr}}={\frac {d}{dr}}\left({\frac {r^{2}}{\rho }}{\frac {dP}{dr}}\right)=-4\pi Gr^{2}\rho$

Dividing both sides by $r^{2}$  yields, in some sense, a dimensional form of the desired equation. If, in addition, we substitute for the polytropic equation of state with $P=K\rho _{c}^{1+{\frac {1}{n}}}\theta ^{n+1}$  and $\rho =\rho _{c}\theta ^{n}$ , we have

${\frac {1}{r^{2}}}{\frac {d}{dr}}\left(r^{2}K\rho _{c}^{\frac {1}{n}}(n+1){\frac {d\theta }{dr}}\right)=-4\pi G\rho _{c}\theta ^{n}$

Gathering the constants and substituting $r=\alpha \xi$ , where

$\alpha ^{2}=(n+1)K\rho _{c}^{{\frac {1}{n}}-1}/4\pi G,$

we have the Lane–Emden equation,

${\frac {1}{\xi ^{2}}}{\frac {d}{d\xi }}\left({\xi ^{2}{\frac {d\theta }{d\xi }}}\right)+\theta ^{n}=0$

### From Poisson's equation

$\nabla ^{2}\Phi ={\frac {1}{r^{2}}}{\frac {d}{dr}}\left(r^{2}{\frac {d\Phi }{dr}}\right)=4\pi G\rho$

One can replace the gradient of the potential using the hydrostatic equilibrium, via

${\frac {d\Phi }{dr}}=-{\frac {1}{\rho }}{\frac {dP}{dr}}$

which again yields the dimensional form of the Lane–Emden equation.

## Exact solutions

For a given value of the polytropic index $n$ , denote the solution to the Lane–Emden equation as $\theta _{n}(\xi )$ . In general, the Lane–Emden equation must be solved numerically to find $\theta _{n}$ . There are exact, analytic solutions for certain values of $n$ , in particular: $n=0,1,5$ . For $n$  between 0 and 5, the solutions are continuous and finite in extent, with the radius of the star given by $R=\alpha \xi _{1}$ , where $\theta _{n}(\xi _{1})=0$ .

For a given solution $\theta _{n}$ , the density profile is given by

$\rho =\rho _{c}\theta _{n}^{n}$ .

The total mass $M$  of the model star can be found by integrating the density over radius, from 0 to $\xi _{1}$ .

The pressure can be found using the polytropic equation of state, $P=K\rho ^{1+{\frac {1}{n}}}$ , i.e.

$P=K\rho _{c}^{1+{\frac {1}{n}}}\theta _{n}^{n+1}$

Finally, if the gas is ideal, the equation of state is $P=k_{B}\rho T/\mu$ , where $k_{B}$  is the Boltzmann constant and $\mu$  the mean molecular weight. The temperature profile is then given by

$T={\frac {K\mu }{k_{B}}}\rho _{c}^{1/n}\theta _{n}$

In spherically symmetric cases, the Lane–Emden equation is integrable for only three values of the polytropic index $n$ .

### For n = 0

If $n=0$ , the equation becomes

${\frac {1}{\xi ^{2}}}{\frac {d}{d\xi }}\left(\xi ^{2}{\frac {d\theta }{d\xi }}\right)+1=0$

Re-arranging and integrating once gives

$\xi ^{2}{\frac {d\theta }{d\xi }}=C_{1}-{\frac {1}{3}}\xi ^{3}$

Dividing both sides by $\xi ^{2}$  and integrating again gives

$\theta (\xi )=C_{0}-{\frac {C_{1}}{\xi }}-{\frac {1}{6}}\xi ^{2}$

The boundary conditions $\theta (0)=1$  and $\theta '(0)=0$  imply that the constants of integration are $C_{0}=1$  and $C_{1}=0$ . Therefore,

$\theta (\xi )=1-{\frac {1}{6}}\xi ^{2}$

### For n = 1

When $n=1$ , the equation can be expanded in the form

${\frac {d^{2}\theta }{d\xi ^{2}}}+{\frac {2}{\xi }}{\frac {d\theta }{d\xi }}+\theta =0$

One assumes a power series solution:

$\theta (\xi )=\sum _{n=0}^{\infty }a_{n}\xi ^{n}$

This leads to a recursive relationship for the expansion coefficients:

$a_{n+2}=-{\frac {a_{n}}{(n+3)(n+2)}}$

This relation can be solved leading to the general solution:

$\theta (\xi )=a_{0}{\frac {\sin \xi }{\xi }}+a_{1}{\frac {\cos \xi }{\xi }}$

The boundary condition for a physical polytrope demands that $\theta (\xi )\rightarrow 1$  as $\xi \rightarrow 0$ . This requires that $a_{0}=1,a_{1}=0$ , thus leading to the solution:

$\theta (\xi )={\frac {\sin \xi }{\xi }}$

### For n = 5

We start from with the Lane–Emden equation:

${\frac {1}{\xi ^{2}}}{\frac {d}{d\xi }}\left(\xi ^{2}{\frac {d\theta }{d\xi }}\right)+\theta ^{5}=0$

Rewriting for ${\frac {d\theta }{d\xi }}$  produces:

${\frac {d\theta }{d\xi }}={\frac {1}{2}}\left(1+{\frac {\xi ^{2}}{3}}\right)^{3/2}{\frac {2\xi }{3}}={\frac {\xi ^{3}}{3\left[1+{\frac {\xi ^{2}}{3}}\right]^{3/2}}}$

Differentiating with respect to ξ leads to:

$\theta ^{5}={\frac {\xi ^{2}}{\left[1+{\frac {\xi ^{2}}{3}}\right]^{3/2}}}+{\frac {3\xi ^{2}}{9\left[1+{\frac {\xi ^{2}}{3}}\right]^{5/2}}}={\frac {9}{9\left[1+{\frac {\xi ^{2}}{3}}\right]^{5/2}}}$

Reduced, we come by:

$\theta ^{5}={\frac {1}{\left[1+{\frac {\xi ^{2}}{3}}\right]^{5/2}}}$

Therefore, the Lane–Emden equation has the solution

$\theta (\xi )={\frac {1}{\sqrt {1+\xi ^{2}/3}}}$

when $n=5$ . This solution is finite in mass but infinite in radial extent, and therefore the complete polytrope does not represent a physical solution. Chandrasekhar believed for a long time that finding other solution for $n=5$  "is complicated and involves elliptic integrals".

#### Srivastava's solution

In 1962, Sambhunath Srivastava found an explicit solution when $n=5$ . His solution is given by

$\theta ={\frac {\sin(\ln {\sqrt {\xi }})}{{\sqrt {\xi }}[3-2\sin ^{2}(\ln {\sqrt {\xi }})]}},$

and from this solution, a family of solutions $\theta (\xi )\rightarrow {\sqrt {A}}\,\theta (A\xi )$  can be obtained using homology transformation. Since this solution does not satisfy the conditions at the origin (in fact, it is oscillatory with amplitudes growing indefinitely as the origin is approached), this solution can be used in composite stellar models.

## Numerical solutions

In general, solutions are found by numerical integration. Many standard methods require that the problem is formulated as a system of first-order ordinary differential equations. For example,

{\begin{aligned}&{\frac {d\theta }{d\xi }}=-{\frac {\varphi }{\xi ^{2}}}\\[6pt]&{\frac {d\varphi }{d\xi }}=\theta ^{n}\xi ^{2}\end{aligned}}

Here, $\varphi (\xi )$  is interpreted as the dimensionless mass, defined by $m(r)=4\pi \alpha ^{3}\rho _{c}\varphi (\xi )$ . The relevant initial conditions are $\varphi (0)=0$  and $\theta (0)=1$ . The first equation represents hydrostatic equilibrium and the second represents mass conservation.

## Homologous variables

### Homology-invariant equation

It is known that if $\theta (\xi )$  is a solution of the Lane–Emden equation, then so is $C^{2/n+1}\theta (C\xi )$ . Solutions that are related in this way are called homologous; the process that transforms them is homology. If one chooses variables that are invariant to homology, then we can reduce the order of the Lane–Emden equation by one.

A variety of such variables exist. A suitable choice is

$U={\frac {d\log m}{d\log r}}={\frac {\xi ^{3}\theta ^{n}}{\varphi }}$

and

$V={\frac {d\log P}{d\log r}}=(n+1){\frac {\varphi }{\xi \theta }}$

We can differentiate the logarithms of these variables with respect to $\xi$ , which gives

${\frac {1}{U}}{\frac {dU}{d\xi }}={\frac {1}{\xi }}(3-n(n+1)^{-1}V-U)$

and

${\frac {1}{V}}{\frac {dV}{d\xi }}={\frac {1}{\xi }}(-1+U+(n+1)^{-1}V)$ .

Finally, we can divide these two equations to eliminate the dependence on $\xi$ , which leaves

${\frac {dV}{dU}}=-{\frac {V}{U}}\left({\frac {U+(n+1)^{-1}V-1}{U+n(n+1)^{-1}V-3}}\right)$

This is now a single first-order equation.

### Topology of the homology-invariant equation

The homology-invariant equation can be regarded as the autonomous pair of equations

${\frac {dU}{d\log \xi }}=-U(U+n(n+1)^{-1}V-3)$

and

${\frac {dV}{d\log \xi }}=V(U+(n+1)^{-1}V-1).$

The behaviour of solutions to these equations can be determined by linear stability analysis. The critical points of the equation (where $dV/d\log \xi =dU/d\log \xi =0$ ) and the eigenvalues and eigenvectors of the Jacobian matrix are tabulated below.

${\begin{array}{|l|l|l|}\hline {\text{Critical point}}&{\text{Eigenvalues}}&{\text{Eigenvectors}}\\\hline (0,0)&3,-1&(1,0),(0,1)\\(3,0)&-3,2&(1,0),(-3n,5+5n)\\(0,n+1)&1,3-n&(0,1),(2-n,1+n)\\\left({\dfrac {n-3}{n-1}},2{\dfrac {n+1}{n-1}}\right)&{\dfrac {n-5\pm \Delta _{n}}{2-2n}}&(1-n\mp \Delta _{n},4+4n)\\\hline \end{array}}$