S Fourier
S Fourier
A lot of physical problems, in particular, problems concerning to the waves and signals use
of the so-called Fourier Series which we proceed to study. We will see as this idea inspires the
Fourier Transform.
x0 T x0 + T
Definition 1.1. Let f (x) a periodic function with period 2π, we say that f admits a trigonomet-
ric expansion in Fourier series if there exist sequences {an }, n = 0, 1, . . . and {bn }, n = 1, 2, . . . ,
called Fourier coefficients such that
∞
a0 X
f (x) = + ak cos (kx) + bk sin (kx) (1)
2
k=1
Assuming that the trigonometric series converges and has a continuous function as its sum on
the interval [0, 2π]. If we integrate both sides of Equation (1) and assume that it is permissible
1
to integrate the series term-by-term, we get
Z 2π Z 2π ∞ Z 2π ∞ Z 2π
a0
cos (kx) dx + sin (kx) dx,
X X
f (x) dx = dx + ak bk
0 0 2 0 0
k=1 k=1
Hence
Z 2π
1
an = f (x) cos(nx) dx for n = 1, 2, 3, . . .
π 0
and, similarly,
Z 2π
1
bn = f (x) sin(nx) dx for n = 1, 2, 3, . . .
π 0
if x ∈ [0, 2π)
g(x)
f (x) = g(x − 2π) if x ≥ 2π
g(x + 2π) if x < 0
is not necessary continuous, unless g(0) = g(2π). Obviously there are other ways to extend the
function g to a period one.
For these reasons we need redefine the Fourier series to the cases where the equality (1) is
not true for all values of x.
1
Really g could be defined in any interval of length 2π.
2
Definition 1.2. A bounded function f (x) is piecewise
continuous on a finite interval [a, b] provided there ex-
ists a partition
a = x0 < · · · < x n = b
| | | |
of the interval [a, b] and functions f1 , f2 , . . . , fn contin- a x1 x2 b
uous on [a, b] such that for x not a partition point
f1 (x) x0 < x < x1 ,
.. ..
f (x) = . . (2)
f (x) x
n n−1 < x < xn .
The values of f at partition points x0 , x1 , . . . , xn are undecided by this equation (2). That
implies that f (x) has one-sided limits at each point of a < x < b
and appropriate one-sided limits at the endpoints. Therefore, f has at worst a jump discon-
tinuity at each partition point.
Example 1.3 (square wave function). We are computing the Fourier coefficients and Fourier
series of the following piecewise continuous and 2π-periodic function defined by
0 if − π ≤ x < 0
(
f (x) =
1 if 0 ≤ x < π
1
and period T = 2π. −2π −π 0 π 2π
1 2π
Z Z π Z 2π
1
a0 = f (x) dx = 1 dx + 0 dx = 1
π 0 π 0 π
and for n ≥ 1,
1 2π 1 π 1 sin nx π
Z Z
an = f (x) cos(nx) dx = cos(nx) dx = =0
π 0 π 0 π n 0
1 2π 1 π 1 cos nx iπ 1 − (−1)n
Z Z
bn = f (x) sin(nx) dx = sin(nx) dx = − =
π 0 π 0 π n 0 nπ
3
1 1
−π 0 π 2π −π 0 π 2π
(a) S1 (x) = 1
2
+ 2
π
sin x. (b) S3 (x) = 1
2
+ 2
π
sin x + 2
3π
sin 3x.
1 1
−π 0 π 2π −π 0 π 2π
(c) S5 (x) = 1
2
+ π2 sin x + 3π
2
sin 3x + 5x
2
sin 5x. (d) S11 (x) = 1
2
+ 2
π
sin x + · · · + 2
11π
sin 11x.
Remark. Observe in graphs of figures 2 that near discontinuous points of function f the values of
the function and the values of the series are not equals. The nth partial sum of the Fourier series
has large oscillations near the jump. This behavior was observed by experimental physicists,
and it receives the name of Gibbs phenomenon.
Theorem 1.4 (Dirichlet). If f is a periodic function with period 2π and f and f 0 are piecewise
continuous on [0, 2π], then the Fourier series is convergent.
The sum of the Fourier series is equal to f (x) at all numbers where f is continuous.
At the numbers x where f is not continuous, the sum of the Fourier series is the average of
both lateral limits, that is
f (x+ ) + f (x− )
2
We use the notation
∞
a0 X
f (x) ∼ + ak cos (kx) + bk sin (kx)
2
k=1
for representing this situation. Symbol ∼ means = for x such that f (x) is continuous, but it is
not true for discontinuity points.
4
So the Fourier series of f (t) can be obtained from the Fourier series of f˜(x):
∞
a0 X
f˜(x) ∼ + ak cos (kx) + bk sin (kx)
2
k=1
∞
a0
ak cos + bk sin
X
2kπt 2kπt
f (t) ∼ + T T
2
k=1
changing variable t = Tx
2π
Z T Z T Z T
2 2 2
f (t) cos n 2π f (t) sin n 2π
a0 = f (t) dt, an = T t dt, bn = T t dt.
T 0 T 0 T 0
It is easy to see that it’s possible choose any interval [a, a + T ] instead of [0, T ].
Usually is defined the fundamental frequency ω = 2π T,
∞
a0 X
f (t) ∼ + ak cos (kωt) + bk sin (kωt)
2
k=1
then
Z t
a0 X ak sin (kωt) − bk (cos (kωt) − 1)
∞
F (t) = f (u) du = t + for 0 ≤ t ≤ T.
o 2 kω
k=1
5
1
−4 −3 −2 −1 0 1 2 3 4
−1
Hence
X (−1)k+1 π3
3
= .
(2k − 1) 32
k≥1
6
3 Fourier Sine and Cosine Series on 0 ≤ x ≤ T
Sometimes is useful a representation of a function defined on an interval [0, T ] like a Fourier
series consisting only by sines (or cosines). But these representations are efficient only in that
interval.
Let a function f (t) specified on the interval 0 ≤ t ≤ T .
f (t) f (t)
Sn (t) Sn (t)
−T T −T T
−f (−t) if − T ≤ t < 0,
(
g(t) =
f (t) if 0 ≤ t ≤ T
and we make it periodic with period 2T. Then the Fourier series of g(t) consists only by sines,
and it represents f (t) uniquely on the interval (0, T ].
Remark. In case of f (0) 6= 0, the function g(t) has a jump discontinuity in 0 and it produces
the Gibbs phenomenon.
f (−t) if − T ≤ t < 0,
(
g(t) =
f (t) if 0 ≤ t ≤ T
and we make it periodic with period 2T. Then the Fourier series of g(t) consists only by
cosines, and it represents f (t) uniquely on the interval (0, T ].
Example 3.1. Represent the function f (t) = 3 + 4t − 1 (t − 2) (3t − 3) by sine and cosine
series on interval 0 ≤ t ≤ 4.
Extending f (t) to an odd function on interval [−4, 4], we get the fundamental frequency
ω = 2π8 = 4 , and
π
∞
336−6π 2 n2 − 6π 2 n2 −240 (−1)n
Sine series: f (t) = sin n π4 t on 0 ≤ t ≤ 4.
X
3
π n 3
n=1
∞
576−84π 2 n2 + 36π 2 n2 −576 (−1)n
Cosine series: f (t) = 2 + cos n π4 t on 0 ≤ t ≤ 4.
X
4
π n4
n=1
4 Complex Notation
By using the complex notation for sine and cosine functions,
eiφ + e−iφ eiφ − e−iφ
cos φ = , sin φ =
2 2i
7
we may write the formula for the Fourier series in a more compact way:
∞
a0 X eikωt + e−ikωt eikωt − e−ikωt
f (t) ∼ + ak + bk =
2 2 2i
k=1
∞ ∞
a0 X ak bk X ak bk
= + −i e ikωt
+ +i e−ikωt
2 2 2 2 2
k=1 k=1
calling c0 = a20 , ck = a2k − i b2k for k > 0 and ck = for k < 0, function f (t) could be
a−k b−k
2 +i 2
written in a more compact way
∞ Z T
1
with cn =
X
f (t) ∼ ck e ikωt
f (t)e−inωt dt
T 0
k=−∞
This is called the complex Fourier series. Please note that the summation now also covers
negative indexes, we have “negative frequencies”.
Remark. From now, we will consider integrals over complex functions defined on real intervals,
i.e. if ξ(t) is complex function on a ≤ t ≤ b, we will understand the integral as the integrals
over each one of its real and imaginary part.
Z b Z b Z b
ξ(t) dt = Re(ξ(t)) dt + i Im(ξ(t)) dt.
a a a
Example 4.1. For the complex notation for the Fourier series expansion of the triangle wave
function (defined in Example 2.3)
we do
1
(−1)n − 1 1
Z Z
1 1 1
cn = |t|e−inπt dt = 2 2
, for n ∈ Z, n 6= 0 and c0 = |t| dt = .
2 −1 π n 2 −1 2
Therefore
−1 ∞
1 X ((−1)n − 1) eiπ n t 1 1 X ((−1)n − 1) ei π n t
f (t) = 2 + + 2 =
π n=−∞ n2 2 π n2
n=1
= ··· − 2
25π 2
e−i5πt − 2 −i3πt
9π 2
e − 2 −iπt
π2
e + 12 − 2 iπt
π2
e − 2 i3πt
9π 2
e − 2
25π 2
ei5πt − ···
Separating the real and imaginary parts, the previous expression (3) is obtained.
Hence
Z T Z T ∞
X ∞
X ∞
X Z T
ikωt −imωt
f (t)f (t) dt = ck e cm e dt = ck cm ei(k−m)ωt dt,
0 0 k=−∞ m=−∞ k,m=−∞ 0
8
but
Z T Z T Z T
e i(k−m)ωt
dt = cos(k − m)ωt dt + i sin(k − m)ωt dt = 0 for k 6= m
0 0 0
and then
Z T ∞
X ∞
X
f (t)f (t) dt = ck ck T = T |ck |2
0 k=−∞ k=−∞
Theorem 4.2 (Parseval’s Identity). Let f (t) be a continuous function at interval [0, T ] and
periodic with period T , then
Z T ∞
1 2
X
|f (t)| dt = |ck |2 ,
T 0 k=−∞
Example 4.3. Applying the Parseval’s identity to Fourier series obtained in Example 1.3 above,
we found value of a numerical series
∞
2 1 X 2 1−(−1)k 2
π= + 0 + kπ
2π 2
k=1
or
∞
1 4 X 1
= 2
2 π (2k − 1)2
k=1
∞
X 1 π2
2
=
(2k − 1) 8
k=1
Example 4.4. For function in Example 4.1, the Parseval’s identity says:
Z 1 −1 ∞
1 X ((−1)n −1)2 1 X ((−1)n −1)2
|t|2 dt = π 4 n4
+ + π 4 n4
2 −1 n=−∞
4
n=1
∞
1 2 1 2 X ((−1)n −1)2
· = + 4 n4
2 3 4 π
n=1
and finally
∞
X ((−1)n − 1)2 4 4 4 π4
= + + + · · · =
n4 14 34 54 24
n=1