Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Fourier Series: Representing Functions as Sums of Trigonometric Functions, Lecture notes of Signals and Systems

In this document, we explore Fourier series expansions, which allow representing functions as sums of simpler trigonometric functions (sine and cosine). The Fourier series expansion of a function is defined by its Fourier coefficients, calculated using integration formulas. an example of finding the Fourier series expansion of the absolute value function, and discusses the theorem that guarantees the convergence of Fourier series expansions under certain conditions.

Typology: Lecture notes

2020/2021

Uploaded on 06/21/2021

salujaa
salujaa 🇺🇸

4.3

(11)

242 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2.1.2 Fourier series
In applied mathematics, it is often of great interest to be able to describe functions in terms of simpler
functions. For instance, the classical theory of Power Series is concerned with representing functions as
infinite sums of simpler polynomial functions, e.g., the exponential function is known to satisfy
ex= 1 + x+x2
2+x3
6+· ·· +xn
n!+·· · =
X
n=1
xn
n!,
i.e., the function f(x) = excan be written as an infinite sum of multiples of powers of x! Such representations
can be very useful in various applications, such as in the solution of ordinary differential equations.
In this section, we investigate the question of describing functions in terms of simpler trigonometric
functions; these are the celebrated Fourier series expansions3. In physical terms they can be interpreted
as analysing a function into simple sine and cosine functions (waves) of different frequencies. This is a
very general and powerful idea; indeed, Fourier series are at the heart of many applications such as signal
processing and medical imaging.
Definition 2.1 For L > 0constant, let f[L, L]Rbe a function with at most finite number of disconti-
nuities in the interval [L, L]. The Fourier series expansion associated with fis defined as
a0
2+
X
n=1 ³ancos ¡nπx
L¢+bnsin ¡nπx
L¢´,
where anand bn,n= 1,2, . . . , are called the Fourier coefficients and given by the formulas
an:= 1
LZL
L
f(x) cos ¡nπx
L¢dx, and bn:= 1
LZL
L
f(x) sin ¡nπx
L¢dx.
We investigate the above definition with an example.
Example 2.2 We are seeking the Fourier series expansion of the function f: [1,1] R, with f(x) = |x|.
We have L= 1, and we calculate the Fourier coefficients:
an=Z1
1|x|cos(nπx)dx=Z0
1
(x) cos(nπx)dx+Z1
0
xcos(nπx)dx
=hxsin(nπx)
i0
1+Z0
1
sin(nπx)
dx+hxsin(nπx)
i1
0Z1
0
sin(nπx)
dx
= 0 + hcos(nπx)
()2i0
1+ 0 hcos(nπx)
()2i1
0=1(1)n
()2+(1)n1
()2= 2 (1)n1
()2,
and
bn=Z1
1|x|sin(nπx)dx=Z0
1
(x) sin(nπx)dx+Z1
0
xsin(nπx)dx
=hxcos(nπx)
i0
1Z0
1
cos(nπx)
dx+hxcos(nπx)
i1
0+Z1
0
cos(nπx)
dx
=(1)n
hsin(nπx)
()2i0
1(1)n
+hsin(nπx)
()2i1
0= 0,
for n= 1,2, . . . , and
a0=Z1
1|x|dx=Z0
1
(x)dx+Z1
0
xdx= 1.
Hence the Fourier series expansion of f(x) = |x|,x[1,1] reads
1
2+
X
n=1
2(1)n1
()2cos(nπx).
3The name refers to the great French mathematician and physicist Jean Baptiste Joseph Fourier (1768 - 1830) who first
proposed solving PDEs using trigonometric series expansions.
23
pf3
pf4
pf5

Partial preview of the text

Download Fourier Series: Representing Functions as Sums of Trigonometric Functions and more Lecture notes Signals and Systems in PDF only on Docsity!

2.1.2 Fourier series

In applied mathematics, it is often of great interest to be able to describe functions in terms of simpler functions. For instance, the classical theory of Power Series is concerned with representing functions as infinite sums of simpler polynomial functions, e.g., the exponential function is known to satisfy

ex^ = 1 + x + x^2 2

x^3 6

xn n!

∑^ ∞

n=

xn n!

i.e., the function f (x) = ex^ can be written as an infinite sum of multiples of powers of x! Such representations can be very useful in various applications, such as in the solution of ordinary differential equations. In this section, we investigate the question of describing functions in terms of simpler trigonometric functions; these are the celebrated Fourier series expansions^3. In physical terms they can be interpreted as analysing a function into simple sine and cosine functions (waves) of different frequencies. This is a very general and powerful idea; indeed, Fourier series are at the heart of many applications such as signal processing and medical imaging.

Definition 2.1 For L > 0 constant, let f [−L, L] → R be a function with at most finite number of disconti- nuities in the interval [−L, L]. The Fourier series expansion associated with f is defined as

a 0 2 +

∑^ ∞

n=

an cos

( (^) nπx L

  • bn sin

( (^) nπx L

where an and bn, n = 1, 2 ,... , are called the Fourier coefficients and given by the formulas

an :=

L

∫ L

−L

f (x) cos

( (^) nπx L

dx, and bn :=

L

∫ L

−L

f (x) sin

( (^) nπx L

dx.

We investigate the above definition with an example.

Example 2.2 We are seeking the Fourier series expansion of the function f : [− 1 , 1] → R, with f (x) = |x|. We have L = 1, and we calculate the Fourier coefficients:

an =

− 1

|x| cos(nπx)dx =

− 1

(−x) cos(nπx)dx +

0

x cos(nπx)dx

[

− x sin(nπx) nπ

] 0

− 1

− 1

sin(nπx) nπ dx +

[

x sin(nπx) nπ

] 1

0

0

sin(nπx) nπ dx

= 0 +

[

cos(nπx) (nπ)^2

] 0

− 1

[

cos(nπx) (nπ)^2

] 1

0

1 − (−1)n (nπ)^2

(−1)n^ − 1 (nπ)^2

(−1)n^ − 1 (nπ)^2

and

bn =

− 1

|x| sin(nπx)dx =

− 1

(−x) sin(nπx)dx +

0

x sin(nπx)dx

[

x cos(nπx) nπ

] 0

− 1

− 1

cos(nπx) nπ dx^ +

[

− x cos(nπx) nπ

] 1

0

0

cos(nπx) nπ dx

= (−1)n nπ

[ (^) sin(nπx) (nπ)^2

] 0

− 1

(−1)n nπ

[ (^) sin(nπx) (nπ)^2

] 1

0

for n = 1, 2 ,... , and

a 0 =

− 1

|x|dx =

− 1

(−x)dx +

0

xdx = 1.

Hence the Fourier series expansion of f (x) = |x|, x ∈ [− 1 , 1] reads

1 2

∑^ ∞

n=

(−1)n^ − 1 (nπ)^2 cos(nπx).

(^3) The name refers to the great French mathematician and physicist Jean Baptiste Joseph Fourier (1768 - 1830) who first proposed solving PDEs using trigonometric series expansions.

To see how does the Fourier expansion compares to the original function, we consider the partial sums

1 2

∑^ k n=

(−1)n^ − 1 (nπ)^2 cos(nπx);

then, for k = 1, we get 1 2 −^

π^2 cos(πx), for k = 3, we get 1 2

π^2 cos(πx) −

9 π^2 cos(3πx),

and so on (notice that the terms for n even are zero). In Figure 2.2, we plot the function f (x) = |x| and the partial sums of its Fourier expansion for k = 1, k = 3 and k = 7.

0

1

–1 –0.8 –0.6 –0.4 –0.2 0.2 0.4 0.6 0.8 1 x (a) Graph of f (x) = |x|

–1 –0.8 –0.6 –0.4 –0.2 0 0.2 0.4 0.6 0.8 1 x (b) Fourier expansion for k = 1

–1 –0.8 –0.6 –0.4 –0.2 0 0.2 0.4 0.6 0.8 1 x (c) Fourier expansion for k = 3

–1 –0.8 –0.6 –0.4 –0.2 0 0.2 0.4 0.6 0.8 1 x (d) Fourier expansion for k = 7

Figure 2.2: Fourier synthesis...

The first question that may spring to mind is: does it hold

f (x) = a 0 2

∑^ ∞

n=

an cos

( (^) nπx L

  • bn sin

( (^) nπx L

In the previous example, this seemed to be the case, as we take more and more terms in the series. The following theorem gives an answer to the above question.

Theorem 2.3 Suppose that a function f : [−L, L] → R and its derivative f ′^ are bounded and continuous everywhere in [−L, L] apart from a finite number of points. Then, at every point x ∈ (−L, L) for which f is continuous, we have

f (x) = a 0 2 +

∑^ ∞

n=

an cos

( (^) nπx L

  • bn sin

( (^) nπx L

at every point x ∈ (−L, L) that f has a jump discontinuity, we have

1 2

f (x+) + f (x−)

= a^0 2

∑^ ∞

n=

an cos

( (^) nπx L

  • bn sin

( (^) nπx L

To see how does the Fourier expansion compares to the original function, we consider the partial sums

1 2

∑^ k n=

sin

( (^) nπ 2

nπ cos

( (^) nπx 2

In Figure 2.3, we plot the function f˜ and the partial sums of its Fourier expansion for k = 1, k = 3 and k = 9 and k = 39.

0

1

–2 –1 1 2 x (a) Graph of f˜

1

–2 –1 1 2 x (b) Fourier expansion for k = 1

1

–2 –1 1 2 x (c) Fourier expansion for k = 3

1

–2 –1 1 2 x (d) Fourier expansion for k = 9

1

–2 –1 1 2 x (e) Fourier expansion for k = 39

Figure 2.3: Fourier synthesis...

(b) Extension to an odd function. We extend f to the odd function^6 fˆ : [− 2 , 2] → R, with

f^ ˆ (x) =

1 , if 0 ≤ x ≤ 1 ; − 1 , if − 1 ≤ x < 0 ; 0 , if − 2 ≤ x < − 1 or 1 < x ≤ 2.

We have L = 2, and we calculate the Fourier coefficients:

an = −

− 1

cos

( (^) nπx 2

dx +

0

cos

( (^) nπx 2

dx = −

[ (^) sin (^ nπx 2

] 0

− 1

[ (^) sin (^ nπx 2

] 1

0

and

bn = −

− 1

sin

( (^) nπx 2

dx +

0

sin

( (^) nπx 2

dx = −

[

cos

( (^) nπx 2

] 0

− 1

[

cos

( (^) nπx 2

] 1

0

1 − cos

( (^) nπ 2

for n = 1, 2 ,... , and

a 0 = − 1 2

− 1

dx +^1 2

0

dx = 0.

Hence the Fourier series expansion of fˆ , x ∈ [− 2 , 2] reads

∑^ ∞ n=

1 − cos

( (^) nπ 2

nπ sin

( (^) nπx 2

(^6) We recall that an odd function is one for which f (−x) = −f (x), i.e., it admits the origin as the centre of symmetry.

To see how does the Fourier expansion compare to the original function, we consider the partial sums

∑^ k n=

1 − cos

( (^) nπ 2

nπ sin

( (^) nπx 2

In Figure 2.4, we plot the function fˆ and the partial sums of its Fourier expansion for k = 1, k = 3 and k = 10 and k = 40.

–0.

1

–2 –1 1 2 x

(a) Graph of fˆ

–0.

–0.

–0.

0

–2 –1 1 2 x

(b) Fourier expansion for k = 1

–0.

0

1

–2 –1 1 2 x

(c) Fourier expansion for k = 3

–0.

1

–2 –1 1 2 x

(d) Fourier expansion for k = 10

–0.

0

1

–2 –1 1 2 x

(e) Fourier expansion for k = 40

Figure 2.4: Fourier synthesis...

When we extended the function f : [0, 2] → R to an even function f˜ : [− 2 , 2] → R, the Fourier coefficients bn vanished, yielding a Fourier series expansion consisting only of cosine functions – this is called a cosine series expansion. On the contrary when we extended the function f : [0, 2] → R to an even function fˆ : [− 2 , 2] → R, the Fourier coefficients an vanished, yielding a Fourier series expansion consisting only of sine functions – this is called a sine series expansion. In fact, this is a general observation: any function f : [0, L] → R can be expressed in terms of either a cosine series or a sine series; this will be particularly useful when solving PDEs as presented below. We observe that the partial sums of Fourier series expansions develop oscillations near discontinuities. This phenomenon is common whenever one tries to approximate discontinuous functions by continuous ones and it is usually referred to as Gibbs phenomenon. It is possible to see from Figures 2.3 and 2.4 that at points where the functions admit jump discontinuities then the Fourier series expansions appear to converge to the average of the limit values at either side of each discontinuity; this is in accordance with Theorem 2.3!