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
Preview
- Driving question
- What you will predict
- Equipment and safety
- 2
Lab
- Lock in prediction
- Run the experiment, measure and replay
- Your notebook fills in as you go
- 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):
| Measurement | Core Equation | Model Verification in Lab |
|---|---|---|
Redshift (z) & recession speed | z = (lambda_obs - lambda_lab) / lambda_lab, v = c * z | Hydrogen 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_0 | Fitting 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-Boltzmann | T = (2.90e6 nm K) / lambda_peak, F = sigma * T^4 | Betelgeuse (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 (Htube:Ha 656.3,Hb 486.1,Hg 434.0,Hd 410.2 nm;Hetube:7NIST lines447.1–706.5 nm;0.1 nmhairline cursor); (2) Galaxy Sky Observatory & Expanding Lattice Lens (9Freedman et al. 2001 Tully-Fisher clusters fromFornax 15.0 MpctoAbell 2634 114.9 Mpc, plusAndromeda M31blueshift control,H-alphaspectrometer, origin-constrained Hubble fit, and64-galaxya = 1.00–1.20lattice); (3) Star Blackbody Curve Station (100–2000 nmrelative Planck intensity forBetelgeuse,Sun, andRigelwith 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.
- 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). - 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. - 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). - Measure each galaxy's observed
H-alphawavelength (0.1 nmstep), computedelta lambda = lambda_obs - 656.3 nm, redshiftz, and recession velocityv = 300,000 * z(km/s). - 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. - Reveal the linear Hubble's law plot (
vvs.d), record the fitted slopeH_0(km/s/Mpc), correlationr, and reciprocal Hubble time1 / H_0(Gyr). - Open the Inside expanding lattice, increase scale factor
afrom1.00to1.20, and switch thehomegalaxy index across different lattice positions to confirm that expansion looks identical from every galaxy while the traveling photon stretches from656.3to787.5 nm. - 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. - 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). - Switch to Real mode to inspect
±0.1 nmspectral reading scatter and observe how small wavelength jitter affects nearby low-zgalaxies proportionally more than distant high-zclusters.
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) restH-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).
| Trial | Independent Variable (Object / Cluster & Distance) | Dependent Variable (Observed H-alpha or Peak lambda, z, v, or T) | Units | Observation |
|---|---|---|---|---|
| Ref 1 | Fornax 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/s | Tripling distance increases redshift and recession speed roughly proportionally |
| Ref 2 | Coma 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/s | Four-cluster Hubble slope H_0 = 78.8 km/s/Mpc (t_H = 12.4 Gyr) |
| Ref 3 | Andromeda (M31) (Local Group, heliocentric) | H-alpha = 655.6, z = -0.0011, v = -320 | nm, km/s | Negative shift (blueshift) shows local gravity overcoming cosmic expansion |
| Ref 4 | Stars: Betelgeuse (Red) / Sun (Yellow) / Rigel (Blue-White) | lambda_peak = 795 / 502 / 240; T = 3650 / 5772 / 12100 | nm, K | Hotter stars peak at shorter wavelengths (T ~ 1 / lambda_peak) |
| Your Trial | Record station, galaxy or star, mode (Ideal/Real) | Record lambda_obs or lambda_peak, delta lambda, z, v, or T | nm, km/s, K | Always verify rest H-alpha = 656.3 nm before computing galaxy z |
Lab report outline (blank template)
- Title: State the astronomical relationship tested (e.g., measuring galactic redshifts to test Hubble's law and Wien's stellar temperature law).
- Purpose: Define how laboratory rest spectra, distant cluster redshifts, and blackbody peaks measure cosmic expansion and stellar temperature.
- Hypothesis: Predict how galaxy redshift scales with distance and which star color corresponds to the highest surface temperature.
- Variables: Identify galaxy cluster distance (
Mpc) or star type (independent); observedH-alphawavelength,z, recession velocityv, and peak wavelength / temperature (dependent); restH-alpha(656.3 nm),c(300,000 km/s), and Wien constant (controlled). - Data Table: Log cluster name, reference frame (
CMBvs.heliocentric), distance (Mpc),lambda_obs (nm),delta lambda (nm),z,v (km/s), plus starlambda_peak (nm)andT (K). - Analysis & Calculation: Plot
vvs.dfor all CMB-frame clusters, calculate slopeH_0and Hubble time1 / H_0 (Gyr), and compute(T / T_sun)^4surface flux ratios for Betelgeuse and Rigel. - 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 nmreading noise and Tully-Fisher distance scatter affectH_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.
Related interactive labs
- Free
ChemistryFlame Tests & Atomic Spectra
Dip a salt in a flame and the color changes.
- Members
PhysicsSound: Resonance & Doppler
Find the speed of sound with a resonance tube, hear a passing siren change pitch, and block noise with a barrier.
- Members
Earth ScienceThe Sun and the Life Cycle of Stars
Look inside the Sun, then change a star’s mass.