The
heat trapped within the Earth, which was generated during
its formation billions of years ago and through the decay of radioactive elements with rocks, is
trying to escape, much like heat also escapes out the top of a beaker of boiling water.
The heat in the interior of the Earth produces convection in the outer core and mantle of
the Earth. Convection is the transport of mass by heat -- which
affects the density (mass/volume) of material.
To
understand this concept -- consider the following question --
Why does a hot air balloon rise?
Heat
produces an expansion of the air in the balloon making it less dense than the cool
air outside of the balloon. Remember density is mass per volume or
Density
= mass/volume
So by heating the air, the volume of air increases, while the mass of the air stays
the same, consequently the density must decrease