We proposed the mathematical model and concrete example of how to use the notion of functional derivatives in order to arrive at a macroscopic equation for dispersion in disordered media. In the sake of simplicity, we considered the case of random process being a Gaussian process.