Mechanical Vibrations - UUS 304E Homework #1
Mechanical Vibrations - UUS 304E Homework #1
Homework #1
Solution
A Fourier series is an expansion of a periodic function f(x) in terms of an infinite sum of sines and
cosines. Fourier series make use of the orthogonality relationships of the sine and cosine
functions.
Many of the basic areas of physics and engineering can be mathematically described by
differential equations - heat flow, fluid dynamics, electromagnetic theory, quantum mechanics.
Fourier series naturally arise in solving some linear differential equations (heat equation, wave
equation, Schrodinger's equation, etc.) in bounded regions. I say "naturally" because they are
eigenfunctions of a differential operator (see Mathwonk's comment above). This application
alone would be motivation for including it in basic mathematical training of physicists and
engineers.
In here, we will analyze the basic concept of fourier series. Let us assume that f(x) is a periodic
signal with period of L. With the use of fourier series, we can resolve the signal of f (x) into an
infinite sum of sine and cosine terms.
As you can see in this fig by increase number of n the Fourier series be more close to this rectangular
pulse:
Fourier Series Representation w/ 2 Terms Fourier Series Representation w/ 4 Terms
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
Function Value
0
Function Value
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1 -1
0 2 4 6 8 10 0 2 4 6 8 10
Time Time
0.8
0.8
0.6
0.6
0.4 0.4
0.2 0.2
Function Value
0
Function Value
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1 -1
0 2 4 6 8 10 0 2 4 6 8 10
Time Time
Fourier Series Representation w/ 200 Terms Fourier Series Representation w/ 1000 Terms
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
Function Value
Function Value
0 0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1 -1
0 2 4 6 8 10 0 2 4 6 8 10
Time Time
0.8
0.6
0.4
0.2
Function Value
-0.2
-0.4
-0.6
-0.8
-1
0 2 4 6 8 10
Time
Source Code:
N = 100000;
Wo = pi/5;
t = -1:.001:11;
f = zeros(1,length(t));
for n = 1:2:N
an = 4/(pi*n);
f = f+ an*sin(Wo*n*t);
end
plot(t,f)
axis([-1 11 -1.1 1.1])
title(['Fourier Series Representation w/ ' num2str(N) '
Terms'],'FontSize',16)
xlabel('Time')
ylabel('Function Value')
Reference
https://www.physicsforums.com/threads