Refraction
The bending of light as it passes from one medium to another, governed by Snell's Law: n1*sin(θ1) = n2*sin(θ2), where n is the refractive index.
📜
The statement of the theorem
Let be a path parameterized by arc length connecting points and in two media, and , separated by an interface . Let be the spatially varying refractive index. The optical path length is defined by the action integral : \n\n\n\nBy Fermat's Principle, the path must satisfy the Euler-Lagrange equations derived from minimizing . If the interface is defined by , where is the normal vector, and and are the wave vectors in and respectively, the continuity of the tangential component of the wave vector across the boundary requires that the generalized momentum component perpendicular to must satisfy the boundary condition derived from the Hamiltonian formulation of the Eikonal equation. Specifically, if and are the angles between and and the normal , then the conservation of the component of the wave vector parallel to yields:\n\n
Source: Wikipedia