Another Optimization problem...
leading to Snell's Law
1.
The lifeguard's conundrum
2. Set-up of the optimization problem.
a) choose names for variables
b) set up the constraint (or pre-choose variables well )
c) write the function to be minimized in terms of the constraint
2. Minimize, by setting the derivative of the function to zero.
3. Reality check your solution--- where is the guard crossing vs where you expect them to.
More on Snell, Fermat, .. etc :
here