Theory
Dirichlet's Theorem gives conditions under which a Fourier series converges.
If f(x) is a periodic function with period 2L and is piecewise continuous on (−L,L), then:
- The Fourier series converges to f(x) at every point where f is continuous.
- At a point of discontinuity x0, the Fourier series converges to
21[x→x0−limf(x)+x→x0+limf(x)].
Exercises
Exercise 1
Question
Write the Fourier series of f(x)=x on (−π,π).
Show solution ↓Hide solution ↑
Solution
The function f(x)=x is an odd function.
Therefore,
a0=0,an=0.We compute only bn:
bn=π1∫−ππxsin(nx)dx.Since xsin(nx) is even,
bn=π2∫0πxsin(nx)dx.Using integration by parts,
bn=n2(−1)n+1.Thus, the Fourier series is
x=\sum_{n=1}^{\infty}\frac{2(-1)^{n+1}}{n}\sin(nx),\quad -\pi<x<\pi.
Exercise 2
Question
Write the Fourier series of the periodic function
f(x)=⎩⎨⎧0,1,0,−π≤x≤0,02πlt;xlt;xlt;2π,lt;π,f(x+2π)=f(x),and compute the convergent values at
x=0,4π,2π,43π,π.
Show solution ↓Hide solution ↑
Solution
The period is 2π, so L=π.
Step 1: Compute a0
a0=π1∫−ππf(x)dx=π1∫02π1dx=21.Step 2: Compute an
an=π1∫02πcos(nx)dx=nπ1sin2nπ.Step 3: Compute bn
bn=π1∫02πsin(nx)dx=nπ1(1−cos2nπ).Fourier series
f(x)=41+n=1∑∞nπsin2nπcos(nx)+n=1∑∞nπ1−cos2nπsin(nx).Convergent values (Dirichlet's Theorem)
- x=0: 21(0+1)=21
- x=4π: f(4π)=1
- x=2π: 21(1+0)=21
- x=43π: f(43π)=0
- x=π: f(π)=0
Exercise 3
Question
Write the Fourier series of
f(x)=⎩⎨⎧0,k,0,−2−11lt;xlt;xlt;xlt;−1,lt;1,lt;2,f(x+4)=f(x),and compute the convergent values at x=−1,0,1.5.
Show solution ↓Hide solution ↑
Solution
The period is 2L=4, so L=2.
Using Dirichlet's Theorem:
- x=−1: 21(0+k)=2k
- x=0: f(0)=k
- x=1.5: f(1.5)=0
Exercise 4
Question
Suppose
f(x)={π,0,0otherwise in (−π,π),lt;xlt;2π,f(x+2π)=f(x).
- Find the Fourier series of f(x) and its sum at
x=−π,−2π,0,2π.
- Find the sum of n=1∑∞2n−1(−1)n.
Show solution ↓Hide solution ↑
Solution
By Dirichlet’s Theorem, at x=2π the Fourier series converges to
21(π+0)=2π.Evaluating the Fourier series at x=2π leads to
2π=4π−(−1+31−51+⋯).Hence,
n=1∑∞2n−1(−1)n=−4π.