Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 37 · Projects and Practice

Practice: Stellar and Cosmic Calculations

Practice astronomy calculations on stellar radius, lifetime, distance, black holes, redshift and orbits, with Python checks for every answer.

The best way to learn astronomy is to calculate. This practice set revisits the formulas from the last chapters. Try each problem on paper first, then check yourself with the Python cell. Every solution below is computed by the code, so you can change the numbers and try your own versions.

Formula sheet

Topic Formula
Stefan-Boltzmann L/L☉ = (R/R☉)² (T/5772 K)⁴
Wien's law λ_max = 2.898 × 10⁻³ m·K / T
Main sequence lifetime t ≈ 10 Gyr × (M/L) (solar units)
Parallax d(pc) = 1 / p(arcsec)
Distance modulus m − M = 5 log₁₀(d / 10 pc)
Schwarzschild radius r_s = 2GM/c²
Redshift z = Δλ/λ, v ≈ cz for small z
Hubble's law v = H₀ d
Orbit speed v = √(GM/r)
Rocket equation Δv = v_e ln(m₀/m_f)

Constants: G = 6.674 × 10⁻¹¹, c = 2.998 × 10⁸ m/s, M☉ = 1.989 × 10³⁰ kg, R☉ = 6.957 × 10⁸ m, 1 pc = 3.086 × 10¹⁶ m, 1 pc = 3.26 light-years.

Part A: stars

A1. A star has a luminosity of 100 L☉ and a surface temperature of 10,000 K. What is its radius in solar radii?

A2. A star has 4 solar masses. Using L ≈ 1.4 M^3.5 (for 2 to 55 solar masses), find its luminosity and main sequence lifetime.

A3. At what wavelength does a 29,000 K star emit most strongly? In which band is it?

Python Part A: check your answers

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Part B: distance and brightness

B1. A star has a parallax of 0.02 arcseconds. Find its distance in parsecs and light-years.

B2. A Type Ia supernova peaks at apparent magnitude 21.0 and has an absolute magnitude of -19.3. How far away is it in Mpc?

B3. A Cepheid in another galaxy has a period of 30 days and an apparent magnitude of 18.0. Using the approximate relation M_V ≈ −2.43 (log₁₀P − 1) − 4.05, estimate its distance in Mpc.

Python Part B: check your answers

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Part C: extremes and the cosmos

C1. What is the Schwarzschild radius of a black hole of 20 solar masses?

C2. The Hα line (656.28 nm) is observed at 680.0 nm in a galaxy. Find z, the recession speed and the distance with H₀ = 70 km/s/Mpc.

C3. A satellite orbits Earth at 600 km altitude. Find its speed and period. (GM_Earth = 3.986 × 10¹⁴, R_Earth = 6371 km.)

C4. A probe needs Δv = 3 km/s from a stage with exhaust speed 3.0 km/s. What mass ratio m₀/m_f is needed?

Python Part C: check your answers

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

When a result looks strange, check units first. Mixing meters with kilometers, or parsecs with light-years, is the most common mistake in astronomy calculations.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. A star is twice as hot as the Sun and has the same radius. Compared with the Sun, how much more luminous is it?

    Luminosity scales as T⁴, and 2⁴ = 16.
  2. 2. A star at 10 parsecs has apparent magnitude equal to

    Absolute magnitude is defined as the apparent magnitude at a distance of 10 parsecs.
  3. 3. A galaxy has z = 0.01. With H₀ = 70 km/s/Mpc, about how far is it?

    v ≈ cz = 3,000 km/s (approximately), and d = v / H₀ ≈ 3,000 / 70 ≈ 43 Mpc.

Summary

  • Most astronomy problems combine a few formulas; list your knowns first and keep units consistent.
  • Use code to check hand results and to try other values.
  • Next you will apply these skills in two projects.

Next: Project: Detect an Exoplanet Transit