If the number of particles is conserved, we have the continuity equation ∂j(x,t)∂x=−∂w(x,t)∂t, which leads to ∂w(x,t)∂t=D∂2w(x,t)∂x2, which is the diffusion equation in one dimension.