12.6. MEAN SQUARE APPROXIMATION 287

Note how these kernels are nonnegative, unlike the Dirichlet kernels. Also there isa large bump in the center which gets increasingly large as n gets larger. The fact thesekernels are nonnegative is what is responsible for the superior ability of the Fejer means toapproximate a continuous function.

Theorem 12.5.3 Let f be a continuous and 2π periodic function. Then

limn→∞∥ f −σn+1 f∥0 = 0.

Proof: Let ε > 0 be given. Then by part 2. of Lemma 12.5.2,

| f (x)−σn+1 f (x)|=∣∣∣∣∫ π

−π

f (x)Fn+1 (y)dy−∫

π

−π

Fn+1 (y) f (x− y)dy∣∣∣∣

=

∣∣∣∣∫ π

−π

( f (x)− f (x− y))Fn+1 (y)dy∣∣∣∣≤ ∫ π

−π

| f (x)− f (x− y)|Fn+1 (y)dy

=∫

δ

−δ

| f (x)− f (x− y)|Fn+1 (y)dy+∫

π

δ

| f (x)− f (x− y)|Fn+1 (y)dy

+∫ −δ

−π

| f (x)− f (x− y)|Fn+1 (y)dy

Since Fn+1 is even and | f | is continuous and periodic, hence bounded by some constant Mthe above is dominated by

≤∫

δ

−δ

| f (x)− f (x− y)|Fn+1 (y)dy+4M∫

π

δ

Fn+1 (y)dy

Now choose δ such that for all x, it follows that if |y| < δ then | f (x)− f (x− y)| < ε/2.This can be done because f is uniformly continuous on [−π,π] by Theorem 6.7.2 on Page112. Since it is periodic, it must also be uniformly continuous on R. (why?) Therefore, forthis δ , this has shown that for all x, | f (x)−σn+1 f (x)| ≤ ε/2+4M

∫π

δFn+1 (y)dy and now

by Lemma 12.5.2 it follows

|| f −σn+1 f ||0 ≤ ε/2+8Mπ

(n+1)sin2(

δ

2

)4π

< ε

provided n is large enough.

12.6 Mean Square ApproximationThe partial sums of the Fourier series of f do a better job approximating f in the meansquare sense than any other linear combination of the functions, eikθ for |k| ≤ n. This willbe shown next. It is nothing but a simple computation. Recall the Fourier coefficients are

ak =1

∫π

−π

f (θ)e−ikθ dθ

Also recall that ∫π

−π

eikθ e−ilθ dθ =

{2π if l = k0 if l ̸= k

12.6. MEAN SQUARE APPROXIMATION 287Note how these kernels are nonnegative, unlike the Dirichlet kernels. Also there isa large bump in the center which gets increasingly large as n gets larger. The fact thesekernels are nonnegative is what is responsible for the superior ability of the Fejer means toapproximate a continuous function.Theorem 12.5.3 Lez f be a continuous and 2% periodic function. Thenlim ||f — Onsifllo =0Proof: Let € > 0 be given. Then by part 2. of Lemma 12.5.2,$60) ener F=|[" £0) day [7 Farr) L0e-9)dhu=| [0 f(x—y)) Fr(v)ay| < / If (®) —f (x y)| Prva (y) dy—15 ba=f, re, 8) —F&—y)| Fas 0) dy+ [ 1) Fe) Fess daySince F,,41 is even and | f| is continuous and periodic, hence bounded by some constant Mthe above is dominated by< [FFF od 4M [Fas OdyNow choose 6 such that for all x, it follows that if |y| < 6 then |f (x) — f(x—y)| < €/2.This can be done because f is uniformly continuous on [—2, 2] by Theorem 6.7.2 on Page112. Since it is periodic, it must also be uniformly continuous on R. (why?) Therefore, forthis 5, this has shown that for all x, | f (x) — Onzif (x)| < €/2+4M J¥ Frit (y) dy and nowby Lemma 12.5.2 it follows8Mn(n+ 1) sin (3) Anlf — Onsif|lo < €/2+ <€provided n is large enough. §f12.6 Mean Square ApproximationThe partial sums of the Fourier series of f do a better job approximating f in the meansquare sense than any other linear combination of the functions, e“° for |k| <n. This willbe shown next. It is nothing but a simple computation. Recall the Fourier coefficients are_i /[* —ik0a=s- [faye dé7 i Qn if =kik@ —il@ _[ie ° ao~{ Oifl¢kAlso recall that