The figure shows an imaginary planet made of a single
material. The density of the material, r, increases with
depth in the planet. The elasticity, E, also
increases with depth. The speed v of P and S
waves depends on both these properties:

E increases more rapidly than r with depth, so the waves gradually speed up the
deeper they go in the planet. As the speed gradually changes the waves gradually change
direction and follow arcs inside the planet.
The changing of speed of a wave as it travels through a material and its consequent
change in direction is called refraction.
The wave which travels in
the same direction as the change in density and viscosity occurs is speeded up as it goes
deeper in the planet, but does not undergo any change in direction. Why?