I am using the finite difference method to solve a pde in time and 1D space. I am trying to distribute the gradient and want to make sure I am doing this correct.
For $d,a \in R$ and $u(x,t)$ and $c(x,t)$ I have
$\nabla \cdot ((d+a|u|)\nabla c) = \nabla \cdot (d\nabla c)+ \nabla \cdot (a|u|\nabla c) = \nabla^2 c + a\nabla|u|\nabla^2c$
Is this correct?