At the second face the ray must meet the surface exactly at the critical angle: r2=θc, where sinθc=μ1.
For any prism, r1+r2=A, so r1=A−θc.
At the first face, Snell's law gives
sini=μsinr1=μsin(A−θc)=sinθcsin(A−θc)
i=sin−1[sinθcsin(A−θc)]
