I was wondering where the negative sign comes from in the following simplification for diffusion in 1 dimension. The initial equation is given as follows:
$$\frac{\partial C_i}{\partial t} A \Delta x= (N_{ix}|_{x} - N_{ix}|_{x+\Delta x}A + R_iA \Delta x )$$
Which simplifies to:
$$ \frac{\partial C_i}{\partial t} = -\frac{\partial N_{ix}}{\partial x} + R_i$$