Lesson 3 of 15

Stellar Magnitude & Distance

Stellar Magnitude & Distance

Astronomers measure stellar brightness on a logarithmic magnitude scale dating back to ancient Greece. The key rule: a difference of 5 magnitudes = a factor of 100 in flux.

Flux Ratio

For two stars with apparent magnitudes m1m_1 and m2m_2:

F1F2=10(m2m1)/2.5\frac{F_1}{F_2} = 10^{(m_2 - m_1)/2.5}

Note: smaller magnitude = brighter star (Sirius: m=1.46m = -1.46, faintest naked-eye stars: m6m \approx 6).

Distance Modulus

The absolute magnitude MM is the apparent magnitude a star would have at exactly 10 parsecs. The distance modulus μ\mu connects apparent and absolute magnitude to distance dd in parsecs:

μ=mM=5log10(d10 pc)\mu = m - M = 5 \log_{10}\left(\frac{d}{10\text{ pc}}\right)

At d=10d = 10 pc: μ=0\mu = 0. At d=100d = 100 pc: μ=5\mu = 5. At d=1000d = 1000 pc: μ=10\mu = 10.

Parallax

Nearby stars show an annual parallax — a tiny apparent shift as Earth orbits the Sun. The distance in parsecs is simply:

dpc=1parcsecd_{\text{pc}} = \frac{1}{p_{\text{arcsec}}}

The Hipparcos and Gaia missions measured parallaxes for over a billion stars.

StarmmMMdd (pc)
Sun−26.74+4.830.0000049
Sirius−1.46+1.432.64
Polaris+1.98−3.64133

Your Task

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

  • flux_ratio(m1, m2) — returns F1/F2=10(m2m1)/2.5F_1/F_2 = 10^{(m_2-m_1)/2.5}
  • distance_modulus(d_pc) — returns μ=5log10(d/10)\mu = 5 \log_{10}(d/10)
  • distance_from_modulus(mu) — returns d=10×10μ/5d = 10 \times 10^{\mu/5} in parsecs
Python runtime loading...
Loading...
Click "Run" to execute your code.