Академический Документы
Профессиональный Документы
Культура Документы
N
nπt N
n πt
1
2 a0 + ∑
n =1
a k cos
L
+ ∑b
n =1
k sin
L
t 2 − t1
where L = and a 0 , a1 , a 2 , ... and b1 , b2 , ... depend on the particular expression
2
f .
The following example illustrates its use.
2. Go back to Exercise 6.2 and use FOURIER to obtain and plot the Fourier series
expansions of the functions in questions 1 and 2. Comment on the nature of each
function and its Fourier series, in particular noting whether the function is odd, even
or neither.
Obtain the Fourier series approximation of this function and comment on its harmonic
content.
1
Area = ( y1 + y2 ) h
2
L k −1
Area = ∫ ydx ≈ h{y 0 + y1 + y 2 + y 3 + ... + yk −1} = h ∑ ym
−L m= 0
This is something we can implement in Excel making it almost automatic.
Example
Find the Fourier series of f ( x ) = cos x
s+ 2L
1 nπx
To find a n we know that a n =
Ls
cos x cos ∫
L
dx
π
cos x cos (2nx ) dx for n > 0
2
an =
π ∫
0
π
2 k −1 2 π 19
cos x cos (2 nx )dx ≈ ∑ ∑
2
an =
π ∫
0
h
π m= 0
fm =
π 20 m= 0
cos x m cos(2 nxm )
19
∑
1 1 19
a0 =
10 m =0
cos x m an = ∑
10 m= 0
cos x m cos(2 nx)
Example
Samples of a sound wave with wavelength 1 are taken and the amplitudes are found to be
given by the data below. Construct the Fourier series which approximates this data.
t amplitude t amplitude t amplitude
0 10.5 0.3 1.45 0.6 -1.1
0.1 9.53 0.4 -1.64 0.7 0.6
0.2 6.25 0.5 -2.8 0.8 5.47
0.9 6.3
Sampled data
12
10
6
Original Function
f(x)
4
Fourier series
2
0
-1 0 1 2 3
-2
-4
x
This in turn means that we could look at the size of the coefficients of each harmonic, and
assess the contribution of different frequency responses to the original signal. But this is a
whole other story best saved for another time
Modify the spreadsheet to find the Fourier Series of the following data sample, which is
assumed to be periodic with period 6.
Find the graph of the partial sum of the Fourier series (a) up to the 3rd harmonic (b) up to the
10th harmonic.
Summary
The definition of Fourier series is given by
∞
nπx ∞ nπx
f ( x ) = 12 a 0 + ∑
n =1
an cos ∑
+ bn sin
L n =1 L
πx 2πx
= 12 a0 + a1 cos + a2 cos + ...
L L
πx 2πx
+ b1 sin + b2 sin + ...
L L
s+ 2 L
1 nπx
where an =
L ∫ f ( x) cos
s
L
dx
s+ 2 L
1 nπx
and bn =
L ∫ f ( x) sin L
dx
s
What are the pros and cons of finding Fourier series using
• pen and paper
• Derive
• Excel?
Again, are there times when one method is more suitable than others?