I am trying to find a formula for either
(1) the $n$th derivative for the following $m$th partial sum:
$$\frac{d^n}{dx^n} \sum_{i=0}^m x^i$$
or (2) the $n$th derivative of the infinite series given by
$$\frac{d^n}{dx^n} \sum_{i=m}^\infty x^i$$
I know that $\sum_{i=0}^m x^i = \frac{1-x^{m+1}}{1-x}$ and that $\sum_{i=m}^\infty x^i = \frac{x^m}{1-x}$. However, sequentially taking the derivatives and searching for a pattern is proving difficult. Can someone show me the formula? Thanks