A ray of light passes from a denser medium to a rarer medium at an angle of incidence . The reflected and refracted rays make an angle of 90 with each other. The angle of reflection and refraction are respectively and . The critical angle is given by,

A ray travels from denser medium to rarer medium at angle of incidence . The angle of reflection equals the angle of incidence, so .
The reflected and refracted rays are perpendicular to each other, so:
By Snell's law at the interface (denser to rarer):
where is the refractive index of the denser medium and is that of the rarer medium. Assuming the rarer medium is air ():
The critical angle is defined by , so:
Tagged Refraction at plane surfaces, Snell's law and apparent depth. Machine-assigned, so read it as a strong shortlist rather than a verdict.