If you want further information and are familiar with differential equations, i suggest reading about Fick's second law of non-steady state diffusion.

This is a good place to start: http://en.wikipedia.org/wiki/Fick's_law_of_diffusion