Let $a>0$. For $|\frac{1}{a^x}|<1, \sum_{n=0}^{\infty} \frac{n\cdot log(a)}{a^{nx}}=\frac{d}{dx}\sum_{n=1}^{\infty} \frac{-1}{a^{nx}}=\frac{d}{dx}\frac{a^x}{1-a^x}=\frac{a^x\cdot log(a)}{(1-a^x)^2}$. Hence $ \sum_{n=1}^{\infty} \frac{n}{a^{nx}}=\frac{a^x}{(1-a^x)^2}$, which gives $ \sum_{n=1}^{\infty} nx^n=\frac{x}{(1-x)^2}$, for $|x|<1$.
I don't know how to justify taking the derivative since it's not a power series, but it seems to give me the right answer. I was wondering if this was the standard way for evaluating this series, or if there is another, more common way, possibly involving generating functions and a differential equation?