Let us now see what happens when a ray of light is incident on the boundary separating the two mediums having different densities.
A part of the light gets reflected and rest of the light changes its direction as it enters the second medium.

ORl reflected ray
OR refracted rayThe diagram shows how the light gets refracted when it is traveling from one optical medium to another.
Like reflection, refraction of light takes place according to certain laws. Before we state these laws let us get familiar with certain terms which are commonly used to explain the phenomenon of refraction.The ray of light striking the surface of separation of the mediums through which it is traveling is known as the incident ray.
The point at which the incident ray strikes the surface of separation of the two mediums is called the point of incidence.
The perpendicular drawn to the surface of separation at the point of incidence is called the normal.
The ray of light which travels into the second medium, when the incident ray strikes the surface of separation between the mediums 1 and 2, is called the refracted ray.
The angle which the incident ray makes with the normal at the point of incidence, is called angle of incidence.
The angle which the refracted ray makes with the normal at the point of incidence, is called angle of refraction.
A ray of light refracts or deviates from its original path as it passes from one optical medium to another because the speed of light changes.