Differentiating and substituting series