Normalized continuous-index ray equation
Only the component of the index gradient perpendicular to the current direction curves the ray. Fourth-order Runge-Kutta advances both vectors and the implementation renormalizes direction after each step.
Optics 013 · Ray worlds, boundaries, and natural optics
A volumetric GRIN observatory solves the normalized vector ray equation rather than joining decorative splines. An exact parabolic slab exposes sinusoidal pitch and relay planes, a three-dimensional Luneburg sphere focuses a collimated bundle on its opposite surface, and a Maxwell fisheye maps point-source rays to a stereographic antipode. Analytic trajectories, public profiles, focus residuals, and Noether invariants audit the same rendered paths.
Physics tutorial
BackgroundA gradient-index element bends a ray everywhere, even when no material interface is crossed. With arclength as the path parameter, the governing equation is . The apparatus integrates its normalized vector form, so position and unit direction evolve together in the exact index landscape shown by the translucent layers.
Why it mattersHow can one continuous index field relay a ray, focus every direction, or turn plane curves into great circles without a hidden interface?
Start with the essentials
Only the component of the index gradient perpendicular to the current direction curves the ray. Fourth-order Runge-Kutta advances both vectors and the implementation renormalizes direction after each step.
This square-root profile has an exact sinusoidal ray, not merely a paraxial sketch. Its analytic height and pitch independently audit the numerical trajectory and the quarter-pitch relay plane.
The canonical Luneburg sphere maps a plane wave to the opposite surface. The Maxwell profile is the stereographic plane image of a uniform sphere, so great circles map to curved rays that meet at the projected antipode.
Typical misconceptionEach visible band is a separate glass surface, so the ray is really a polygon with many Snell refractions and the smooth curve is cosmetic.
Better mental modelThe bands are samples of one analytic field used only to reveal its value. The solver evaluates the continuous index and gradient at every RK4 substep; no internal surface or discrete refraction event exists.
In the parabolic relay, drag the launch offset and change profile strength. Follow the five independently integrated rays, compare the pitch and quarter-pitch readouts, and confirm that the analytic-versus-RK4 residual stays small.
What to observe: Increasing profile strength shortens the oscillation pitch because the transverse restoring curvature is larger. Translating the launch bundle changes its phase-space orbit but does not invent a new surface.Switch to the Luneburg sphere at canonical strength. Orbit the nested iso-index shells and watch seven parallel rays meet the opposite-surface target; then move strength away from the canonical value and measure the honest spot residual.
What to observe: At canonical strength the surface index is exactly one and the center index is the square root of two. Every sampled plane ray reaches the same opposite-surface point; deforming the profile visibly destroys that absolute-instrument condition.Enter the Maxwell plane, move the source, and identify the target produced by stereographic inversion. Separate the fan rays in depth and verify that their physical curves—not the dashed source-to-target chord—reunite at the antipode.
What to observe: The Maxwell source and image are generally not Euclidean mirror points. They are stereographic antipodes, and their inverse-radius relation moves the target nonlinearly when the source is dragged.