230 CHAPTER 9. BASIC FUNCTION SPACES

9.4 Approximation TheoremsFirst is a significant result on approximating with simple functions in Lp.

Theorem 9.4.1 Let f ∈ Lp (Ω) for p ≥ 1. Then for each ε > 0 there is a simplefunction s such that ∥ f − s∥p ≤ ε .

Proof: It suffices to consider the case where f ≥ 0 because you can then apply whatis shown to the positive and negative parts of the real and imaginary parts of f to getthe general case. Thus, suppose f ≥ 0 and in Lp (Ω) . By Theorem 6.1.10, there ex-ists a sequence of simple functions increasing to f . Then | f (ω)− sn (ω)|p ≤ | f (ω)|p.This is a suitable dominating function. Then by the dominated convergence theorem,0 = limn→∞

∫Ω| f (ω)− sn (ω)|p dµ which establishes the desired conclusion unless p = ∞.

Use Proposition 9.3.9 to get a set of measure zero N such that off this set, | f (ω)| ≤∥ f∥

∞. Then consider f XNC . It is a measurable and bounded function so by Theorem

6.1.10, there is an increasing sequence of simple functions {sn} converging uniformly tothis function. Hence, for n large enough, ∥ f − sn∥∞

< ε . ■

Theorem 9.4.2 Let µ be a regular Borel measure on Rn and f ∈ Lp (Rn). Then foreach p≥ 1, p ̸= ∞, there exists g a continuous function which is zero off a compact set suchthat ∥ f −g∥p < ε .

Proof: Without loss of generality, assume f ≥ 0. First suppose that f is 0 off some ballB(0,R). There exists a simple function 0 ≤ s ≤ f such that

∫| f − s|p dµ < (ε/2)p . Thus

it suffices to show the existence of a continuous function h which is zero off a compact setwhich satisfies (

∫|h− s|p dµ)1/p < ε/2. Let

s(x) =m

∑i=1

ciXEi (x) , Ei ⊆ B(0,R)

where Ei is in Fp. Thus each Ei is bounded. By regularity, there exist compact sets Ki and

open sets Vi with Ki ⊆ Ei ⊆Vi ⊆ B(0,R) and ∑mi=1(cp

i µ (Vi \Ki))1/p

< ε/2.

Now define hi (x) ≡dist(x,VC)

dist(x,K)+dist(x,VC). Thus hi equals zero off a compact set and it

equals 1 on Ki and 0 off Vi. Let h≡ ∑mi=1 cihi. Thus 0≤ h≤max{ci, i = 1, · · · ,m} . Then∫

|cihi− ciXEi |p dµ ≤ cp

i XVi−Ki ≤ cpi µ (Vi \Ki)

It follows that, from the Minkowski inequality,(∫ ∣∣∣∣∣ f −∑i

cihi

∣∣∣∣∣p

)1/p

≤(∫| f − s|p dµ

)1/p

+

(∫ ∣∣∣∣∣s−∑i

cihi

∣∣∣∣∣p

)1/p

≤ ε

2+

(∫ (∑

i|ciXEi − cihi|

)p

)1/p

≤ ε

2+∑

i

(∫|ciXEi − cihi|p dµ

)1/p

≤ ε

2+∑

i

(cp

i µ (Vi \Ki))1/p

2+

ε

2= ε

230 CHAPTER 9. BASIC FUNCTION SPACES9.4 Approximation TheoremsFirst is a significant result on approximating with simple functions in L’.Theorem 9.4.1 Lez f € LP (Q) for p > 1. Then for each € > 0 there is a simplefunction s such that || f —s||,, < €.Proof: It suffices to consider the case where f > 0 because you can then apply whatis shown to the positive and negative parts of the real and imaginary parts of f to getthe general case. Thus, suppose f > 0 and in L?(Q). By Theorem 6.1.10, there ex-ists a sequence of simple functions increasing to f. Then |f(@)—s,(@)|? < |f(@)|?.This is a suitable dominating function. Then by the dominated convergence theorem,0 = limy+ fo | f (@) — Sn (@)|? dt which establishes the desired conclusion unless p = .Use Proposition 9.3.9 to get a set of measure zero N such that off this set, |f(@)| <\|fll..- Then consider f 2yc. It is a measurable and bounded function so by Theorem6.1.10, there is an increasing sequence of simple functions {s,} converging uniformly tothis function. Hence, for n large enough, ||,f —s,||,, < €.Theorem 9.4.2 Lez Lt be a regular Borel measure on RR" and f € L? (R"). Then foreach p > 1,p #, there exists g a continuous function which is zero off a compact set suchthat || f — g||, < €Proof: Without loss of generality, assume f > 0. First suppose that f is 0 off some ballB(0,R). There exists a simple function 0 < s < f such that [| f—s|?du < (e€/2)?. Thusit suffices to show the existence of a continuous function h which is zero off a compact setwhich satisfies (f |h—s|?du)'/? < €/2. Let=) cj 2x, (x), Ei C B(0,R)where £; is in .¥,. Thus each E; is bounded. By regularity, there exist compact sets K; andopen sets V; with Kj C E; CV; C B(0,R) and Y", (cP? u (V;\ Ki) V/P €/2.N define h; _ dist(x,V°)ow define h;(x) = dist(x,K)+dist(x,VC) ”equals 1 on K; and 0 off V;. Leth = Y°"_, c;hj. Thus 0 < h < max {c;,i=1,--- ,m}. ThenThus h; equals zero off a compact set and it[icici Pin)? dt <c? By, < cfu (Vi \ Ki)It follows that, from the Minkowski inequality,(/|p-Eon va) a (fir-sran)” +( ‘a)<5+ (/ [Eiri onl) a) <5+ E(/I lc: Bi, — cihil? in)+<& ip EF E_<3 +h (Gu (Vi\Ki) <5tz=8s— Liki