Question: differential of integrated expression

Hello I have a question about how to differentiate integrated equation .

 u:=integrate(q(i),i=0..M);

  diff(u,q(i));

doesn't return the equation of 1. I want to differentiate u with respect to the q(i) in q(0)....q(M).

But, I can't.

I am very glad if you tell me how to do about this calculation.

Thanks in advance.

Taro yamada

Please Wait...