Compute the value of $$\sum_{n=1}^\infty n^2x^n$$
whenever the series is convergent. I used the ratio test to determine that the series is convergent at $|x|<1$. I used Wolfram Alpha to compute the value and it gave me this $$\sum_{n=1}^\infty n^2x^n = \frac{-x(x+1)}{(x-1)^3}$$
How did Wolfram Alpha get this answer?