Fermat's Principle
From biophysics wiki
Fermat's principle or the principle of least time, describes the way beam of light takes through different media. The light chooses the path that takes the least time from one point to another. Consider a wave travelling through two different media $1,2$ with the corresponding speed $v_1$ and $v_2$ ($v_1>v_2$).
