It is a standard fact (e.g., Lieb-Loss, Analysis, Theorem 7.6), that the closure of $C^\infty_0(\mathbb{R}^3)$, namely the space of (complex-valued) compactly supported smooth functions on $\mathbb{R}^3$, in the $H^s$-Sobolev norm, $s\geqslant 0$, is precisely $H^s(\mathbb{R}^3)$.
Although I believe it is true, I would like to know a proof that the $H^2$-closure of $C^\infty_0(\mathbb{R}^3\!\setminus\!\{0\})$, namely the space of smooth functions whose support is a compact in $\mathbb{R}^3\!\setminus\!\{0\}$, is the space of $H^2$-functions $f$'s such that $f(0)=0$.
My understanding is that if $f\in H^2(\mathbb{R}^3)$ and $f(0)=0$, then a good sequence of approximants $f_n\in C^\infty_0(\mathbb{R}^3\!\setminus\!\{0\})$ should be given by $f_n=j_n*(f\chi_n)$ where $\chi_n(x)=\chi(nx)$ is a smooth cut-off at the origin, say, $\chi(x)=0$ for $|x|<1$ and $\chi(x)=1$ for $|x|>2$, while $j_n$ is a standard mollifier on a scale smaller than the cut-off, say, on a scale $|x|<(2n)^{-1}$. Still, I cannot control the vanishing $\|f_n-f\|_{H^2}\to 0$.
Any suggestion?
On a related note, I am vaguely aware of a class of statements of the form $W^{2,p}(\mathbb{R}^d\!\setminus\!C)=W^{2,p}_0(\mathbb{R}^d\!\setminus\!C)$ when the set $C$ is closed and with null capacity, could anyone give me a reference on that?
Perhaps it's easiest to work with the Fourier transforms. We are given a $g=\widehat{f}$ with $\int |g(k)|^2(1+k^4)\, dk<\infty$ and $\int g = 0$. It's now easy to approximate this by functions $g_n\in C_0^{\infty}$ with $\int g_n=0$ such that $\int |g-g_n|^2 (1+k^4)\to 0$.
This is not exactly what we want because the Fourier transforms $f_n=\check{g_n}$ are not guaranteed to be compactly supported. However, they are Schwartz functions, and these can easily be approximated in $H^2$ norm by $C_0^{\infty}$ by introducing a smooth cut-off. This will of course preserve the property that $f_n(0)=0$.
This shows that any $f\in H^2(\mathbb R^3)$ with $f(0)=0$ is in the closure of $C_0^{\infty}(\mathbb R^3\setminus 0)$. Conversely, any function in this closure vanishes at $x=0$ because $H^2$ convergence implies pointwise convergence.