1D diffusion with non-constant drift velocity