In physics, total internal reflection (TIR) is the phenomenon in which waves arriving at the interface (boundary) from one medium to another (e.g., from water to air) are not refracted into the second ("external") medium, but completely reflected back into the first ("internal") medium. It occurs when the second medium has a higher wave speed (i.e., lower refractive index) than the first, and the waves are incident at a sufficiently oblique angle on the interface. For example, the watertoair surface in a typical fish tank, when viewed obliquely from below, reflects the underwater scene like a mirror with no loss of brightness (Fig. 1).
TIR occurs not only with electromagnetic waves such as light and microwaves, but also with other types of waves, including sound and water waves. If the waves are capable of forming a narrow beam (Fig. 2), the reflection tends to be described in terms of "rays" rather than waves; in a medium whose properties are independent of direction, such as air, water or glass, the "rays" are perpendicular to the associated wavefronts.
Refraction is generally accompanied by partial reflection. When waves are refracted from a medium of lower propagation speed (higher refractive index) to a medium of higher propagation speed (lower refractive index) —e.g., from water to air—the angle of refraction (between the outgoing ray and the surface normal) is greater than the angle of incidence (between the incoming ray and the normal). As the angle of incidence approaches a certain threshold, called the critical angle, the angle of refraction approaches 90°, at which the refracted ray becomes parallel to the boundary surface. As the angle of incidence increases beyond the critical angle, the conditions of refraction can no longer be satisfied, so there is no refracted ray, and the partial reflection becomes total. For visible light, the critical angle is about 49° for incidence from water to air, and about 42° for incidence from common glass to air.
Details of the mechanism of TIR give rise to more subtle phenomena. While total reflection, by definition, involves no continuing flow of power across the interface between the two media, the external medium carries a socalled evanescent wave, which travels along the interface with an amplitude that falls off exponentially with distance from the interface. The "total" reflection is indeed total if the external medium is lossless (perfectly transparent), continuous, and of infinite extent, but can be conspicuously less than total if the evanescent wave is absorbed by a lossy external medium ("attenuated total reflectance"), or diverted by the outer boundary of the external medium or by objects embedded in that medium ("frustrated" TIR). Unlike partial reflection between transparent media, total internal reflection is accompanied by a nontrivial phase shift (not just zero or 180°) for each component of polarization (perpendicular or parallel to the plane of incidence), and the shifts vary with the angle of incidence. The explanation of this effect by AugustinJean Fresnel, in 1823, added to the evidence in favor of the wave theory of light.
The phase shifts are utilized by Fresnel's invention, the Fresnel rhomb, to modify polarization. The efficiency of the total internal reflection is exploited by optical fibers (used in telecommunications cables and in imageforming fiberscopes), and by reflective prisms, such as imageerecting Porro/roof prisms for monoculars and binoculars.
Although total internal reflection can occur with any kind of wave that can be said to have oblique incidence, including (e.g.) microwaves^{[1]} and sound waves,^{[2]} it is most familiar in the case of light waves.
Total internal reflection of light can be demonstrated using a semicircularcylindrical block of common glass or acrylic glass. In Fig. 3, a "ray box" projects a narrow beam of light (a "ray") radially inward. The semicircular crosssection of the glass allows the incoming ray to remain perpendicular to the curved portion of the air/glass surface, and then hence to continue in a straight line towards the flat part of the surface, although its angle with the flat part varies.
Where the ray meets the flat glasstoair interface, the angle between the ray and the normal (perpendicular) to the interface is called the angle of incidence.^{[3]} If this angle is sufficiently small, the ray is partly reflected but mostly transmitted, and the transmitted portion is refracted away from the normal, so that the angle of refraction (between the refracted ray and the normal to the interface) is greater than the angle of incidence. For the moment, let us call the angle of incidence θ_{i} and the angle of refraction θ_{t} (where t is for transmitted, reserving r for reflected). As θ_{i} increases and approaches a certain "critical angle", denoted by θ_{c} (or sometimes θ_{cr}), the angle of refraction approaches 90° (that is, the refracted ray approaches a tangent to the interface), and the refracted ray becomes fainter while the reflected ray becomes brighter.^{[4]} As θ_{i} increases beyond θ_{c}, the refracted ray disappears and only the reflected ray remains, so that all of the energy of the incident ray is reflected; this is total internal reflection (TIR). In brief:
The critical angle is the smallest angle of incidence that yields total reflection, or equivalently the largest angle for which a refracted ray exists.^{[5]} For light waves incident from an "internal" medium with a single refractive index n_{1} , to an "external" medium with a single refractive index n_{2} , the critical angle is given by and is defined if n_{2} ≤ n_{1}. For some other types of waves, it is more convenient to think in terms of propagation velocities rather than refractive indices. The explanation of the critical angle in terms of velocities is more general and will therefore be discussed first。
When a wavefront is refracted from one medium to another, the incident (incoming) and refracted (outgoing) portions of the wavefront meet at a common line on the refracting surface (interface). Let this line, denoted by L, move at velocity u across the surface,^{[6]}^{[7]} where u is measured normal to L (Fig. 4). Let the incident and refracted wavefronts propagate with normal velocities and (respectively), and let them make the dihedral angles θ_{1} and θ_{2} (respectively) with the interface. From the geometry, is the component of u in the direction normal to the incident wave, so that Similarly, Solving each equation for 1/u and equating the results, we obtain the general law of refraction for waves:

(1) 
But the dihedral angle between two planes is also the angle between their normals. So θ_{1} is the angle between the normal to the incident wavefront and the normal to the interface, while θ_{2} is the angle between the normal to the refracted wavefront and the normal to the interface; and Eq. (1) tells us that the sines of these angles are in the same ratio as the respective velocities.^{[8]}
This result has the form of "Snell's law", except that we have not yet said that the ratio of velocities is constant, nor identified θ_{1} and θ_{2} with the angles of incidence and refraction (called θ_{i} and θ_{t} above). However, if we now suppose that the properties of the media are isotropic (independent of direction), two further conclusions follow: first, the two velocities, and hence their ratio, are independent of their directions; and second, the wavenormal directions coincide with the ray directions, so that θ_{1} and θ_{2} coincide with the angles of incidence and refraction as defined above.^{[Note 1]}
Obviously the angle of refraction cannot exceed 90°. In the limiting case, we putθ_{2} = 90° and θ_{1} = θ_{c} in Eq. (1), and solve for the critical angle:

(2) 
In deriving this result, we retain the assumption of isotropic media in order to identify θ_{1} and θ_{2} with the angles of incidence and refraction.^{[Note 3]}
For electromagnetic waves, and especially for light, it is customary to express the above results in terms of refractive indices. The refractive index of a medium with normal velocity is defined as where c is the speed of light in vacuum.^{[9]} Hence Similarly, Making these substitutions in Eqs. (1) and (2), we obtain

(3) 
and

(4) 
Eq. (3) is the law of refraction for general media, in terms of refractive indices, provided that θ_{1} and θ_{2} are taken as the dihedral angles; but if the media are isotropic, then n_{1} and n_{2} become independent of direction while θ_{1} and θ_{2} may be taken as the angles of incidence and refraction for the rays, and Eq. (4) follows. So, for isotropic media, Eqs. (3) and (4) together describe the behavior in Fig. 5.
According to Eq. (4), for incidence from water (n_{1} ≈ 1.333) to air (n_{2} ≈ 1), we have θ_{c} ≈ 48.6°, whereas for incidence from common glass or acrylic (n_{1} ≈ 1.50) to air (n_{2} ≈ 1), we have θ_{c} ≈ 41.8°.
The arcsin function yielding θ_{c} is defined only ifn_{2} ≤ n_{1} Hence, for isotropic media, total internal reflection cannot occur if the second medium has a higher refractive index (lower normal velocity) than the first. For example, there cannot be TIR for incidence from air to water; rather, the critical angle for incidence from water to air is the angle of refraction at grazing incidence from air to water (Fig. 6).^{[10]}
The medium with the higher refractive index is commonly described as optically denser, and the one with the lower refractive index as optically rarer.^{[11]} Hence it is said that total internal reflection is possible for "densetorare" incidence, but not for "raretodense" incidence.
When standing beside an aquarium with one's eyes below the water level, one is likely to see fish or submerged objects reflected in the waterair surface (Fig. 1). The brightness of the reflected image – just as bright as the "direct" view – can be startling.
A similar effect can be observed by opening one's eyes while swimming just below the water's surface. If the water is calm, the surface outside the critical angle (measured from the vertical) appears mirrorlike, reflecting objects below. The region above the water cannot be seen except overhead, where the hemispherical field of view is compressed into a conical field known as Snell's window, whose angular diameter is twice the critical angle (cf. Fig. 6).^{[12]} The field of view above the water is theoretically 180° across, but seems less because as we look closer to the horizon, the vertical dimension is more strongly compressed by the refraction; e.g., by Eq. (3), for airtowater incident angles of 90°, 80°, and 70°, the corresponding angles of refraction are 48.6° (θ_{cr} in Fig. 6), 47.6°, and 44.8°, indicating that the image of a point 20° above the horizon is 3.8° from the edge of Snell's window while the image of a point 10° above the horizon is only 1° from the edge.^{[13]}
Fig. 7, for example, is a photograph taken near the bottom of the shallow end of a swimming pool. What looks like a broad horizontal stripe on the righthand wallDispersion).
consists of the lower edges of a row of orange tiles, and their reflections; this marks the water level, which can then be traced across the other wall. The swimmer has disturbed the surface above her, scrambling the lower half of her reflection, and distorting the reflection of the ladder (to the right). But most of the surface is still calm, giving a clear reflection of the tiled bottom of the pool. The space above the water is not visible except at the top of the frame, where the handles of the ladder are just discernible above the edge of Snell's window – within which the reflection of the bottom of the pool is only partial, but still noticeable in the photograph. One can even discern the colorfringing of the edge of Snell's window, due to variation of the refractive index, hence of the critical angle, with wavelength (seeThe critical angle influences the angles at which gemstones are cut. The round "brilliant" cut, for example, is designed to refract light incident on the front facets, reflect it twice by TIR off the back facets, and transmit it out again through the front facets, so that the stone looks bright. Diamond (Fig. 8) is especially suitable for this treatment, because its high refractive index (about 2.42) and consequently small critical angle (about 24.5°) yield the desired behavior over a wide range of viewing angles.^{[14]} Cheaper materials that are similarly amenable to this treatment include cubic zirconia (index ≈ 2.15) and moissanite (nonisotropic, hence doubly refractive, with an index ranging from about 2.65 to 2.69,^{[Note 4]} depending on direction and polarization); both of these are therefore popular as diamond simulants.
Further information: Evanescent wave § Total internal reflection of light 
Mathematically, waves are described in terms of timevarying fields, a "field" being a function of location in space. A propagating wave requires an "effort" field and a "flow" field, the latter being a vector (if we are working in two or three dimensions). The product of effort and flow is related to power (see System equivalence). For example, for sound waves in a nonviscous fluid, we might take the effort field as the pressure (a scalar), and the flow field as the fluid velocity (a vector). The product of these two is intensity (power per unit area).^{[15]}^{[Note 5]} For electromagnetic waves, we shall take the effort field as the electric field E , and the flow field as the magnetizing field H. Both of these are vectors, and their vector product is again the intensity (see Poynting vector).^{[16]}
When a wave in (say) medium 1 is reflected off the interface between medium 1 and medium 2, the flow field in medium 1 is the vector sum of the flow fields due to the incident and reflected waves.^{[Note 6]} If the reflection is oblique, the incident and reflected fields are not in opposite directions and therefore cannot cancel out at the interface; even if the reflection is total, either the normal component or the tangential component of the combined field (as a function of location and time) must be nonzero adjacent to the interface. Furthermore, the physical laws governing the fields will generally imply that one of the two components is continuous across the interface (that is, it does not suddenly change as we cross the interface); for example, for electromagnetic waves, one of the interface conditions is that the tangential component of H is continuous if there is no surface current.^{[17]} Hence, even if the reflection is total, there must be some penetration of the flow field into medium 2; and this, in combination with the laws relating the effort and flow fields, implies that there will also be some penetration of the effort field. The same continuity condition implies that the variation ("waviness") of the field in medium 2 will be synchronized with that of the incident and reflected waves in medium 1.
But, if the reflection is total, the spatial penetration of the fields into medium 2 must be limited somehow, or else the total extent and hence the total energy of those fields would continue to increase, draining power from medium 1. Total reflection of a continuing wavetrain permits some energy to be stored in medium 2, but does not permit a continuing transfer of power from medium 1 to medium 2.
Thus, using mostly qualitative reasoning, we can conclude that total internal reflection must be accompanied by a wavelike field in the "external" medium, traveling along the interface in synchronism with the incident and reflected waves, but with some sort of limited spatial penetration into the "external" medium; such a field may be called an evanescent wave.
Fig. 9 shows the basic idea. The incident wave is assumed to be plane and sinusoidal. The reflected wave, for simplicity, is not shown. The evanescent wave travels to the right in lockstep with the incident and reflected waves, but its amplitude falls off with increasing distance from the interface.
(Two features of the evanescent wave in Fig. 9 are to be explained later: first, that the evanescent wave crests are perpendicular to the interface; and second, that the evanescent wave is slightly ahead of the incident wave.)
If the internal reflection is to be total, there must be no diversion of the evanescent wave. Suppose, for example, that electromagnetic waves incident from glass (with a higher refractive index) to air (with a lower refractive index) at a certain angle of incidence are subject to TIR. And suppose that we have a third medium (often identical to the first) whose refractive index is sufficiently high that, if the third medium were to replace the second, we would get a standard transmitted wavetrain for the same angle of incidence. Then, if the third medium is brought within a distance of a few wavelengths from the surface of the first medium, where the evanescent wave has significant amplitude in the second medium, then the evanescent wave is effectively refracted into the third medium, giving nonzero transmission into the third medium, and therefore less than total reflection back into the first medium.^{[18]} As the amplitude of the evanescent wave decays across the air gap, the transmitted waves are attenuated, so that there is less transmission, and therefore more reflection, than there would be with no gap; but as long as there is some transmission, the reflection is less than total. This phenomenon is called frustrated total internal reflection (where "frustrated" negates "total"), abbreviated "frustrated TIR" or "FTIR".
Frustrated TIR can be observed by looking into the top of a glass of water held in one's hand (Fig. 10). If the glass is held loosely, contact may not be sufficiently close and widespread to produce a noticeable effect. But if it is held more tightly, the ridges of one's fingerprints interact strongly with the evanescent waves, allowing the ridges to be seen through the otherwise totally reflecting glassair surface.^{[19]}
The same effect can be demonstrated with microwaves, using paraffin wax as the "internal" medium (where the incident and reflected waves exist). In this case the permitted gap width might be (e.g.) 1 cm or several cm, which is easily observable and adjustable.^{[1]}^{[20]}
The term frustrated TIR also applies to the case in which the evanescent wave is scattered by an object sufficiently close to the reflecting interface. This effect, together with the strong dependence of the amount of scattered light on the distance from the interface, is exploited in total internal reflection microscopy.^{[21]}
The mechanism of FTIR is called evanescentwave coupling, and is a good analog to visualize quantum tunneling.^{[22]} Due to the wave nature of matter, an electron has a nonzero probability of "tunneling" through a barrier, even if classical mechanics would say that its energy is insufficient.^{[18]}^{[19]} Similarly, due to the wave nature of light, a photon has a nonzero probability of crossing a gap, even if ray optics would say that its approach is too oblique.
Another reason why internal reflection may be less than total, even beyond the critical angle, is that the external medium may be "lossy" (less than perfectly transparent), in which case the external medium will absorb energy from the evanescent wave, so that the maintenance of the evanescent wave will draw power from the incident wave. The consequent lessthantotal reflection is called attenuated total reflectance (ATR). This effect, and especially the frequencydependence of the absorption, can be used to study the composition of an unknown external medium.^{[23]}
In a uniform plane sinusoidal electromagnetic wave, the electric field E has the form

(5) 
where E_{k} is the (constant) complex amplitude vector, i is the imaginary unit, k is the wave vector (whose magnitude k is the angular wavenumber), r is the position vector, ω is the angular frequency, t is time, and it is understood that the real part of the expression is the physical field.^{[Note 7]} The magnetizing field H has the same form with the same k and ω. The value of the expression is unchanged if the position r varies in a direction normal to k; hence k is normal to the wavefronts.
If ℓ is the component of r in the direction of k , the field (5) can be written If the argument of is to be constant, ℓ must increase at the velocity known as the phase velocity.^{[24]} This in turn is equal to where c is the phase velocity in the reference medium (taken as vacuum) and n is the local refractive index w.r.t. the reference medium. Solving for k gives i.e.

(6) 
where is the wavenumber in vacuum.^{[25]}^{[Note 8]}
From (5), the electric field in the "external" medium has the form

(7) 
where k_{t} is the wave vector for the transmitted wave (we assume isotropic media, but the transmitted wave is not yet assumed to be evanescent).
In Cartesian coordinates (x, y,, let the region z) y < 0 have refractive index n_{1} , and let the region y > 0 have refractive index n_{2}. Then the xz plane is the interface, and the y axis is normal to the interface (Fig. 11). Let i and j (in bold roman type) be the unit vectors in the x and y directions, respectively. Let the plane of incidence (containing the incident wavenormal and the normal to the interface) be the xy plane (the plane of the page), with the angle of incidence θ_{i} measured from j towards i. Let the angle of refraction, measured in the same sense, be θ_{t} (t for transmitted, reserving r for reflected).
From (6), the transmitted wave vector k_{t} has magnitude n_{2}k_{0}. Hence, from the geometry,

(8) 
In the case of TIR, the angle θ_{t} does not exist in the usual sense. But we can still interpret (8) for the transmitted (evanescent) wave, by allowing cos θ_{t} to be complex. This becomes necessary when we write cos θ_{t} in terms of sin θ_{t} , and thence in terms of sin θ_{i} using Snell's law:

(9) 
To determine which sign is applicable, we substitute (9) into (8), obtaining

(10) 
where the undetermined sign is the opposite of that in (9). For an evanescent transmitted wave – that is, one whose amplitude decays as y increases – the undetermined sign in (10) must be minus, so the undetermined sign in (9) must be plus.^{[Note 9]}
With the correct sign, the result (10) can be abbreviated

(11) 
where

(12) 
and k_{0} is the wavenumber in vacuum, i.e.
So the evanescent wave is a plane sinewave traveling in the x direction, with an amplitude that decays exponentially in the y direction (cf. Fig. 9). It is evident that the energy stored in this wave likewise travels in the x direction and does not cross the interface. Hence the Poynting vector generally has a component in the x direction, but its y component averages to zero (although its instantaneous y component is not identically zero).^{[27]}^{[28]}
Eq. (11) indicates that the amplitude of the evanescent wave falls off by a factor e as the coordinate y (measured from the interface) increases by the distance commonly called the "penetration depth" of the evanescent wave.^{[29]} Taking reciprocals of the first equation of (12), we find that the penetration depth is^{[28]}
Between 1817 and 1823, AugustinJean Fresnel discovered that total internal reflection is accompanied by a nontrivial phase shift (that is, a phase shift that is not restricted to 0° or 180°), as the Fresnel reflection coefficient acquires a nonzero imaginary part.^{[31]} We shall now explain this effect for electromagnetic waves in the case of linear, homogeneous, isotropic, nonmagnetic media. The phase shift turns out to be an advance, which grows as the incidence angle increases beyond the critical angle, but which depends on the polarization of the incident wave.
In equations (5), (7), (8), (10), and (11), we advance the phase by the angle ϕ if we replace ωt by ωt+ϕ (that is, if we replace −ωt by −ωt−ϕ), with the result that the (complex) field is multiplied by e^{−iϕ}. So a phase advance is equivalent to multiplication by a complex constant with a negative argument. This becomes more obvious when (e.g.) the field (5) is factored as where the last factor contains the timedependence.^{[Note 10]}
To represent the polarization of the incident, reflected, or transmitted wave, the electric field adjacent to an interface can be resolved into two perpendicular components, known as the s and p components, which are parallel to the surface and the plane of incidence, respectively; in other words, the s and p components are respectively square and parallel to the plane of incidence.^{[Note 11]}
For each component of polarization, the incident, reflected, or transmitted electric field (E in Eq. (5)) has a certain direction, and can be represented by its (complex) scalar component in that direction. The reflection or transmission coefficient can then be defined as a ratio of complex components at the same point, or at infinitesimally separated points on opposite sides of the interface. But, in order to fix the signs of the coefficients, we must choose positive senses for the "directions". For the s components, the obvious choice is to say that the positive directions of the incident, reflected, and transmitted fields are all the same (e.g., the z direction in Fig. 11). For the p components, this article adopts the convention that the positive directions of the incident, reflected, and transmitted fields are inclined towards the same medium (that is, towards the same side of the interface, e.g. like the red arrows in Fig. 11).^{[Note 12]} But the reader should be warned that some books use a different convention for the p components, causing a different sign in the resulting formula for the reflection coefficient.^{[32]}
For the s polarization, let the reflection and transmission coefficients be r_{s} and t_{s} respectively. For the p polarization, let the corresponding coefficients be r_{p} and t_{p} . Then, for linear, homogeneous, isotropic, nonmagnetic media, the coefficients are given by:^{[33]}

(13) 

(14) 

(15) 

(16) 
(For a derivation of the above, see Fresnel equations § Theory.)
Now we suppose that the transmitted wave is evanescent. With the correct sign (+), substituting (9) into (13) gives

(17) 
Making the same substitution in (14), we find that t_{s} has the same denominator as r_{s} with a positive real numerator (instead of a complex conjugate numerator) and therefore has half the argument of r_{s} , so that the phase advance of the evanescent wave is half that of the reflected wave.
With the same choice of sign,^{[Note 14]} substituting (9) into (15) gives

(18) 
Making the same substitution in (16), we again find that the phase advance of the evanescent wave is half that of the reflected wave.
Equations (17) and (18) apply when θ_{c} ≤ θ_{i} < 90°, where θ_{i} is the angle of incidence and θ_{c} is the critical angle arcsin (1/n). These equations show that
For θ_{i} ≤ θ_{c} , the reflection coefficients are given by equations (13) and (15), and are real, so that the phase shift is either 0° (if the coefficient is positive) or 180° (if the coefficient is negative).
In (13), if we put (Snell's law) and multiply the numerator and denominator by 1/n_{1} sin θ_{t}, we obtain ^{[36]}^{[37]}

(19) 
which is positive for all angles of incidence with a transmitted ray (sinceθ_{t} > θ_{i}), giving a phase shift δ_{s} of zero.
If we do likewise with (15), the result is easily shown to be equivalent to ^{[38]}^{[39]}

(20) 
which is negative for small angles (that is, near normal incidence), but changes sign at Brewster's angle, where θ_{i} and θ_{t} are complementary. Thus the phase shift δ_{p} is 180° for small θ_{i} but switches to 0° at Brewster's angle. Combining the complementarity with Snell's law yields θ_{i} = arctan (1/n) as Brewster's angle for densetorare incidence.^{[Note 15]}
(Equations (19) and (20) are known as Fresnel's sine law and Fresnel's tangent law.^{[40]} Both reduce to 0/0 at normal incidence, but yield the correct results in the limit as θ_{i} → 0. That they have opposite signs as we approach normal incidence is an obvious disadvantage of the sign convention used in this article; the corresponding advantage is that they have the same signs at grazing incidence.)
That completes the information needed to plot δ_{s} and δ_{p} for all angles of incidence. This is done in Fig. 13,^{[34]} with δ_{p} in red and δ_{s} in blue, for three refractive indices. On the angleofincidence scale (horizontal axis), Brewster's angle is where δ_{p} (red) falls from 180° to 0°, and the critical angle is where both δ_{p} and δ_{s} (red and blue) start to rise again. To the left of the critical angle is the region of partial reflection, where both reflection coefficients are real (phase 0° or 180°) with magnitudes less than 1. To the right of the critical angle is the region of total reflection, where both reflection coefficients are complex with magnitudes equal to 1. In that region, the black curves show the phase advance of the p component relative to the s component:^{[41]}
This 45° relative shift is employed in Fresnel's invention, now known as the Fresnel rhomb, in which the angles of incidence are chosen such that the two internal reflections cause a total relative phase shift of 90° between the two polarizations of an incident wave. This device performs the same function as a birefringent quarterwave plate, but is more achromatic (that is, the phase shift of the rhomb is less sensitive to wavelength). Either device may be used, for instance, to transform linear polarization to circular polarization (which Fresnel also discovered) and vice versa.
Further information: Fresnel rhomb 
In Fig. 13, δ is computed by a final subtraction; but there are other ways of expressing it. Fresnel himself, in 1823,^{[42]} gave a formula for cos δ. Born and Wolf (1970, p. 50) derive an expression for tan (δ/2), and find its maximum analytically.
For TIR of a beam with finite width, the variation in the phase shift with the angle of incidence gives rise to the Goos–Hänchen effect, which is a lateral shift of the reflected beam within the plane of incidence.^{[28]}^{[43]} This effect applies to linear polarization in the s or p direction. The Imbert–Fedorov effect is an analogous effect for circular or elliptical polarization, and produces a shift perpendicular to the plane of incidence.^{[44]}
Further information: Prism (optics) § Reflective_prisms 
Optical fibers exploit total internal reflection to carry signals over long distances with little attenuation.^{[45]} They are used in telecommunication cables, and in imageforming fiberscopes such as colonoscopes.^{[46]}
In the catadioptric Fresnel lens, invented by AugustinJean Fresnel for use in lighthouses, the outer prisms use TIR to deflect light from the lamp through a greater angle than would be possible with purely refractive prisms, but with less absorption of light (and less risk of tarnishing) than with conventional mirrors.^{[47]}
Other reflecting prisms that use TIR include the following (with some overlap between the categories):^{[48]}
Polarizing prisms: Although the Fresnel rhomb, which converts between linear and elliptical polarization, is not birefringent (doubly refractive), there are other kinds of prisms that combine birefringence with TIR in such a way that light of a particular polarization is totally reflected while light of the orthogonal polarization is at least partly transmitted. Examples include the Nicol prism,^{[50]} Glan–Thompson prism, Glan–Foucault prism (or "Foucault prism"),^{[51]}^{[52]} and Glan–Taylor prism.^{[53]}
Refractometers, which measure refractive indices, often use the critical angle.^{[54]}^{[55]}
Rain sensors for automatic windscreen/windshield wipers have been implemented using the principle that total internal reflection will guide an infrared beam from a source to a detector if the outer surface of the windshield is dry, but any water drops on the surface will divert some of the light.^{[56]}
Edgelit LED panels, used (e.g.) for backlighting of LCD computer monitors, exploit TIR to confine the LED light to the acrylic glass pane, except that some of the light is scattered by etchings on one side of the pane, giving an approximately uniform luminous emittance.^{[57]}
Total internal reflection microscopy (TIRM) uses the evanescent wave to illuminate small objects close to the reflecting interface. The consequent scattering of the evanescent wave (a form of frustrated TIR), makes the objects appear bright when viewed from the "external" side.^{[21]} In the total internal reflection fluorescence microscope (TIRFM), instead of relying on simple scattering, we choose an evanescent wavelength short enough to cause fluorescence (Fig. 15).^{[58]} The high sensitivity of the illumination to the distance from the interface allows measurement of extremely small displacements and forces.^{[59]}
A beamsplitter cube uses frustrated TIR to divide the power of the incoming beam between the transmitted and reflected beams.^{[18]} The width of the air gap (or lowrefractiveindex gap) between the two prisms can be made adjustable, giving higher transmission and lower reflection for a narrower gap, or higher reflection and lower transmission for a wider gap.^{[60]}
Optical modulation can be accomplished by means of frustrated TIR with a rapidly variable gap.^{[61]} As the transmission coefficient is highly sensitive to the gap width (the function being approximately exponential until the gap is almost closed), this technique can achieve a large dynamic range.
Optical fingerprinting devices have used frustrated TIR to record images of persons' fingerprints without the use of ink (cf. Fig. 11).^{[62]}
Gait analysis can be performed by using frustrated TIR with a highspeed camera, to capture and analyze footprints.^{[63]}
A gonioscope, used in optometry and ophthalmology for the diagnosis of glaucoma, suppresses TIR in order to look into the angle between the iris and the cornea. This view is usually blocked by TIR at the corneaair interface. The gonioscope replaces the air with a higherindex medium, allowing transmission at oblique incidence, typically followed by reflection in a "mirror", which itself may be implemented using TIR.^{[64]}^{[65]}
Some multitouch interactive tables and whiteboards utilise FTIR to detect fingers touching the screen. An infrared camera is placed behind the screen surface, which is edgelit by infrared LEDs; when touching the surface FTIR causes some of the infrared light to escape the screen plane, and the camera sees this as bright areas. Computer vision software is then used to translate this into a series of coordinates and gestures.
The surprisingly comprehensive and largely correct explanations of the rainbow by Theodoric of Freiberg (written between 1304 and 1310)^{[66]} and Kamāl alDīn alFārisī (completed by 1309),^{[67]} although sometimes mentioned in connection with total internal reflection (TIR), are of dubious relevance because the internal reflection of sunlight in a spherical raindrop is not total.^{[Note 16]} But, according to Carl Benjamin Boyer, Theodoric's treatise on the rainbow also classified optical phenomena under five causes, the last of which was "a total reflection at the boundary of two transparent media".^{[68]} Theodoric's work was forgotten until it was rediscovered by Giovanni Battista Venturi in 1814.^{[69]}
Theodoric having fallen into obscurity, the discovery of TIR was generally attributed to Johannes Kepler, who published his findings in his Dioptrice in 1611. Although Kepler failed to find the true law of refraction, he showed by experiment that for airtoglass incidence, the incident and refracted rays rotated in the same sense about the point of incidence, and that as the angle of incidence varied through ±90°, the angle of refraction (as we now call it) varied through ±42°. He was also aware that the incident and refracted rays were interchangeable. But these observations did not cover the case of a ray incident from glass to air at an angle beyond 42°, and Kepler promptly concluded that such a ray could only be reflected.^{[70]}
René Descartes rediscovered the law of refraction and published it in his Dioptrique of 1637. In the same work he mentioned the senses of rotation of the incident and refracted rays and the condition of TIR. But he neglected to discuss the limiting case, and consequently failed to give an expression for the critical angle, although he could easily have done so.^{[71]}
Christiaan Huygens, in his Treatise on Light (1690), paid much attention to the threshold at which the incident ray is "unable to penetrate into the other transparent substance".^{[72]} Although he gave neither a name nor an algebraic expression for the critical angle, he gave numerical examples for glasstoair and watertoair incidence, noted the large change in the angle of refraction for a small change in the angle of incidence near the critical angle, and cited this as the cause of the rapid increase in brightness of the reflected ray as the refracted ray approaches the tangent to the interface.^{[73]} Huygens' insight is confirmed by modern theory: in Eqs. (13) and (15) above, there is nothing to say that the reflection coefficients increase exceptionally steeply as θ_{t} approaches 90°, except that, according to Snell's law, θ_{t} itself is an increasingly steep function of θ_{i}.
Huygens offered an explanation of TIR within the same framework as his explanations of the laws of rectilinear propagation, reflection, ordinary refraction, and even the extraordinary refraction of "Iceland crystal" (calcite). That framework rested on two premises: first, every point crossed by a propagating wavefront becomes a source of secondary wavefronts ("Huygens' principle"); and second, given an initial wavefront, any subsequent position of the wavefront is the envelope (common tangent surface) of all the secondary wavefronts emitted from the initial position. All cases of reflection or refraction by a surface are then explained simply by considering the secondary waves emitted from that surface. In the case of refraction from a medium of slower propagation to a medium of faster propagation, there is a certain obliquity of incidence beyond which it is impossible for the secondary wavefronts to form a common tangent in the second medium;^{[74]} this is what we now call the critical angle. As the incident wavefront approaches this critical obliquity, the refracted wavefront becomes concentrated against the refracting surface, augmenting the secondary waves that produce the reflection back into the first medium.^{[75]}
Huygens' system even accommodated partial reflection at the interface between different media, albeit vaguely, by analogy with the laws of collisions between particles of different sizes.^{[76]} However, as long as the wave theory continued to assume longitudinal waves, it had no chance of accommodating polarization, hence no chance of explaining the polarizationdependence of extraordinary refraction,^{[77]} or of the partial reflection coefficient, or of the phase shift in TIR.
Isaac Newton rejected the wave explanation of rectilinear propagation, believing that if light consisted of waves, it would "bend and spread every way" into the shadows.^{[78]} His corpuscular theory of light explained rectilinear propagation more simply, and it accounted for the ordinary laws of refraction and reflection, including TIR, on the hypothesis that the corpuscles of light were subject to a force acting perpendicular to the interface.^{[79]} In this model, for densetorare incidence, the force was an attraction back towards the denser medium, and the critical angle was the angle of incidence at which the normal velocity of the approaching corpuscle was just enough to reach the far side of the force field; at more oblique incidence, the corpuscle would be turned back.^{[80]} Newton gave what amounts to a formula for the critical angle, albeit in words: "as the Sines are which measure the Refraction, so is the Sine of Incidence at which the total Reflexion begins, to the Radius of the Circle".^{[81]}
Newton went beyond Huygens in two ways. First, not surprisingly, Newton pointed out the relationship between TIR and dispersion: when a beam of white light approaches a glasstoair interface at increasing obliquity, the most stronglyrefracted rays (violet) are the first to be "taken out" by "total Reflexion", followed by the lessrefracted rays.^{[82]} Second, he observed that total reflection could be frustrated (as we now say) by laying together two prisms, one plane and the other slightly convex; and he explained this simply by noting that the corpuscles would be attracted not only to the first prism, but also to the second.^{[83]}
In two other ways, however, Newton's system was less coherent. First, his explanation of partial reflection depended not only on the supposed forces of attraction between corpuscles and media, but also on the more nebulous hypothesis of "Fits of easy Reflexion" and "Fits of easy Transmission".^{[84]} Second, although his corpuscles could conceivably have "sides" or "poles", whose orientations could conceivably determine whether the corpuscles suffered ordinary or extraordinary refraction in "IslandCrystal",^{[85]} his geometric description of the extraordinary refraction^{[86]} was theoretically unsupported^{[87]} and empirically inaccurate.^{[88]}
William Hyde Wollaston, in the first of a pair of papers read to the Royal Society of London in 1802,^{[55]} reported his invention of a refractometer based on the critical angle of incidence from an internal medium of known "refractive power" (refractive index) to an external medium whose index was to be measured.^{[89]} With this device, Wollaston measured the "refractive powers" of numerous materials, some of which were too opaque to permit direct measurement of an angle of refraction. Translations of his papers were published in France in 1803, and apparently came to the attention of PierreSimon Laplace.^{[90]}
According to Laplace's elaboration of Newton's theory of refraction, a corpuscle incident on a plane interface between two homogeneous isotropic media was subject to a force field that was symmetrical about the interface. If both media were transparent, total reflection would occur if the corpuscle were turned back before it exited the field in the second medium. But if the second medium were opaque, reflection would not be total unless the corpuscle were turned back before it left the first medium; this required a larger critical angle than the one given by Snell's law, and consequently impugned the validity of Wollaston's method for opaque media.^{[91]} Laplace combined the two cases into a single formula for the relative refractive index in terms of the critical angle (minimum angle of incidence for TIR). The formula contained a parameter which took one value for a transparent external medium and another value for an opaque external medium. Laplace's theory further predicted a relationship between refractive index and density for a given substance.^{[92]}
In 1807, Laplace's theory was tested experimentally by his protégé, ÉtienneLouis Malus. Taking Laplace's formula for the refractive index as given, and using it to measure the refractive index of bees' wax in the liquid (transparent) state and the solid (opaque) state at various temperatures (hence various densities), Malus verified Laplace's relationship between refractive index and density.^{[93]}^{[94]}
But Laplace's theory implied that if the angle of incidence exceeded his modified critical angle, the reflection would be total even if the external medium was absorbent. Clearly this was wrong: in Eqs. (12) above, there is no threshold value of the angle θ_{i} beyond which κ becomes infinite; so the penetration depth of the evanescent wave (1/κ) is always nonzero, and the external medium, if it is at all lossy, will attenuate the reflection. As to why Malus apparently observed such an angle for opaque wax, we must infer that there was a certain angle beyond which the attenuation of the reflection was so small that ATR was visually indistinguishable from TIR.^{[95]}
Fresnel came to the study of total internal reflection through his research on polarization. In 1811, François Arago discovered that polarized light was apparently "depolarized" in an orientationdependent and colordependent manner when passed through a slice of doublyrefractive crystal: the emerging light showed colors when viewed through an analyzer (second polarizer). Chromatic polarization, as this phenomenon came to be called, was more thoroughly investigated in 1812 by JeanBaptiste Biot. In 1813, Biot established that one case studied by Arago, namely quartz cut perpendicular to its optic axis, was actually a gradual rotation of the plane of polarization with distance.^{[96]}
In 1816, Fresnel offered his first attempt at a wavebased theory of chromatic polarization. Without (yet) explicitly invoking transverse waves, his theory treated the light as consisting of two perpendicularly polarized components.^{[97]} In 1817 he noticed that planepolarized light seemed to be partly depolarized by total internal reflection, if initially polarized at an acute angle to the plane of incidence.^{[98]} By including total internal reflection in a chromaticpolarization experiment, he found that the apparently depolarized light was a mixture of components polarized parallel and perpendicular to the plane of incidence, and that the total reflection introduced a phase difference between them.^{[99]} Choosing an appropriate angle of incidence (not yet exactly specified) gave a phase difference of 1/8 of a cycle. Two such reflections from the "parallel faces" of "two coupled prisms" gave a phase difference of 1/4 of a cycle. In that case, if the light was initially polarized at 45° to the plane of incidence and reflection, it appeared to be completely depolarized after the two reflections. These findings were reported in a memoir submitted and read to the French Academy of Sciences in November 1817.^{[100]}
In 1821, Fresnel derived formulae equivalent to his sine and tangent laws (Eqs. (19) and (20), above) by modeling light waves as transverse elastic waves with vibrations perpendicular to what had previously been called the plane of polarization.^{[101]}^{[Note 17]} Using old experimental data, he promptly confirmed that the equations correctly predicted the direction of polarization of the reflected beam when the incident beam was polarized at 45° to the plane of incidence, for light incident from air onto glass or water.^{[102]} The experimental confirmation was reported in a "postscript" to the work in which Fresnel expounded his mature theory of chromatic polarization, introducing transverse waves.^{[103]} Details of the derivation were given later, in a memoir read to the academy in January 1823.^{[104]} The derivation combined conservation of energy with continuity of the tangential vibration at the interface, but failed to allow for any condition on the normal component of vibration.^{[105]}
Meanwhile, in a memoir submitted in December 1822,^{[106]} Fresnel coined the terms linear polarization, circular polarization, and elliptical polarization.^{[107]} For circular polarization, the two perpendicular components were a quartercycle (±90°) out of phase.
The new terminology was useful in the memoir of January 1823,^{[104]} containing the detailed derivations of the sine and tangent laws: in that same memoir, Fresnel found that for angles of incidence greater than the critical angle, the resulting reflection coefficients were complex with unit magnitude. Noting that the magnitude represented the amplitude ratio as usual, he guessed that the argument represented the phase shift, and verified the hypothesis by experiment.^{[108]} The verification involved
This procedure was necessary because, with the technology of the time, one could not measure the s and p phaseshifts directly, and one could not measure an arbitrary degree of ellipticality of polarization, such as might be caused by the difference between the phase shifts. But one could verify that the polarization was circular, because the brightness of the light was then insensitive to the orientation of the analyzer.
For glass with a refractive index of 1.51, Fresnel calculated that a 45° phase difference between the two reflection coefficients (hence a 90° difference after two reflections) required an angle of incidence of 48°37' or 54°37'. He cut a rhomb to the latter angle and found that it performed as expected.^{[110]} Thus the specification of the Fresnel rhomb was completed. Similarly, Fresnel calculated and verified the angle of incidence that would give a 90° phase difference after three reflections at the same angle, and four reflections at the same angle. In each case there were two solutions, and in each case he reported that the larger angle of incidence gave an accurate circular polarization (for an initial linear polarization at 45° to the plane of reflection). For the case of three reflections he also tested the smaller angle, but found that it gave some coloration due to the proximity of the critical angle and its slight dependence on wavelength. (Compare Fig. 13 above, which shows that the phase difference δ is more sensitive to the refractive index for smaller angles of incidence.)
For added confidence, Fresnel predicted and verified that four total internal reflections at 68°27' would give an accurate circular polarization if two of the reflections had water as the external medium while the other two had air, but not if the reflecting surfaces were all wet or all dry.^{[111]}
Fresnel's deduction of the phase shift in TIR is thought to have been the first occasion on which a physical meaning was attached to the argument of a complex number. Although this reasoning was applied without the benefit of knowing that light waves were electromagnetic, it passed the test of experiment, and survived remarkably intact after James Clerk Maxwell changed the presumed nature of the waves.^{[112]} Meanwhile, Fresnel's success inspired James MacCullagh and AugustinLouis Cauchy, beginning in 1836, to analyze reflection from metals by using the Fresnel equations with a complex refractive index.^{[113]} The imaginary part of the complex index represents absorption.^{[114]}
The term critical angle, used for convenience in the above narrative, is anachronistic: it apparently dates from 1873.^{[115]}
In the 20th century, quantum electrodynamics reinterpreted the amplitude of an electromagnetic wave in terms of the probability of finding a photon.^{[116]} In this framework, partial transmission and frustrated TIR concern the probability of a photon crossing a boundary, and attenuated total reflectance concerns the probability of a photon being absorbed on the other side.
Research into the more subtle aspects of the phase shift in TIR, including the Goos–Hänchen and Imbert–Fedorov effects and their quantum interpretations, has continued into the 21st century.^{[44]}
An Indian triggerfish and its total reflection in the water's surface.
Total reflection of a paintbrush by the waterair surface in a glass.
Total internal reflection of a green laser in the stem of a wine glass.