Closure of compactly supported continuous functions in a weighed $L^2$ space

functional-analysisgeneral-topologymeasure-theoryreal-analysis

I am struggling with the following question:
Define the weighed $L^2$ space:
$$L^2_{\Delta}(R)=\{f\in L^2(R): \int _Rf^2(x)(1+|x|^2)dx<+\infty\}$$
I only know that the space of compactly supported continuous functions $C_c(R)\subseteq L^2_{\Delta}(R)$ and that $C_c(R)$ is dense in $L^2(R)$, I wander what is the closure of $C_c(R)$ in $L^2_{\Delta}(R)$.

Best Answer

By dominated converge the space of compactly supported $L_\Delta^2(\mathbb{R})$ functions are dense in $L_\Delta^2(\mathbb{R})$ (you can approximate $f$ by the sequence $f_n= f 1_{[-n,n]}$). Using that $$\Vert g \Vert_{L^2([-n,n])} \leq \Vert g\Vert_{L_\Delta^2([-n,n])} \leq \sqrt{n^2+1} \Vert g\Vert_{L^2([-n,n])}$$ and the fact that $C_c(\mathbb{R})$ is dense in $L^2(\mathbb{R})$, we conclude that $C_c(\mathbb{R})$ is dense in $L_\Delta^2(\mathbb{R})$.