I am currently trying to derive an exponentially smoothed moving average, and I would like to reach both the first and second derivatives. I have only derived basic series and am having trouble with this. I encountered this series here.
The Moving Average in question is:
$$ A_{d} = \frac{\sum_{i=1}^{d}S^{i-1}M_{(d-i)+1)}}{\sum_{i=1}^{d}S^{i-1}} $$
The notation is not the clearest, but I know it works. This is my first time posting a question. Any feedback is appreciated!
$$ $$ Edit: I am looking to take the derivative with respect to $ M_d $