To find the lateral shift \(d\) of a ray refracted through a parallel-sided glass slab of thickness \(h\), we use the geometry of refraction. When a light ray enters a glass slab with an angle of incidence \(i\) and refracts at an angle \(r\), the path of the light ray inside the slab creates a lateral shift.
The lateral shift \(d\) is given by:
\(d = \frac{h \sin(i-r)}{\cos r}\)
Here's how we derive the formula:
\(d = h \sec r \cdot \sin(i-r) = \frac{h \sin(i-r)}{\cos r}\)
Therefore, the correct answer is \(\frac{h \, \sin(i - r)}{\cos r}\).