15.5. MOLLIFIERS AND DENSITY OF SMOOTH FUNCTIONS 411

Theorem 15.4.2 (Continuity of translation in Lp) Let f ∈ Lp(Rn) with the measure beingLebesgue measure. Then

lim||w||→0

|| fw− f ||p = 0.

Proof: Let ε > 0 be given and let g ∈ Cc(Rn) with ||g− f ||p < ε

3 . Since Lebesguemeasure is translation invariant (mn(w+E) = mn(E)),

||gw− fw||p = ||g− f ||p <ε

3.

You can see this from looking at simple functions and passing to the limit or you could usethe change of variables formula to verify it.

Therefore

|| f − fw||p ≤ || f −g||p + ||g−gw||p + ||gw− fw||

<2ε

3+ ||g−gw||p. (15.4.11)

But lim|w|→0 gw(x) = g(x) uniformly in x because g is uniformly continuous. Now let Bbe a large ball containing spt(g) and let δ 1 be small enough that B(x,δ ) ⊆ B wheneverx ∈ spt(g). If ε > 0 is given there exists δ < δ 1 such that if |w| < δ , it follows that|g(x−w)−g(x)|< ε/3

(1+mn (B)

1/p)

. Therefore,

||g−gw||p =

(∫B|g(x)−g(x−w)|p dmn

)1/p

≤ εmn (B)

1/p

3(

1+mn (B)1/p) <

ε

3.

Therefore, whenever |w|< δ , it follows ||g−gw||p < ε

3 and so from 15.4.11 || f − fw||p < ε .This proves the theorem.

15.5 Mollifiers And Density Of Smooth FunctionsDefinition 15.5.1 Let U be an open subset ofRn. C∞

c (U) is the vector space of all infinitelydifferentiable functions which equal zero for all x outside of some compact set containedin U. Similarly, Cm

c (U) is the vector space of all functions which are m times continuouslydifferentiable and whose support is a compact subset of U.

Example 15.5.2 Let U = B(z,2r)

ψ (x) =

 exp[(|x− z|2− r2

)−1]

if |x− z|< r,

0 if |x− z| ≥ r.

Then a little work shows ψ ∈C∞c (U). Note that if z = 0 then ψ (x) =ψ (−x). The following

also is easily obtained.

15.5. MOLLIFIERS AND DENSITY OF SMOOTH FUNCTIONS 411Theorem 15.4.2 (Continuity of translation in L?) Let f € L?(R") with the measure beingLebesgue measure. Thenlim ||fw— Sl |p =0.||w||+0Proof: Let € > 0 be given and let g € C,(R") with ||g— f||p < 5. Since Lebesguemeasure is translation invariant (m,(w+E) =m,(E)),Ellgw — fwllp = llg—Sllp < 3You can see this from looking at simple functions and passing to the limit or you could usethe change of variables formula to verify it.Thereforef—fwllp < lf—sllp+ lls —8wllo + |lgw — fell2€< 3 +Ile—swllp- (15.4.11)But limjy|-.0 3w(X) = g(x) uniformly in x because g is uniformly continuous. Now let Bbe a large ball containing spt(g) and let 6; be small enough that B(x,6) C B wheneverx € spt(g). If € > 0 is given there exists 6 < 5; such that if |w| < 6, it follows thatlg (x —w) —g(x)| <e€/3 (1 +m (B)'/”). Therefore,llg—gwll, = (|e) -26—w))Pam)mp (B)'/?3 (+m, (B)"?)IA<E3"Therefore, whenever |w| < 6, it follows ||g—gw||p» < § and so from 15.4.11 ||f—fwl||p <€.This proves the theorem.15.5 Mollifiers And Density Of Smooth FunctionsDefinition 15.5.1 Let U be an open subset of R". C2(U) is the vector space of all infinitelydifferentiable functions which equal zero for all x outside of some compact set containedin U. Similarly, C" (U) is the vector space of all functions which are m times continuouslydifferentiable and whose support is a compact subset of U.Example 15.5.2 Let U = B(z,2r)1exp (x2? -P) if |\x—2| <r,0 if |x—z| >r.y (x)=Then a little work shows w € C2(U). Note that ifz = 0 then w(x) = w(—x). The followingalso is easily obtained.