Question:
Find coefficient of $x$ in $$(1+x+2x^2+3x^2+...+nx^n)^2$$
My attempt:
I know about the expansion involving $(1+x)^{-1}$. It cleanly is visible in the above question but the qusestion is a finite expansion while $(1+x)^{-1}$ is infinite and thus unsusable.
I thought of using $(a+b+c+d+...)^2=(a^2+b^2+c^2+...)+2(\text{sum of pairwise products})$ but it really is a long and cumbersome method for an objective question.
Is there another binomial expansion - that I am missing - that could have helped me in this objective question? Please give some hints.
Imagine multiplying out the brackets, $(1 + x + x^2 + ...)(1 + x + x^2 + ...)$; we would do this by taking each term in the left bracket and multiplying it by each term in the right bracket in turn.
Notice that, the only times that this procedure produces an '$x$' term is when multiplying a '1' from one of the brackets, and an $x$ from the other - any other combination will give a higher power of $x$.
Thus, when the expression is expanded, the only '$x$' terms we get are $1\cdot x$ and $x\cdot 1$ (from multiplying the '1' in the left bracket by the $x$ in the right bracket and vice-versa).
Hence, the coefficient of $x$ is 1 + 1 = 2.
Note: As you can see in the first line, I have not used the fact that the expression being squared ends at $nx^n$. In fact, even if it were an infinite series, then the above argument would still hold formally (i.e. ignoring convergence issues). This is essentially because any higher powers of $x$ in the expression being squared cannot possibly contribute to the 'number of $x$s' obtained when the expression is squared.
Hence, if you really wanted, the binomial theorem as you mentioned could be used, though it is not really necessary (and you would have to work around some technicalities such as for which values the result would hold due to convergence issues).