Академический Документы
Профессиональный Документы
Культура Документы
Fourier Analysis
where a0 is the average value of function f ðtÞ. It is also called the dc component, and
an and bn are called the coefficients of the series. A series such as Eq. (E.3) is called a
trigonometric Fourier series. The Fourier series of a periodic function is the sum of
sinusoidal components of different frequencies. The term 2=T can be written as !.
The nth term n! is then called the nth harmonic and n=1 gives the fundamental; a0,
an, and bn are calculated as follows:
Z
T=2
1
a0 ¼ f ðtÞdt ðE:4Þ
T
T=2
Z
T=2
2 2nt
an ¼ cos dt for n ¼ 1; 2; . . . ; 1 ðE:5Þ
T T
T=2
Z
T=2
2 2nt
bn ¼ sin dt for n ¼ 1; 2; . . . ; 1 ðE:6Þ
T T
T=2
Z
1
an ¼ f ðxÞ!t cosðn!tÞd!t ðE:8Þ
Z
1
bn ¼ f ðxÞ!t sinðn!tÞd!t ðE:9Þ
This gives
X
1
xðtÞ ¼ a0 þ ½an cosðn!tÞ þ bn sinðn!tÞ ðE:10Þ
n¼1
We can write:
an cos n!t þ bn sin !t ¼ ½a2n þ b2n 1=2 ½sin n cos n!t þ cos n sin n!t
ðE:11Þ
¼ ½a2n þ b2n 1=2 sinðn!t þ n Þ
where
an
n ¼ tan1
bn
The coefficients can be written in terms of two separate integrals:
Z
T=2 Z0
2 2nt 2 2nt
an ¼ xðtÞ cos dt þ xðtÞ cos dt
T T T T
0 T=2
ðE:12Þ
Z
T=2 Z0
2 2nt 2 2nt
bn ¼ xðtÞ sin dt þ xðtÞ sin dt
T T T T
0 T=2
Example E.1
Find the Fourier series of a function defined by
xþ 0x
x x<0
Find a0, which is given by
Z0 Z
1 1
a0 ¼ ðx Þdx þ ðx þ Þdx ¼
0
Z0 Z
1 1
an ¼ ðx Þ cos nxdx þ ðx þ Þ cos nxdx
0
4
2 if n is odd
n
¼ 0 if n is even
bn is given by
Z0 Z
1 1
bn ¼ ðx Þ sin nxdx þ ðx þ Þ sin nxdx
0
4
¼ if n is odd
n
¼0 if n is even
Thus, the Fourier series is
4 cos x cos 3x sin x sin 3x
f ðxÞ ¼ þ þ þ 4 þ þ
2 12 32 1 3
ZT=2
4 2nt
bn ¼ f ðtÞ sin dt ðE:15Þ
T T
0
Figure E-3(a) shows a triangular function, having odd symmetry. The Fourier series
contains only sine terms.
ZT=2
4 2nt
an ¼ f ðtÞ cos dt ðE:18Þ
T T
0
Figure E-3 (a) Triangular function with odd symmetry; (b) triangular function with even
symmetry; (c) square function with half-wave symmetry.
Figure E-3(b) shows a triangular function with odd symmetry. The Fourier series
contains only cosine terms. Note that the odd and even symmetry has been obtained
with the triangular function, by shifting the origin.
Figure E-3(c) shows a square-wave function which has half-wave symmetry, with
respect to the period T=2. The negative half-wave is the mirror image of the
positive half, but phase shifted by T=2 (or radians). Due to half-wave symmetry
the average value is zero. The function contains only odd harmonics.
If n is odd, then
ZT=2
4 2nt
an ¼ xðtÞ cos dt ðE:20Þ
T T
0
Example E.2
Construct the Fourier series for the function given in Table E-1. The step-by-step
calculations are shown in Table E-2.
a0 ¼ 2 mean of f ðxÞ
a1 ¼ 2 mean of f ðxÞ cos x
b1 ¼ 2 means of f ðxÞ sin x
Figure E-4 (a) Construction of a square wave from its harmonic components; (b) harmonic
spectrum of a square wave.
x 08 308 608 908 1208 1508 1808 2108 2408 2708 3008 3308
f ðxÞ 3.45 4.87 6.98 2.56 1.56 1.23 0.5 2.6 3.7 4.8 3.2 1.1
x (degrees) f ðxÞ f ðxÞ sin x f ðxÞ sin 2x f ðxÞ cos x f ðxÞ cos 2x
Thus
an cos n!t þ bn sin n!t ðE:27Þ
can be substituted by
e jn!t þ ejn!t
cosðn!tÞ ¼ ðE:28Þ
2
e jn!t ejn!t
sinðn!tÞ ¼ ðE:29Þ
2j
Thus
X
a0 1 n¼1 X
1 n¼1
xðtÞ ¼ þ ðan jbn Þe jn!t þ ða þ jbn Þejn!t ðE:30Þ
2 2 n¼1 2 n¼1 n
Z
T=2 ZT=2
2 2
an ¼ xðtÞ cosðn!tÞdt ¼ xðtÞ cosðn!tÞdt ¼ an n ¼ 1; 2; 3; . . .
T T
T=2 T=2
ðE:31Þ
Z
T=2 Z
T=2
2 2
bn ¼ xðtÞ sinðn!tÞdt ¼ xðtÞ sinðn!tÞdt ¼ bn n ¼ 1; 2; 3; . . .
T T
T=2 T=2
ðE:32Þ
Hence,
X1 X
1
an ejn!t ¼ an e jn!t ðE:33Þ
n¼1 n¼1
and
X
1 X
1
jbn ejn!t ¼ jbn e jn!t ðE:34Þ
n¼1 n¼1
This is the expression for a Fourier series expressed in exponential form, which is the
preferred approach for analysis. The coefficient cn is complex and given by
ZT=2
1 1
cn ¼ ðan jbn Þ ¼ xðtÞejn!t dt n ¼ 0; 1; 2; . . . ðE:36Þ
2 T
T=2
E.8.1 Convolution
When two harmonic phasors of different frequencies are convoluted, the result will
be harmonic phasors at sum and difference frequencies:
jak j sinðk!t þ k Þjbm j sinðm!t þ m Þ
1 h
i
¼ jak jjbm j sin ðk mÞ!t þ k m þ sin ðk þ mÞ!t þ k þ m þ
2 2 2
ðE:37Þ
Convolution is a process of correlating one time series with another time series that
has been reversed in time.
If the integral exists for every value of parameter f (frequency), then this equation
describes the Fourier transform. The Fourier transform is a complex quantity:
where RXðf Þ is the real part of the Fourier transform and IXð f Þ is the imaginary
part of the Fourier transform. The amplitude or Fourier spectrum of xðtÞ is given by
qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
jXð f Þj ¼ R2 ð f Þ þ I 2 ð f Þ ðE:40Þ
ImXð f Þ
ð f Þ ¼ tan1 ðE:41Þ
ReXð f Þ
Example E.3
Consider a function, defined as
xðtÞ ¼ et t > 0
ðE:44Þ
¼0 t<0
Example E.4
Convert the function arrived at in Example E.3 to xðtÞ.
The inverse Fourier transform is
Z1
xðtÞ ¼ Xð f Þe j2ft df
1
Z1
2f
¼ j 2 e j2ft df
2 þ ð2f Þ2 þ ð2f Þ2
1
Z1
As
Z1
cos x
dx¼ eab
b þx
2 2 b
1
Z1
x sin x
and dx¼ eab
b2 þ x 2
1
xðtÞ becomes
Example E.5
Consider a rectangular function defined by
xðtÞ ¼ K jtj T=2
ðE:47Þ
¼0 jtj > T=2
Figure E-5 (a) Bandwidth-limited rectangular function with even symmetry, amplitude K;
(b) the sinc function, showing side lobes.
j2ft sinðfTÞ
Xð f Þ ¼ Ke dt ¼ KT ðE:48Þ
fT
T=2
This is shown in Fig. E-5. The term in parentheses in Eq. (E.48) is called the sinc
function. The function has zero value at points f ¼ n=T.
Figure E-7 shows the sampled time domain function and the frequency spectrum for
a discrete time domain function.
Figure E-7 (a) Sampled time domain function; (b) frequency spectrum for the discrete time
domain function.
Where the frequency domain spectrum as well as the time domain function are
sampled functions, the Fourier transform pair is made of discrete components:
1NX1
Xð fk Þ ¼ xðtn Þej2kn=N ðE:52Þ
N n¼0
X
N 1
Xðtn Þ ¼ Xðfk Þe j2kn=N ðE:53Þ
k¼0
Figure E-8 shows discrete time and frequency functions. The discrete Fourier trans-
form approximates the continuous Fourier transform. However, errors can occur in
the approximations involved. Consider a cosine function xðtÞ and its continuous
Fourier transform Xð f Þ, which consists of two impulse functions that are symmetric
about zero frequency, Fig. E-9(a).
The finite portion of xðtÞ which can be viewed through a unity amplitude
window wðtÞ, and its Fourier transform Wðf Þ, which has side lobes, are shown in
Fig. E-9(b).
Figure E-9(c) shows that the corresponding convolution of two frequency
signals results in blurring of Xð f Þ into two sine x=x shaped pulses. Thus, the estimate
of Xð f Þ is fairly corrupted.
Figure E-8 Discrete time (a) and frequency (b) domain functions.
Figure E-9 Fourier coefficients of the discrete Fourier transform viewed as corrupted esti-
mate of the continuous Fourier transform. (From Ref. 1.)
The sampling of xðtÞ is performed by multiplying with cðtÞ Fig. E-9(d); the
resulting frequency domain function is shown in Fig. E-9(e).
The continuous frequency domain function shown in Fig. E-9(e) can be made
discrete if the time function is treated as one period of a periodic function. This
forces both the time domain and frequency domain functions to be infinite in extent,
periodic and discrete Fig. E-9(e). The discrete Fourier transform is reversible mapping
of N terms of the time function into N terms of the frequency function. Some
problems are outlined below.
E.10.1 Leakage
Leakage is inherent in the Fourier analysis of any finite record of data. The function
may not be localized on the frequency axis and has side lobes (Fig. E-5). The objective
is to localize the contribution of a given frequency by reducing the leakage through
these side lobes. The usual approach is to apply a data window in the time domain,
which has lower side lobes in the frequency domain, as compared to a rectangular
data window. An extended cosine bell data window is shown in Fig. E-10. A raised
cosine wave is applied to the first and last 10% of the data and a weight of unity is
applied for the middle 90% of the data. A number of other types of windows which
give more rapidly decreasing side lobes have been described in the literature [1].
1NX¼1
Xð fk Þ ¼ xðtn ÞW kn ðE:55Þ
N n¼0
or in a condensed form:
1 h kn i
½X ð fk Þ ¼ W ½x ðtn Þ ðE:57Þ
N
where ½X ð fk Þ is a vector representing N components of the function in the frequency
domain, while ½x ðtn Þ is a vector representing N samples in the time domain.
Calculation of N frequency components from N time samples therefore requires a
total of N N multiplications.
For N ¼ 4:
Xð0Þ 1 1
1 1 xð0Þ
Xð1Þ 1 W 1 W 2 W 3 xð1Þ
ðE:58Þ
Xð2Þ ¼ 1 W 2 W 4 W 6 xð2Þ
Xð3Þ 1 W 3 W 6 W 9 xð3Þ
However, each element in matrix ½W kn represents a unit vector with clockwise
rotation of 2n=N, ðn ¼ 0; 1; 2; . . . ; N 1Þ. Thus, for N ¼ 4 (i.e., four sample points),
2=N ¼ 908. Thus,
W0 ¼ 1 ðE:59Þ
1
W ¼ cos =2 j sin =2 ¼ j ðE:60Þ
W ¼ cos j sin ¼ 1
2
ðE:61Þ
W ¼ cos 3=2 j sin 3=2 ¼ j
3
ðE:62Þ
W ¼W
4 0
ðE:63Þ
W ¼W
6 2
ðE:64Þ
Hence, the matrix can be written in the form:
Xð0Þ 1 1 1 1 xð0Þ
Xð1Þ 1
W 1 W 2 W 3 xð1Þ
Xð2Þ ¼ 1 ðE:65Þ
W 2 W 0 W 2 xð2Þ
Xð3Þ 1 W 3 W 2 W 1 xð3Þ
This can be factorized into
Xð0Þ 1 W 0 0 0 1 0 W0 0 xð0Þ
Xð1Þ 1 W 2 0 0 0 1 0 W 0 xð1Þ
¼ ðE:66Þ
Xð2Þ 0 0 1 W 1 1 W2 0 xð2Þ
0
Xð3Þ 0 0 1 W 3 0 1 0 W 2 xð3Þ
Computation requires four complex multiplications and eight complex
additions. Computation of Eq. (E.58) requires 16 complex multiplications and 12
complex additions. The computations are reduced.
While this forms an overview, an interested reader may like to probe further.
Reference 1 lists 62 further references.
REFERENCE
1. GD Bergland. A Guided Tour of the Fast Fourier Transform. IEEE Spectrum, 41-52,
1969.