The explanation of the rainbows colours was first shown by Isaac Newton around 1667. He had already shown that light was a mixture of colours which could be shown by the use of a prism. In the same way he argued that water droplets in the air dispersed the various colours in various directions, so that the colours of the spectrum were seen.
Secondary Bow
Sometimes a secondary bow is seen higher in the sky and is formed by rays undergoing two refractions and two reflections at the "droplet".
Primary Bow
The primary bow is the rainbow usually seen which is obtained by two refractions and one reflection as the rain drops fall down from the sky.
If i and r are the angles of incidence and refraction at 0 ,the deviation of light at 0 and C is ( i - r ) each time it is ( 1800 - 2r ) at B
2( i - r ) +2 ( 1800 + 2r )=3600 + 2i -6r.
after n reflections the total deviation
= 2( i - r ) +n ( 1800 - 2r )