Calculate $\sum_{n=0}^\infty(n+2)x^n$ I am trying to calculate   $\sum_{n=0}^\infty(n+2)x^n$.
I was thinking it is like the second derivative of $x^{n+2}/(n+1)$ but I am not sure how to go about calculating it. Any hints?

Hint: It is sometimes convenient to work with operators. Since
\begin{align*}
\left(x\frac{d}{dx}\right)\sum_{n=0}^\infty a_nx^n=x\sum_{n=0}^\infty na_nx^{n-1}=\sum_{n=0}^\infty na_nx^{n}
\end{align*}
we consider $xD:=\left(x\frac{d}{dx}\right)$ as operator and obtain for $k\geq 0$
\begin{align*}
\left(xD\right)^k\sum_{n=0}^{\infty}a_nx^n=\sum_{n=0}^\infty n^ka_nx^{n}
\end{align*}

We conclude
  \begin{align*}
\sum_{n=0}^{\infty}(n+2)x^n&=\left(xD+2\right)\sum_{n=0}^{\infty}x^n\\
&=\left(xD+2\right)\frac{1}{1-x}\\
&=x\left(\frac{1}{1-x}\right)^\prime+\frac{2}{1-x}\\
&=\ldots
\end{align*}

