The refractive index of medium 2 with respect to medium 1 is given by the ratio of the speed of light in medium 1 and the speed of light in medium 2. This is usually represented by the symbol n21. This can be expressed in an equation form as
n21=Speed of light in medium 1Speed of light in medium 2=v1v2