Optics & Light — Snell's Law, Total Internal Reflection, Rainbows and the Double Slit

Light bends, bounces, diffracts, and splits into colours. Our optics suite covers the full sweep — from the geometry of refraction at a glass-air interface to the quantum weirdness of the photoelectric effect. Ten interactive simulations where you control the refractive index, wavelength, and geometry in real time.

Geometric Optics — Where Rays Rule

When the wavelength of light is much smaller than the objects it encounters, the wave nature of light can be ignored and we treat it as a ray travelling in straight lines. Geometric optics gives us Snell's law, total internal reflection, and lens equations — and all of these are exact in the ray limit.

Key Relations — Geometric Optics

Snell's law:   n₁ sin θ₁ = n₂ sin θ₂

Critical angle:   θ_c = arcsin(n₂ / n₁)  (n₁ > n₂)

Thin-lens:   1/f = 1/d_o + 1/d_i

Numerical aperture:  NA = n_core · sin(θ_max) = √(n_core² − n_clad²)

Fresnel reflectance (s-pol):  r_s = (n₁cosθ_i − n₂cosθ_t) / (n₁cosθ_i + n₂cosθ_t)

Wave Optics — Where Interference Appears

When the wavelength of light is comparable to aperture sizes or slit separations, the wave nature dominates. Interference and diffraction are purely wave phenomena — the ray model cannot explain them.

Natural Phenomena & Quantum Optics

Why does TIR enable optical fibres? When light travels from a denser medium (glass, n≈1.5) into a less dense one (air, n=1), total internal reflection occurs above the critical angle θ_c = arcsin(1/1.5) ≈ 41.8°. A fibre's core-cladding interface is engineered so that guided rays always exceed this angle — they bounce indefinitely without loss to radiation. The evanescent field that extends a few hundred nanometres into the cladding is exploited for coupling between fibres and in integrated photonic chips.

Algorithms & Methods

Snell's Law (vector form) Fresnel Equations Critical Angle (TIR) Ray-Transfer Matrix Thin-Lens Equation Huygens-Fresnel Principle Fraunhofer Diffraction Double-Slit Interference Rayleigh Scattering σ ∝ λ⁻⁴ Descartes Minimum Deviation CIE XYZ Colour Matching Photon Map (Caustics) Evanescent Fields

Suggested Learning Paths

📐 Geometric Optics First

  1. Snell's Law — build the refraction intuition
  2. Total Internal Reflection — understand critical angle
  3. Optical Fibre — apply TIR to waveguides
  4. Mirrors & Lenses — ray-transfer matrix
  5. Rainbow Formation — Descartes + dispersion

🌊 Wave Optics Track

  1. Colours of Light — CIE colour space foundation
  2. Rayleigh Scattering — λ-dependence of scattering
  3. Diffraction — single aperture, sinc² pattern
  4. Double Slit — Young's experiment + QM mode
  5. Photoelectric Effect — quantisation of light