Let $f$ be a Schwartz function in $\mathbb{R}^n$. I would like to know if there is some constant $\alpha > 0$ such that the function defined by $g(x) = f(x)e^{\frac{\lvert x \rvert^2}{\alpha}}$ is in the Schwartz space or even $L^2(\mathbb{R}^n)$.
Clearly this is true for Gaussian functions which are dense in the Schwartz space in some topology.