A ray of light from a denser medium strikes a rarer medium at angle of incidence i. The reflected and refracted rays make an angle of with each other. The angles of reflection and refraction are
respectively. The critical angle is

Applying Snell's Law for refraction,
From the given condition,
Solution of (1) and (2) yields,
According to the Law for refraction;
Using (3) and (4) we obtain
Also,
