The formation of a rainbow involves multiple optical phenomena occurring when sunlight interacts with water droplets in the atmosphere. Here's a step-by-step breakdown of the processes:
Thus, the correct answer is dispersion and total internal reflection. Dispersion is responsible for the color separation, and total internal reflection allows the dispersed light to be observed as a rainbow after exiting the droplet.