Theorem
Smooth compact-support approximation in Euclidean Sobolev space
Every finite-exponent integer-order Sobolev function on the whole space can be approximated by test functions.
Statement
For an integer and , the test functions are dense in : for every there are with .
Cut off, then smooth
Choose a smooth cutoff near zero and set . The Leibniz formula gives in : the main terms converge by integrable tails, and terms with a derivative on carry a factor or smaller. For fixed , mollification converges for every weak derivative through order and preserves compact support up to an -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 is also essential to this statement.