This app shows the refraction of a light beam when passing from a medium to another. Use the sliders [math]n_1[/math] and [math]dn[/math] to set the values of the refractive indexes of the media, then move around the position of the light source. Try moving the source below the separation between the two media, too.
See what happens when [math]dn[/math] increases or decreases. Try putting the light source in medium 2 and see what happens the incident angle is wide enough. Can you obtain the same result when the source is in medium 1?