The Sturm liouville problem and diffusion modelling