Suppose that $$P[x]=\sum_{n=0}^{\infty}a_nx^n$$ is a formal power series. Therefore, the issues of convergence are supposed to be ignored for now.
I'm looking for a direct formula that allows me to establish an identity of the form$$\sum_{n=0}^{\infty}b_nx^n=\left(\sum_{n=0}^{\infty}a_nx^n\right)^2$$
More precisely, I want $b_n$ to be the coefficient of $x^n$ in $P[x]^2$. No recurrence relations for $b_n$ are allowed. Express $b_n$ as a function $a_i$'s.