I asked this question on Math Stack Exchange some time ago and a similar question recently appeared regarding $L^1$ instead see here This has prompted me to bring it to this community in the hopes of getting an answer, partial answer, or even perhaps literature that addresses this question. Text from initial post below. Original post.
Suppose $f:\Bbb R\to\Bbb R$ is (real?) entire. In order for $f$ to be in $L^2(\Bbb R)$, clearly all terms in the power series cannot be positive since $f$ would diverge at $\pm\infty$. Likewise, the distribution of negative terms cannot go to zero so we see that the power series for $f$ must be alternating (in some fashion). However this does not tell us much.
Taking $f(x) = \sum\limits_{n=0}^{\infty} \dfrac{(-1)^n}{n!}x^{2n}$ gives $f(x) = \exp(-x^2)$ and is in $L^2(\Bbb R)$. In this case, the coefficients have factorial decay but it is not immediately obvious what kind of decay the coefficients can have while still giving rise to an $L^2$ function.
Are there sufficient conditions on the power series coefficients that will ensure that the function is in $L^2(\Bbb R)$? For instance, are there asymptotic bounds on the coefficients that will ensure that the function is in $L^2(\Bbb R)$ or is this an impossible task?