Illustration of the path integral applied to a layer of an inhomogeneous medium. The path integral contains three elements. (1) A collection of virtual paths connecting an input point () with an output point () can be labelled with a parameter , that is, and . (2) All virtual paths going through the optical inhomogeneous medium from the input point () to the output point () have the optical length . (3) The path integral is the optical propagator. The phase function in the neighbourhood of the stationary point , where can be approximated by a parabola with the vertex at point . In this case the optical propagator can be approximated by the function , where is a point eikonal, that is, the optical length of the path which satisfies Fermat’s principle.