Statement

For an integer k0k\ge0 and 1p<1\le p<\infty, the Cc(Rn)C_c^\infty(\mathbb R^n) are dense in Wk,p(Rn)W^{k,p}(\mathbb R^n): for every uu there are ujCcu_j\in C_c^\infty with ujuWk,p0\|u_j-u\|_{W^{k,p}}\to0.

Cut off, then smooth

Choose a smooth cutoff χ=1\chi=1 near zero and set χR(x)=χ(x/R)\chi_R(x)=\chi(x/R). The Leibniz formula gives χRuu\chi_Ru\to u in Wk,pW^{k,p}: the main terms converge by integrable tails, and terms with a derivative on χR\chi_R carry a factor R1R^{-1} or smaller. For fixed RR, mollification converges for every weak derivative through order kk and preserves compact support up to an ε\varepsilon-neighborhood. A diagonal choice gives the sequence.

This assertion concerns the whole space. On a domain with boundary, test functions need not approximate arbitrary Sobolev boundary values. The restriction p<p<\infty is also essential to this statement.

References