Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 37 ยท Getting Started

Light and the Electromagnetic Spectrum

Learn how light carries information from space: wavelength, frequency, photon energy, the spectrum from radio to gamma rays, and why astronomers use them all.

Almost everything we know about the universe beyond our Solar System arrives as light. A star is far too distant to visit, but its light travels to us and carries clues about its temperature, composition, and motion. To read those clues you need to understand what light is.

In this lesson you will learn the wave properties of light, meet the full electromagnetic spectrum, and calculate with the formulas that link wavelength, frequency, and energy.

Light as a wave

Visible light is one kind of electromagnetic radiation, a pattern of electric and magnetic fields that travels through space. Like a wave on water, it has:

  • Wavelength (ฮป): the distance between two neighboring crests, measured in meters (often nanometers, 1 nm = 10^-9 m).
  • Frequency (f): how many crests pass a point each second, measured in hertz (Hz).
  • Speed (c): in a vacuum, always 299,792,458 m/s for every kind of light.

These three are linked by one equation:

c = ฮป ร— f

Since c is fixed, a longer wavelength means a lower frequency, and the reverse.

Light as particles

Light also behaves as a stream of packets of energy called photons. The energy of one photon is

E = h ร— f = h ร— c / ฮป

where h is Planck's constant, 6.62607015 ร— 10^-34 Jยทs. Short-wavelength light has high-energy photons. That is why ultraviolet light can burn skin while radio waves pass through you harmlessly.

Python Wavelength, frequency, and photon energy

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.

You will see that green light has a frequency near 5.45 ร— 10^14 Hz and about 2.25 eV of energy, while a 1 nm X-ray photon has about 1,240 eV.

The electromagnetic spectrum

The spectrum is the whole range of electromagnetic radiation. Visible light is only a thin slice.

Region Typical wavelength Often produced by
Radio longer than about 1 mm to kilometers Cold gas, pulsars, galaxies
Microwave about 1 mm to 1 cm Cosmic background radiation
Infrared about 700 nm to 1 mm Warm dust, newborn stars
Visible about 400 to 700 nm Stars, planets reflecting light
Ultraviolet about 10 to 400 nm Hot young stars
X-ray about 0.01 to 10 nm Gas millions of degrees hot, black hole disks
Gamma ray shorter than about 0.01 nm Extreme events, such as exploding stars

The boundaries are conventions, not sharp edges. Different books draw them slightly differently.

Long waves, low energy

Radio Cold gas, pulsars
Microwave Early universe glow
Infrared Warm dust
1 / 3

Why use the whole spectrum?

A single object can look completely different in different bands. A cloud of cool dust may be invisible in visible light yet shine in infrared. A black hole's surroundings may be bright in X-rays. By combining images from many wavelengths, astronomers build a fuller picture.

Earth's atmosphere blocks most X-rays, gamma rays, and much ultraviolet and infrared radiation. That is great for life but bad for astronomy, so telescopes for those bands fly above the atmosphere on satellites. Radio waves and visible light mostly pass through, so they can be observed from the ground. Observatories also sit on dry high mountains to avoid water vapor, which absorbs infrared.

flowchart LR
    A["Space source"] --> B["Light travels<br/>through space"]
    B --> C["Earth's atmosphere"]
    C -->|"Radio, visible pass"| D["Ground telescope"]
    C -->|"X-ray, gamma blocked"| E["Space telescope needed"]

Which light reaches the ground decides where we place our telescopes.

Brightness, color, and temperature

Hot objects glow. The hotter an object, the more energy it emits and the shorter the wavelength where it is brightest. A coal heated in a fire glows red; a hotter flame glows yellow-white; the hottest stars look blue-white. We make this exact in the lesson on star colors.

Seeing a spectrum

Passing light through a prism (or a diffraction grating) spreads it into its colors. Below is a simple, honest stand-in: it converts a wavelength to an approximate visible color using a rough rule. This is a simplified model, not an exact color match to what a human sees.

Python Wavelength to approximate color name

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.

The color ranges here are common textbook approximations. Human color perception varies, and there are no sharp borders between colors.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which equation links wavelength and frequency of light in a vacuum?

    Speed equals wavelength times frequency. In a vacuum the speed is the constant c.
  2. 2. Which type of light has the highest-energy photons?

    Photon energy grows as wavelength shrinks. Gamma rays have the shortest wavelengths and the highest energies.
  3. 3. Why are X-ray telescopes placed on satellites?

    The atmosphere absorbs X-rays, so they must be observed from space.
  4. 4. A longer wavelength corresponds to what?

    Because c is constant, increasing ฮป must decrease f.

Summary

  • Light is an electromagnetic wave with wavelength ฮป, frequency f, and speed c = ฮป ร— f.
  • Photon energy is E = h ร— f; shorter wavelengths mean more energy per photon.
  • The spectrum runs from radio to gamma rays, and visible light is a narrow band.
  • Different bands show different physics, so astronomers observe in many bands.
  • The atmosphere blocks some bands, which is why space telescopes exist.

Next: Finding Your Way: The Celestial Sphere