If a mathematician wants to cross a road
blog.matthen.com
blog.matthen.com
Does Fermat's principle allow for variable refractions?
Yes, and that's where is gets interesting! Light will take a curved path through a tank of salt water, because the salinity, and through that the index of refraction, will not be constant but will be a continuous function of the depth.
Yes, and a common example is how light from the sky can bend to run through a layer of hot air right over hot sand, causing a mirage.
However Fermat's principle is a local rule. That is, there should be no way to improve the path by adjusting it a little bit, but it might not be a global minimum. The classic example demonstrating this is a mirror. The light bouncing off the mirror often had a shorter path available (just go directly there), but there was no local variant of the path which was better than the one that it took.
Fermat's principle holds for different things for different reasons. For instance light follows the principle because of how the wave front expands. Ants follow the principle because ants that followed a faster path tend to lay a fresher scent trail. But my other comments remain true regardless of why it holds for any particular type of thing.
As a contrived scenario to help more intuitively understand refraction, it's nice, and I think that was what he was going for. It's how I read it.
http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjourna...
It tries to boil the problem down to a 'discomfort' level, where what really matters is how long I think I can comfortably stay on the road, how fast I can cross the road, and how long I expect to wait to cross the road.
Let's assume all sections of the road are equally good for crossing (no pedestrian crossings etc). The road will then have a 'maximum angle of attack' which is a function of how fast I am travelling and how long I can stay on the road. I will walk in roughly the same pattern as in the link HOWEVER I will never cross at an angle greater than the maximum and I will potentially cross earlier or later depending on gaps in the traffic; it's faster to keep walking then to wait for a gap in traffic.
The main shortcoming in the model is that there is no upper limit on the angle of attack, and so it is easy to find example situations that are unrealistic.
So yeah, I agree that it's oversimplified. Yes, it doesn't consider pedestrian crossings, but what about the cars, their acceleration, and the lights at those crossings?
Also I never cross in a straight line. Most of the time I cross in an s-curve shape, meaning the road itself has a variable index of refraction for me.
Because you're thinking "physics like" not "math like"
In physics, yes, you have the refraction factor, etc, and this calculation works.
But it also works (from the math point of view) saying that light will take the path that takes the least amount of time for it to cross between two points.
Light will travel in the fastest way possible under a certain set of well known constraints. I think trying to apply this same model to how 'mathematicians' cross the road is flawed, although it is a good approximation when the start and end point are not displaced too far along the road.
As a simple counter example, think of a laser pointing along the length of a very long piece of glass. If you angle the laser slightly down, so that it hits the glass at a very small angle of attack, the laser will travel for a long distance inside the glass before exiting. It will not travel straight through the glass, but neither will it 'cross' to the other side very quickly. Regardless of the difference in the refractive index of the air and glass, you can always point the laser at an angle that causes the laser beam to travel for an arbitrary length of time in the glass.
Compare this to a mathematician walking along a very long highway. The time they will take to cross the road is NOT dependent on JUST how far they are walking. If it has heavy traffic then they will cross just as soon as their is a suitable gap. Extending the length of their journey (equivalent to decreasing the angle of attack for the laser) does not continue to increase the time they take crossing the road unboundedly.
The model is flawed for this obvious counter example, but it is flawed in simpler situations as well, mostly because the reality is that every section of road and every moment in time are not as ideal as each other for crossing the road.
Not that light could have a motive anyway, but this strikes me as more of a passing fancy than a rationale.
Your response is a little bit ill-formed because Fermat's principle is about the time to travel between two points. You assert that light is not "taking the shorter path", but in doing so you are changing the destination point or else leaving it undefined. Instead, pick a start point, pick an end point, and see how light travels between those two points, with respect to your cube of glass.
That's kind of the point I think, because photons don't 'pick' a destination point before travelling.
So the concept of a photon 'picking' a destination point, or not, is mired in an assumption that isn't true (that there would even be anything to pick).