Astronomy Olympiad / Level 1 · NSEA / Stars

Stars · lesson 20 of 23 · 45 min

Polytropes and the Lane–Emden equation

After this lesson you can:
  • Relate the polytropic index n to γ = 1 + 1/n.
  • Write the Lane–Emden equation in dimensionless form.
  • Use the exact solutions for n = 0 and n = 1 and find the surface x₀.

Before this lesson: Gas pressure and the Sun's central temperature

1. Concept

Assuming P = Kρ^{1+1/n} turns the star’s equations into one equation, the Lane–Emden equation, with simple exact solutions.

Polytropic Stars & The Lane–Emden Differential Equation

Why We Need a Relationship Between Pressure and Density

In Section 8.1, we learned how gravity and pressure are connected inside a star. We derived two fundamental equations: one describing how the enclosed mass changes with radius and another describing how pressure changes to balance gravity. Together, they provide the foundation for understanding the internal structure of a star.

However, there is still a missing piece.

Imagine that we know the pressure at a particular location inside a star. Can we immediately determine the density of the material there? Not from the two equations alone. Although those equations connect mass, density and pressure, they do not independently specify how pressure and density are related.

To understand this difficulty, recall that pressure and density describe different physical properties. Pressure describes the force exerted per unit area, whereas density describes the mass contained per unit volume. A material’s pressure can depend on its density, temperature, composition and physical state. We therefore need an additional relationship connecting these quantities.

In a complete stellar model, this relationship is supplied by an equation of state. For example, the ideal gas law connects pressure, temperature and particle number density. More detailed models may require additional physics. In this section, however, we will study a particularly useful mathematical model called a polytrope.

A polytropic model assumes that pressure and density are related by a simple power law. This assumption allows us to combine the stellar structure equations into a single differential equation that describes the star’s internal density profile.

The purpose is not to claim that every star obeys precisely the same power law. Rather, we want to understand how a simplified mathematical model can capture important features of a star’s structure and make complicated calculations more manageable.

The idea is similar to the models we use elsewhere in physics. We first simplify a complicated physical situation, identify the relationships that govern it, and then investigate the consequences of those relationships.

We must first understand the mathematical relationship that defines a polytropic model and the meaning of the parameters appearing in it.

The Polytropic Equation of State

Suppose that, inside a star, pressure increases as density increases according to a particular power law. Instead of specifying an arbitrary relationship between pressure and density at every point, we assume that one mathematical expression describes their connection throughout the model.

This expression is called the polytropic equation of state:

P=Kρ1+1/nP=K{\rho }^{1+1/n}

Here, PP is the pressure, ρ\rho is the local mass density, KK is a constant called the polytropic constant, and nn is the polytropic index.

Let us understand why each part matters.

The pressure PP represents the pressure of the stellar material at a particular location. The density ρ\rho describes the mass per unit volume at that location. Both quantities can change as we move from the centre of the star towards its surface.

The constant KK determines the normalisation of the pressure-density relationship. For a chosen polytropic model, KK is treated as constant throughout the star. Its value is connected to the physical model being represented.

The index nn determines the exponent in the equation. It is called the polytropic index and controls the form of the assumed relationship between pressure and density.

For example, if n=1n=1, then

P=Kρ2P=K{\rho }^{2}

because 1+1/n=21+1/n=2.

This means that, in the n=1n=1 model, pressure is proportional to the square of density. If the density increases by a factor of two, the pressure predicted by this equation increases by a factor of four, provided KK remains unchanged.

More generally, different values of nn produce different mathematical relationships between pressure and density. Consequently, polytropic models can describe different kinds of internal density profiles.

It is important not to confuse the polytropic index nn with the density ρ\rho. The density is a physical quantity that varies with position. The index nn is a parameter chosen to specify the model.

Why is this power-law assumption useful? Because the two stellar structure equations already describe how mass and pressure change with radius. Once we provide a relationship between pressure and density, we have enough mathematical structure to combine these equations and derive an equation for the internal density profile.

The resulting equation will be easier to analyse if we express the density relative to its central value rather than carrying large dimensional quantities through every step.

One special case requires care. The n=0n=0 uniform-density model is included in the Lane–Emden theory, but its solution must not be obtained by directly substituting n=0n=0 into the exponent 1+1/n1+1/n, which becomes undefined. We will treat it as a special Lane–Emden case when evaluating the density ratio later.

We need a convenient way to describe the density at any radius relative to the density at the centre. We will introduce dimensionless variables that simplify the mathematics without changing the underlying physical problem.

From Physical Quantities to Dimensionless Variables

So far, our equations have contained quantities such as radius rr, density ρ\rho, pressure PP and gravitational constant GG. These are physical quantities with units. Keeping all of them in every equation can make the mathematics cumbersome.

There is a useful mathematical technique for simplifying such problems: express the variables in terms of suitable reference scales.

Consider the density of a star. Let its central density be ρc{\rho }_{c}. We can describe the density at another radius by comparing it with this central value.

At the centre, the density equals ρc{\rho }_{c}. As we move outward, the density may decrease. We therefore introduce a new dimensionless function θ\theta, pronounced theta, through the definition

ρ=ρc θn\rho ={\rho }_{c}\,{\theta }^{n}

Here, θ\theta describes the density profile in a normalised form. It is dimensionless, meaning that it has no units.

At the centre, ρ=ρc\rho ={\rho }_{c}. For a polytropic model with n>0n>0, the density relation therefore requires

θ(0)=1\theta \left( 0\right) =1

At other locations, the value of θ\theta describes how the local density compares with the central density through the power nn.

For example, when n=1n=1, the relationship becomes

ρ=ρc θ\rho ={\rho }_{c}\,\theta

In this special case, θ\theta is simply the local density divided by the central density. For other positive values of nn, the relationship involves the corresponding power of θ\theta.

Why introduce θ\theta instead of working directly with ρ\rho? Because it separates the central density scale from the shape of the density profile. The central density ρc{\rho }_{c} tells us the density scale, while θ\theta describes how the density changes relative to that scale.

We also introduce a dimensionless radial coordinate, xx, defined by

x=rax=\frac{r}{a}

Equivalently,

r=axr=ax

Here, aa is a characteristic length scale. It has units of length, so dividing rr by aa produces the dimensionless coordinate xx.

The purpose of aa is to remove the physical length scale from the differential equation. We choose its value so that the constants multiplying the different terms simplify in a convenient way.

For the polytropic equation of state P=Kρ1+1/nP=K{\rho }^{1+1/n}, the appropriate scale is

a2=[(n+1)K4πG]ρc(1−n)/n{a}^{2}=\left[ \frac{\left( n+1\right) K}{4\pi G}\right] {\rho }_{c}^{\left( 1-n\right) /n}

This expression is used for the usual positive-index polytropic models. Its role will become clear in the derivation that follows: it makes the resulting equation independent of KK, GG and ρc{\rho }_{c}.

We can now express both the radius and the density through dimensionless variables. Substituting ρ=ρcθn\rho ={\rho }_{c}{\theta }^{n} into the polytropic equation also gives

P=Kρc1+1/n θn+1P=K{\rho }_{c}^{1+1/n}\,{\theta }^{n+1}

The pressure is therefore related to the power n+1n+1 of θ\theta, while density is related to the power nn.

These substitutions do not change the physics. They simply rewrite the same relationships in a form that is easier to analyse.

We now have the physical equations from Section 8.1 and a set of variables designed to simplify them. We will combine these ingredients to derive the Lane–Emden differential equation.

Deriving the Lane–Emden Equation

We are now ready to derive the central equation of this section. The Lane–Emden equation describes the dimensionless density profile of a spherical polytropic model.

We will start with the two stellar structure equations derived earlier:

dMrdr=4πr2ρ    dPdr=−GMr ρr2\frac{d{M}_{r}}{dr}=4\pi {r}^{2}\rho \text{ }\text{ }\text{ }\text{ }\frac{dP}{dr}=-\frac{G{M}_{r}\,\rho }{{r}^{2}}

The first equation describes how enclosed mass changes with radius. The second describes how pressure changes to balance gravity.

Our goal is to combine them into one equation involving the density profile rather than the enclosed mass Mr{M}_{r}.

Step 1: Combine mass continuity and hydrostatic equilibrium

Start with the hydrostatic equilibrium equation:

dPdr=−GMr ρr2\frac{dP}{dr}=-\frac{G{M}_{r}\,\rho }{{r}^{2}}

Multiply both sides by r2/ρ{r}^{2}/\rho:

r2ρdPdr=−GMr\frac{{r}^{2}}{\rho }\frac{dP}{dr}=-G{M}_{r}

This rearrangement places the enclosed mass on the right-hand side. Now differentiate both sides with respect to rr:

ddr(r2ρdPdr)=−GdMrdr\frac{d}{dr}\left( \frac{{r}^{2}}{\rho }\frac{dP}{dr}\right) =-G\frac{d{M}_{r}}{dr}

Using the mass continuity equation,

dMrdr=4πr2ρ\frac{d{M}_{r}}{dr}=4\pi {r}^{2}\rho

we obtain

ddr(r2ρdPdr)=−4πGr2ρ\frac{d}{dr}\left( \frac{{r}^{2}}{\rho }\frac{dP}{dr}\right) =-4\pi G{r}^{2}\rho

Dividing both sides by r2{r}^{2} gives

1r2ddr(r2ρdPdr)=−4πGρ\frac{1}{{r}^{2}}\frac{d}{dr}\left( \frac{{r}^{2}}{\rho }\frac{dP}{dr}\right) =-4\pi G\rho

This equation combines the two stellar structure equations into a single relationship involving pressure and density.

Step 2: Replace pressure and density with the polytropic variables

Recall the polytropic equation of state:

P=Kρ1+1/nP=K{\rho }^{1+1/n}

Using ρ=ρcθn\rho ={\rho }_{c}{\theta }^{n}, we can write the pressure as

P=Kρc1+1/n θn+1P=K{\rho }_{c}^{1+1/n}\,{\theta }^{n+1}

Differentiate this expression with respect to radius. Since θ\theta depends on radius through x=r/ax=r/a,

dPdr=(n+1)Kρc1+1/n θn dθdr\frac{dP}{dr}=\left( n+1\right) K{\rho }_{c}^{1+1/n}\,{\theta }^{n}\,\frac{d\theta }{dr}

Now divide by the density ρ=ρcθn\rho ={\rho }_{c}{\theta }^{n}. The factor θn{\theta }^{n} cancels, leaving

1ρdPdr=(n+1)Kρc1/n dθdr\frac{1}{\rho }\frac{dP}{dr}=\left( n+1\right) K{\rho }_{c}^{1/n}\,\frac{d\theta }{dr}

Substitute this expression into the combined equation obtained in Step 1:

1r2ddr[r2(n+1)Kρc1/ndθdr]=−4πGρc θn\frac{1}{{r}^{2}}\frac{d}{dr}\left[ {r}^{2}\left( n+1\right) K{\rho }_{c}^{1/n}\frac{d\theta }{dr}\right] =-4\pi G{\rho }_{c}\,{\theta }^{n}

The factors (n+1)Kρc1/n\left( n+1\right) K{\rho }_{c}^{1/n} are constant throughout the chosen model, so they can be taken outside the differentiation. We get

(n+1)Kρc1/n 1r2ddr(r2dθdr)=−4πGρc θn\left( n+1\right) K{\rho }_{c}^{1/n}\,\frac{1}{{r}^{2}}\frac{d}{dr}\left( {r}^{2}\frac{d\theta }{dr}\right) =-4\pi G{\rho }_{c}\,{\theta }^{n}

At this stage, the equation still contains the dimensional radius rr and the physical constants.

Step 3: Introduce the dimensionless radius

Recall that

r=axr=ax

Therefore,

dθdr=1adθdx\frac{d\theta }{dr}=\frac{1}{a}\frac{d\theta }{dx}

Substituting this relationship into the radial differential operator gives

1r2ddr(r2dθdr)=1a2x2ddx(x2dθdx)\frac{1}{{r}^{2}}\frac{d}{dr}\left( {r}^{2}\frac{d\theta }{dr}\right) =\frac{1}{{a}^{2}{x}^{2}}\frac{d}{dx}\left( {x}^{2}\frac{d\theta }{dx}\right)

Our equation consequently becomes

[(n+1)Kρc1/na2]1x2ddx(x2dθdx)=−4πGρc θn\left[ \frac{\left( n+1\right) K{\rho }_{c}^{1/n}}{{a}^{2}}\right] \frac{1}{{x}^{2}}\frac{d}{dx}\left( {x}^{2}\frac{d\theta }{dx}\right) =-4\pi G{\rho }_{c}\,{\theta }^{n}

We chose the length scale aa so that

a2=[(n+1)K4πG]ρc(1−n)/n{a}^{2}=\left[ \frac{\left( n+1\right) K}{4\pi G}\right] {\rho }_{c}^{\left( 1-n\right) /n}

This choice makes

(n+1)Kρc1/na2=4πGρc\frac{\left( n+1\right) K{\rho }_{c}^{1/n}}{{a}^{2}}=4\pi G{\rho }_{c}

The common factor 4πGρc4\pi G{\rho }_{c} therefore cancels from both sides of the differential equation.

We are left with

1x2ddx(x2dθdx)=−θn\frac{1}{{x}^{2}}\frac{d}{dx}\left( {x}^{2}\frac{d\theta }{dx}\right) =-{\theta }^{n}

Finally, move the right-hand term to the left:

1x2ddx(x2dθdx)+θn=0\frac{1}{{x}^{2}}\frac{d}{dx}\left( {x}^{2}\frac{d\theta }{dx}\right) +{\theta }^{n}=0

This is the Lane–Emden differential equation in its standard dimensionless form.

Step 4: Understand the result

The Lane–Emden equation describes how θ\theta changes with the dimensionless radius xx for a specified polytropic index nn. Since the density is given by ρ=ρcθn\rho ={\rho }_{c}{\theta }^{n}, solving this equation allows us to determine the density profile relative to the central density.

Notice what has disappeared from the equation: the gravitational constant GG, the polytropic constant KK, the central density ρc{\rho }_{c} and the characteristic length scale aa. Their effects have been absorbed into the definitions of the dimensionless variables.

Different physical models can therefore share the same dimensionless differential equation while having different characteristic scales and physical sizes.

This is the power of the method. Instead of solving a separate complicated equation for every combination of dimensional parameters, we study a simpler equation controlled by the polytropic index nn and then interpret its solution in terms of physical quantities.

A differential equation does not determine a unique physical model unless we specify appropriate conditions. We must establish what happens at the centre and how the solution identifies the outer boundary of a finite-radius polytrope.

Boundary Conditions and the Surface of a Polytropic Star

We have derived the Lane–Emden equation:

1x2ddx(x2dθdx)+θn=0\frac{1}{{x}^{2}}\frac{d}{dx}\left( {x}^{2}\frac{d\theta }{dx}\right) +{\theta }^{n}=0

This equation describes the dimensionless density profile, but we must still determine which solution represents a physically meaningful spherical star.

To do this, we begin with what we know about the centre of a star.

The central value of θ

At the centre, r=0r=0. By definition, the central density is ρc{\rho }_{c}. We also defined the density profile through

ρ=ρc θn\rho ={\rho }_{c}\,{\theta }^{n}

For the usual positive-index polytropic models, substituting the central density gives

ρc=ρc θ(0)n{\rho }_{c}={\rho }_{c}\,\theta {\left( 0\right) }^{n}

Therefore,

θ(0)=1\theta \left( 0\right) =1

This is the first central boundary condition.

It expresses the way we normalised the density profile: the central value of θ\theta is one, so the central density is exactly ρc{\rho }_{c}.

Why the derivative vanishes at the centre

The second boundary condition follows from the spherical symmetry of the model.

At the exact centre, there is no preferred direction. The density cannot have a nonzero first-order gradient pointing towards one side of the star rather than another while retaining a smooth, perfectly spherical structure.

Therefore, the derivative of θ\theta with respect to xx must vanish at the centre:

dθdx∣x=0=0{\left. \frac{d\theta }{dx}\right| }_{x=0}=0

Using the notation θ′\theta ' for dθ/dxd\theta /dx, we can write the two central boundary conditions together:

θ(0)=1,  θ′(0)=0\theta \left( 0\right) =1,\text{ }\text{ }\theta '\left( 0\right) =0

These conditions select the regular central solution of the Lane–Emden equation.

Although the equation contains the factor 1/x21/{x}^{2} and therefore appears singular at x=0x=0, the physically relevant solution remains finite and smooth at the centre. The central conditions ensure that we follow this regular solution rather than an unphysical one.

How does the equation identify the surface?

At the centre, θ\theta starts at one. As we move outward, θ\theta describes the change in density relative to its central value.

For a positive-index model, the density is

ρ=ρc θn\rho ={\rho }_{c}\,{\theta }^{n}

When θ\theta decreases, the density decreases as well. In a finite-radius polytropic model, the first point at which θ\theta reaches zero identifies the surface.

We denote this dimensionless radius by x0{x}_{0}:

θ(x0)=0\theta \left( {x}_{0}\right) =0

The quantity x0{x}_{0} is called the first zero of the Lane–Emden function. The corresponding physical radius of the star is

R⋆=a x0{R}_{\star }=a\,{x}_{0}

Here, R⋆{R}_{\star } represents the stellar radius, while aa provides the characteristic length scale converting the dimensionless solution into a physical distance.

This illustrates an important distinction. The Lane–Emden equation gives us a dimensionless profile and a dimensionless boundary location. The scale aa then determines the physical size of the model.

For the finite-radius cases we will study, the first zero provides a clear mathematical way to identify the outer boundary. Not every possible polytropic index produces a finite first zero, so this interpretation must be applied to models whose solutions actually reach zero at a finite dimensionless radius.

At the surface, the dimensionless density function reaches zero. For n>0n>0, the relation ρ=ρcθn\rho ={\rho }_{c}{\theta }^{n} then gives zero density at this boundary in the idealised model.

We now have the information needed to connect a Lane–Emden solution to the physical star: the central normalisation, the condition of spherical symmetry at the centre, and the first zero that defines the surface for a finite-radius model.

Once we know x0{x}_{0} and the derivative θ′(x0)\theta '\left( {x}_{0}\right), we can relate the central density to the average density of the whole star. This will lead us to the central-to-average density ratio and the special solutions for n=0n=0 and n=1n=1.

Key results.

  • P = Kρ^{1+1/n}; ρ = ρ_c θⁿ; r = a x
  • (1/x²) d/dx (x² dθ/dx) = −θⁿ, with θ(0) = 1, θ′(0) = 0

Common mistakes. Each of these is false:

  • ✗ A polytrope is a real star (it is a simplified model).
  • ✗ Every Lane–Emden equation has a formula solution (only n = 0, 1 and 5).

Going deeper (Olympiad)

n = 3 (Eddington’s model of the Sun) has x₀ = 6.897 and must be solved numerically.

2. Explore it

Try it. What is the polytropic index for P = Kρ²?

Exam-style practice. Check that θ = 1 − x²/6 solves the equation for n = 0.

3. Worked example

For an n=1n=1 polytrope with constant KK, which expression gives the stellar radius R⋆{R}_{\star }?

(a) πK2G\sqrt{\frac{\pi K}{2G}}
(b) K2πG\sqrt{\frac{K}{2\pi G}}
(c) πK2G\frac{\pi K}{2G}
(d) 2πKG\sqrt{\frac{2\pi K}{G}}

Solution. Answer: (a). R⋆=πK/(2G){R}_{\star }=\sqrt{\pi K/\left( 2G\right) }

For n=1n=1 the exponent of ρc{\rho }_{c} in a2{a}^{2} is (1−n)/n=0\left( 1-n\right) /n=0, so

a2=(1+1)K4πG=K2πG{a}^{2}=\frac{\left( 1+1\right) K}{4\pi G}=\frac{K}{2\pi G}

The surface lies at x0=π{x}_{0}=\pi, so

R⋆=πa=πK2πG=πK2G{R}_{\star }=\pi a=\pi \sqrt{\frac{K}{2\pi G}}=\sqrt{\frac{\pi K}{2G}}

4. Exam practice

For n=1n=1, the substitution θ=u/x\theta =u/x turns the Lane–Emden equation into which equation for u(x)u\left( x\right)?

(a) u′′−u=0u''-u=0
(b) u′′+u=0u''+u=0
(c) u′′+ux=0u''+\frac{u}{x}=0
(d) u′+u=0u'+u=0

Solution. Answer: (b). u′′+u=0u''+u=0

With θ=u/x\theta =u/x, we have x2θ′=xu′−u{x}^{2}\theta '=xu'-u and ddx(x2θ′)=xu′′\frac{d}{dx}\left( {x}^{2}\theta '\right) =xu''. Substituting into the Lane–Emden equation with n=1n=1:

xu′′x2+ux=0 ⇒ u′′+u=0\frac{xu''}{{x}^{2}}+\frac{u}{x}=0\text{ }\Rightarrow \text{ }u''+u=0

5. Quick check

Q1. For a polytrope of index n=1n=1, how does the pressure PP depend on the density ρ\rho?

Q2. A polytropic model with index n=3n=3 follows P=KργP=K{\rho }^{\gamma }. What is the value of γ\gamma?

Q3. The equation of state of a gas is P=Kρ5/3P=K{\rho }^{5/3}. What is the polytropic index nn of this gas?

Q4. In the Lane–Emden variables, the density is written as ρ=ρc θn\rho ={\rho }_{c}\,{\theta }^{n}. What is the value of θ\theta at the centre of the star?

Q5. Which of the following statements about the Lane–Emden equation are correct? 1x2ddx(x2dθdx)+θn=0\frac{1}{{x}^{2}}\frac{d}{dx}\left( {x}^{2}\frac{d\theta }{dx}\right) +{\theta }^{n}=0 (Choose all that are correct.)

6. Next