278 CHAPTER 12. SERIES AND TRANSFORMS

It may be interesting to see where this formula came from. Suppose then that f (x) =∑

∞k=−∞

ckeikx, multiply both sides by e−imx and take the integral∫

π

−π, so that∫

π

−π

f (x)e−imxdx =∫

π

−π

∑k=−∞

ckeikxe−imxdx.

Now switch the sum and the integral on the right side even though there is absolutely no rea-son to believe this makes any sense. Then

∫π

−πf (x)e−imxdx = ∑

∞k=−∞

ck∫

π

−πeikxe−imxdx =

cm∫

π

−π1dx = 2πcm because

∫π

−πeikxe−imxdx = 0 if k ̸= m. It is formal manipulations of the

sort just presented which suggest that Definition 12.1.2 might be interesting.In case f is real valued, ck = c−k and so

Sn f (x) =1

∫π

−π

f (y)dy+n

∑k=1

2Re(

ckeikx).

Letting ck ≡ αk + iβ k

Sn f (x) =1

∫π

−π

f (y)dy+n

∑k=1

2 [αk coskx−β k sinkx]

where ck =1

∫π

−πf (y)e−ikydy = 1

∫π

−πf (y)(cosky− isinky)dy which shows that

αk =1

∫π

−π

f (y)cos(ky)dy, β k =−12π

∫π

−π

f (y)sin(ky)dy

Therefore, letting ak = 2αk and bk =−2β k,

ak =1π

∫π

−π

f (y)cos(ky)dy, bk =1π

∫π

−π

f (y)sin(ky)dy

and

Sn f (x) =a0

2+

n

∑k=1

ak coskx+bk sinkx (12.4)

This is often the way Fourier series are presented in elementary courses where it is onlyreal functions which are to be approximated. However it is easier to stick with Definition12.1.2.

The partial sums of a Fourier series can be written in a particularly simple form whichis presented next.

Sn f (x) =n

∑k=−n

ckeikx =n

∑k=−n

(1

∫π

−π

f (y)e−ikydy)

eikx

=∫

π

−π

Dn(x−y)︷ ︸︸ ︷1

n

∑k=−n

(eik(x−y)

)f (y)dy≡

∫π

−π

Dn (x− y) f (y)dy.

The function Dn (t)≡ 12π ∑

nk=−n eikt is called the Dirichlet Kernel.

Theorem 12.1.3 The function Dn satisfies the following:

278 CHAPTER 12. SERIES AND TRANSFORMSIt may be interesting to see where this formula came from. Suppose then that f (x) =Yio cxe!, multiply both sides by e~”™ and take the integral [ * » 8o that4 . aT .f(xje "dx = / y cpel eo ™ dx.—1—T k= 00Now switch the sum and the integral on the right side even though there is absolutely no rea-son to believe this makes any sense. Then [7_ f (x)e-U™dx = YP oce [7 ee dx =Cm Ion ldx = 21c,, because nn elk e—im dy = if k # m. It is formal manipulations of thesort just presented which suggest that Definition 12.1.2 might be interesting.In case f is real valued, Cc, = c_, and soSif (x se xl. fo )dy-+ Ye 2Re (cx).Letting cy = O +iB;,Snf (x -5 [4 y)dy+ x 2 [a,.coskx — B, sinkx]=Iwhere cx = 52 J", f (ye dy = + J”, f (y) (cosky —isinky) dy which shows thatOy = xz | Foes (by)at B= = | Fodsin (ey) ayTherefore, letting a, = 2a, and by = —2B,,at = =| f (y) cos (ky) dy, by = =| £0) sin (ky) dyTN J—xand ChSif (x) = ++ Yay coskx+ dy sinkx (12.4)k=1This is often the way Fourier series are presented in elementary courses where it is onlyreal functions which are to be approximated. However it is easier to stick with Definition12.1.2.The partial sums of a Fourier series can be written in a particularly simple form whichis presented next.n ; n 1 1 ;sls) = Yael = ¥ (55 [rove tay)k=—nDy(x—-y)aT 1 n= [EY (>) roars [* rvo-vyroVas1 20The function Dy (t) = 32 Le__, e™ is called the Dirichlet Kernel.Theorem 12.1.3 the function D,, satisfies the following: