Sub topic 7
Apparent depth and lateral shift through a slab
This chapter covers two effects of refraction at a flat boundary: an object under a transparent medium looks closer to the surface than it is, and a ray crossing a parallel-sided slab leaves shifted sideways. I assume you know Snell's law, the small-angle approximations (sin θ ≈ tan θ ≈ θ), and the sign of angles measured from the normal.
Why the object seems raised
Light from a point object O in a dense medium (index n₁) spreads in all directions. A ray that reaches the surface bends away from the normal when it enters a rarer medium (index n₂). The observer's eye traces the refracted rays backward in straight lines. These lines meet at a point I that is not at O. That point is the image, and its depth below the surface is the apparent depth.
Take an object at real depth d below a flat surface. A ray leaves O at angle r to the normal and meets the surface at horizontal distance x = d tan r from the point directly above O. After refraction it makes angle i with the normal, where n₁ sin r = n₂ sin i. Extending the refracted ray backward gives apparent depth
d_app = x / tan i = d · (tan r / tan i)
This depends on the viewing angle, so rays from one point do not meet at one point. The image is smeared. For a viewer looking almost straight down, r and i are small, so tan r / tan i ≈ sin r / sin i = n₂ / n₁. Then:
d_app = d · (n₂ / n₁)
Here n₁ is the index of the medium containing the object and n₂ is the index of the medium containing the observer. For an object in water seen from air, n₂ / n₁ = 1 / n, so d_app = d / n.
Worked cases for the normal-viewing formula
The same formula covers three situations, and the only thing that changes is which index is on top.
- Object in water, observer in air (n = 4/3). A coin 12 cm deep appears at 12 / (4/3) = 9 cm.
- Object in air, observer in water. A bird 20 cm above the surface looks 20 × 4/3 ≈ 26.7 cm high to a fish. The object is in the rarer medium, so it looks farther away.
- Layers of different media. Add the apparent depth of each layer. For layers of thickness tᵢ and index nᵢ seen from air:
d_app = Σ tᵢ / nᵢ
A 3 cm glass layer (n = 1.5) over 8 cm of water (n = 4/3) gives 3/1.5 + 8/(4/3) = 2 + 6 = 8 cm, so the bottom looks 8 cm below the top surface.
The layer sum works because the image formed by each lower interface acts as the object for the next interface up.
Shift caused by inserting a slab
Suppose a slab of thickness t and index n (in air) sits between you and a small object. You look straight at the object through the slab. The part of the path inside the slab appears to have length t/n, while the real distance is t. The object therefore appears to move toward you by
Δ = t (1 − 1/n)
Three points matter here:
- The shift does not depend on where the slab sits between you and the object, or on how far the object is from you.
- The shift is toward the observer, for n > 1. A thick glass block placed on a printed page makes the print look raised.
- If the slab is a different medium from the surroundings, replace n with nslab / nsurroundings.
For a 4.5 cm slab with n = 1.5, Δ = 4.5 × (1/3) = 1.5 cm.
Lateral shift of an oblique ray
Now send a ray at angle of incidence i through a parallel-sided slab. It enters, bends toward the normal to angle r, then bends back on leaving. The emergent ray is parallel to the incident ray, because the two faces are parallel and the exit angle equals i. But the ray is displaced sideways by the lateral shift x.
The ray travels a path of length t / cos r inside the slab. It is deviated by angle (i − r) from its original direction. The perpendicular distance between the incident line and the emergent line is:
x = t · sin(i − r) / cos r
Special cases:
- At i = 0 the shift is zero. The ray goes straight through.
- For small angles, x ≈ t · i · (1 − 1/n). This agrees with the normal-view shift formula, with the angle i as a factor.
- At grazing incidence (i → 90°), r becomes the critical angle c. Then x = t · sin(90° − c) / cos c = t. The shift can never exceed the thickness of the slab.
- Increasing n or t increases the shift.
Computing it
The script below checks the formulas with numbers. It computes the layer sum, the exact oblique apparent depth, and both slab shifts for a 6 cm glass slab.
import math
def layered_apparent_depth(layers):
"""Near-normal viewing from air. layers = [(thickness, index), ...]."""
return sum(t / n for t, n in layers)
def oblique_apparent_depth(d, n_obj, n_obs, r_deg):
"""Exact apparent depth for a ray leaving the object at angle r (degrees) in the object's medium."""
r = math.radians(r_deg)
i = math.asin(n_obj * math.sin(r) / n_obs)
return d * math.tan(r) / math.tan(i)
def normal_slab_shift(t, n):
return t * (1 - 1 / n)
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)
print(layered_apparent_depth([(3, 1.5), (8, 4 / 3)])) # 8.0
print(round(oblique_apparent_depth(12, 4 / 3, 1.0, 30), 2)) # 7.75 (normal view gives 9.0)
print(round(normal_slab_shift(6, 1.5), 2)) # 2.0
print(round(lateral_shift(6, 1.5, 45), 2)) # 1.98Notice that at 30° in the water the coin appears at 7.75 cm, not 9 cm. The simple formula is an approximation that holds near the normal.
Common errors
- Inverting the ratio. Remember that the observer's index goes on top. A common check is that an object in a denser medium always looks closer to the surface when viewed from a rarer medium.
- Using n for a slab in water. If the slab is glass in water, use nglass / nwater, not n_glass.
- Treating the slab shift as lateral. Δ = t(1 − 1/n) is along the line of sight for near-normal viewing. The lateral shift x applies to an oblique ray.
- Adding real depths in a stack. Divide each thickness by its own index before adding.
- Forgetting the observer's medium. A fish looking up through the surface sees a raised bird. A fish looking at another fish in the same water sees the true distance, because nobserver = nobject.
Exercise
A tank holds 16 cm of water (n = 4/3) under a 6 cm layer of oil (n = 1.5), and you look straight down from air. (a) How deep does the bottom of the tank appear below the top of the oil? (b) A 3 cm thick glass slab (n = 1.5) is then placed on the tank bottom. By how much does the bottom appear to rise?
Show answer
(a) Apparent depth = 6/1.5 + 16/(4/3) = 4 + 12 = 16 cm. (b) The shift is t(1 − nwater/nglass) because the slab sits in water. This gives 3 × (1 − (4/3)/1.5) = 3 × (1 − 0.889) = 3 × 0.111 = 0.33 cm. The bottom appears about 0.33 cm higher.
Exercise
A ray strikes a 10 cm thick glass slab (n = 1.5) at grazing incidence (i → 90°). What is the lateral shift of the emergent ray, and why can it not be larger?
Show answer
At i = 90°, sin r = 1/1.5, so r equals the critical angle c. Then x = t sin(90° − c) / cos c = t cos c / cos c = t = 10 cm. The shift is largest here because it grows with i, and i cannot exceed 90°.