I have an equation like:
y= Sum[ i x[i] , {i,10}]
and I want to calculate the derivative :
D[y,x[i]] -> = i
How can I do that in mathematica ?
I can do D[y, x[3]]
and it gives me 3
but if I enter D[y, x[i]]
it returns 0 but I expect i.
Is there a way to define the parametric derivative for series like the above in Mathematica ?