Fourier Series and Partial Differential Equations Lecture Notes
Fourier Series and Partial Differential Equations Lecture Notes
Fourier Series and Partial Differential Equations Lecture Notes
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 2. <strong>Fourier</strong> series 15<br />
for every n. Also, f(x)cos(nx) is even, so<br />
an = 1<br />
π<br />
f(x)cos(nx)dx,<br />
π −π<br />
= 2<br />
π<br />
f(x)cos(nx)dx,<br />
π 0<br />
= 2<br />
π<br />
xcos(nx)dx,<br />
π 0<br />
= 2<br />
π π xsin(nx) sin(nx)<br />
−<br />
π n 0 0 n<br />
= − 2<br />
<br />
−cos(nx)<br />
π n2 π ,<br />
0<br />
= 2<br />
<br />
cos(nπ)−cos(0)<br />
π n2 <br />
,<br />
= 2<br />
π<br />
<br />
dx ,<br />
[(−1) n −1]<br />
n 2 . (2.37)<br />
Note that this is not valid for n = 0. In fact, a0 = π. If n is even, n = 2m say, we have<br />
If n is odd, n = 2m+1 say, we obtain<br />
2.2.2 Sine <strong>and</strong> cosine series<br />
Let f be 2π-periodic. If f is odd then<br />
where<br />
a2m = 2((−1)2m −1)<br />
π(2m) 2 = 0. (2.38)<br />
a2m+1 = 2(−1−1)<br />
=<br />
π(2m+1) 2<br />
f(x) ∼<br />
−4<br />
π(2m+1) 2.<br />
(2.39)<br />
∞<br />
bnsin(nx), (2.40)<br />
n=1<br />
bn = 1<br />
π<br />
f(s)sin(ns)ds =<br />
π −π<br />
2<br />
π<br />
f(s)sin(ns)ds, (2.41)<br />
π 0<br />
i.e. f has a <strong>Fourier</strong> sine series. In this case an = 0 because f(x)cos(nx) is odd. This is<br />
also true if f(x) = −f(−x) for x = nπ, n ∈ Z, i.e. f is odd apart from the end points <strong>and</strong><br />
zero.<br />
If f is even then<br />
f(x) ∼ 1<br />
2 a0<br />
∞<br />
+ ancos(nx), (2.42)<br />
n=1<br />
where<br />
an = 2<br />
π<br />
f(s)cos(ns)ds,<br />
π 0<br />
(2.43)<br />
i.e. f has a <strong>Fourier</strong> cosine series.