Sub topic 7
Apparent depth and lateral shift through a slab
This chapter assumes you know Snell's law, the small-angle approximation (sin θ ≈ tan θ ≈ θ), and the Cartesian sign convention for distances. Here, refraction at a flat boundary moves the apparent position of an object. A parallel-sided slab also shifts a ray sideways.
Apparent depth
An object sits at real depth d in a medium of refractive index n₂. An observer in a medium of index n₁ looks at it almost along the normal. The rays leaving the object bend at the flat surface, and they appear to come from a different depth.
For near-normal viewing, Snell's law with small angles gives:
apparent depth = real depth × (n₁ / n₂)
Here n₂ is the medium that holds the object, and n₁ is the medium that holds the observer. For an observer in air (n₁ = 1) looking into water or glass, the object looks closer by a factor of n.
The small-angle condition matters. For rays far from the normal, the image is not a single point, and the formula no longer holds.
Shift through a slab
Look normally through a slab of thickness t and index n. The object appears to move toward you by:
shift = t (1 − 1/n)
This shift does not depend on where the slab sits between you and the object. It is the same for a glass plate on a table and a plate held in the air.
Lateral shift of a ray
A ray enters a slab at angle of incidence i and refracts at angle r. It leaves parallel to its original direction, but displaced sideways by:
s = t sin(i − r) / cos r
The shift is zero when i = 0. It grows with t, with n, and with i.
import math
def apparent_depth(real_depth, n_medium, n_observer=1.0):
"""Near-normal viewing: apparent = real * n_observer / n_medium."""
return real_depth * n_observer / n_medium
def lateral_shift(t, n, i_deg):
"""Sideways displacement of a ray through a slab of thickness t in air."""
i = math.radians(i_deg)
r = math.asin(math.sin(i) / n)
return t * math.sin(i - r) / math.cos(r)
print(round(apparent_depth(12, 1.33), 2)) # 9.02
print(round(lateral_shift(6, 1.5, 45), 2)) # 1.97
print(round(6 * (1 - 1 / 1.5), 2)) # 2.0, normal-view shift of a 6 cm slabThe coin in 12 cm of water appears 9.02 cm deep. The 6 cm glass slab at 45° displaces the ray by 1.97 cm. Viewed head-on, the same slab raises the object by 2.0 cm.
Common errors
- Swapping n₁ and n₂. Apparent depth is real depth times (index of observer's medium) / (index of object's medium). If the observer is underwater looking at an object in air, the object looks farther away, not nearer.
- Using the formula at large angles. The result holds only for rays close to the normal.
- Confusing the two shifts. Normal viewing gives a shift along the line of sight, t(1 − 1/n). An oblique ray gives a sideways shift perpendicular to its path, t sin(i − r)/cos r.
- Stacked layers. For layers of thickness t₁, t₂ and indices n₁, n₂ viewed from air, the apparent depth is t₁/n₁ + t₂/n₂. Add the individual apparent depths.
Exercise
A coin lies at the bottom of a tank holding 20 cm of water (n = 4/3). A 6 cm thick glass slab (n = 1.5) rests on the water surface. Viewed from directly above, at what depth below the top of the slab does the coin appear?
Show answer
Use the layered formula, with each layer viewed from air. Apparent depth = 6/1.5 + 20/(4/3) = 4 + 15 = 19 cm.
Exercise
A ray strikes a glass slab (n = 1.5, thickness 3 cm) at 30°. Find the lateral shift.
Show answer
sin r = sin 30° / 1.5 = 0.3333, so r ≈ 19.47° and cos r ≈ 0.9428. i − r ≈ 10.53°, and sin(10.53°) ≈ 0.1828. s = 3 × 0.1828 / 0.9428 ≈ 0.58 cm.