Integrating the continuity equation over state space and applying the divergence theorem gives
Assume the probability density function and its derivatives decay sufficiently rapidly at infinity, or impose a zero-flux boundary condition. The boundary integral then vanishes, so is constant. Since it is initially one, the distribution remains normalized for all time.
A centered nearest-neighbour discretization of drift--diffusion is obtained from
For sufficiently small these rates are nonnegative. Taylor expansion of the mean equations gives
Absorption into the target to the left of the first compartment gives
while the absence of outward jumps at the right endpoint gives the zero-flux boundary condition