Astronomy Olympiad / Level 1 · NSEA / Stars

Stars · lesson 19 of 23 · 35 min

Gas pressure and the Sun's central temperature

After this lesson you can:
  • Use P = nkT = ρkT/(μm_H) for stellar gas.
  • Estimate the Sun's central temperature.
  • See how T_c depends on M, R and μ.

Before this lesson: Estimating the Sun's central pressure

1. Concept

With the ideal-gas law the central pressure gives the central temperature: millions of kelvin, hot enough for fusion.

Gas Pressure and the Ideal Gas Law

In the previous subsection, we estimated the pressure at the centre of the Sun to be of the order of 1014N/m2{10}^{14}N/{m}^{2}. But pressure is not merely a number in an equation. It arises from the behaviour of the tiny particles that make up the gas.

To understand how pressure is connected to temperature, we must change our point of view. Until now, we have treated the star as a continuous substance with properties such as density and pressure. We will now look at the individual particles making up that substance.

What produces pressure in a gas?

Imagine a sealed container filled with gas. The gas contains enormous numbers of tiny particles moving continuously in different directions. When these particles collide with the walls of the container, they transfer momentum to the walls. The combined effect of these collisions produces the pressure exerted by the gas.

If more particles occupy the same volume, there are generally more collisions with the walls, producing greater pressure when the temperature is unchanged. If the particles move faster on average, they transfer more momentum during collisions and produce greater pressure when the particle number density is unchanged.

This leads us to two important conclusions. Pressure depends on how many particles occupy a given volume, and it also depends on the temperature of the gas.

Number density: How many particles occupy a volume?

The number density, represented by nn, is the number of individual gas particles per unit volume.

If a volume contains NN particles and has volume VV, its number density is

n=NVn=\frac{N}{V}

The SI unit of number density is m⁻³, meaning the number of particles per cubic metre.

A larger number density means that more particles occupy the same volume. For a gas at a fixed temperature, a greater number density produces a greater pressure.

Notice that number density is not the same as mass density. Mass density, represented by ρ\rho, measures the mass contained per unit volume, whereas number density measures the number of particles contained per unit volume. Two gases with the same mass density can have different number densities if their particles have different masses.

Temperature: How energetic is the motion of the particles?

Temperature is closely connected to the average microscopic kinetic energy of particles in a gas. For an ideal gas, a higher absolute temperature corresponds to a greater average translational kinetic energy per particle.

Consequently, when the number density remains unchanged, increasing the temperature increases the pressure. The particles have greater average kinetic energy and transfer momentum more strongly through their collisions.

Temperature in this relationship must be measured on the absolute temperature scale, in kelvin (K).

We now have the two ingredients needed to understand gas pressure: the number of particles packed into a unit volume and the temperature associated with their microscopic motion.

The ideal gas law

For an ideal gas in thermal equilibrium, pressure, number density and absolute temperature are related by

P=nkBTP=n{k}_{B}T

This is the microscopic form of the ideal gas law.

Here, PP is the gas pressure, nn is the number density, kB{k}_{B} is the Boltzmann constant, and TT is the absolute temperature in kelvin.

The Boltzmann constant connects temperature to microscopic energy. Its value is 1.38×10−231.38\times {10}^{-23} J/K, which we round to

kB≈1.4×10−23 J/K{k}_{B}\approx 1.4\times {10}^{-23}\text{ }J/K

We can now interpret the equation physically.

If nn increases while TT remains constant, PP increases in the same proportion. If TT increases while nn remains constant, PP also increases in the same proportion. If both change, the pressure depends on their combined effect.

The equation therefore expresses a simple idea: the pressure of an ideal gas depends on the number of particles per unit volume and their temperature.

The units also agree. Number density has units of m⁻³, the Boltzmann constant has units of J/K, and temperature has units of K. Multiplying these quantities gives

m−3×J/K×K=J/m3{m}^{-3}\times J/K\times K=J/{m}^{3}

Since one joule per cubic metre is equivalent to one pascal, the expression has the correct units for pressure.

Applying this idea to the interior of a star

The interior of the Sun contains extremely hot gas. Under suitable conditions, its pressure can be modelled using the ideal gas law. In particular, the relationship allows us to connect the pressure at a location to the temperature and number density at that same location.

At the centre of the Sun, we can write

Pc=nckBTc{P}_{c}={n}_{c}{k}_{B}{T}_{c}

Here, Pc{P}_{c} is the central pressure, nc{n}_{c} is the central number density and Tc{T}_{c} is the central temperature.

Rearranging gives

Tc=PcnckB{T}_{c}=\frac{{P}_{c}}{{n}_{c}{k}_{B}}

This equation tells us that, if the central pressure and central number density are known, we can estimate the central temperature.

However, we have not yet determined the number density of the particles in the Sun’s interior. We cannot simply substitute the mass density into the ideal gas law because mass density and number density describe different quantities.

To make progress, we must understand what the particles inside the hot Sun actually are. In particular, we need to examine what happens to hydrogen atoms at the very high temperatures inside a star.

We will investigate thermal ionization, understand how a hydrogen atom can separate into a proton and an electron, and determine how this affects the number of pressure-producing particles. This will allow us to connect the Sun’s mass density to its number density and prepare for the central-temperature estimate.

Thermal Ionization, Particle Counting and Mean Molecular Weight

In the previous subsection, we learned that the pressure of an ideal gas depends on its number density and temperature:

P=nkBTP=n{k}_{B}T

To use this equation for the Sun, we must determine the number density nn. We already know that the mass density ρ\rho tells us how much mass occupies a unit volume, but it does not directly tell us how many particles occupy that volume. To make the connection, we must examine the physical state of the material inside a star.

What happens to matter at extremely high temperatures?

On Earth, hydrogen normally exists as part of atoms or molecules. In an ordinary hydrogen atom, a negatively charged electron is bound to a positively charged proton by the electromagnetic force.

Inside a sufficiently hot stellar interior, particles collide with great energy. These collisions can transfer enough energy to separate electrons from their atoms. This process is called ionization.

When a hydrogen atom is fully ionized, it becomes a free proton and a free electron. The resulting mixture of charged particles is called a plasma.

The proton and electron are no longer bound together as one neutral hydrogen atom. They can move independently through the plasma and contribute separately to the gas pressure.

This matters because the number of independent particles has increased, even though the total mass has changed negligibly.

Why one hydrogen atom can become two particles

A hydrogen atom contains one proton and one electron. Almost all its mass is concentrated in the proton because the electron is much lighter.

The proton mass is approximately

mH=1.67×10−27 kg{m}_{H}=1.67\times {10}^{-27}\text{ }\text{kg}

Here, mH{m}_{H} denotes the proton mass used in our calculation.

Consider one cubic metre of a simplified hydrogen gas with mass density ρ\rho. Its total mass is ρ\rho kilograms. Since almost all the mass of each hydrogen atom is carried by its proton, the approximate number of hydrogen nuclei in that cubic metre is

Number of hydrogen nuclei per cubic metre=ρmH\text{Number of hydrogen nuclei per cubic metre}=\frac{\rho }{{m}_{H}}

If the hydrogen is fully ionized, each nucleus is accompanied by one free electron. Every hydrogen nucleus therefore contributes two independent particles: one proton and one electron.

Consequently, the total number of free particles per cubic metre is approximately twice the number of hydrogen nuclei:

n=2×ρmHn=2\times \frac{\rho }{{m}_{H}}

Therefore,

n=2ρmHn=\frac{2\rho }{{m}_{H}}

This is the number-density expression we shall use for stellar interiors in this chapter. It is based on the simplified assumption of fully ionized hydrogen, with the electron mass neglected when calculating the mass density.

Notice the physical meaning of this result. The mass density is determined almost entirely by the protons, but the number density includes both protons and electrons. Counting only the protons would underestimate the number of pressure-producing particles by a factor of two in this model.

Why both protons and electrons contribute to pressure

You might wonder whether a lightweight electron contributes as much to the gas pressure as a much heavier proton.

For an ideal gas in thermal equilibrium, the pressure contribution per particle is determined by the temperature, not by the particle’s mass. At the same temperature, a proton and an electron have the same average translational kinetic energy, even though their typical speeds are very different.

Thus, both free protons and free electrons contribute to the total gas pressure. This is why the number density counts both types of particles.

Mean molecular weight: a more general way to count particles

The expression n=2ρ/mHn=2\rho /{m}_{H} is useful for the simplified fully ionized hydrogen model. But stellar material need not consist entirely of hydrogen. To describe gases with different compositions and ionization states, astrophysics uses a more general quantity called the mean molecular weight, represented by the Greek letter μ\mu (mu).

Mean molecular weight describes the average mass associated with each independent gas particle, expressed in units of the hydrogen mass mH{m}_{H}.

The average mass per particle is therefore μmH\mu {m}_{H}. If the gas has mass density ρ\rho, the number of particles per unit volume is

n=ρμmHn=\frac{\rho }{\mu {m}_{H}}

For fully ionized pure hydrogen, one proton and one electron share approximately one proton mass between two independent particles. The average mass per particle is therefore

Average mass per particle=mH2\text{Average mass per particle}=\frac{{m}_{H}}{2}

Thus,

μ=12=0.5\mu =\frac{1}{2}=0.5

Substituting μ=0.5\mu =0.5 into the general expression gives

n=ρ0.5 mHn=\frac{\rho }{0.5\,{m}_{H}}

Therefore,

n=2ρmHn=\frac{2\rho }{{m}_{H}}

This agrees with the expression derived earlier by explicitly counting the protons and electrons.

The two approaches describe the same simplified model. The direct method counts the particles one by one, whereas the mean-molecular-weight method expresses the result through the average mass per particle.

An important limit of this approximation

The Sun is not made entirely of hydrogen. A realistic solar model must account for its chemical composition, ionization state and the contributions of different types of particles. The value μ=0.5\mu =0.5 applies to fully ionized pure hydrogen, not to every stellar plasma. For a fully ionized gas with hydrogen mass fraction XX, helium mass fraction YY and heavier-element mass fraction ZZ, a good approximation is

1μ≈2X+34Y+12Z\frac{1}{\mu }\approx 2X+\frac{3}{4}Y+\frac{1}{2}Z

For the estimates in this chapter, however, we use the simple expression n=2ρ/mHn=2\rho /{m}_{H}, which specifies the simplified particle-counting model. We will retain that assumption consistently rather than silently replacing it with a more detailed solar-composition model.

We have now connected mass density to number density. This is the missing link between the large-scale properties of a star and the microscopic behaviour of the particles inside it.

We will combine the estimated central pressure with the ideal gas law and the hydrogen particle-counting expression. This will allow us to derive and use a formula for estimating the temperature at the centre of the Sun.

Estimating the Sun’s Central Temperature

We have now developed two complementary descriptions of a star. The stellar structure equations describe how mass and pressure change from the centre to the surface, while the ideal gas law connects pressure to the number density and temperature of particles.

Our task is to bring these descriptions together.

The central pressure estimate tells us how strongly the material is compressed, but pressure alone does not determine temperature. We must also account for the number of particles sharing the space. Fortunately, our study of thermal ionization has given us the relationship needed to do this.

Connecting pressure, density and temperature

For an ideal gas, the microscopic form of the ideal gas law is

P=nkBTP=n{k}_{B}T

For the simplified model of fully ionized hydrogen used here, the number density is

n=2ρmHn=\frac{2\rho }{{m}_{H}}

Here, ρ\rho is the mass density and mH{m}_{H} is the mass of a proton. The factor of 2 appears because each hydrogen atom contributes two independent particles: one proton and one electron.

Substituting the number-density expression into the ideal gas law gives

P=(2ρmH)kBTP=\left( \frac{2\rho }{{m}_{H}}\right) {k}_{B}T

Rearranging to make temperature the subject,

T=PmH2ρkBT=\frac{P{m}_{H}}{2\rho {k}_{B}}

This equation tells us that temperature depends on pressure and mass density, as well as the proton mass and Boltzmann constant.

To estimate the central temperature, we need an estimate of the pressure and a representative density for the gas.

Obtaining a temperature estimate from hydrostatic equilibrium

Recall the central-pressure estimate derived earlier using our chosen average values:

Pc≈3GM22πR4{P}_{c}\approx \frac{3G{M}^{2}}{2\pi {R}^{4}}

The average density of the star is its total mass divided by its volume:

ρavg=M4πR3/3{\rho }_{\text{avg}}=\frac{M}{4\pi {R}^{3}/3}

Therefore,

ρavg=3M4πR3{\rho }_{\text{avg}}=\frac{3M}{4\pi {R}^{3}}

Dividing the central-pressure estimate by the average density gives

Pcρavg≈3GM2/(2πR4)3M/(4πR3)\frac{{P}_{c}}{{\rho }_{\text{avg}}}\approx \frac{3G{M}^{2}/\left( 2\pi {R}^{4}\right) }{3M/\left( 4\pi {R}^{3}\right) }

Simplifying the numerical factors, mass terms and powers of radius gives

Pcρavg≈2GMR\frac{{P}_{c}}{{\rho }_{\text{avg}}}\approx \frac{2GM}{R}

This relationship expresses the pressure estimate per unit representative density in terms of the star’s mass and radius.

Now return to the ideal gas relationship. Using the same representative density in this order-of-magnitude model,

Pc≈(2ρavgmH)kBTc{P}_{c}\approx \left( \frac{2{\rho }_{\text{avg}}}{{m}_{H}}\right) {k}_{B}{T}_{c}

Rearranging gives

Tc≈Pc mH2ρavg kB{T}_{c}\approx \frac{{P}_{c}\,{m}_{H}}{2{\rho }_{\text{avg}}\,{k}_{B}}

Substitute Pc/ρavg≈2GM/R{P}_{c}/{\rho }_{\text{avg}}\approx 2GM/R:

Tc≈(2GMR)mH2kB{T}_{c}\approx \left( \frac{2GM}{R}\right) \frac{{m}_{H}}{2{k}_{B}}

The factors of 2 cancel, leaving

Tc≈GMmHkBR{T}_{c}\approx \frac{GM{m}_{H}}{{k}_{B}R}

This is the central-temperature estimate obtained from the particular approximations used here. For a gas of mean molecular weight μ\mu, the same steps with n=ρ/(μmH)n={\rho }/{\left( \mu {m}_{H}\right) } give Tc≈2μGMmH/(kBR){T}_{c}\approx {2\mu GM{m}_{H}}/{\left( {k}_{B}R\right) }, which reduces to this result for μ=0.5\mu =0.5. Thus Tc∝μM/R{T}_{c}\propto {\mu M}/{R}: a more massive or more compact star, or one with fewer particles per unit mass (larger μ\mu), has a hotter centre.

Notice the significance of the result. The representative density has cancelled out, allowing us to estimate the temperature using the star’s total mass and radius, together with the proton mass, gravitational constant and Boltzmann constant.

This cancellation occurs because the same representative density was used in both parts of the approximate calculation. It is a feature of this simplified model, not a claim that the actual central density equals the average density.

Estimating the central temperature of the Sun

The relevant approximate values are

G=6.67×10−11 m3 kg−1 s−2,  M⊙=2×1030 kg,  R⊙=7×108 mG=6.67\times {10}^{-11}\text{ }{m}^{3}\,{\text{kg}}^{-1}\,{s}^{-2},\text{ }\text{ }{M}_{\odot }=2\times {10}^{30}\text{ }\text{kg},\text{ }\text{ }{R}_{\odot }=7\times {10}^{8}\text{ }m mH=1.67×10−27 kg,  kB=1.4×10−23 J/K{m}_{H}=1.67\times {10}^{-27}\text{ }\text{kg},\text{ }\text{ }{k}_{B}=1.4\times {10}^{-23}\text{ }J/K

Substituting into our temperature estimate,

Tc≈(6.67×10−11)(2×1030)(1.67×10−27)(1.4×10−23)(7×108){T}_{c}\approx \frac{\left( 6.67\times {10}^{-11}\right) \left( 2\times {10}^{30}\right) \left( 1.67\times {10}^{-27}\right) }{\left( 1.4\times {10}^{-23}\right) \left( 7\times {10}^{8}\right) }

First, calculate the numerical factor in the numerator:

6.67×2×1.67≈22.36.67\times 2\times 1.67\approx 22.3

The combined power of ten is

10−11×1030×10−27=10−8{10}^{-11}\times {10}^{30}\times {10}^{-27}={10}^{-8}

Thus, the numerator is approximately 22.3×10−822.3\times {10}^{-8}.

Now calculate the denominator’s numerical factor:

1.4×7=9.81.4\times 7=9.8

Its power of ten is

10−23×108=10−15{10}^{-23}\times {10}^{8}={10}^{-15}

The denominator is therefore 9.8×10−159.8\times {10}^{-15}.

Our estimate becomes

Tc≈22.3×10−89.8×10−15{T}_{c}\approx \frac{22.3\times {10}^{-8}}{9.8\times {10}^{-15}}

Dividing the numerical factors and subtracting the exponents gives

Tc≈2.3×107 K{T}_{c}\approx 2.3\times {10}^{7}\text{ }K

To the precision justified by this approximation, the central-temperature estimate is of the order of 107{10}^{7} K.

What does this temperature tell us?

The result shows that the Sun’s interior reaches temperatures of tens of millions of kelvin in this simplified estimate. Such extreme temperatures help explain why the material in the solar interior is ionized and why we must consider the behaviour of free electrons and protons rather than treating the gas as a collection of ordinary neutral hydrogen atoms. (Detailed solar models give a central temperature of about 1.6×1071.6\times {10}^{7} K, so the estimate has the right order of magnitude.)

The temperature estimate also illustrates the connection between gravity and microscopic motion. A star with a greater mass or smaller radius has a larger characteristic value of GM/RGM/R. In this simplified model, that leads to a higher characteristic temperature.

Our derivation therefore links three levels of understanding: the star’s total mass and radius, the pressure required to support it against gravity, and the microscopic motion of the particles making up its interior.

An important limitation

This result is an order-of-magnitude estimate, not an exact calculation of the Sun’s core temperature. We used an approximate pressure relation and a representative average density. A more detailed stellar model would use the actual radial profiles of pressure, density and temperature, together with a realistic chemical composition and equation of state.

For our present purpose, however, the calculation demonstrates how an inaccessible interior condition can be estimated from measurable stellar properties and basic physical laws.

We have now completed the conceptual chain for Section 8.1. The distribution of matter determines the enclosed mass; the enclosed mass determines the gravitational field; hydrostatic equilibrium connects gravity to the pressure gradient; and the ideal gas law connects pressure to the particle density and temperature.

Matter distribution → Enclosed mass → Gravity → Pressure gradient → Temperature

The central temperature is therefore not an isolated quantity that must be memorised. It emerges from the connected physical structure of the star.

Key results.

  • P = ρkT/(μ m_H)
  • T_c ∝ μ M/R

Common mistakes. Each of these is false:

  • ✗ The centre of the Sun is about as hot as its surface (it is about 2700 times hotter).
  • ✗ μ does not affect the temperature (a larger μ needs a higher temperature for the same pressure).

Going deeper (Olympiad)

T_c ∝ μM/R: stars of the same composition and structure have central temperatures in proportion to M/R.

2. Explore it

Try it. If μ doubled with P and ρ fixed, what would happen to T?

Exam-style practice. Star Y has twice the Sun’s mass and twice its radius. Compare its central temperature.

3. Worked example

Using the composition relation 1μ≈2X+34Y+12Z\frac{1}{\mu }\approx 2X+\frac{3}{4}Y+\frac{1}{2}Z, calculate the mean molecular weight μ\mu for a star with mass fractions X=0.5X=0.5, Y=0.4Y=0.4 and Z=0.1Z=0.1.

(a) 0.500.50
(b) 0.610.61
(c) 0.740.74
(d) 0.850.85

Solution. Answer: (c). 0.74

1μ≈2(0.5)+34(0.4)+12(0.1)\frac{1}{\mu }\approx 2\left( 0.5\right) +\frac{3}{4}\left( 0.4\right) +\frac{1}{2}\left( 0.1\right) 1μ≈1.00+0.30+0.05=1.35\frac{1}{\mu }\approx 1.00+0.30+0.05=1.35 μ=11.35≈0.74\mu =\frac{1}{1.35}\approx 0.74

A common slip is to forget the 3/4{3}/{4} factor on YY; this gives a wrong value such as 0.69.

4. From a past paper

NSEA 2016, Question 69 (official paper: IAPT). Treat the gas inside the Sun as an ideal gas whose particle number density is 2ρ/mH2\rho/m_H (kB=1.4×10−23k_B=1.4\times10^{-23} J/K, mH=1.67×10−27m_H=1.67\times10^{-27} kg). Using the central pressure estimated in the previous lesson (about 5×10145\times10^{14} Pa) and the Sun’s mean density, roughly what is the temperature at the centre of the Sun? (a) 3×1073\times10^{7} K (b) 2×1072\times10^{7} K (c) 4×1074\times10^{7} K (d) 6×1076\times10^{7} K

Our solution. Answer: (b). 2×107K2\times {10}^{7} K

For a perfect gas P=nkBTP=n{k}_{B}T. For fully ionized hydrogen, each proton brings one electron, so the particle number density is n=2ρMHn=\frac{2\rho }{{M}_{H}}. With the mean density

ρˉ=M043πR03=2×103043π(7×108)3 kg m−3≈1.39×103 kg m−3\bar{\rho }=\frac{{M}_{0}}{\frac{4}{3}\pi {R}_{0}^{3}}=\frac{2\times {10}^{30}}{\frac{4}{3}\pi {\left( 7\times {10}^{8}\right) }^{3}}\text{ kg }{m}^{-3}\approx 1.39\times {10}^{3}\text{ kg }{m}^{-3} Tc=PcMH2ρˉkB=5.3×1014×1.67×10−272×1.39×103×1.4×10−23K≈2.3×107K{T}_{c}=\frac{{P}_{c}{M}_{H}}{2\bar{\rho }{k}_{B}}=\frac{5.3\times {10}^{14}\times 1.67\times {10}^{-27}}{2\times 1.39\times {10}^{3}\times 1.4\times {10}^{-23}} K\approx 2.3\times {10}^{7} K

The nearest option is 2×107K2\times {10}^{7} K. (Solar models give 1.57×107K1.57\times {10}^{7} K — the crude estimate has the right order of magnitude.)

5. Quick check

Q1. For a star of total mass MM and radius RR with a constant density ρ0=3M4πR3{\rho }_{0}=\frac{3M}{4\pi {R}^{3}}, integrating the hydrostatic equation from the centre to the surface gives which exact expression for the central pressure Pc{P}_{c}?

Q2. If the chemical composition of a stellar core changes during evolution so that the mean molecular weight μ\mu increases from 0.5 to 0.8 while the central pressure and density remain momentarily constant, what happens to the central temperature Tc{T}_{c}?

Q3. In a stellar core consisting of a plasma of fully ionized hydrogen and helium, which of the following quantities directly determine the total gas pressure PP through the ideal gas law? (Choose all that are correct.)

Q4. For a star with a parabolic pressure profile P(r)=Pc(1−r2R2)P\left( r\right) ={P}_{c}\left( 1-\frac{{r}^{2}}{{R}^{2}}\right), what is the pressure at half the radius, r=R/2r=R/2?

Q5. In a star with uniform density ρ0{\rho }_{0}, what is the ratio of the central density ρc{\rho }_{c} to the average density ρ^\hat{\rho }?

6. Next