Theory
Fourier series can be simplified if the function exhibits symmetry.
- Odd Functions: f(−x)=−f(x).
The Fourier series of an odd function is a Sine Series, where a0=an=0.
- Even Functions: f(−x)=f(x).
The Fourier series of an even function is a Cosine Series, where bn=0.
Exercises
Exercise 1
Question
Determine if the following are even or odd:
- f(x)=x2
- f(x)=x3
- f(x)=ex
Show solution ↓Hide solution ↑
Solution
- f(−x)=(−x)2=x2=f(x), so f(x) is even.
- f(−x)=(−x)3=−x3=−f(x), so f(x) is odd.
- f(−x)=e−x=f(x) and =−f(x), so f(x) is neither even nor odd.
Exercise 2
Question
Write the Fourier series of f(x)=∣x∣, x∈(−π,π).
Show solution ↓Hide solution ↑
Solution
The function f(x)=∣x∣ is even.
Therefore, its Fourier series is a cosine series:
f(x)=2a0+n=1∑∞ancos(nx).a0=π1∫−ππ∣x∣dx=π2∫0πxdx=π.an=π2∫0πxcos(nx)dx=π2n2(−1)n−1.Thus,
|x|=\frac{\pi}{2}
-\frac{4}{\pi}\sum_{n=1}^{\infty}\frac{\cos((2n-1)x)}{(2n-1)^2},
\quad -\pi<x<\pi.
Exercise 3
Question
Write the Fourier series of
f(x)={x+1,x−1,−10lt;xlt;xlt;0,lt;1.Show solution ↓Hide solution ↑
Solution
Check symmetry:
f(−x)={−x+1,−x−1,0−1lt;xlt;xlt;1,lt;0,=−f(x).Thus, f(x) is an odd function, and its Fourier series is a sine series.
f(x)=\sum_{n=1}^{\infty}b_n\sin(n\pi x),
\quad (-1<x<1).bn=∫−11f(x)sin(nπx)dx=2∫01(x−1)sin(nπx)dx.Evaluating,
bn=nπ2(−1)n.Hence,
f(x)=n=1∑∞nπ2(−1)nsin(nπx).
Exercise 4
Question
Write the Fourier series of f(x)=sin(2x), -\pi<x<\pi.
Show solution ↓Hide solution ↑
Solution
The function f(x)=sin(2x) is odd.
Therefore, its Fourier series contains only sine terms.
Since sin(2x) is already a sine function,
b2=1,bn=0 for n=2.Thus, the Fourier series is simply
f(x)=sin(2x).