what is a rainbow? how does it form?

Light coming from the sun contains the whole spectrum of colors or frequencies. As the light passes through air laden with water the different colors or frequencies are bent different amounts, separating the beam into layers of color.

http://science.howstuffworks.com/question41.htm

A rainbow is a beautiful optical phenomenon produced by the reflection, refraction, and dispersion of light in water droplets in the atmosphere. It appears as a circular arc of colors in the sky, with red on the outer edge and violet on the inner edge.

To understand how a rainbow forms, consider these key steps:

1. Sunlight: Firstly, sunlight acts as the initial source of light for the formation of a rainbow. Sunlight is a combination of different colors, ranging from red to violet.

2. Refraction: When sunlight encounters spherical water droplets in the air, some of the light is refracted, or bent, as it enters the droplet. This bending happens because the speed of light changes when it moves from air to water.

3. Dispersion: Inside the water droplet, the different colors of light are dispersed, meaning they separate from each other due to their different wavelengths. This is similar to how light separates into a spectrum when it passes through a prism. The longer wavelengths like red bend less than the shorter wavelengths like violet.

4. Reflection: After dispersing, the light ray reflecting off the inside of the water droplet reaches the back surface and is then partially reflected back toward the direction it came from.

5. Exit and Refraction: Finally, when this reflected light ray leaves the water droplet, it undergoes another refraction as it moves from water back into air. This refraction causes the light ray to bend further.

The combination of refraction, dispersion, reflection, and refraction again causes the light to form a circular arc, which we observe as a rainbow in the sky. The colors of the rainbow appear because each color is bent at a slightly different angle, resulting in the separation of the colors.

It's important to note that a rainbow can only be observed when you have a few essential conditions: sunlight, water droplets in the air, and an observer positioned between the sun and the raindrops.