Refraction of Light Simulator

Learn about Snell's Law and experiment with refraction!

Aim:

To simulate the refraction of light at the boundary between two media using Snell's Law.

Theory:

When light passes from one medium to another (e.g., air to water), its speed and direction change. This bending of light is called refraction. The relationship between the angle of incidence (θ₁) and the angle of refraction (θ₂) is given by Snell’s Law:

n₁ · sin(θ₁) = n₂ · sin(θ₂)

Where:
n₁ = Refractive index of the first medium
n₂ = Refractive index of the second medium
θ₁ = Angle of incidence (with the normal)
θ₂ = Angle of refraction (with the normal)

If light travels from a denser to a rarer medium and the incident angle is large enough, total internal reflection occurs.

Refraction Simulation