Question: Problem with the differentiating a single value in a sum

Dear Mapleprimes,

 

I have a problem with the sum command. I'm differentiating wrt. a value q[i] in a sum. I have the following:

 

diff(sum((1/2)q[i], i=1..n),q[i]);

 

This returns:

 

n(1/2)

 

but I'm differentiating wrt. q[i] not the whole sum. Any ideas?

 

Thanks very much.

 

Christian

Please Wait...