---
title: Reflection, refraction and total internal reflection
heading: How light bends at a boundary, and how fibers trap it
eyebrow: B8 · Lesson 13 · Reflection, refraction and total internal reflection
xp: 40
---

::: hook
Light slows down when it enters glass, and slowing down at an angle makes it bend. Going the other way, from glass into air, it bends away from the perpendicular, and beyond a certain angle it can't get out at all: every bit reflects back inside. That total internal reflection is what keeps light inside an optical fiber for a hundred kilometers, carrying most of the world's internet traffic.

::: play
- A ray hits the boundary between two materials at angle θ₁ from the perpendicular. The arrows show the reflected ray and, if there is one, the refracted ray going into the second material (below).
- Make the second material denser (larger $n_2$). Which way does the ray bend?
- Now light starts in the dense material: set $n_1 = 1.5$ and $n_2 = 1$. Increase the angle. What happens past the critical angle?
:::
:::

```sim plot
view: complex
range: 1.6
axes: along the boundary, across it
slider: n1 = 1..2 step 0.05 = 1
slider: n2 = 1..2 step 0.05 = 1.5
slider: th = 0..89 step 1 = 40 °
arrow: -exp(j*(pi/2 + th*pi/180)) | from: exp(j*(pi/2 + th*pi/180)) | label: incoming | color: ch1
arrow: exp(j*(pi/2 - th*pi/180)) | color: ch3 | label: reflected
arrow: step(1 - n1*sin(th*pi/180)/n2)*exp(j*(-pi/2 + asin(n1*sin(th*pi/180)/n2*step(1 - n1*sin(th*pi/180)/n2)))) | label: refracted | color: ch2
readout: refracted angle θ₂ = asin(n1*sin(th*pi/180)/n2)*180/pi °
readout: critical angle = asin(n2/n1)*180/pi °
```

::: predict
## Light travels from glass (n = 1.5) toward air at 50° from the perpendicular. What happens?

- [ ] It passes into the air, bent toward the perpendicular
- [ ] It passes into the air, bent away from the perpendicular
- [x] It all reflects back into the glass
- [ ] It travels along the surface

::: reveal
It all reflects. Snell's law would need $\sin\theta_2 = 1.5 \sin 50° = 1.15$, which is impossible, so no refracted ray exists. The critical angle for glass to air is $\arcsin(1/1.5) = 41.8°$; beyond it, the reflection is total, losing nothing at all. Fibers and prism binoculars use this lossless mirror.
:::
:::

::: nameit
## At a boundary

**Reflection.** The reflected ray leaves at the same angle it arrived: $\theta_r = \theta_1$, measured from the **normal** (the perpendicular to the surface).

**Refraction.** The transmitted ray bends according to **Snell's law**:

$$n_1\sin\theta_1 = n_2\sin\theta_2$$

with $n = c/v$ the refractive index of each material (B7.5). Going into a slower material (larger n), light bends toward the normal; into a faster one, away from it. The wave's frequency stays the same, so its wavelength shrinks in the slower material: $\lambda_2 = \lambda_0/n_2$.

**Why it bends.** A wavefront hitting the surface at an angle has one edge enter the slow material first; that edge slows down while the rest keeps going, so the front swings round, like a column of marchers wheeling as one end steps onto mud.

**Total internal reflection.** Going from dense to less dense ($n_1 > n_2$), $\sin\theta_2$ reaches 1 at the **critical angle**

$$\sin\theta_c = \frac{n_2}{n_1}$$

Beyond it, nothing is transmitted.

**Optical fibers.** A glass core (say $n_1 = 1.475$) is surrounded by cladding of slightly lower index ($n_2 = 1.460$). Light striking the boundary beyond the critical angle stays in the core indefinitely. The range of entry angles that get trapped is set by the **numerical aperture**:

$$\text{NA} = \sin\theta_\text{max} = \sqrt{n_1^2 - n_2^2}$$

Modern single-mode fibers lose only about 0.2 dB per kilometer at 1550 nm, so a signal keeps half its power after 15 km.

**Partial reflection.** Even below the critical angle, some light reflects: about 4% at an air-glass surface at normal incidence, $\left(\frac{n_1 - n_2}{n_1 + n_2}\right)^2$. Anti-reflection coatings on lenses cancel it by interference.
:::

::: example
## Light in air hits water (n = 1.33) at 40° from the normal. At what angle does it continue?

::: solution
1. **Snell's law.**
   $$\begin{aligned} \sin\theta_2 &= \frac{\sin 40°}{1.33} \\ &= 0.483 \end{aligned}$$
2. **The angle.** So $\theta_2 = 28.9°$: bent toward the normal, as always when going into the slower material.

**Answer:** it continues at 28.9° from the normal.
:::
:::

::: example
## A fiber has a core of index 1.475 and cladding of 1.460. Find its critical angle at the core-cladding boundary and its acceptance angle from air.

::: solution
1. **Critical angle.**
   $$\sin\theta_c = \frac{1.460}{1.475}$$
   so $\theta_c = 81.8°$: light must graze the boundary to be trapped.
2. **Numerical aperture.**
   $$\begin{aligned} \text{NA} &= \sqrt{1.475^2 - 1.460^2} \\ &= 0.21 \end{aligned}$$
3. **Acceptance angle.** So light entering within 12.1° of the axis ($\sin^{-1} 0.21$) is guided.

**Answer:** the critical angle is 81.8°, and light within 12.1° of the axis is accepted.
:::
:::

::: example
## A diver 2 m below a calm pool's surface looks up. Through how wide a circle does the whole sky appear? And how deep does the pool look to someone looking straight down from above?

::: solution
1. **Critical angle.** Light from the horizon enters at grazing incidence and bends to the critical angle:
   $$\begin{aligned} \theta_c &= \sin^{-1}\frac{1}{1.33} \\ &= 48.8° \end{aligned}$$
2. **Snell's window.** So the whole sky is squeezed into a circle above the diver of radius
   $$\begin{aligned} r &= 2\tan 48.8°\ \text{m} \\ &= 2.28\ \text{m} \end{aligned}$$
   This is **Snell's window**. Outside it the surface acts as a mirror, reflecting the pool's floor.
3. **Apparent depth.** Looking straight down, the pool appears
   $$\begin{aligned} \frac{h}{n} &= \frac{2}{1.33}\ \text{m} \\ &= 1.50\ \text{m} \end{aligned}$$
   deep, a quarter shallower than it is, which is why pools look safer than they are.

**Answer:** the sky fills a circle 2.28 m in radius above the diver, and from above the pool looks 1.50 m deep.
:::
:::

::: check
given: n1 = 1 | 1.33; n2 = 1.5 | 1.7; th = 40 | 60 | 70
answer: asin(n1*sin(th*pi/180)/n2)*180/pi
unit: °
tolerance: 0.5%

## Light goes from a material with n = {n1} into one with n = {n2}, at {th}° from the normal. At what angle does it continue?

::: right
Right. $\sin\theta_2 = (n_1/n_2)\sin\theta_1$: {answer}.
:::

::: misses
- [n1*sin(th*pi/180)/n2*180/pi] That's $\sin\theta_2$ itself, turned into degrees. Take the arcsine.
- [th*n1/n2] Snell's law relates the sines, not the angles.
- [any] Not yet. $n_1\sin\theta_1 = n_2\sin\theta_2$.
:::
:::

::: check
given: n1 = 1.33 | 1.5 | 2.4
answer: asin(1/n1)*180/pi
unit: °
tolerance: 0.5%

## What is the critical angle for light going from a material with n = {n1} into air?

::: right
Right. $\sin\theta_c = 1/n_1$: {answer}.
:::

::: misses
- [acos(1/n1)*180/pi] That's measured from the surface. Angles here are measured from the normal.
- [any] Not yet. $\sin\theta_c = n_2/n_1$.
:::
:::

::: check
given: n1 = 1.475 | 1.48; n2 = 1.46 | 1.465
answer: sqrt(n1^2 - n2^2)
tolerance: 1%

## A fiber has a core index of {n1} and a cladding index of {n2}. What is its numerical aperture?

::: right
Right. $\sqrt{n_1^2 - n_2^2}$ = {answer}.
:::

::: misses
- [n1 - n2] Use the difference of the squares, then the square root.
- [n1^2 - n2^2] Take the square root.
- [any] Not yet. $\text{NA} = \sqrt{n_1^2 - n_2^2}$.
:::
:::

::: check
given: n = 1.33 | 1.5 | 3.5
answer: 100*((n - 1)/(n + 1))^2
unit: %
tolerance: 0.5%

## What percentage of light reflects at normal incidence from air onto a surface with n = {n}?

::: right
Right. $\left(\frac{n - 1}{n + 1}\right)^2$ = {answer}.
:::

::: misses
- [100*(n - 1)/(n + 1)] Square the ratio: reflected power goes as the field squared.
- [any] Not yet. $R = \left(\frac{n_1 - n_2}{n_1 + n_2}\right)^2$.
:::
:::

::: check
given: L = 10 | 50 | 100; a = 0.2 | 0.35
answer: L*a
unit: dB
tolerance: 0.5%

## A fiber loses {a} dB/km. How much does a {L} km run lose?

::: right
Right. {answer}: losses in dB simply add.
:::

::: misses
- [any] Not yet. Total = loss per km × length.
:::
:::

::: check
kind: parts
given: n1 = 1 | 1.33; n2 = 1.5 | 1.7; th = 20 | 45

## Light crosses from a medium of index {n1} into one of index {n2} at {th}° from the normal.

::: part
answer: asin(n1*sin(th*pi/180)/n2)*180/pi
unit: °
tolerance: 0.5%

### At what angle does it continue?

::: misses
- [any] $n_1\sin\theta_1 = n_2\sin\theta_2$.
:::
:::

::: part
answer: asin(n1/n2)*180/pi
unit: °
tolerance: 0.5%

### Going back the other way, what is the critical angle?

::: misses
- [any] $\sin\theta_c = \frac{n_1}{n_2}$.
:::
:::
:::

::: check
kind: derivation
vars: n = 1.2..2, h = 0.1..10

## Looking into water of index n, depth h.

::: step
answer: h/n

### Viewed straight down, how deep does it seem?
:::

::: step
answer: h*tan(asin(1/n))

### Seen from below at depth h, what is the radius of Snell's window?
:::

::: right
Right. Both come from Snell's law: one at small angles, the other at the critical angle.
:::
:::

::: explain
## Why does light bend when it crosses into glass at an angle, but not when it hits the glass straight on?

::: model
Light travels more slowly in glass. A wavefront meeting the surface at an angle reaches it at one side first, and that side slows down while the rest is still moving at full speed in air, so the wavefront pivots and the direction of travel bends toward the normal. Hitting the surface straight on, the whole wavefront slows at the same moment, so it simply carries on in the same direction, just slower.
:::
:::

::: practice

::: check
given: lam = 850 | 980 | 1310 | 1480 | 1550 | 1625; n = 1.47
answer: lam/1.47
unit: nm
tolerance: 0.5%

## Light of {lam} nm (in vacuum) enters glass with n = 1.47. What is its wavelength inside?

::: misses
- [lam*1.47] It shortens: divide by n.
- [any] $\lambda = \lambda_0/n$.
:::
:::

::: check
given: n1 = 1.5; th = 30 | 45 | 60
answer: 1 - step(1.5*sin(th*pi/180) - 1)
tolerance: 0.5%

## Light inside glass (n = 1.5) hits the glass-air surface at {th}°. Does any of it get out? Answer 1 for yes, 0 for no.

::: misses
- [step(1.5*sin(th*pi/180) - 1)] Compare with the critical angle of 41.8°.
- [any] It escapes only below the critical angle.
:::
:::

::: check
given: NA = 0.3 | 0.5 | 0.7
answer: asin(NA)*180/pi
unit: °
tolerance: 0.5%

## A fiber has NA = {NA}. What is the widest angle at which light can enter and be guided?

::: misses
- [NA*180/pi] Take the arcsine.
- [any] $\theta_\text{max} = \arcsin(\text{NA})$.
:::
:::
:::
