Differential and integral continuity equation