Skip to content

Spectrum detective

Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

Scrollable table. Use Left and Right arrow keys to reveal additional columns.

Scrollable figure. Use Left and Right arrow keys to inspect hidden content.

https://blackhole.org/universe/labs/spectrum-detective/

A single dark line can mislead; a matching pattern is much stronger evidence. In this investigation, compare four hydrogen lines, predict how motion shifts them, and then find the pattern in measured light from Vega. The adjustable teaching model and the Hubble observations are separate: changing a slider never changes the data.

Helpful background. Reading starlight explains absorption lines and wavelength. You will read axes and compare ratios; the square-root formula is optional.

A spectrograph separates light by wavelength. Absorption lines are dips in the received light relative to the surrounding spectrum. They can reveal transitions between particular atomic energy levels, but identifying an element means checking a pattern, not just finding one convenient dip.

The four reference features below belong to neutral hydrogen’s Balmer series. For absorption, an electron goes from level 2 to level 3, 4, 5 or 6; emission reverses the transition. The familiar Hα, Hβ, Hγ and Hδ names label those four features. Individual features can contain unresolved fine structure; these beginner reference positions are not a catalog of its components. Compare the NIST Handbook, Hydrogen atomic-data notes.

We use vacuum wavelengths, the values light has in vacuum, in nanometres (nm). One nm is ten ångströms (Å). The reference values come from the SDSS 2005, DR4 vacuum spectral-line table. They should not be mixed with air-wavelength tables without conversion.

Before moving the controls, predict two things: will recession move every line toward longer wavelengths, and will the change in nanometres be the same for every line?

1. Match several lines

These four markers form a reference pattern for hydrogen's Balmer lines. The Greek letters identify different transitions. Compare their positions and unequal spacing; the equal marker heights carry no information about line strength.

δγβα400500600Vacuum wavelength / nm
Teaching template: reference wavelengths with equal-height markers, no physical intensity or line-width model. Hδ, Hγ, Hβ and Hα correspond to transitions between levels 2 and 6, 5, 4 and 3, respectively. Absorption goes upward in energy; emission reverses the transition.
Test an identification

Compare several features before identifying a pattern. A matching position alone does not measure how much of an element is present.

Explain the identification

A consistent multi-line pattern supports a hydrogen interpretation more strongly than one coincidence. Temperature, density, ionization, radiative transfer, blends and the instrument influence line strengths and shapes. This display has no abundance model.

2. Shift the whole pattern

Positive radial velocity means recession; negative means approach. Every wavelength changes by the same fraction. The close-up keeps fixed axes while the velocity changes. Choose another line to inspect its own wavelength window.

Change the teaching model
Reference (dashed)Shifted (solid)478.3486.3494.3Vacuum wavelength / nm
Position markers only. The display uses the exact special-relativistic formula for purely radial motion of an inertial source, bounded to ±3,000 km/s. It does not model cosmological or gravitational redshift, line broadening, or a temperature change.

At 0 km/s, all four wavelengths retain their reference values. Hβ remains at 486.268 nm: its shift is 0.000 nm.

All four lines share the same wavelength ratio
LineReference / nmShifted / nm
Hδ410.289410.289
Hγ434.168434.168
Hβ486.268486.268
Hα656.461656.461
Predict, then compare

A common fractional change need not be a common change in nanometres. Compare Hδ and Hα in the table.

Explain the wavelength comparison

At +1,500 km/s the fractional shift is about 0.5016%. Hδ moves by about 2.058 nm, while Hα moves by about 3.293 nm. Both shifts have the same ratio to their reference wavelength.

The diagrams, reference table and explanations work without JavaScript. If the controls do not activate, reload this laboratory or use the worked examples below.

3. Find the pattern in measured starlight

These are processed observations of Vega, measured by Hubble's Space Telescope Imaging Spectrograph in 2003 and calibrated in CALSPEC product version 012 (2026). Dots and small vertical statistical-error bars preserve the supplied samples. The model controls above never change these measurements.

Look for a broad dip near each reference wavelength. The four panels have different labeled vertical ranges; they are not normalized to a common continuum. Flux density is shown in units of 10−9 erg s−1 cm−2 Å−1, even though the horizontal axis uses nanometres.

Hδ: 400–420 nm

Flux density04.59400410420Vacuum wavelength / nm
73 samples; lowest sampled flux at 410.32 nm. This sampled minimum is not a fitted line centre or a radial-velocity measurement.

Hγ: 424–444 nm

Flux density048424434444Vacuum wavelength / nm
73 samples; lowest sampled flux at 434.24 nm. This sampled minimum is not a fitted line centre or a radial-velocity measurement.

Hβ: 476–496 nm

Flux density036476486496Vacuum wavelength / nm
73 samples; lowest sampled flux at 486.18 nm. This sampled minimum is not a fitted line centre or a radial-velocity measurement.

Hα: 644–669 nm

Flux density01.53644656.5669Vacuum wavelength / nm
51 samples; lowest sampled flux at 656.32 nm. This sampled minimum is not a fitted line centre or a radial-velocity measurement.

Data credit: NASA/ESA Hubble Space Telescope, STIS, STScI/CALSPEC, and Bohlin and collaborators. Statistical error bars are mostly smaller than the dots. The separate systematic-error column is 1% of flux, with the source's warning that it may be larger. Broad stellar line profiles, blends and instrumental resolution all matter.

Source, processing and uncertainties

We retain all 270 source samples in four inclusive windows: 400–420, 424–444, 476–496 and 644–669 nm. The FITS file identifies these optical measurements as STIS data; its theoretical extensions outside 167.5–1020 nm are not used. Wavelengths are in the heliocentric vacuum frame, not the star's rest frame.

Only wavelength and spectral-resolution units change from Å to nm, dividing by ten. Downloaded fluxes retain their original per-Å units. No continuum normalization, interpolation, binning, smoothing, velocity correction or line fit is performed. All selected rows have CALSPEC DATAQUAL = 1, meaning good; none is replaced. Separate windows are never joined across gaps.

The reported spectral FWHM is about 0.55 nm in the three blue windows and 0.98 nm around Hα. Adjacent samples are therefore not independent resolution elements. The table preserves STATERROR and SYSERROR separately; it supplies no complete covariance matrix. Hubble is above Earth's atmosphere, so terrestrial absorption bands are absent, but stellar blends remain possible.

STScI 2026, CALSPEC Vega product alpha_lyr_stis_012.fits · STScI 2026, CALSPEC documentation, spectrum composition and wavelength frame · Bohlin and Gilliland 2004, §§ 2 and 4 · MAST, Data Use Policy.

Download the 270 measurements (CSV) · Download measurements and provenance (JSON) · Download the independent teaching model · Model assumptions and reproduction

Measured wavelengths in nm; flux and errors in 10⁻⁹ erg s⁻¹ cm⁻² Å⁻¹
WavelengthFluxStat. errorSys. error
400.14378.52470.00130.0852
400.41878.59610.00130.0860
400.69368.65430.00130.0865
400.96868.70890.00130.0871
401.24358.72540.00130.0873
401.51858.72110.00130.0872
401.79358.77000.00130.0877
402.06848.76530.00130.0877
402.34348.74180.00130.0874
402.61838.71800.00130.0872
402.89338.70160.00130.0870
403.16838.71980.00130.0872
403.44328.72930.00130.0873
403.71828.74910.00130.0875
403.99328.71340.00130.0871
404.26818.65120.00120.0865
404.54318.60380.00120.0860
404.81808.58910.00120.0859
405.09308.58340.00120.0858
405.36808.54410.00120.0854
405.64298.49120.00120.0849
405.91798.41970.00120.0842
406.19288.33010.00120.0833
406.46788.28970.00120.0829
406.74288.24510.00120.0825
407.01778.13100.00120.0813
407.29278.02640.00120.0803
407.56777.91630.00120.0792
407.84267.75530.00120.0776
408.11767.55540.00120.0756
408.39257.26280.00110.0726
408.66756.86580.00110.0687
408.94256.37490.00110.0637
409.21745.76300.00100.0576
409.49245.04350.00090.0504
409.76734.21800.00090.0422
410.04233.48040.00080.0348
410.31723.30680.00080.0331
410.59223.83540.00080.0384
410.86724.57600.00090.0458
411.14215.30520.00100.0531
411.41715.93050.00100.0593
411.69206.43270.00110.0643
411.96706.83650.00110.0684
412.24197.15570.00110.0716
412.51697.38250.00110.0738
412.79197.51270.00110.0751
413.06687.64150.00110.0764
413.34187.76860.00120.0777
413.61677.90430.00120.0790
413.89177.96820.00120.0797
414.16678.02080.00120.0802
414.44168.01670.00120.0802
414.71668.05470.00120.0805
414.99158.06030.00120.0806
415.26658.06770.00120.0807
415.54148.06540.00120.0807
415.81648.09320.00120.0809
416.09148.08250.00120.0808
416.36638.02380.00120.0802
416.64138.03130.00120.0803
416.91628.02650.00120.0803
417.19127.98070.00120.0798
417.46617.93130.00110.0793
417.74117.92100.00110.0792
418.01607.93610.00110.0794
418.29107.95600.00110.0796
418.56597.97460.00110.0797
418.84097.97210.00110.0797
419.11587.95820.00110.0796
419.39077.94100.00110.0794
419.66577.91090.00110.0791
419.94067.89120.00110.0789
424.06487.68710.00110.0769
424.33977.65210.00110.0765
424.61477.61820.00110.0762
424.88967.60340.00110.0760
425.16467.57470.00110.0757
425.43957.57150.00110.0757
425.71447.57490.00110.0757
425.98947.56090.00110.0756
426.26437.53650.00110.0754
426.53937.51550.00110.0752
426.81427.50290.00110.0750
427.08917.45200.00110.0745
427.36407.42300.00110.0742
427.63907.41900.00110.0742
427.91397.37940.00110.0738
428.18887.36400.00110.0736
428.46387.35270.00110.0735
428.73877.33570.00110.0734
429.01367.26190.00110.0726
429.28867.21070.00110.0721
429.56357.15990.00110.0716
429.83847.08830.00100.0709
430.11336.97450.00100.0697
430.38836.94590.00100.0695
430.66326.91580.00100.0692
430.93816.84360.00100.0684
431.21306.75800.00100.0676
431.48796.61230.00100.0661
431.76296.48310.00100.0648
432.03786.30240.00100.0630
432.31276.06270.00100.0606
432.58765.71900.00090.0572
432.86255.25740.00090.0526
433.13754.84060.00090.0484
433.41244.29060.00080.0429
433.68733.63270.00070.0363
433.96233.04650.00070.0305
434.23722.95200.00070.0295
434.51213.41890.00070.0342
434.78704.03760.00080.0404
435.06194.58760.00080.0459
435.33685.07360.00090.0507
435.61175.50290.00090.0550
435.88665.84840.00090.0585
436.16156.09970.00090.0610
436.43656.26220.00100.0626
436.71146.39950.00100.0640
436.98636.49700.00100.0650
437.26126.61080.00100.0661
437.53616.67430.00100.0667
437.81106.72730.00100.0673
438.08596.76170.00100.0676
438.36086.70720.00100.0671
438.63576.69740.00100.0670
438.91066.75160.00100.0675
439.18556.78300.00100.0678
439.46046.77500.00100.0678
439.73536.78070.00100.0678
440.01026.80470.00100.0680
440.28516.81520.00100.0682
440.56006.82430.00100.0682
440.83496.85450.00100.0685
441.10986.85360.00100.0685
441.38476.83320.00100.0683
441.65966.79470.00100.0679
441.93456.78380.00100.0678
442.20946.82070.00100.0682
442.48426.83860.00100.0684
442.75916.82380.00100.0682
443.03406.80690.00100.0681
443.30896.81310.00100.0681
443.58386.78600.00100.0679
443.85876.76630.00100.0677
476.01165.51260.00090.0551
476.28635.49950.00090.0550
476.56105.46510.00090.0547
476.83575.46390.00090.0546
477.11045.45820.00090.0546
477.38525.44870.00090.0545
477.65995.43850.00090.0544
477.93465.42680.00090.0543
478.20935.42730.00090.0543
478.48405.39100.00090.0539
478.75875.36170.00090.0536
479.03345.34000.00090.0534
479.30825.32070.00090.0532
479.58295.31480.00090.0531
479.85755.30690.00090.0531
480.13225.27900.00080.0528
480.40695.24940.00080.0525
480.68165.23500.00080.0523
480.95635.20330.00080.0520
481.23105.18100.00080.0518
481.50575.14580.00080.0515
481.78045.11590.00080.0512
482.05515.08780.00080.0509
482.32975.04860.00080.0505
482.60444.99020.00080.0499
482.87914.95830.00080.0496
483.15384.91870.00080.0492
483.42854.84450.00080.0484
483.70314.77290.00080.0477
483.97784.62120.00080.0462
484.25254.47780.00080.0448
484.52714.29200.00080.0429
484.80184.03840.00070.0404
485.07653.76140.00070.0376
485.35113.43440.00070.0343
485.62583.04990.00060.0305
485.90042.62940.00060.0263
486.17512.34380.00060.0234
486.44982.49430.00060.0249
486.72442.87670.00060.0288
486.99913.25650.00070.0326
487.27373.56860.00070.0357
487.54833.84580.00070.0385
487.82304.08200.00070.0408
488.09764.28610.00080.0429
488.37234.43930.00080.0444
488.64694.55170.00080.0455
488.92154.62190.00080.0462
489.19624.68260.00080.0468
489.47084.74880.00080.0475
489.74544.79620.00080.0480
490.02014.83230.00080.0483
490.29474.85940.00080.0486
490.56934.88320.00080.0488
490.84394.87260.00080.0487
491.11864.88800.00080.0489
491.39324.89230.00080.0489
491.66784.89960.00080.0490
491.94244.87540.00080.0488
492.21704.86400.00080.0486
492.49164.84910.00080.0485
492.76624.89400.00080.0489
493.04084.91210.00080.0491
493.31544.90910.00080.0491
493.59004.89350.00080.0489
493.86464.90610.00080.0491
494.13924.88920.00080.0489
494.41384.88870.00080.0489
494.68844.89720.00080.0490
494.96304.90140.00080.0490
495.23754.88110.00080.0488
495.51224.86270.00080.0486
495.78674.86670.00080.0487
644.11872.19910.00040.0220
644.60672.19410.00040.0219
645.09472.18860.00040.0219
645.58282.17640.00040.0218
646.07082.17330.00040.0217
646.55882.17210.00040.0217
647.04682.16540.00040.0217
647.53482.16420.00040.0216
648.02292.15130.00040.0215
648.51082.14140.00040.0214
648.99892.13820.00040.0214
649.48692.12960.00040.0213
649.97502.12330.00040.0212
650.46302.11610.00040.0212
650.95102.10060.00040.0210
651.43912.08400.00040.0208
651.92712.06330.00040.0206
652.41522.04580.00040.0205
652.90322.02150.00040.0202
653.39131.98810.00040.0199
653.87931.93830.00040.0194
654.36741.86800.00040.0187
654.85551.77130.00040.0177
655.34361.64050.00040.0164
655.83161.49130.00030.0149
656.31971.37600.00030.0138
656.80781.42920.00030.0143
657.29581.57480.00030.0157
657.78391.70600.00040.0171
658.27201.80380.00040.0180
658.76021.86870.00040.0187
659.24821.91320.00040.0191
659.73631.94300.00040.0194
660.22441.96740.00040.0197
660.71251.98060.00040.0198
661.20061.98760.00040.0199
661.68881.99000.00040.0199
662.17691.99580.00040.0200
662.66501.99670.00040.0200
663.15311.99580.00040.0200
663.64122.00060.00040.0200
664.12931.99570.00040.0200
664.61751.98580.00040.0199
665.10561.98490.00040.0198
665.59371.98320.00040.0198
666.08181.98480.00040.0198
666.57001.97960.00040.0198
667.05821.97580.00040.0198
667.54631.97250.00040.0197
668.03441.97070.00040.0197
668.52261.96010.00040.0196

The four measured dips occur near the hydrogen reference pattern. Their finite widths and unequal depths do not contradict the equal-height teaching markers: those markers represent positions only. Real line profiles depend on the stellar atmosphere and the instrument. A missing or blended feature, wavelength-calibration error, or another candidate identification must be considered before making a stronger claim.

The measured excerpt comes from the 2026 version of Vega’s CALSPEC standard spectrum. All selected regions were observed with Hubble’s STIS instrument. The full source file also contains theoretical extensions at other wavelengths, which this excerpt excludes. The data are calibrated observations, with instrumental corrections and a flux scale tied to standard-star models; they are not untouched detector counts. Bohlin and Gilliland 2004, §§ 2 and 4; Bohlin, Hubeny and Rauch 2020, § 1; STScI 2026, CALSPEC, spectrum composition.

Do not estimate Vega’s radial velocity from the lowest dot in a panel. The displayed data have a finite spectral resolution and use heliocentric wavelengths; the four reference positions are rest wavelengths. A precision velocity measurement requires a consistent frame, profile model, calibration and uncertainty analysis. Here the data answer a simpler question: can you recognize several members of the same absorption pattern?

In the teaching model, recession stretches each wavelength by the same ratio. Hα therefore shifts farther in nm than Hδ, because it starts with a longer wavelength. Their fractional shifts agree. Changing motion does not turn hydrogen into a different element, and this exercise says nothing about how hot the source becomes.

Show the math: why the change is a ratio

Preparation: ratios, square roots and the meaning of a speed relative to light.

Let λ0\lambda_0 be a reference wavelength and let vv be the velocity of an inertial source directly away from the observer; v<0v\lt0 means approach. Define β=v/c\beta=v/c, with c=299 792.458 km s−1c=299\,792.458\ \mathrm{km\,s^{-1}}. The special-relativistic longitudinal Doppler relation is

λobsλ0=1+β1−β,Δλλ0=1+β1−β−1.\frac{\lambda_{\mathrm{obs}}}{\lambda_0} =\sqrt{\frac{1+\beta}{1-\beta}}, \qquad \frac{\Delta\lambda}{\lambda_0} =\sqrt{\frac{1+\beta}{1-\beta}}-1.

One way to derive it is to follow two successive wave crests. If their emission interval in the source frame is T0T_0, time dilation makes the interval γT0\gamma T_0 in the observer’s inertial frame, where γ=(1−β2)−1/2\gamma=(1-\beta^2)^{-1/2}. During that interval the receding source moves vγT0v\gamma T_0 farther away. The extra travel time gives an arrival interval Tobs=γT0(1+β)T_{\mathrm{obs}}=\gamma T_0(1+\beta). Since wavelength is cc times period, the ratio is γ(1+β)\gamma(1+\beta), equivalent to the square root above.

At v=1500 km s−1v=1500\ \mathrm{km\,s^{-1}}, the ratio is approximately 1.0050161.005016. Thus Hδ moves from 410.289410.289 to 412.347412.347 nm, while Hα moves from 656.461656.461 to 659.754659.754 nm. Their changes, 2.0582.058 and 3.2933.293 nm, differ; both fractional changes are about 0.5016%0.5016\%.

For ∣v∣≪c\lvert v\rvert\ll c, the first-order approximation is Δλ/λ0≃v/c\Delta\lambda/\lambda_0\simeq v/c. This model uses the exact expression within its ±3000 km/s bounds. The calculation is for radial motion in flat spacetime; it is not the relation between cosmic distance and cosmological redshift.

Suppose four features all move to 1.005 times their reference wavelengths. A classmate instead proposes adding 2 nm to every reference value. Test the proposal using Hδ and Hα. What observation separates the explanations?

Explanation

A ratio of 1.005 shifts Hδ by about 2.051 nm and Hα by about 3.282 nm. Adding 2 nm nearly matches the first feature but misses the second by about 1.282 nm. If the measurement errors and resolution are small enough to distinguish that discrepancy, the multi-line comparison rejects the additive-shift explanation. The given common ratio corresponds to a radial-motion model; an actual astronomical interpretation still requires context.

For classrooms and clubs

Objective: distinguish one coincident feature from a pattern, and distinguish equal fractional shifts from equal additive shifts. Preparation is reading axes and using ratios; no logarithms or calculus are needed.

For a ten-minute demonstration, let learners predict the direction and relative sizes of the Hδ and Hα shifts before selecting the +1500 km/s preset. Ask each learner to complete: “The changes in nm differ because …; the fractional changes agree because ….”

For a twenty-minute investigation, use the four observed panels and the downloaded table. Mark approximate dip locations, list why the minima do not exactly equal the reference positions, and identify which parts of the display are measured and which are a teaching model. Timings are planning estimates.

Without a device, print the reference table, four observed panels and the competing-explanation task. A ruler and calculator suffice. The expected explanation is that a common multiplicative shift preserves wavelength ratios; real spectra also have finite resolution, broad profiles, blends and measurement uncertainty. Do not interpret marker heights as abundances or the activity as a measurement of Vega’s velocity.

Weighing stars uses repeated wavelength shifts to study orbital motion. The binary-star laboratory then shows which mass information a velocity curve can reveal—and which information the viewing angle can hide.

Explore The Universe