AI University logo

Waves: an interactive course

Seven short lessons, each built around a live simulation you can control. Change the settings, watch what the medium does, then test yourself at the end.

Your browser could not start WebGL, so the ocean scene is unavailable. Every other simulation still works.
Open-ocean swell, simulated with Gerstner waves: the same physics you will explore in Lesson 6.
Lesson 1

A wave moves energy, not matter

A wave is a disturbance that carries energy from one place to another. The material it travels through, the medium, only oscillates about its rest position and then settles back.

Watch the buoy: the wave rolls past, but the buoy just rises and falls on the spot.

Describing a wave

  • Wavelength λ: distance between two neighbouring crests (metres).
  • Frequency f: waves passing a point each second (hertz, Hz).
  • Period T = 1/f: time for one full oscillation.
  • Amplitude A: maximum displacement from rest.
v = f λ

Wave speed equals frequency times wavelength.

Try this: double the frequency while keeping λ fixed. The magenta crest marker moves twice as fast, and v doubles.
Speed –Period –
Lesson 2

Transverse waves

In a transverse wave the particles of the medium oscillate at right angles to the direction the wave travels.

Flick one end of a rope and a hump runs along it. Each bead on the rope only moves up and down.

Key words

  • Crest: highest point. Trough: lowest point.
  • Amplitude is measured from the rest position, not from crest to trough.

Examples

Waves on strings, S-waves in earthquakes, ripples on water (approximately), and every electromagnetic wave.

Try this: follow the magenta bead. However fast the wave goes, the bead never moves sideways.
Lesson 3

Longitudinal waves

In a longitudinal wave the particles oscillate parallel to the direction of travel.

Push and pull one end of a slinky and pulses of squashed coils run along it.

  • Compression: coils pushed close together.
  • Rarefaction: coils spread apart.
  • Wavelength: from one compression to the next.

Examples

Sound, ultrasound and seismic P-waves.

Try this: watch the magenta coil. It swings back and forth around one spot while the compressions sweep past it.
Lesson 4

Sound: a pressure wave

A loudspeaker cone moves back and forth, pushing on the air. This makes regions of high pressure (compressions) and low pressure (rarefactions) that travel outwards: a longitudinal wave.

  • Sound needs a medium. It cannot travel through a vacuum.
  • Speed in air at 20 °C ≈ 343 m/s; in water ≈ 1,480 m/s; in steel ≈ 5,900 m/s.
  • Higher frequency = higher pitch. Larger amplitude = louder.
  • Humans hear about 20 Hz to 20 kHz.
Try this: press Play tone, then raise the frequency. The pitch rises and the wavelength on screen shrinks, because λ = v / f.

The motion is slowed down a lot so you can see it. Real air molecules oscillate hundreds of times a second.

Wavelength in air –Period –
Lesson 5

Electromagnetic waves

Light, radio and X-rays are electromagnetic (EM) waves: an electric field E and a magnetic field B oscillating together.

  • E and B are at right angles to each other and to the direction of travel, so EM waves are transverse.
  • They need no medium. In a vacuum all travel at c ≈ 3.00 × 10⁸ m/s.
  • Shorter wavelength → higher frequency → more energy per photon (E = hf).
Try this: drag the spectrum slider from radio to gamma and watch the frequency and photon energy climb. Drag across the scene to turn it in 3D.
Radio · long λGamma · short λ
Band –λ –f –Photon energy –
Lesson 6

Ocean waves

Wind passes energy to the sea surface. As a wave passes, each bit of water moves in a near-circular orbit: forward on the crest, back in the trough. It is a mix of transverse and longitudinal motion.

  • Orbits shrink with depth. Below about half a wavelength the water hardly moves.
  • In deep water, longer waves travel faster: v ≈ √(gλ / 2π).
  • Near the shore the seabed slows the bottom of the wave, it steepens, and it breaks.
Try this: make the waves steeper. Real crests become sharp and troughs flatten: that shape is the Gerstner wave used in the ocean scene at the top.
Wave speed –Period –Still water below –
Lesson 7

Seismic waves

An earthquake releases energy at its focus. Two kinds of body wave travel through the Earth:

  • P-waves (primary): longitudinal, the fastest, travel through solids and liquids.
  • S-waves (secondary): transverse, slower, solids only.
  • Surface waves arrive last and do most of the damage.

S-waves never get through the outer core. That is how we know the outer core is liquid. Beyond 104° from the focus there are no S-waves (the S-wave shadow zone). P-waves bend as they enter the core, leaving a P-wave shadow zone from 104° to 140°.

Try this: move the seismometer to 120°. The trace shows no S-wave and no direct P-wave, only noise and late surface waves.
P arrives –S arrives –
Check

Test yourself