Problem 297
Easy Remainders and Fourier Series

By term-by-term integration, find the sum sum from n=1

By term-by-term integration, find the sum $\displaystyle\sum_{n=1}^{\infty}n^2x^{n-1}$.

Explanation of Method

Starting from the geometric series and differentiating twice (with a multiplication by $x$ in between, to keep the power matching the coefficient) produces the $n^2$ weighting directly.

  1. Differentiate the geometric series once to get $\sum nx^{n-1}$.
  2. Multiply by $x$ and differentiate again to get $\sum n^2x^{n-1}$.
  3. Verify numerically at $x=\frac12$.

Step 1 · First differentiation

$$ \sum_{n=0}^{\infty}x^n = \frac1{1-x} \implies \sum_{n=1}^{\infty}nx^{n-1} = \frac1{(1-x)^2}. $$

Step 2 · Multiply by $x$, differentiate again

Multiplying by $x$: $\sum_{n=1}^{\infty}nx^n=\dfrac x{(1-x)^2}$. Differentiating: $$ \sum_{n=1}^{\infty}n^2x^{n-1} = \frac d{dx}\left[\frac x{(1-x)^2}\right] = \frac{(1-x)^2+2x(1-x)}{(1-x)^4} = \frac{1+x}{(1-x)^3}. $$

Step 3 · Verify

At $x=0$: both sides equal $1$. At $x=\frac12$: formula gives $\dfrac{3/2}{1/8}=12$; direct summation $1+2+2.25+2+1.5625+\cdots$ approaches $12$.


Summary Table

PropertyValue
Sum$(1+x)/(1-x)^3$
Region of validity$|x|<1$
At $x=1/2$$12$

Additional Notes

Result

$$ \sum_{n=1}^{\infty}n^2x^{n-1} = \frac{1+x}{(1-x)^3}, \quad |x|<1. $$