For all $x\in(-1,1)$, the following series converges $$\sum_{n=0}^{\infty}(-1)^{n}(n-2) x^{n}$$ and defines a function $f:(-1,1)\rightarrow\mathbb{R}$. Find a closed form for $f(x)$, $x\in(-1,1)$.
Appreciating any help, and any methods to solve such things in general.