Answers Fourierseries Problems
Answers Fourierseries Problems
n.b. The questions marked with a ? are more challenging. They are not conceptually difficult, but
the maths is quite long-winded, so you’ll need to do the calculations carefully to get the right an-
swer.
1
Figure 1: q1: f (t) from part f) (red solid line) and part g) (dotted blue line) .
2. Write down (without doing any calculations) the coefficients of the trigonometric Fourier
series of the function in 1f)
3. Write down (without doing any calculations) the coefficients of the complex Fourier series
of the function in 1f)
Using
exp (iω0 t) + exp (−iω0 t)
cos (ω0 t) = ,
2
exp (iω0 t) − exp (−iω0 t) −i exp (iω0 t) + i exp (−iω0 t)
sin (ω0 t) = = ,
2i 2
we can rewrite f (t) as
1 1 i i
f (t) = exp (iω0 t) + exp (−iω0 t) − exp (i3ω0 t) + exp (−i3ω0 t) ,
2 2 8 8
and therefore c1 = c−1 = 1/2, c3 = −i/8, c−3 = i/8 and all other coefficients are zero.
2
4. Are the following functions even, odd or neither?
b) f (x) = cot(x)
f (−x) = cot (−x) = cos (−x)/ sin (−x) = cos x/(− sin x) = − cot (x) = −f (x), therefore this
function is odd.
c) f (x) = x + x4
f (−x) = −x+(−x)4 = −x+x4 6= f (x) or f (−x), therefore this function is neither odd nor even.
d) f (x) = x2 + cos x
f (−x) = (−x)2 + cos (−x) = x2 + cos x, therefore this function is even.
5. A function is defined as f (x) = 1 − x in the range 0 < x < 1. Sketch the analytic continu-
ations of the function outside this range which are:
i) periodic with period L = 1,
ii) even with period L = 2,
iii) odd with period L = 2.
Figure 2: 5: analytic continuations of f (x) = 1 − x which are (from left to right) i) periodic with
period L = 1, ii) even with period L = 2, iii) odd with period L = 2.
3
6. Two voltage signals are observed to have the form:
1
V1 (t) = 3 cos (t/3) + cos t + cos (2t) ,
2
1
V2 (t) = 3 cos (t/π) + cos t + cos (2t) .
2
In each case:
a) Is the signal periodic?
Signal V1 (t) is periodic with period T = 6π (this is the smallest value of t such that t/3, t and 2t
are all integer multiples of 2π, so that V1 (t) = V1 (t + T ) for all t).
Signal V2 (t) is not periodic. There is no value of t such that t/π, t and 2t are all integer multiples
of 2π.
See Fig. 3 for plots of V1 (t) and V2 (t).
Figure 3: q6a: V1 (t) (red solid line) and V2 (t) (dotted blue line) .
If so:
b) What is the period?
4
Figure 4: q6c: sketch of Fourier components of trigonometric Fourier series.
7. Use trig identities to re-write each of the expressions below in the form of a linear com-
bination of exp (iω0 t), exp (−iω0 t) and their harmonics exp (irω0 t), exp (−irω0 t) (i.e. in the
form Σr cr exp (irω0 t)):
a) cos (ω0 t)
1
cos (ω0 t) = [exp (iω0 t) + exp (−iω0 t)] .
2
b) cos (2ω0 t)
1
cos (2ω0 t) = [exp (i2ω0 t) + exp (−i2ω0 t)] .
2
1
2 cos (ω0 t) sin (ω0 t) = sin (2ω0 t) = [exp (i2ω0 t) − exp (−i2ω0 t)] ,
2i
i
= [exp (−i2ω0 t) − exp (i2ω0 t)] .
2
d) cos2 (ω0 t)
1 1 1
cos2 (ω0 t) = [1 + cos (2ω0 t)] = + [exp (i2ω0 t) + exp (−2iω0 t)] .
2 2 4
5
8. A train of rectangular pulses of height h centered at t = 0 has a pulse width equal to 1/4 of
the pulse period T . Show that the 4th, 8th, 12th etc. harmonics are missing.
This can be written mathematically as
(
h if |t| < T /8 ,
f (t) =
0 otherwise .
4 T /2
Z
2πrt
ar = f (t) cos dt ,
T 0 T
4h T /8
Z
2πrt
= cos dt ,
T 0 T
T /8
4h T 2πrt
= sin ,
T 2πr T 0
2h πr
= sin ,
πr 4
which is zero if r is a multiple of 4.
n.b. In general a0 has to be calculated separately, but this question doesn’t ask us to calculate the
full Fourier series (just to show that the harmonics which are multiples of 4 are missing) therefore
in this case we don’t need to calculate it.
9. The function f (x) is periodic with period L and given by f (x) = exp (αx) for 0 ≤ x ≤ L,
where α is a real positive constant.
a) Sketch this function.
6
1 L
Z
2πirx
cr = f (x) exp − dx ,
L 0 L
1 L 1 L
Z Z
2πirx 2πir
= exp (αx) exp − dx = exp α − x dx ,
L 0 L L 0 L
L
1 1 2πir 1 2πir
= exp α − x = exp α − L −1 ,
L α − 2πir
L
L 0 Lα − 2πir L
1 1
= [exp (αL) exp (−2πir) − 1] = [exp (αL) − 1] ,
(αL − 2πir) (αL − 2πir)
d) What does this tell us about the trigonometric Fourier series coefficients, ar and br ?
This means both ar and br are non-zero. The question didn’t ask you to calculate them, but if you
did you’d find:
1 1
ar = cr + c−r = (exp (αL) − 1) + ,
αL − 2πir αL − 2πir
αL + 2πir + αL − 2πir 2αL
= (exp (αL) − 1) = (exp (αL) − 1) 2 2 .
α2 L2 + 4π 2 r2 α L + 4π 2 r2
1 1
br = i(cr − c−r ) = i (exp (αL) − 1) − ,
αL − 2πir αL − 2πir
αL + 2πir − αL + 2πir 4πr
= i (exp (αL) − 1) = (1 − exp (αL)) 2 2 .
α2 L2 + 4π 2 r2 α L + 4π 2 r2
10? . Show that the Fourier series of the odd analytic continuation of the function
(
2h
x if 0 < x ≤ l/2 ,
f (x) = 2hl
l
(l − x) if l/2 < x ≤ l ,
is given by
8h πx 1 3πx
f (x) = 2 sin − sin + ... .
π l 9 l
(we’ll use this result in Fourier 12).
7
The odd analytic continuation will have L = 2l, ar = 0 and
so that
l/2
l2 l2
Z πrx
x sin dx = − cos (πr/2) + sin (πr/2) ,
0 l 2rπ rπ
and
l
l2 l2 l2
Z πrx
x sin dx = − cos (πr) + cos (πr/2) − sin (πr/2) .
l/2 l rπ 2rπ rπ
Putting these results together we get
l2 l2 l2 l2 l2
4h
bn = 2 − cos (πr/2) + sin (πr/2) + cos (πr) − cos (πr/2) + sin (πr/2)
l 2rπ rπ rπ 2rπ rπ
2 2
l l
+ cos (rπ/2) − cos (rπ) ,
rπ rπ
8h
= sin (πr/2) ,
π 2 r2
and hence
8h 8h 1
b1 = , b2 = 0 , b3 = − , b4 = 0 , ... .
π2 π2 9
a) Calculate the coefficients cr of its exponential Fourier series. Hint: you’ll need to consider
the positive and negative t integrals separately.
8
Z T /2 Z T /2
1 2πirt
cr = f (t) exp − dt = f (t) exp (−irω0 t) dt ,
T −T /2 T −T /2
with ω0 = 2π/T , and we have f (t) = |t|. Note that since exp (−irω0 t) is neither even nor odd
the integrand isn’t even and (unlike with the trigonometric series) we have to integrate over the full
range.
1 0 1 T /2
Z Z
cr = (−t) exp (−irω0 t) dt + t exp (−irω0 t) dt ,
T −T /2 T 0
" Z #
0 Z T /2
1
= − t exp (−irω0 t) dt + t exp (−irω0 t) dt .
T −T /2 0
9
b) The trigonometric Fourier series of f (t) from part a) has coefficients
T
a0 = .
2
(
− πω40 r2 ir r is odd ,
ar =
0 otherwise .
br = 0 .
a0 = 2c0 ,
ar = cr + c−r ,
br = i(cr − c−r ) ,
as required.
c) Calculate the average over a period of |f (t)|2 directly (by integrating). Then use Parseval’s
theorem to show that ∞
X 1 π4
= .
j=1
(2j − 1)4 96
10
and we have
∞ −1 ∞ 2 2 X −1 2 X∞
X
2 2
X
2
X
2 T 2 1 2 1
|cr | = |c0 | + |cr | + |cr | = + 4
+ 4
,
r=−∞ r=−∞ r=1
4 πω 0 j=−∞
(2j − 1) πω 0 j=1
(2j − 1)
2 2 X∞ 2 2 X ∞
T 2 1 T T 1
= +2 4
= + 2 2 4
.
4 πω0 j=1
(2j − 1) 4 π j=1
(2j − 1)
Therefore ∞
T2 T2 T2
X
1
= +2 ,
12 16 π4 j=1
(2j − 1)4
and hence ∞
π4
X 1 1 1 1
4
= − π4 = .
j=1
(2j − 1) 2 12 16 96
11