What is necessary to achieve total internal reflection?

Total internal reflection occurs when a light ray reaches the boundary between two mediums with a higher refractive index and a lower refractive index at an angle greater than the critical angle. The critical angle is the angle of incidence in the higher refractive index medium at which the refracted angle in the lower refractive index medium is 90 degrees. To achieve total internal reflection, the following conditions must be met:

1. The light must travel from a medium with a higher refractive index to a medium with a lower refractive index.
2. The angle of incidence must be greater than the critical angle, which can be calculated using the formula sin θc = n2/n1, where θc is the critical angle, n1 is the refractive index of the first medium, and n2 is the refractive index of the second medium.
3. The interface between the two media must be smooth and free from any impurities or irregularities that could cause scattering or absorption of the light.