Skip to content

Lesson 35 ยท 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