When light enters from medium P to medium Q, it is given that the value of sin isin r is less than 1, where i and r are the angle of incidence and refraction respectively. This means that:
P is optically denser than Q
Given: (sin isin r) < 1
⇒ sin i < sin r
⇒ Angle of incidence < Angle of refraction.
It means that when light ray travels from medium P to medium Q, the ray bends away from the normal.
We know that when light ray travels from denser to rarer medium, it bends away from the normal.
Hence, medium P is optically denser than Q.