Assume I try to work in 1D, and solve an equation which contains expressions of the form: $u''$, but also an expression of the form : $(u v' ) ' $. Assume I discretize my region of solution, and denote $h$ to be my spacing.
I am trying to work with central differences and write: $$ u'' \approx \frac{u_{i+1}-2u_i + u_{i-1 } }{h^2} $$ what is the correct way to write the expression: $(u v' ) ' $ in a difference form ? (without "opening the brackets")
Is there any way to find a matrix $D$ for which $D (uv) \approx (uv')' $ ?
Will you please help me?
Thanks