Refraction is the change in direction of a wave when it passes from one medium to another with a different speed. The index of refraction is the ratio of light's speed in a vacuum to its speed in a medium, and it determines how much light will bend at the boundary. Snell's law relates the sines of the angles of incidence and refraction to the indices of refraction. Total internal reflection occurs when light travels from a denser to a less dense medium at an angle greater than the critical angle, causing the light to be reflected back into the denser medium. Converging lenses bring light rays passing through the focal point to a focus on the opposite side, while diverging lenses spread out light rays