Skip to main content
Earth Science

Redshift Simulation: Stellar Spectra & Hubble Law

Compare galaxy spectra to a lab lamp. Which galaxies are moving away fastest?

Atomic spectral lines serve as cosmic fingerprints whose wavelength shift z = (lambda_obs - lambda_lab) / lambda_lab reveals galaxy recession speed, producing a linear Hubble's law velocity-distance relation that demonstrates an expanding universe. In this interactive 3D redshift simulation, students calibrate hydrogen and helium discharge lamps, measure H-alpha shifts across 10 galaxies, and apply Wien's law to stellar blackbody curves.

  • 11 languages
  • Laptop · tablet · phone
  • Members

Create a free account to get 2 lifetime Free Lab Passes for any labs in the library. The course guide on this page stays free.

Inside this lab

  1. 1

    Preview

    • Driving question
    • What you will predict
    • Equipment and safety
  2. 2

    Lab

    • Lock in prediction
    • Run the experiment, measure and replay
    • Your notebook fills in as you go
  3. 3

    Check

    • Did the lab agree with you?
    • Claim, evidence, reasoning
    • Check questions and a printable lab report

Redshift formula and Hubble's law in an expanding universe

Starlight carries three quantitative diagnostics—chemical composition (discrete emission/absorption lines), radial motion (redshift formula), and surface temperature (Wien's law + Stefan-Boltzmann law):

MeasurementCore EquationModel Verification in Lab
Redshift (z) & recession speedz = (lambda_obs - lambda_lab) / lambda_lab, v = c * zHydrogen H-alpha rest 656.3 nm shifts to 671.9 nm in Coma Cluster -> z = 0.0238, v = 7130 km/s
Hubble's law (v = H_0 * d)H_0 = sum(d * v) / sum(d^2), age scale t_H = 1 / H_0Fitting distant CMB-frame clusters (15.0–114.9 Mpc) yields a straight line through the origin (H_0 ~ 78.8 km/s/Mpc, ~12.4 Gyr Hubble time; M31 excluded from cosmic fit)
Wien's law & Stefan-BoltzmannT = (2.90e6 nm K) / lambda_peak, F = sigma * T^4Betelgeuse (795 nm, 3650 K, red), Sun (502 nm, 5772 K, yellow), Rigel (240 nm, 12,100 K, blue-white, ~19× solar flux per unit area)

Notice an essential cosmological distinction shown in the lab's Inside expanding lattice: cosmological redshift is not galaxies flying through static space away from a single center—space itself scales uniformly by factor a (1.00 -> 1.20), stretching traveling photon wavelengths (lambda = a * lambda_0) and making every home galaxy observe the exact same linear Hubble's law.

Apparatus, safety notes, and step-by-step procedure

  • Apparatus: Three-station 3D spectroscopy and cosmology observatory (ESS-016-v0.3.2): (1) Discharge Lamp Spectrograph (H tube: Ha 656.3, Hb 486.1, Hg 434.0, Hd 410.2 nm; He tube: 7 NIST lines 447.1–706.5 nm; 0.1 nm hairline cursor); (2) Galaxy Sky Observatory & Expanding Lattice Lens (9 Freedman et al. 2001 Tully-Fisher clusters from Fornax 15.0 Mpc to Abell 2634 114.9 Mpc, plus Andromeda M31 blueshift control, H-alpha spectrometer, origin-constrained Hubble fit, and 64-galaxy a = 1.00–1.20 lattice); (3) Star Blackbody Curve Station (100–2000 nm relative Planck intensity for Betelgeuse, Sun, and Rigel with peak finder within >= 98% of maximum).
  • Safety note (for physical lab prep): In a hands-on classroom spectroscopy lab, high-voltage gas discharge power supplies pose shock and burn hazards—never touch tube electrodes while energized, and avoid staring directly into bright UV-emitting lamps.
  1. Enter the Lamp station in Ideal mode, insert the Hydrogen (H) discharge tube, power it on, and record all four Balmer rest wavelengths (Hd 410.2, Hg 434.0, Hb 486.1, Ha 656.3 nm).
  2. Swap in the Helium (He) tube and measure at least three lines (e.g., 447.1, 587.6, 667.8 nm) to verify that every element has a unique spectral fingerprint.
  3. Switch to the Sky observatory, lock your distance-velocity prediction, and point the telescope at four clusters spanning near to far distances: Fornax (15.0 Mpc), Antlia (45.1 Mpc), Coma (85.6 Mpc), and Abell 2634 (114.9 Mpc).
  4. Measure each galaxy's observed H-alpha wavelength (0.1 nm step), compute delta lambda = lambda_obs - 656.3 nm, redshift z, and recession velocity v = 300,000 * z (km/s).
  5. Also observe Andromeda (M31) (lambda_obs = 655.6 nm, z = -0.0011, v = -320 km/s) to contrast local gravitational blueshift against the large-scale Hubble flow, noting why M31 is excluded from the CMB-frame Hubble fit.
  6. Reveal the linear Hubble's law plot (v vs. d), record the fitted slope H_0 (km/s/Mpc), correlation r, and reciprocal Hubble time 1 / H_0 (Gyr).
  7. Open the Inside expanding lattice, increase scale factor a from 1.00 to 1.20, and switch the home galaxy index across different lattice positions to confirm that expansion looks identical from every galaxy while the traveling photon stretches from 656.3 to 787.5 nm.
  8. Switch to the Stars station, lock your star-color temperature prediction, and move the wavelength cursor to the peak (>= 98% relative intensity) for Betelgeuse, Sun, and Rigel.
  9. Record each star's peak wavelength (nm), Wien temperature (K), and Stefan-Boltzmann surface power ratio (T / T_sun)^4 (0.16× for Betelgeuse vs. 19.3× for Rigel).
  10. Switch to Real mode to inspect ±0.1 nm spectral reading scatter and observe how small wavelength jitter affects nearby low-z galaxies proportionally more than distant high-z clusters.

Recording table and model reference data

Model reference data — run your own trials in the 3D lab. Values below reflect Ideal mode (ESS-016-v0.3.2) rest H-alpha = 656.3 nm (c = 300,000 km/s), Freedman et al. (2001) Tully-Fisher cluster distances, and Wien star peaks (b = 2.90e6 nm K).

TrialIndependent Variable (Object / Cluster & Distance)Dependent Variable (Observed H-alpha or Peak lambda, z, v, or T)UnitsObservation
Ref 1Fornax Cluster (d = 15.0 Mpc) vs. Antlia Cluster (d = 45.1 Mpc)H-alpha = 659.3 (z = 0.0046, v = 1370) vs. 663.1 (z = 0.0104, v = 3110)nm, km/sTripling distance increases redshift and recession speed roughly proportionally
Ref 2Coma Cluster (d = 85.6 Mpc) vs. Abell 2634 (d = 114.9 Mpc)H-alpha = 671.9 (z = 0.0238, v = 7130) vs. 675.8 (z = 0.0297, v = 8910)nm, km/sFour-cluster Hubble slope H_0 = 78.8 km/s/Mpc (t_H = 12.4 Gyr)
Ref 3Andromeda (M31) (Local Group, heliocentric)H-alpha = 655.6, z = -0.0011, v = -320nm, km/sNegative shift (blueshift) shows local gravity overcoming cosmic expansion
Ref 4Stars: Betelgeuse (Red) / Sun (Yellow) / Rigel (Blue-White)lambda_peak = 795 / 502 / 240; T = 3650 / 5772 / 12100nm, KHotter stars peak at shorter wavelengths (T ~ 1 / lambda_peak)
Your TrialRecord station, galaxy or star, mode (Ideal/Real)Record lambda_obs or lambda_peak, delta lambda, z, v, or Tnm, km/s, KAlways verify rest H-alpha = 656.3 nm before computing galaxy z

Lab report outline (blank template)

  1. Title: State the astronomical relationship tested (e.g., measuring galactic redshifts to test Hubble's law and Wien's stellar temperature law).
  2. Purpose: Define how laboratory rest spectra, distant cluster redshifts, and blackbody peaks measure cosmic expansion and stellar temperature.
  3. Hypothesis: Predict how galaxy redshift scales with distance and which star color corresponds to the highest surface temperature.
  4. Variables: Identify galaxy cluster distance (Mpc) or star type (independent); observed H-alpha wavelength, z, recession velocity v, and peak wavelength / temperature (dependent); rest H-alpha (656.3 nm), c (300,000 km/s), and Wien constant (controlled).
  5. Data Table: Log cluster name, reference frame (CMB vs. heliocentric), distance (Mpc), lambda_obs (nm), delta lambda (nm), z, v (km/s), plus star lambda_peak (nm) and T (K).
  6. Analysis & Calculation: Plot v vs. d for all CMB-frame clusters, calculate slope H_0 and Hubble time 1 / H_0 (Gyr), and compute (T / T_sun)^4 surface flux ratios for Betelgeuse and Rigel.
  7. Conclusion & Sources of Error: Explain how uniform lattice expansion produces Hubble's law without a center, why M31 is excluded from the cosmic fit, and how Real-mode ±0.1 nm reading noise and Tully-Fisher distance scatter affect H_0.

Continue exploring light, waves, and stars

Inspect atomic emission colors on a chemistry bench in Flame Tests & Atomic Spectra, compare acoustic frequency shifts in Sound: Resonance & Doppler, follow stellar evolution on the HR diagram in The Sun and the Life Cycle of Stars, or browse all Earth Science Labs.

Common questions

What is the redshift formula and how does it measure galaxy speed?

Redshift is defined as z = (lambda_obs - lambda_lab) / lambda_lab. For low-redshift galaxies (z << 1), recession velocity follows v = c * z, where c is 300,000 km/s—so a +15.6 nm shift of the 656.3 nm H-alpha line gives z = 0.0238 and v = 7130 km/s.

What does Hubble's law state and what does its slope represent?

Hubble's law states that a distant galaxy's recession velocity is directly proportional to its distance (v = H_0 * d). The slope H_0 is the Hubble constant (in km/s/Mpc), and its reciprocal 1 / H_0 gives the Hubble expansion age scale (~12.4 to 14 Gyr).

Why is the Andromeda Galaxy (M31) blueshifted instead of redshifted?

Andromeda is close enough inside our Local Group that its mutual gravitational attraction toward the Milky Way overwhelms cosmic expansion, giving it an approach velocity of about -300 km/s and shifting H-alpha slightly shorter from 656.3 nm to 655.6 nm.

Does galactic redshift mean the Milky Way sits at the center of the universe?

No. In the lab's 3D expanding lattice lens, scaling all distances by a uniform factor a makes every galaxy recede from every other galaxy at a speed proportional to separation, so observers on any galaxy see the exact same Hubble's law.

How does Wien's displacement law connect star color to surface temperature?

Hotter stars emit peak radiation at shorter, bluer wavelengths according to T = b / lambda_peak (with b = 2.90e6 nm K). Blue-white Rigel peaks near 240 nm (12,100 K), the yellow Sun peaks near 502 nm (5772 K), and red Betelgeuse peaks near 795 nm (3650 K).

Why are hydrogen and helium discharge lamps measured before observing galaxies?

Lab discharge tubes establish exact rest-frame reference wavelengths—especially hydrogen H-alpha at 656.3 nm—so astronomers can tell how far cosmic expansion has stretched the exact same atomic transition in distant galaxy spectra.