Professional Documents
Culture Documents
Fourier Series
Fourier Series
Fourier Series
Fourier Series
Mathematicians of the eighteenth century, including Daniel Bernoulli and Leonard Euler, expressed
the problem of the vibratory motion of a stretched string through partial dierential equations that
had no solutions in terms of elementary functions. Their resolution of this diculty was to
introduce innite series of sine and cosine functions that satised the equations. In the early
nineteenth century, Joseph Fourier, while studying the problem of heat ow, developed a cohesive
theory of such series. Consequently, they were named after him.
PERIODIC FUNCTIONS
A function is said to have a period T or to be periodic with period T if for all x,
, where T is a positive constant. The least value of T > 0 is called the least
period or simply the period of that function.
FOURIER SERIES
Here we will express a non-sinusoidal periodic function into a fundamental and its harmonics. A
series of sines and cosines of an angle and its multiples of the form
2
is called the Fourier Series , a0 ,a1,..bn are constants. The value of Fourier coefficients is given by-
DIRICHLET CONDITIONS
If the function for the interval (-, )
1. Is single valued
2. Is bounded
3. Has at most a finite number of maxima and minima
4. Has only a finite number of discontinuity
5. Is periodic with period 2 outside (-, )
Then
Fourier series of the function converges
ADVANTAGES
1. Discontinuous functions can be represented by Fourier series
2. It is useful in expanding the functions since outside the closed interval there exists a periodic
extension of the function
EXAMPLE
1. CALCULATING A
2. CALCULATING B
4
PROGRAM (SCILAB)
0001 n=300;
0002 h=5;
0015
0016 x=-%pi:0.1:%pi
0017
0018 j=1;
0019 for i=-%pi:0.1:%pi
0020 if(i<0)
0021 y1(j)=f1(i);
0022 else
0023 y1(j)=f2(i);
0024 end
0025 j=j+1;
0026 end
0027
0028 plot(x,y1,'*');
0029
0030 a0=(intg(-%pi,0,f1)+intg(0,%pi,f2))*(1/%pi)
0031 disp(a0);
0032
0033 for i=1:n
0034 a(i)=0+intg(0,%pi-0.01,list(f3,i))*(1/%pi)
0035 b(i)=0+intg(0,%pi-0.01,list(f4,i))*(1/%pi)
0036 end
0037
0038 //disp(a)
0039 //disp(b)
0040 k=1;
0041 for x=-%pi:0.1:%pi
0042 z(k)=x;
0043 y2(k)=a0/2;
0044 temp=0;
0045 for i=1:n
0046 temp=temp+a(i)*sin(i*x)+b(i)*cos(i*x)
0047 end
0048 y2(k)=y2(k)+temp;
0049 k=k+1;
0050 end
0051 //disp(y2)
0052 plot(z,y2)
6
OUTPUT(SCILAB)
Solution
So, lets go ahead and just run through formulas for the coefficients.
7
This will happen on occasion so dont get excited about this kind of thing when it happens.
Solution
Because of the piece-wise nature of the function the work for the coefficients is going to be a little
unpleasant but lets get on with it.
So, weve gotten the coefficients for the cosines taken care of and now we need to take care of the
coefficients for the sines.
As with the coefficients for the cosines will probably be easier to do each of these individually.
(1)
where
(2)
(3)
(4)
(5)
(1)
where
(2)
(3)
(4)
(5)
(6)
(7)
PARSEVAL'S THEOREM
If a function has a Fourier series given by
(1)
Then Besselss inequality becomes an equality known as Parseval's theorem. From (1),
(2)
Integrating
11
(3)
so
(4)