The PDE I am working with:
$$\partial_tu = \nabla \cdot (a(x)\nabla u)-\beta(x)u\\ \partial_nu=0, x \in \Omega \subset \mathbb{R}^2\\ \beta(x)>0$$
- Integrate the PDE:
$$\int_\Omega \partial_t u=\int_\Omega \nabla\cdot (a(x)\nabla u)dx-\int_\Omega \beta(x)udx$$
- Apply the Divergence theorem:
$$\int_\Omega \partial_t u=\int_{\partial\Omega} a(x)\nabla u\cdot nds-\int_\Omega \beta(x)udx$$
- Apply the Neuman boundary condition:
$$\int_\Omega \partial_t u=\int_{\partial\Omega} a(x)\partial_n uds-\int_\Omega \beta(x)udx=-\int_\Omega \beta(x)udx$$
- Obtain a new PDE:
$$\partial_t u+\beta(x)u=0$$
This PDE is in essence an ODE, so we can get the following solution for this ODE:
$$u(x,t)=e^{-\beta(x)t}D(x),$$ where $D(x)$ is an integration "constant".
- Discretize the ODE. After discretization I should obtain a linear system of the following form:
$$\frac{du}{dt}=Au - c$$
But when I discretize this system I obtain the following: $$\frac{du_{ij}}{dt}=-\beta_{ij} u_{ij}$$
So one could say that $A$ in this case has the form diag$(-\beta_{ij}, \dots, -\beta_{ij})$, but then where is the vector $c$ coming from?
Also, one could observe that, since $\beta(x)>0$, $$\lim\limits_{t\to \infty} u(x,t) = 0$$. But how can we deduce the same from the discretized system?