A FX A NXB NX: (Cos Sin) - 2
A FX A NXB NX: (Cos Sin) - 2
a0
f ( x) (an cos nx bn sin nx).
2 n 1
(7.1)
a0
f ( x)
(a n cos nx bn sin nx).
2 n 1
(7.3)
1 inx inx
cos nx e e ,
2
f ( x)
inx
c
e
n
in which
and
1 inx inx
sinnx
e e
2i
1
cn (an ibn ),
2
1
c n (an ibn ),
2
1
c0 a0 .
2
(7.4)
(7.5)
n 0,
(7.6)
We can easily check the orthogonal relation for different values of the eigenvalue n by
choosing the interval 0,2
m ,n , m 0,
sin mx sin nxdx
m 0,
0,
m 0,
m,n ,
cos mx cos nxdx
2 , m n 0,
(7.7)
(7.8)
(7.9)
a0
f ( x)
(a n cos nx bn sin nx).
2 n 1
multipling cos mx, and then integral from 0 to 2
2
a0
cos(
mx
)
f
(
x
)
dx
0
2
n 1
(7.9)
Similarly
2
a0
sin(
mx
)
f
(
x
)
dx
0
2
n 1
1 2
an f (t ) cos ntdt ,
(7.11)
0
1 2
bn f (t ) sin ntdt , n 0,1,2 (7.12)
0
Substituting them into Eq.(7.1), we write
(7.10)
1
f ( x)
2
1
2
2
1
f (t )dt (cos nx f (t ) cos ntdt sin nx f (t ) sin ntdt )
0
0
n 1
2
1
f (t )dt f (t ) cos n(t x)dt ,
n 1 0
(7.13)
This equation offers one approach to the development of the Fourier integral and
Fourier transforms.
f ( x)
(7.14)
For convenience, we shall shift our interval from 0,2 to , . In this interval
we have simply f(x)=x. Using Eqs.(7.11) and (7.12), we have
an
bn
t cos ntdt 0,
t sin ntdt
t sin ntdt
0
n
2
( 1) n1 ,
n
So, the expansion of f(x) reads
sin 2 x sin 3x
sin nx
f ( x) x 2 sin x
(1) n1
.
.
2
3
n
(7.15)
Figure 7.1 shows f(x) for the sum of 4, 6, and 10 terms of the series.
Three features deserve comment.
1.There is a steady increase in the accuracy of the representation as the number of
terms included is increased.
2.All the curves pass through the midpoint f ( x) 0 at x
a0
f ( x) (an cos nx bn sin nx) .5( f f ).
2 n 1
(7.18)
where of course the right and left hand limits coincide where f is continuous.
At this point we may conveniently consider the properties of symmetry. Using the
interval , , sin x is odd and cos x is an even function of x. Hence ,
by Eqs. (7.11) and (7.12), if f(x) is odd, all an 0 if f(x) is even all bn 0 . In
other words,
a0
f ( x) an cos nx, f (x) even, (7.21)
2 n1
f ( x) bn sin nx,
f (x)
odd.
(7.21)
n 1
f ( x ) x,
0 x
(7.23)
and are asked to represent f(x) by a series expansion. Let us take three of the
infinite number of possible expansions.
f ( x ) x,
(7.24)
f ( x ) x,
f ( x) 2 x,
x 0,
x 2 .
(7.25)
f ( x ) x,
f ( x) x 2 ,
x 0,
x 2 .
(7.26)
Figure 7.2 Comparison of Fourier cosine series, Fourier sine series and Taylor series.
These three possibilities, Taylor series, Fouries cosine series, and Fourier sine series,
are each perfectly valid in the original interval 0, . Outside, however, their behavior
is strikingly different (compare Fig. 7.3). Which of the three, then, is correct? This
question has no answer, unless we are given more information about f(x). It may be
any of the three ot none of them. Our Fourier expansions are valid over the basic
interval. Unless the function f(x) is known to be periodic with a period equal to our
basic interval, or (1 n) th of our basic interval, there is no assurance whatever that
representation (Eq. (7.1)) will have any meaning outside the basic interval.
It should be noted that the set of functions cos nx , n 0,1,2 , forms a
complete orthogonal set over 0, . Similarly, the set of functions sin nx , n 1,2,3
forms a complete orthogonal set over the same interval. Unless forced by boundary
conditions or a symmetry restriction, the choice of which set to use is arbitrary.
a0
nx
nx
f ( x) an cos
bn sin
,
2 n1
L
L
(7.27)
with
1 L
nt
an f (t ) cos
dt ,
L
L
L
1 L
nt
bn f (t ) sin
dt ,
L
L
L
(7.28)
n 0,1,2,3 ,
n 0,1,2,3 ,
(7.29)
replacing x in Eq. (7.1) with x L and t in Eq. (7.11) and (7.12) with t L
(For convenience the interval in Eqs. (7.11) and (7.12) is shifted to t . )
The choice of the symmetric interval (-L, L) is not essential. For f(x) periodic with
a period of 2L, any interval ( x0 , x0 2 L) will do. The choice is a matter of
convenience or literally personal preference.
(7.4-5)
f ( x) 0,
f ( x) h,
x 0,
0 x .
(7.30)
1
a0 hdt h,
0
1
an h cos ntdt 0
0
1
bn
(7.31)
(7.32)
2h
h
, n odd
h sin ntdt
(1 cos n ) n
;
n
0, n even.
(7.33)
f ( x)
h
2
).
1
3
5
(7.36)
Except for the first term which represents an average of f(x) over the interval ,
all the cosine terms have vanished. Since f ( x) h 2 is odd, we have a Fourier sine
1
series. Although only the odd terms in the sine series occur, they fall only as n
This is similar to the convergence (or lack of convergence ) of harmonic series.
Physically this means that our square wave contains a lot of high-frequency
components. If the electronic apparatus will not pass these components, our square
wave input will emerge more or less rounded off, perhaps as an amorphous blob.
f ( x) sin t ,
f ( x) sin t ,
0 t ,
t 0.
(7.37)
Since f(t) defined here is even, no terms of the form sin nt will appear.
Again, from Eqs. (7.11) and (7.12), we have
1 0
1
a0 sin td (t )
2
4
sin td (t ) ,
0
sin td (t )
(7.38)
2
an sin t cos ntd (t )
0
2 2
,
n even
2
n 1
0
n odd .
(7.39)
Note carefully that 0, is not an orthogonality interval for both sines and cosines
together and we do not get zero for even n. The resulting series is
2 4 cos nt
f (t )
.
2
n2, 4,6, n 1
(7.40)
The original frequency has been eliminated. The lowest frequency oscillation is
2 The high-frequency components fall off as n 2 , showing that the full wave
rectifier does a fairly good job of approximating direct current. Whether this good
approximation is adequate depends on the particular application. If the remaining ac
components are objectionable, they may be further suppressed by appropriate filter
circuits.
These two examples bring out two features characteristic of Fourier expansion.
1. If f(x) has discontinuities (as in the square wave in Example 7.3.1), we can expect
the nth coefficient to be decreasing as 1 n . Convergence is relatively slow.
2. If f(x) is continuous (although possibly with discontinuous derivatives as in the
Full wave rectifier2of example 7.3.2), we can expect the nth coefficient to be
decreasing as 1 n
3. More generally if f and its first r derivatives are continuous, but the r+1 is not
2
then the nth coefficient will be decreasing as 1 n
1
a0
an s we have
2
2
2
x
dx 3 ,
2 2
an x cos nxdx
0
2
2
(1) n 2
n
4
(1) n 2 .
n
(7.42)
(7.43)
2
n cos nx
x
4 ( 1)
.
2
3
n
n 1
(7.44)
cos n (1) n
(7.45)
2
1
4 2
3
n 1 n
2
(7.46)
or
2 1
2 (2),
6 n1 n
(7.47)
thus yielding the Riemann zeta function, (2) , in closed form. From our
2
expansion of x and expansions of other powers of x numerous other
infinite series can be evaluated.
12 ( x), x 0
1
sin nx 1
0 x
n 1 n
2 ( x),
(1) n 1
n 1
1
sin nx
n
1
2
x,
3.
4, x 0
1
sin(
2
n
1
)
x
0 x
2
n
1
n 0
4,
4.
x
1
cos nx ln 2 sin( ) , x
2
n 1 n
5.
n 1
(
1
)
cos
nx
ln
2
cos(
) , x
n
2
n 1
6.
x
1
1
cos(2n 1) x ln cot( ) , x
2
2
n 0 2n 1
f ( ) f ( )
(c)
Integration
Term-by-term integration of the series
a0
f ( x)
(a n cos nx bn sin nx).
2 n 1
(7.60)
yields
x0
f ( x)dx
a0 x
a
b
n sin nx n cos nx .
2 x0 n 1 n
n 1 n
x0
x0
(7.61)
x0
1
2
a0 x . However,
f ( x ) 12 a0 x
(7.62)
f ( x ) x,
(7.63)
x 2 (1) n 1
n 1
sin nx
, x
n
(7.64)
(7.65)
n 1
4 cos nx
f ( x)
.
2
2 n 1, odd n
(7.66)
4 sin nx
f ( x)
.
n 1, odd n
(7.67)
f ( x)
(7.68)
f ( x)
inx
c
e
n
in which
and
1
cn (an ibn ),
2
1
c n (an ibn ),
2
1
c0 a0 .
2
1
cn
T
n 0,
an , bn
f ( x)e in x dx, 2 / T ,
From the complex form of the definition of Fourier series for functions
f(x), g(x) of period 2T we can show that
cn d
*
n
f ( x) g ( x)dx,,
1 2
2 T
2
2
a 0 a n b n f ( x ) f * ( x )dx,,
2
T 0
1