Write the necessary conditions for the phenomenon of total internal reflection to occur?

(a) Write the necessary conditions for the phenomenon of total internal reflection to occur, (b) Write the relation between the refractive index and critical angle for a given pair of optical media

(a) (i) The rav of light should travel from denser to rarer medium.
(ii) The angle of incidence should be more than the critical angle.