I admit that this was from a homework question, but I'm having huge trouble wrapping my head around why the optical path length needs to be the same for a Lens that focuses every single ray emanating from a point to a single point:
Here, if we assume $O$ to be the origin, $P$ to be $(0,0,z_1)$ and $I$ to be $(0,0,z_2)$, the refractive indices of the two media being $n_1$ and $n_2$ respectively (from left to right), then, on equating the optical path lengths for any ray of light that is incident on that surface at $(x,y,z)$, we get the equation of the surface to be:
What I can't understand is why we are equating the optical path lengths, other than the phases of every ray of light reaching point $I$ being the same.
How does it satisfy Snell's law and end up resulting in every light ray reaching the exact same point $I$?
If this is a consequence of Fermat's Principle, please explain to me how it is so, because I'm not able to understand, and everywhere I look, this seems to be taken for granted as an obvious explanation.
If this is already available in another question anywhere, please link me to it and flag as dupe.