Professional Documents
Culture Documents
Fourier PDF
Fourier PDF
John Appleby
Contents
1 Important Facts 1
1 Important Facts
and odd if
f (−x) = −f (x) for all x ∈ R
Recall the product of two even functions is even, the product of two odd func-
tions is even and the product of an even and an odd function is odd. Compare
2
the multiplication of even and odd functions to the addition of even and
odd integers.
STEP 2: Since f (x) is even and sin nx is odd, f (x) sin nx is odd and hence
1 π
Z
bn = f (x) cos nx dx = 0.
π −π
STEP 3: Since f (x) is even and cos nx is even, f (x) cos nx is even, and so
Z π Z π
f (x) cos nx dx = 2 f (x) cos nx dx.
−π 0
Therefore,
1 π
Z π
2 π 2
Z Z
1
an = f (x) cos nx dx = 2 f (x) cos nx dx = (π − x2 ) cos nx
π −π π 0 π 0
(2.2)
As suggested above, we calculate the integral in (2.2) by Integration by Parts.
Recall the Integration by Parts formula:
Z b b Z b
0
f (x)g (x) dx = f (x)g(x) − f 0 (x)g(x) dx (2.3)
a x=a a
Let
f (x) = π 2 − x2 and g 0 (x) = cos nx
so Z
1
f 0 (x) = −2x and g(x) = cos nx dx = sin nx.
n
Using (2.3) and the above, we have
Z π
(π 2 − x2 ) cos nx dx (2.4)
0 | {z } | {z }
f g0
1 π Z π 1
= (π 2 − x2 ) sin nx − −2x sin nx dx
| {z } |n {z } 0 0
|{z} n
f0
| {z }
f g g
2 π
Z
2 2 1 2 2 1
= (π − π ) sin nπ − (π − 0 ) sin 0 + x sin nx dx
n n n 0
Z π
2
= x sin nx dx. (2.5)
n 0
Now we calculate this last integral using integration by parts: let
so
− cos nx
Z
f 0 (x) = 1 and g(x) = sin nx dx = .
n
Using (2.3), and remembering that cos nπ = (−1)n , sin nπ = 0 for n an integer,
we have
Z π Z π
− cos nx π − cos nx
x sin nx} dx = |{z}
x − 1 dx
0
|{z} | {z n 0 0
|{z} n
f 0 f 0 | {z }
g f
| {z }
g g
− cos nπ − cos 0 1 π
Z
= π −0 + cos nx dx
n n n 0
1 1 sin nx π 1
= − π(−1)n + = − π(−1)n .
n n n 0 n
2 π 2 22 π
Z Z
an = (π − x2 ) cos nx dx = x cos nx dx
π 0 πn 0
22 1 −4
= − π(−1)n = 2 (−1)n .
πn n n
It remains to calculate a0 , which is given by
Z π Z π
1 1
a0 = f (x) dx = 2 π 2 − x2 dx
2π −π 2π 0
x3 π π3 2π 3
1 2 1 3
= π x− = π − =
π 3 0 π 3 3
STEP 4: Using the formulae obtained above for the Fourier coefficients, we
have
∞ ∞
2 2π 3 X −4
2 n 2π 3 X −4
π −x = + (−1) cos nx + 0. sin nx = + (−1)n cos nx
3 n=1
n2 3 n=1
n2
SOLUTION:
STEP 2: Since f (x) is odd and cos nx is even, it follows that f (x) cos nx is
odd, so
1 π
Z
1
an = f (x) cos nx dx = .0 = 0.
π −π π
Moreover, since f is odd
Z π
1 1
a0 = f (x) dx = .0 = 0.
2π −π 2π
STEP 3: We need to calculate the Fourier coefficients using the Euler Formulae.
However, noting that f (x) and sin nx are odd, and therefore that f (x) sin nx is
even we have
1 π
Z π
6 π
Z Z
1
bn = f (x) sin nx dx = 2 f (x) sin nx dx = x cos nx dx. (2.6)
π −π π 0 π 0
(i) Show that x3 cos nx is an odd function and x3 sin nx is an even function.
Hence give the value of Z π
x3 cos nx dx
−π
and write down another expression equal to
Z π
x3 sin nx dx.
−π