Lesson 1 of 15

Stellar Luminosity

Stellar Luminosity

A star radiates as a near-perfect blackbody. Its total luminosity is governed by the Stefan-Boltzmann law:

L=4πR2σTeff4L = 4\pi R^2 \sigma T_{\text{eff}}^4

where:

  • RR is the stellar radius in metres
  • TeffT_{\text{eff}} is the effective surface temperature in Kelvin
  • σ=5.6704×108\sigma = 5.6704 \times 10^{-8} W m⁻² K⁻⁴ is the Stefan-Boltzmann constant

Solar Units

Astronomers often express luminosity relative to the Sun:

LL=(RR)2(TT)4\frac{L}{L_\odot} = \left(\frac{R}{R_\odot}\right)^2 \left(\frac{T}{T_\odot}\right)^4

The Sun's parameters: R=6.957×108R_\odot = 6.957 \times 10^8 m, T=5778T_\odot = 5778 K, L=3.828×1026L_\odot = 3.828 \times 10^{26} W.

A star with twice the radius and the same temperature has four times the luminosity. A star twice as hot (same radius) has sixteen times the luminosity.

Inverse: Effective Temperature

Given the luminosity and radius, you can recover the effective temperature:

Teff=(L4πR2σ)1/4T_{\text{eff}} = \left(\frac{L}{4\pi R^2 \sigma}\right)^{1/4}

This is used to determine stellar surface temperatures from measured luminosities and radii.

StarR/RR/R_\odotTT (K)L/LL/L_\odot
Sun1.057781.0
Sirius A1.71994025.4
Betelgeuse7003500~100,000

Your Task

Implement three functions. All constants must be defined inside each function.

  • stefan_boltzmann_luminosity(R_m, T_K) — returns LL in watts
  • luminosity_solar(R_m, T_K) — returns L/LL / L_\odot (dimensionless)
  • effective_temperature(L_W, R_m) — returns TeffT_{\text{eff}} in Kelvin

Use σ=5.6704×108\sigma = 5.6704 \times 10^{-8} W m⁻² K⁻⁴ and L=3.828×1026L_\odot = 3.828 \times 10^{26} W.

Python runtime loading...
Loading...
Click "Run" to execute your code.