What do a clear (clean) soap bubble and a dark (dirty) oil spill have in common? Their floaty rainbow colors are the result of waves of light, getting in each other's way.

White light from the sun contains a hidden rainbow of colors, each color a different wavelength. You can see this rainbow when light passes through a prism, and its colors spill out onto the wall or floor. Thin layers on a surface, such as a film of oil or soap on water, can also tease the rainbow out of white light, creating an iridescent sheen.

How? When light strikes an oily puddle or soap bubble, some rays immediately bounce off the outside surface. But others penetrate into the thin film before re-emerging. Since these rays travel a slightly longer path, they are slightly out of sync with the others when they emerge at the surface.

Now, imagine waves on the ocean. If two waves meet and match up, peak to peak, the resulting wave will be strongly reinforced. But if the peak of one wave meets up with the trough (low point) of another, the two cancel each other out.

Something similar happens with light waves. Scientists call this process "interference." When the peaks of light waves exactly (or almost) coincide, the light brightens. But if one wave's crest matches up with another's trough, the two cancel each other out, making a dim or dark spot. So when light waves combine and interfere at the surface of a thin layer, colors are reinforced - or canceled. For example, a yellow wave peak matching up with a purply-pink peak produces red.

When a crest matches to a trough and colors get canceled, we see their "complementary colors," their color opposites. So when red waves are canceled, blue-green hues emerge. Where blues are canceled, yellows bloom. The result, in an oil slick or soap bubble, is an assortment of brilliant, swirling colors.

(The exact colors you see depend on your own viewing angle and on the depth of the thin film (say, oil). Scientists can actually determine a film's thickness by the colors that pattern its surface, since they reveal what happened to the emerging light.)

A soap bubble's colors swirl and change more than on an oily puddle. As the bubble evaporates and its walls thin, its color scheme varies constantly. Gravity plays a part, too, tugging water toward the bubble's bottom, thinning the top wall and causing colors to shift.

According to physicist Jearl Walker of Cleveland State University, gray metal pots and pans can also develop Crayola colors. As metals react with oxygen in the air, thin layers of oxidized metal can form on the surface over time. The result: a rainbow in your saucepan.

Prosecutors: Sleep clinician admits to spying ... Tougher e-bike laws ... Let's Go: Williamsburg winter village Credit: Newsday

Top salaries on town, city payrolls ... Record November home prices ... Rocco's Taco's at Walt Whitman Shops ... After 47 years, affordable housing

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME