Why a rainbow has an angle
Sunlight refracts as it enters a spherical droplet, reflects once inside, then refracts out. For incident angle i and internal angle r, Snell's law is sin i = n sin r. The primary-ray deviation is D = π + 2i − 4r; the observed angle from the anti-solar axis is θ = π − D = 4r − 2i.
The stationary-ray condition
A bright bow forms where neighbouring rays leave at almost the same angle: dθ/di = 0. Combining this with Snell's law gives sin² r = (4 − n²)/(3n²). A non-degenerate primary caustic therefore exists only for 1 < n < 2. At the limits it becomes grazing or collapses; outside them there is no interior stationary ray.
What the model leaves out
The droplet is a perfect sphere in air, rays are treated geometrically, and only the primary one-reflection path is followed. The wavelength dependence uses an illustrative Cauchy fit anchored to the textbook water index 1.3330 at 589 nm. Wave interference, finite solar-disc width, droplet deformation, atmospheric scattering and higher-order bows are omitted. The droplet diameter changes the drawing scale only.
An independent educational simulation; not affiliated with any optical equipment or water-treatment brand.