A sum rule for unbiased Brownian motion, and generalisations of Fick's law for space-dependent diffusivity