Light near the edge of a rainbow obeys an equation with no formula answer. So build the answer as an infinite polynomial, one term at a time, letting the equation choose every coefficient. A few terms already match it well nearby.