In my studies of geometrical optics, I have encountered variations of the claim that, from what I recall, when the amplitude of the wave is changing slowly, the ray equation is a valid solution to Maxwell's equations, and can therefore be used to evaluate optical systems, or something of the sort. However, this is never elaborated upon, and I'm unsatisfied with my understanding (or lack thereof) of what this really means.
For instance, often accompanying the aforementioned claim is a diagram such as the following:
If my understanding is correct, the ray equation is not valid along the boundaries of the wavefronts in the above diagram, since that's where refraction occurs. But I don't actually understand why this is the case, or, put another way, I don't really appreciate what this means.
Furthermore, I'm not completely sure what qualifies as a boundary of a wavefront in the above diagram. This is made more confusing by the fact that the author of the diagram has drawn lines depicting rays along (what I'm presuming are) the boundaries of the wavefronts, despite the fact that, as I just said, the ray equation is invalid along the boundaries of the wavefronts.
And lastly, what is happening at the focus in such a diagram? Are foci actually boundaries, and, therefore, the ray equation is invalid at foci? And, tying this back into the aforementioned claim, what happens to the amplitude of the wave at such a point?
I would greatly appreciate it if people could please take the time to explain all of this.
EDIT:
I just found the following on page 388 of Electromagnetic Fields, by Jean G. Van Bladel:
An important example of failure occurs when the rays converge to a focus, where the theory predicts an infinite value for the power density of $I$ in (8.101).
This still isn't an explanation, but at least it confirms what I suspected: The ray equation is invalid at foci.