Sub topic 7
Apparent depth and lateral shift in a slab
This chapter assumes you know Snell's law, the refractive index, and the small-angle approximation (sin θ ≈ tan θ ≈ θ for small θ in radians). It also assumes you can handle signed quantities in algebra. Two results come out of it: how deep an object under a transparent medium looks, and how far a ray moves sideways when it crosses a parallel-sided slab.
Why objects look shifted
A ray going from a denser medium to a rarer one bends away from the normal. Your eye traces the rays that reach it back in straight lines. Those lines meet at a point different from the true position of the object. That point is the virtual image, and where it sits gives the apparent position.
Take a coin at the bottom of a pool. The rays leaving the coin bend away from the normal at the water surface. Traced backward, they appear to come from a point above the coin, so the pool looks shallower than it is.
Apparent depth
Let an object O sit at real depth d below a flat surface. The medium holding the object has refractive index n. The observer is in a medium of index 1, such as air, and looks nearly along the normal.
Let a ray from O meet the surface at a point P with angle of incidence i in the medium. It leaves into air at angle r. Let x be the horizontal distance from the foot of the perpendicular to P.
- Real depth: tan i = x / d
- Apparent depth: tan r = x / d'
Snell's law gives n sin i = sin r. For rays close to the normal, the angles are small, so sin ≈ tan. Then:
n (x / d) = x / d'
d' = d / n
So the apparent depth is the real depth divided by the refractive index of the object's medium relative to the observer's medium. In general:
apparent depth = real depth × (nobserver / nobject)
For water (n = 4/3), a pool 2.0 m deep looks 1.5 m deep.
The shift is d − d' = d (1 − 1/n). It is the distance the image appears raised.
Looking from the denser medium
Now put the observer in water and the object in air above it. The formula gives d' = d × (nobserver / nobject) = d × (4/3) / 1. The object looks farther away than it is. A bird 3 m above the surface looks 4 m high to a fish.
Conditions for the formula
- The surface is flat.
- The observer looks almost along the normal. For wide viewing angles the image blurs and the formula fails.
- The image is virtual and sits on the same side of the surface as the object.
Several layers
If light passes through layers of thickness t₁, t₂, ... and indices n₁, n₂, ... stacked below an air observer, each layer adds its own apparent thickness:
apparent depth = t₁/n₁ + t₂/n₂ + ...
This works because the viewing is near-normal, so each interface shifts the image by the same rule in turn.
def apparent_depth(layers):
"""layers: list of (thickness, refractive_index), top layer first.
Observer in air, viewing near the normal."""
return sum(t / n for t, n in layers)
# 6 cm of water (n = 4/3) over 3 cm of glass (n = 1.5)
print(round(apparent_depth([(6.0, 4 / 3), (3.0, 1.5)]), 2)) # 6.5A related case: a slab of thickness t and index n sits between you and an object. The slab raises the image by t (1 − 1/n) toward you. Many NEET problems ask for the shift of a microscope focus, which equals this quantity. A microscope focused on a mark, then on the same mark seen through a slab, must be moved by exactly t (1 − 1/n).
Lateral shift in a slab
Now take a rectangular slab of thickness t and index n, with air on both sides. A ray hits one face at angle of incidence i. Inside, it refracts to angle r. It leaves the opposite face at angle i, parallel to the incoming ray, but displaced sideways. The perpendicular distance between the incident ray's line and the emergent ray is the lateral shift.
Deriving the shift
The ray travels a path length t / cos r inside the slab. Over that path, its direction differs from the original direction by (i − r). The component of this path perpendicular to the original direction is the shift:
s = (t / cos r) × sin(i − r)
This is the full result. It is exact for any angle, with no small-angle assumption.
For small angles, put sin(i − r) ≈ i − r, cos r ≈ 1, and r ≈ i/n:
s ≈ t i (1 − 1/n)
The shift is zero at normal incidence (i = 0). It is largest when the ray grazes the surface. At i = 90°, s = t cos... in practice the closed form is still s = t sin(90° − r) / cos r, which reduces to t.
import math
def lateral_shift(t, n, i_deg):
i = math.radians(i_deg)
r = math.asin(math.sin(i) / n)
return t * math.sin(i - r) / math.cos(r)
# Glass slab, t = 6 cm, n = 1.5, incidence 45 degrees
print(round(lateral_shift(6.0, 1.5, 45.0), 2)) # 2.2Check by hand: sin r = 0.7071 / 1.5 = 0.4714, so r = 28.13°. Then i − r = 16.87°, sin(16.87°) = 0.2902, cos r = 0.8819, and s = 6 × 0.2902 / 0.8819 ≈ 1.97 cm. Run the code, and you get 1.97, not 2.2.
Edge cases
- Normal incidence gives no lateral shift and no change of direction, but the apparent-depth shift still occurs.
- If the slab's two faces are not parallel, the emergent ray is not parallel to the incident ray. That is a prism, covered in a later chapter.
- If the media on the two sides differ, the emergent angle is not i, and the formula needs a new derivation.
- The slab never produces total internal reflection at the second face. The angle inside, r, is the same as the angle at which the ray left the first face's refraction. Since r is below the critical angle, the ray always exits.
Comparing the two effects
| Property | Apparent depth | Lateral shift |
|---|---|---|
| Direction of view | Near normal | Any angle of incidence |
| Result | Image raised by t (1 − 1/n) | Ray displaced sideways by s |
| Zero when | n = 1 | i = 0 or n = 1 |
| Image type | Virtual | Direction unchanged |
Common errors
- Using d' = d × n instead of d / n for an object in the denser medium.
- Treating the lateral shift formula as valid only for small angles. The exact form with cos r holds for all angles.
- Measuring the shift along the slab face instead of perpendicular to the ray.
- Mixing degrees and radians in the small-angle form.
Exercise
A coin lies at the bottom of a tank. A layer of water (n = 4/3) 8 cm deep sits over it. A layer of oil (n = 1.5) 6 cm deep floats on the water. Viewed from above, near the normal, how far below the top surface does the coin appear?
Show answer
Apparent depth = 8 / (4/3) + 6 / 1.5 = 6 + 4 = 10 cm. The coin appears 10 cm below the oil surface.
Exercise
A glass slab (n = 1.5) of thickness 9 cm is placed over a printed word. By how much does the word appear raised when viewed from directly above?
Show answer
Raise = t (1 − 1/n) = 9 × (1 − 2/3) = 3 cm.
Exercise
A ray strikes a glass slab (n = 1.5, t = 6 cm) at 45°. Find the lateral shift.
Show answer
sin r = sin 45° / 1.5 = 0.4714, so r ≈ 28.13°. s = t sin(i − r) / cos r = 6 × sin 16.87° / cos 28.13° = 6 × 0.2902 / 0.8819 ≈ 1.97 cm.