Professional Documents
Culture Documents
Fourier series
MA 16021
Examples
The Basics
Fourier series
Examples
Definition
A function f (x) is said to be even if f (x) = f (x).
The function f (x) is said to be odd if f (x) = f (x).
Graphically, even functions have symmetry about the y-axis,
whereas odd functions have symmetry around the origin.
Even
Odd
Neither
The Basics
Fourier series
Examples
sin x (odd)
cos x (even)
The Basics
Fourier series
Examples
The Basics
Fourier series
Examples
The Basics
Fourier series
Examples
Periodic functions
Definition
A function f (x) is said to be periodic if there exists a number
T > 0 such that f (x + T ) = f (x) for every x. The smallest such
T is called the period of f (x).
Intiutively, periodic functions have repetitive behavior.
A periodic function can be defined on a finite interval, then
copied and pasted so that it repeats itself.
Examples
I
2x
If L is a fixed number, then sin( 2x
L ) and cos( L ) have
period L
The Basics
Fourier series
Examples
Fourier series
Let p > 0 be a fixed number and f (x) be a periodic function
with period 2p, defined on (p, p). The Fourier series of f (x) is
a way of expanding the function f (x) into an infinite series
involving sines and cosines:
f (x) =
X
a0 X
nx
nx
+
an cos(
)+
bn sin(
)
2
p
p
n=1
(2.1)
n=1
The Basics
Fourier series
Examples
Fourier Series
Remarks:
I To find a Fourier series, it is sufficient to calculate the
integrals that give the coefficients a0 , an , and bn and plug
them in to the big series formula, equation (2.1) above.
I Typically, f (x) will be piecewise defined.
I Big advantage that Fourier series have over Taylor series:
the function f (x) can have discontinuities!
Useful identities for Fourier series: if n is an integer, then
I sin(n) = 0
e.g. sin() = sin(2)(= sin(3) = sin(20) = 0
1
n even
I cos(n) = (1)n =
1 n odd
e.g. cos() = cos(3) = cos(5) = 1,
but cos(0) = cos(2) = cos(4) = 1.
The Basics
Fourier series
Examples
}|
{
z
1
nx
bn =
f (x) sin(
) dx = 0
p p |{z}
p
|
{z
}
even
Z
odd
The Basics
Fourier series
Examples
1
an =
p
odd
z}|{
f (x) dx = 0
p
odd
p
z
}|
{
nx
f (x) cos(
) dx = 0
p
p |{z}
|
{z
}
odd
even
The Basics
Fourier series
Examples
Disclaimer
The Basics
Fourier series
Examples
Example 1
Let f (x) be periodic and defined on one period by the formula
(
1 2 < x < 0
f (x) =
1
0<x<2
Graph of f (x) (original part in green):
The Basics
Fourier series
Examples
Example 1
Since f (x) is an odd function, we conclude that a0 = an = 0 for
each n. A bit of computation reveals
Z
nx
2
2
1 2
f (x) sin(
) dx =
(1 cos(n)) =
(1 (1)n )
bn =
2 2
2
n
n
Therefore
X
2
nx
f (x) =
(1 (1)n ) sin(
)
n
2
n=1
4
x
4
3x
sin( ) +
sin(
)+
| {z 2 } |3 {z 2 }
n=1
n=3
The Basics
Fourier series
Examples
Example 1
N = 10
N = 20
N = 30
N = 40
The Basics
Fourier series
Examples
Example 1
Observations:
As the number
of terms used increases, the
approximation gets closer and
closer to the original function
as x 0.
In general, if f (x) has a discontinuity at x0 , then the
Fourier series converges to the average of
lim f (x) and lim f (x).
xx+
0
xx
0
The Basics
Fourier series
Examples
Example 2
Let f (x) be periodic and defined on one period by the formula
(
0
< x < 0
f (x) =
2
x 0<x<
Graph of f (x) (original part in green):
2
The Basics
Fourier series
Examples
Example 2
After some calculations (which are very tedious and involve lots
of IBP),
1
a0 = 2 ,
3
an =
2(1)n
,
n2
bn =
(1)n (2 2 n2 ) 2
n3
Thus,
f (x) =
2(1)n
1 2
(1)n (2 n2 2 ) 2
+
cos(nx)
+
sin(nx)
2
3
6
n
n{z
|{z}
|
}
n=1 | {z }
a0
an
bn
2
The Basics
Fourier series
Examples
Example 2
2
2
2
2 .
The Basics
Fourier series
Examples
Example 2
2
2 X
=
+
2
6
n=1
2(1)n
(1)n (2 2 n2 ) 2
sin(n)
cos(n) +
n2
n3
X
1
2
=
.
n2
6
n=1
The Basics
Fourier series
Examples
Review Friday