from a
point source in the context of Snell's law. The region below the grey line has a higher
index of refraction, and proportionally lower
speed of light, than the region above it. Snell's law can be derived in various ways.
Derivation from Fermat's principle Snell's law can be derived from
Fermat's principle, which states that the light travels the path which takes the least time. By taking the
derivative of the
optical path length, the
stationary point is found giving the path taken by the light. (There are situations of light violating Fermat's principle by not taking the least time path, as in reflection in a (spherical) mirror.) In a classic analogy, the area of lower
refractive index is replaced by a beach, the area of higher
refractive index by the sea, and the fastest way for a rescuer on the beach to get to a drowning person in the sea is to run along a path that follows Snell's law. As shown in the figure to the right, assume the refractive index of medium 1 and medium 2 are n_1 and n_2 respectively. Light enters medium 2 from medium 1 via point O. \theta_1 is the angle of incidence, \theta_2 is the angle of refraction with respect to the normal. The phase velocities of light in medium 1 and medium 2 are v_1 = c/n_1 and v_2 = c/n_2 respectively, where c is the speed of light in vacuum. Let
T be the time required for the light to travel from point Q through point O to point P. \begin{align} T &= \frac{\sqrt{x^2 + a^2}}{v_1} + \frac{\sqrt{b^2 + (\ell - x)^2}}{v_2} \\ &= \frac{\sqrt{x^2 + a^2}}{v_1} + \frac{\sqrt{b^2 + \ell^2 - 2\ell x + x^2}}{v_2} \end{align} where
a,
b,
ℓ, and
x are as denoted in the right-hand figure,
x being the varying parameter. To minimize it, one can differentiate: \frac{dT}{dx}=\frac{x}{v_1\sqrt{x^2 + a^2}} + \frac{ - (\ell - x)}{v_2\sqrt{(\ell-x)^2 + b^2}} and set it to 0 to find the stationary points. Note that \frac{x}{\sqrt{x^2 + a^2}} =\sin\theta_1 and \frac{\ell - x}{\sqrt{(\ell-x)^2 + b^2}}=\sin\theta_2 Therefore, \frac{dT}{dx}=\frac{\sin\theta_1}{v_1} - \frac{\sin\theta_2}{v_2} = 0\begin{align} \frac{\sin\theta_1}{v_1} &= \frac{\sin\theta_2}{v_2} \\ \frac{n_1\sin\theta_1}{c} &= \frac{n_2\sin\theta_2}{c} \\ n_1\sin\theta_1 &= n_2\sin\theta_2 \end{align}
Derivation from Huygens's principle Alternatively, Snell's law can be derived using interference of all possible paths of light wave from source to observer—it results in destructive interference.
Derivation from Maxwell's equations Another way to derive Snell's Law involves an application of the general
boundary conditions of
Maxwell equations for
electromagnetic radiation and
induction.
Derivation from conservation of energy and momentum Yet another way to derive Snell's law is based on translation symmetry considerations. For example, a homogeneous surface perpendicular to the z direction cannot change the transverse momentum. Since the
propagation vector \mathbf{k} is proportional to the photon's momentum, the transverse propagation direction (k_x,k_y,0) must remain the same in both regions. Assume
without loss of generality a plane of incidence in the z,x plane k_{x\text{Region}_1} = k_{x\text{Region}_2}. Using the well known dependence of the
wavenumber on the
refractive index of the medium, we derive Snell's law immediately. \begin{align} k_{x\text{Region}_1} &= k_{x\text{Region}_2} \\ n_1 k_0\sin\theta_1 &= n_2 k_0\sin\theta_2 \\ n_1 \sin\theta_1 &= n_2 \sin\theta_2 \end{align} where k_0 = \frac{2\pi}{\lambda_0} = \frac{\omega}{c} is the wavenumber in vacuum. Although no surface is truly homogeneous at the atomic scale, full
translational symmetry is an excellent approximation whenever the region is homogeneous on the scale of the light wavelength.
Vector form Given a normalized light vector \boldsymbol{\ell} (pointing from the light source toward the surface) and a normalized plane normal vector \mathbf{n}, one can work out the normalized reflected and refracted rays, via the cosines of the angle of incidence \theta_1 and angle of refraction \theta_2, without explicitly using the sine values or any trigonometric functions or angles: \cos\theta_1 = -\mathbf{n}\cdot \boldsymbol{\ell} Note: \cos\theta_1 must be positive, which it will be if \mathbf{n} is the normal vector that points from the surface toward the side where the light is coming from, the region with index n_1. If \cos\theta_1 is negative, then \mathbf{n} points to the side without the light, so start over with \mathbf{n} replaced by its negative. \mathbf{v}_{\mathrm{reflect}}=\boldsymbol{\ell} + 2\cos\theta_1 \mathbf{n} This reflected direction vector points back toward the side of the surface where the light came from. Now apply Snell's law to the ratio of sines to derive the formula for the refracted ray's direction vector: \sin\theta_2 = \frac{n_1}{n_2} \sin\theta_1 = \frac{n_1}{n_2} \sqrt{ 1 - \left(\cos\theta_1 \right)^2 } \cos\theta_2 = \sqrt{1-(\sin\theta_2)^2} = \sqrt{1 - \left( \frac{n_1}{n_2} \right)^2 \left( 1 - \left( \cos\theta_1 \right)^2 \right)} \mathbf{v}_{\mathrm{refract}} = \left( \frac{n_1}{n_2} \right) \boldsymbol{\ell} + \left( \frac{n_1}{n_2} \cos\theta_1 - \cos\theta_2 \right) \mathbf{n} The formula may appear simpler in terms of renamed simple values r = n_1 / n_2 and c = -\mathbf{n}\cdot \boldsymbol{\ell}, avoiding any appearance of trig function names or angle names: \mathbf{v}_{\mathrm{refract}} = r \boldsymbol{\ell} + \left( r c - \sqrt{1 - r^2 \left( 1 - c^2 \right)} \right) \mathbf{n} Example: \boldsymbol{\ell} = \{0.707107, -0.707107\}, ~ \mathbf{n} = \{0,1\}, ~ r = \frac{n_1}{n_2} = 0.9 c = \cos\theta_1=0.707107, ~ \sqrt{1 - r^2 \left( 1 - c^2 \right)} = \cos\theta_2 = 0.771362 \mathbf{v}_{\mathrm{reflect}}=\{0.707107, 0.707107\} ,~\mathbf{v}_{\mathrm{refract}}=\{0.636396, -0.771362\} The cosine values may be saved and used in the
Fresnel equations for working out the intensity of the resulting rays.
Total internal reflection is indicated by a negative
radicand in the equation for \cos\theta_2, which can only happen for rays crossing into a less-dense medium ( n_2 ). In applied optics, these vector calculations are sequentially utilized to model complex multi-layer optical stacks, such as anti-reflective coatings or display panels. In these systems, the lateral beam displacement and total internal reflection conditions must be verified at each dielectric interface to ensure precision alignment. ==Total internal reflection and critical angle==