2.5.4 · D1Optics

Foundations — Snell's law — derivation from Fermat's principle

2,859 words13 min readBack to topic

Before you can read the parent derivation of Snell's law, every symbol it uses must first mean something you can see. This page builds each one from absolute zero, in the order they depend on each other.


1. A point and a straight line (the stage)

Everything happens on a flat drawing. Two special points live on it:

  • — where the light starts (up in the fast material).
  • — where the light ends (down in the slow material).

Between them runs a flat horizontal line: the boundary (also called the interface or surface). Above it is material 1; below it is material 2.

We need , , and the boundary because the whole question is: "starting at , ending at , where should light cross the line?"


2. Distance , and speed

The picture: two dots joined by a segment of length ; a little runner covers it in time .

We need because the whole "least time" story is about light being fast in some materials and slow in others. Different speeds are the reason it bends at all.


3. Time , and the rule

Why divide distance by speed? Because if you cover metres each second, then to cover metres you simply need seconds.

Look at the figure below. The dashed navy line is the shortest distance (a straight line from to ). The solid magenta line is the least time path: it crosses the boundary farther along so light spends more length in the fast top material and less in the slow bottom material. The kink at the boundary is exactly what Snell's law will pin down.

Figure — Snell's law — derivation from Fermat's principle

4. The speed of light , and refractive index (and , )

Inside glass or water, light is slower than . We measure "how much slower" with one number:

Because Snell's law compares two materials, we tag the index with a number to say which material we mean:

The picture below: a bar labelled at the top (full speed), and a shorter bar below it — the bigger the , the shorter the bar. Water's bar is shorter than air's; glass's is shorter still.

Why the topic needs (and both , ): it lets us rewrite the awkward speed as , so the time in medium 1 becomes and in medium 2 becomes . See Refractive Index.

Figure — Snell's law — derivation from Fermat's principle

5. Optical path length:

Since and is a fixed constant, minimizing time is the same as minimizing the quantity . That quantity gets its own name:

Picture: a real ruler of length , but the material stretches the ruler by a factor when you count the "cost". See Optical Path Length.

Why: it removes the constant from every calculation, so we compare paths using pure lengths and indices — no seconds needed.


6. The geometry variables: , , , , and

The derivation slices the trip into two straight legs and gives every measurement a name.

Look at the figure below to see all five at once: and are the vertical legs, and split the total width , and each slanted magenta segment is an .

Figure — Snell's law — derivation from Fermat's principle

7. The right triangle and its sides

To measure angles we need a right triangle — a triangle with one square () corner.

Look at the figure below. Each leg of light forms exactly such a triangle: a vertical side ( or ), a horizontal side ( or ), and the slanted ray as the longest side.

Figure — Snell's law — derivation from Fermat's principle

The topic needs these names because the sine of an angle is built from them, and the whole derivation ends by reading these triangles.


8. The normal, and the angle

The picture: the flagpole (normal) stands up; the ray leans away from it by angle . A ray hugging the pole has small ; a ray nearly flat along the water has near .


9. The sine,

Now that we have a triangle and an angle from the normal, we can define the tool that connects them.

In the derivation the run is (or ) and the hypotenuse is the path length , so

The figure in Section 7 shows this ratio drawn on the triangle: the horizontal run over the slanted ray .


10. The square root, and

The picture: the ray from to the crossing point is the slanted hypotenuse of a right triangle with a vertical leg (the height of above the line) and a horizontal leg (how far sideways). Its length is .

Why the topic needs it: it writes each straight path length in terms of the one thing light gets to choose — the crossing point .


11. The total time

We now add up the two legs into a single quantity we can minimize.

The picture: a U-shaped curve of plotted against ; the true light path sits at the very bottom, where the curve is flat.


12. Minimize, and the derivative

Why this tool? Because "least time" means "bottom of the U", and the mathematical name for "the bottom, where the curve is flat" is the place where the derivative is zero. The derivative is the machine that finds that spot exactly, without guessing. This is the single calculus step the whole derivation rests on — and it acts on the total time , not on a single leg.


Prerequisite map

Distance d

Speed v

Leg time t = d over v

Speed of light c

Index n = c over v with n1 n2

Optical path length n times d

Geometry a b w x ell

Right triangle sides

Pythagoras square root

Normal and angle theta

sine = opposite over hypotenuse

Total time T = t1 plus t2

Minimize dT dx = 0

Snell's Law

Note the two arrows into from both and the optical path length: , so the constant is never dropped from the definition — only later, when both sides of share a that cancels.


Equipment checklist

Test yourself — cover the right side and answer before revealing.

What does the refractive index tell you physically?
How many times slower light travels in a material than in vacuum, .
What do the subscripts in and mean?
They label the two media: is the index above the boundary (medium 1), below it (medium 2).
Write time in terms of distance and speed.
.
Why does minimizing time equal minimizing ?
Because and is a fixed constant.
What are , and in the setup?
= height of above the boundary, = depth of below it, = total horizontal span from to .
What is and how long is the first leg?
is one straight leg's length; .
Define on a right triangle.
.
From which line is the angle measured, and what is its range?
From the normal; .
What happens at normal incidence ?
, so the ray passes straight through without bending.
What is the length of a ray with legs and ?
(Pythagoras).
What is the domain of the crossing point ?
.
Write the total time .
.
What does mean geometrically?
The slope of the total-time curve is zero — the bottom of the valley, i.e. least time.
Compute and say what ray it describes.
; a ray lying flat along the surface (grazing incidence).

Connections