Wave Refraction - Interactive Visualization

Interactive visualization of wave refraction at medium boundaries with Snell's Law

Incident Angle: 30.0°
Refracted Angle: --°
Speed in Medium 1: 200 px/s
Speed in Medium 2: 150 px/s

Real-time Parameters

Refractive Index n₁ 1.0
Refractive Index n₂ 1.5
λ₁ 80 px
λ₂ 53 px

Legend

Medium 1 (Incident)
Medium 2 (Refracted)
Wavefronts
Light Ray

Refraction Parameters

Medium Settings

Wave Settings

Display Settings

Snell's Law

Snell's Law: n₁sin(θ₁) = n₂sin(θ₂)
Index: n = c/v (c/vacuum speed)
Speed: v = c/n = λ·f
Wavelength: λ = v/f = λ₀/n

What is Wave Refraction?

Wave refraction occurs when a wave passes from one medium to another with different wave speeds. According to Snell's Law, n₁sin(θ₁) = n₂sin(θ₂), where n is the refractive index and θ is the angle measured from the normal line. When entering a denser medium (higher n), the wave slows down and bends toward the normal. When entering a less dense medium (lower n), it speeds up and bends away from the normal.

Snell's Law and Wave Behavior

Snell's Law describes the relationship between the angles of incidence and refraction: n₁sin(θ₁) = n₂sin(θ₂). The refractive index n = c/v, where c is the speed of light in vacuum and v is the speed in the medium. As a wave crosses the boundary, its frequency remains constant, but its wavelength changes: λ = v/f. In a denser medium (higher n), the wave speed decreases, causing the wavelength to shorten and the wavefront to bend toward the normal.

Wavefront Geometry

Wavefronts are surfaces of constant phase. When they hit a boundary at an angle, different parts of the wavefront cross the boundary at different times. The part that enters the new medium first slows down (or speeds up), causing the entire wavefront to change direction. This geometric explanation beautifully demonstrates why refraction occurs and how it relates to the wave speed change at the interface.

Applications and Examples

Wave refraction is fundamental in many areas: Optics - lenses focus light using refraction, enabling cameras, eyeglasses, and microscopes; Atmospheric Phenomena - mirages, rainbows, and the twinkling of stars are caused by atmospheric refraction; Oceanography - ocean waves change direction as they approach shore due to changing depth; Seismology - seismic waves refract through Earth's layers, helping us understand the planet's interior; Communications - radio waves refract in the atmosphere, affecting signal propagation.

Visualization Guide

This interactive tool demonstrates wave refraction at a medium boundary. Adjust the refractive indices (n₁ and n₂) to see how waves behave in different media. Change the incident angle to observe how the refraction angle varies according to Snell's Law. Watch the wavefronts propagate and change direction at the boundary. Observe how the wavelength changes between media (λ₁ vs λ₂) while the frequency remains constant. The simulation shows both the wavefront view (lines of constant phase) and the ray view (light path), helping you understand both perspectives on refraction.