fermat's principle, diffraction, snell's law, refraction
Plotting the paths of light rays travelling through a gradient-index optical fiber.