You are on page 1of 16

LABORATORY ACTIVITY 3

Fourier Series and Transform

Intended Learning Outcomes


By the end of this activity, you must be able to:
ILO 10 Determine symmetry and orthogonality of functions (CO 2)
ILO 11 Describe the concept and importance of Fourier series (CO 1)
ILO 12 Derive Fourier series expansion of a given function (CO 2,3)
ILO 13 Describe the concept and importance of Fourier Transform (CO 1)
ILO 14 Perform Fourier Transform (CO 2,3)
ILO 15 Perform Inverse Fourier Transform (CO 2,3)
ILO 16 Perform Discrete Fourier Transform (CO 3)
ILO 17 Perform Fast Fourier Transform (CO 3)

Periodic Functions

Every day, we encounter phenomena that are periodic in nature. Some


examples are the day-night shift, the seasons in the year or the phases of the moon.
Others are common human activities such as your daily routine from home to school
and back, your sleep-wake cycle or yearly holiday vacations. All of this have one thing
in common. They always repeat in cycle. Mathematically, we can deduce it into
functions in which the following is true for a period 𝑇.

Fig. 1 Example of a periodic function 𝑓(𝑥) wherein its values repeat at 𝑇 intervals
(Kreyszig, E. (2011). Advanced Engineering Mathematics. (10th ed.))

𝑓(𝑥) = 𝑓(𝑥 + 𝑛𝑇)


𝑓𝑜𝑟 𝑛 = 0,1,2,3, …

A period is a measure of interval for the value of a function to repeat. This is the
amount it takes for one cycle to complete such as the case of the 24-hour period in a
day or 365-day period in a year. But period is not just restricted to time. They can also
describe the interval of the change in shape of ocean waves or vibration of a string.
Periodic functions have an extensive role not just in mathematics but as well as in
science and engineering and a valuable key to unlock our study of nature and the
universe.

In mathematics, the basic periodic function that we can think of are


trigonometric functions. It results from describing the position of a radial arm as it
moves around the unit circle. The value of the coordinates 𝑥 and 𝑦 in the coordinate
plane become a function of the angle of the arm with the positive x-axis. One whole
turn around the circle constitutes one cycle or period in which angle 𝜃 is equivalent to
360 ° 𝑜𝑟 2𝜋 radians.

Fig. 2 The unit circle with the position of the radial arm at (cos 𝜃 , sin 𝜃)
(https://www.geeksforgeeks.org/how-to-use-the-unit-circle-in-trigonometry/)

The sine and cosine functions are the fundamental of all trigonometric
functions. Their graph holds the properties of sinusoidal waves we usually encounter
in nature, and which is the frequent object of study on periodic occurrences. The
equivalent graph of the sine and cosine function can be illustrated in the following
figures:

Fig. 3 Graph of the sine function derived from the vertical side of a triangle formed by the radial arm and the positive x-axis in
the unit circle (https://mathbitsnotebook.com/Algebra2/TrigGraphs/unitcircleMBa.jpg)

Fig. 4 Graph of the cosine function derived from the horizontal side of a triangle formed by the radial arm and the positive x-axis
in the unit circle (https://mathbitsnotebook.com/Algebra2/TrigGraphs/unitcircleMB2a.jpg)
Symmetry of Functions
Functions are said to be symmetrical if their graph is the same even if their
orientation is changed. For the first kind of symmetry, when the graph of the function
is flipped about the y-axis, the image is the same. We call these functions as even
functions. The second is when it is rotated about the origin will result to the same
image. We call them odd functions.

Fig. 5 The graph of the even function on the left and the odd function on the right
(https://courses.lumenlearning.com/calculus1/chapter/symmetry-of-functions/

Without the aids of graphs, we could determine if the function is even or odd by
making use of the following test in which we substitute the value of 𝑥 with −𝑥:
𝑒𝑣𝑒𝑛 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛
𝑓(−𝑥) = 𝑓(𝑥)
𝑜𝑑𝑑 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛
𝑓(−𝑥) = −𝑓(𝑥)
Even functions will always have the same value even if we substitute 𝑥 with its
negative value while odd functions will have a negative result for a negative value of
𝑥. The most common example are the sine and cosine functions where cosine function
is an even function while sine function is odd:
𝑐𝑜𝑠𝑖𝑛𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 (𝑒𝑣𝑒𝑛)
cos (−𝜃) = cos (𝜃)
𝑠𝑖𝑛𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 (𝑜𝑑𝑑)
sin (−𝜃) = −sin (𝜃)
Using this property, we can deduce the definite integrals of the above functions
as:
𝑐𝑜𝑠𝑖𝑛𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 (𝑒𝑣𝑒𝑛)
0 𝑎 0 𝑎
∫ cos (−𝜃) 𝑑𝜃 = ∫ cos (−𝜃) 𝑑𝜃 = ∫ cos (𝜃) 𝑑𝜃 = ∫ cos (𝜃) 𝑑𝜃
−𝑎 0 −𝑎 0
𝑎 𝑎 𝑎
∫ cos (𝜃) 𝑑𝜃 = ∫ cos (−𝜃) 𝑑𝜃 = 2 ∫ cos (𝜃) 𝑑𝜃
−𝑎 −𝑎 0

𝑠𝑖𝑛𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 (𝑜𝑑𝑑)


𝑎 𝑎
∫ sin (−𝜃) 𝑑𝜃 = − ∫ sin (𝜃) 𝑑𝜃 = 0
−𝑎 −𝑎

Generally, we can say of even and odd functions as having the following
integrals:
𝑒𝑣𝑒𝑛 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛𝑠
𝑎 𝑎
∫ 𝑓(𝑥) 𝑑𝑥 = 2 ∫ 𝑓(𝑥) 𝑑𝑥
−𝑎 0

𝑜𝑑𝑑 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛𝑠
𝑎
∫ 𝑓(𝑥) 𝑑𝑥 = 0
−𝑎

Orthogonality of Functions
Two functions 𝑓(𝑥) and 𝑔(𝑥) are said to be orthogonal on 𝑎 ≤ 𝑥 ≤ 𝑏 if the
integral of their product over an interval (𝑎, 𝑏) is equal to zero.
𝑏
∫ 𝑓(𝑥)𝑔(𝑥) 𝑑𝑥 = 0
𝑎

Example
a. Determine if 𝑓(𝑥) = 𝑥 2 and 𝑔(𝑥) = 𝑥 3 is orthogonal over an interval (−1, 1)
1
∫ (𝑥 2 )(𝑥 3 ) 𝑑𝑥
−1

Simplifying and obtaining the integral we get:


1 1
5
𝑥6 (1)6 (−1)6 1 1
∫ 𝑥 𝑑𝑥 = | = [ − ]=[ − ]=0
−1 6 −1 6 6 6 6

hence 𝑥 2 and 𝑥 3 are orthogonal over an interval (−1, 1)


b. Determine if 𝑓(𝜃) = sin 𝜃 and 𝑔(𝜃) = cos 𝜃 is orthogonal over an interval (−𝜋, 𝜋)
𝜋
∫ sin 𝜃 cos 𝜃 𝑑𝜃
−𝜋

𝑑𝑢
We let 𝑢 = 𝑠𝑖𝑛 𝜃 and = 𝑐𝑜𝑠 𝜃 with 𝑑𝑢 = 𝑐𝑜𝑠 𝜃 𝑑𝜃
𝑑𝜃
Substituting u and du to the above integral, we get:
𝜋 𝜋 𝜋
𝑢2 (sin 𝜃)2 (sin 𝜋)2 (sin (−𝜋))2 (0)2 (0)2
∫ 𝑢 𝑑𝑢 = | = | =[ − ]=[ − ]=0
−𝜋 2 −𝜋 2 −𝜋
2 2 2 2

hence sin 𝜃 and cos 𝜃 are orthogonal over an interval (−𝜋, 𝜋)


Orthogonal Sets
Given 𝑓𝑛 (𝑥) is a set of nonzero functions with given integer multiples of 𝑛 such
that:
{𝑓𝑛 (𝑥)}∞
𝑛=0 = {𝑓0 (𝑥) , 𝑓1 (𝑥) , 𝑓2 (𝑥) , … } 𝑓𝑜𝑟 𝑛 = 0, 1, 2, 3, …
the set is said to be an orthogonal set of functions at an interval (𝑎, 𝑏) if the following
holds:
𝑏
=0 𝑛≠𝑚
∫ 𝑓𝑛 (𝑥)𝑓𝑚 (𝑥) 𝑑𝑥 {
𝑎 ≠0 𝑛=𝑚
Example
𝑛𝜋𝑥
a. Determine if {𝑓𝑛 (𝑥)}∞
𝑛=0 for 𝑓𝑛 (𝑥) = sin is an orthogonal set at an interval (−𝐿, 𝐿)
𝐿
𝑛𝜋𝑥 𝑚𝜋𝑥
We let 𝑓𝑛 (𝑥) = sin and 𝑓𝑚 (𝑥) = sin and perform
𝐿 𝐿
𝐿 𝐿
𝑛𝜋𝑥 𝑚𝜋𝑥
∫ 𝑓𝑛 (𝑥)𝑓𝑚 (𝑥) 𝑑𝑥 = ∫ sin sin 𝑑𝑥
−𝐿 −𝐿 𝐿 𝐿

Case 1: 𝑛 ≠ 𝑚
1
Using the identity: sin 𝐴 sin 𝐵 = 2 [cos (𝐴 − 𝐵) − cos (𝐴 + 𝐵)] we simplify into
𝐿 𝐿
𝑛𝜋𝑥 𝑚𝜋𝑥 1 𝑛𝜋𝑥 𝑚𝜋𝑥 𝑛𝜋𝑥 𝑚𝜋𝑥
∫ sin sin 𝑑𝑥 = ∫ [cos ( − ) − cos ( + )] 𝑑𝑥
−𝐿 𝐿 𝐿 −𝐿 2 𝐿 𝐿 𝐿 𝐿
1 𝐿 𝑛𝜋𝑥 𝑚𝜋𝑥 1 𝐿 𝑛𝜋𝑥 𝑚𝜋𝑥
= ∫ cos ( − ) 𝑑𝑥 − ∫ cos ( + ) 𝑑𝑥
2 −𝐿 𝐿 𝐿 2 −𝐿 𝐿 𝐿
1 𝐿 𝑛𝜋𝑥 𝑚𝜋𝑥 1 𝐿 𝑛𝜋𝑥 𝑚𝜋𝑥
= ∫ cos ( − ) 𝑑𝑥 − ∫ cos ( + ) 𝑑𝑥
2 −𝐿 𝐿 𝐿 2 −𝐿 𝐿 𝐿

1 1 𝑛𝜋𝑥 𝑚𝜋𝑥 𝐿 1 1 𝑛𝜋𝑥 𝑚𝜋𝑥 𝐿


= (𝑛𝜋 𝑚𝜋) sin ( − )| − (𝑛𝜋 𝑚𝜋) sin ( + )|
2 − 𝐿 𝐿 −𝐿 2 + 𝐿 𝐿 −𝐿
𝐿 𝐿 𝐿 𝐿
1 1 𝑛𝜋(𝐿) 𝑚𝜋(𝐿) 𝑛𝜋(−𝐿) 𝑚𝜋(−𝐿) 1 1 𝑛𝜋(𝐿) 𝑚𝜋(𝐿) 𝑛𝜋(−𝐿) 𝑚𝜋(−𝐿)
= (𝑛𝜋 𝑚𝜋) [sin ( − ) − sin ( − )] − (𝑛𝜋 𝑚𝜋) [sin ( + ) − sin ( + )]
2 − 𝐿 𝐿 𝐿 𝐿 2 + 𝐿 𝐿 𝐿 𝐿
𝐿 𝐿 𝐿 𝐿

1 1 1 1
= (𝑛𝜋 𝑚𝜋) [sin (𝑛𝜋 − 𝑚𝜋) − sin (−𝑛𝜋 + 𝑚𝜋)] − (𝑛𝜋 𝑚𝜋) [sin (𝑛𝜋 + 𝑚𝜋) − sin (−𝑛𝜋 − 𝑚𝜋)]
2 − 2 +
𝐿 𝐿 𝐿 𝐿

1 1 1 1
= (𝑛𝜋 𝑚𝜋) [sin (𝑛𝜋 − 𝑚𝜋) + sin (𝑛𝜋 − 𝑚𝜋)] − (𝑛𝜋 𝑚𝜋) [sin (𝑛𝜋 + 𝑚𝜋) + sin (𝑛𝜋 + 𝑚𝜋)]
2 − 2 +
𝐿 𝐿 𝐿 𝐿

1 1 1 1
= (𝑛𝜋 𝑚𝜋) [2 sin (𝑛𝜋 − 𝑚𝜋)] − (𝑛𝜋 𝑚𝜋) [2 sin (𝑛𝜋 + 𝑚𝜋)]
2 2
𝐿 − 𝐿 𝐿 + 𝐿
sin (𝑛𝜋 − 𝑚𝜋) sin (𝑛𝜋 + 𝑚𝜋) 𝐿 sin (𝑛𝜋 − 𝑚𝜋) 𝐿 sin (𝑛𝜋 + 𝑚𝜋)
= 𝑛𝜋 𝑚𝜋 − 𝑛𝜋 𝑚𝜋 = −
− + 𝑛𝜋 − 𝑚𝜋 𝑛𝜋 + 𝑚𝜋
𝐿 𝐿 𝐿 𝐿
since n and m are integer values, this makes the integer multiples of π cause
sin (𝑛𝜋 − 𝑚𝜋) and sin (𝑛𝜋 + 𝑚𝜋) to be equals to zero hence
𝐿 sin (𝑛𝜋 − 𝑚𝜋) 𝐿 sin (𝑛𝜋 + 𝑚𝜋) 𝐿(0) 𝐿(0)
= − = − =0
𝑛𝜋 − 𝑚𝜋 𝑛𝜋 + 𝑚𝜋 𝑛𝜋 − 𝑚𝜋 𝑛𝜋 + 𝑚𝜋

Case 2: 𝑛 = 𝑚
𝐿 𝐿
𝑛𝜋𝑥 𝑛𝜋𝑥 𝑛𝜋𝑥
∫ sin sin 𝑑𝑥 = ∫ sin2 𝑑𝑥
−𝐿 𝐿 𝐿 −𝐿 𝐿
1
Using the identity: sin2 𝐴 = 2 [1 − cos (2𝐴)]
𝐿 𝐿
𝑛𝜋𝑥 1 𝑛𝜋𝑥 1 𝐿 𝑛𝜋𝑥
∫ sin2 𝑑𝑥 = ∫ [1 − cos (2 )] 𝑑𝑥 = ∫ [1 − cos (2 )] 𝑑𝑥
−𝐿 𝐿 −𝐿 2 𝐿 2 −𝐿 𝐿
1 𝐿 2𝑛𝜋𝑥 𝐿 1 𝐿 2𝑛𝜋𝐿 𝐿 2𝑛𝜋(−𝐿)
= [𝑥 − sin ( )]| = [(𝐿 − sin ( )) − ((−𝐿) − sin ( ))]
2 2𝑛𝜋 𝐿 −𝐿 2 2𝑛𝜋 𝐿 2𝑛𝜋 𝐿
1 𝐿 𝐿 1 𝐿 𝐿
= [𝐿 − sin (2𝑛𝜋) + 𝐿 + sin (−2𝑛𝜋)] = [2𝐿 − sin (2𝑛𝜋) − sin (2𝑛𝜋)]
2 2𝑛𝜋 2𝑛𝜋 2 2𝑛𝜋 2𝑛𝜋
1 2𝐿 𝐿 𝐿
= [2𝐿 − sin (2𝑛𝜋)] = 𝐿 − sin (2𝑛𝜋) = 𝐿 − (0) = 𝐿
2 2𝑛𝜋 2𝑛𝜋 2𝑛𝜋
Using the same process for both cases from the above example, we can verify
the following as orthogonal sets:
𝑛𝜋𝑥 ∞
{sin } 𝑎𝑡 − 𝐿 ≤ 𝑥 ≤ 𝐿 𝑎𝑛𝑑 0 ≤ 𝑥 ≤ 𝐿
𝐿 𝑛=1
𝑛𝜋𝑥 ∞
{cos } 𝑎𝑡 − 𝐿 ≤ 𝑥 ≤ 𝐿 𝑎𝑛𝑑 0 ≤ 𝑥 ≤ 𝐿
𝐿 𝑛=0
𝑛𝜋𝑥 𝑚𝜋𝑥 ∞
{sin cos } 𝑎𝑡 − 𝐿 ≤ 𝑥 ≤ 𝐿 (𝑁𝑜𝑡𝑒: 𝑁𝑜𝑡 𝑜𝑟𝑡ℎ𝑜𝑔𝑜𝑛𝑎𝑙 𝑜𝑛 0 ≤ 𝑥 ≤ 𝐿)
𝐿 𝐿 𝑚,𝑛=0
Using the concept of orthogonality, we could further generalize for the following
integrals:

𝐿 2𝐿 𝑖𝑓 𝑛 = 𝑚 = 0 𝐿 𝐿 𝑖𝑓 𝑛 = 𝑚 = 0
𝑛𝜋𝑥 𝑚𝜋𝑥 𝑛𝜋𝑥 𝑚𝜋𝑥
∫ cos cos 𝑑𝑥 = { 𝐿 𝑖𝑓 𝑛 = 𝑚 ≠ 0 ∫ cos cos 𝑑𝑥 = {𝐿/2 𝑖𝑓 𝑛 = 𝑚 ≠ 0
𝐿 𝐿 0 𝐿 𝐿
−𝐿 0 𝑖𝑓 𝑛 ≠ 𝑚 0 𝑖𝑓 𝑛 ≠ 𝑚

𝐿 𝐿
𝑛𝜋𝑥 𝑚𝜋𝑥 𝐿 𝑖𝑓 𝑛 = 𝑚 𝑛𝜋𝑥 𝑚𝜋𝑥 𝐿/2 𝑖𝑓 𝑛 = 𝑚
∫ sin sin 𝑑𝑥 = { ∫ sin sin 𝑑𝑥 = {
−𝐿 𝐿 𝐿 0 𝑖𝑓 𝑛 ≠ 𝑚 0 𝐿 𝐿 0 𝑖𝑓 𝑛 ≠ 𝑚

𝐿
𝑛𝜋𝑥 𝑚𝜋𝑥
∫ sin cos 𝑑𝑥 = 0
−𝐿 𝐿 𝐿
Fourier Series
We have learnt in the previous laboratory that convergent infinite series can be
made to represent certain functions. One example of that is the power series which
takes the sum of infinite terms with complex variables raised to the nth power. However,
there is another kind of infinite series that we could use to represent periodic functions.
It merely takes the infinite sum of sines and cosines until it converges into the given
function with period 𝑇 = 2𝐿. We call these kinds of series as Fourier series and is
represented by the formula:

𝑛𝜋𝑥 𝑛𝜋𝑥
𝑓(𝑥) = 𝑎0 + ∑ (𝑎𝑛 cos + 𝑏𝑛 sin )
𝐿 𝐿
𝑛=1
1 𝐿
𝑎0 = ∫ 𝑓(𝑥) 𝑑𝑥
2𝐿 −𝐿
1 𝐿 𝑛𝜋𝑥
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑑𝑥
𝐿 −𝐿 𝐿
1 𝐿 𝑛𝜋𝑥
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑑𝑥
𝐿 −𝐿 𝐿
𝑎0 , 𝑎𝑛 and 𝑏𝑛 are called the Fourier coefficients.

Example
a. Determine the Fourier series expansion of 𝑓(𝑥) = 𝑥 at −𝜋 ≤ 𝑥 ≤ 𝜋 with period 2𝜋.
Given period 𝑇 = 2𝐿 = 2𝜋 hence 𝐿 = 𝜋 and the graph of the function is shown as:

Solving for the Fourier coefficients


−𝜋
1 𝐿 1 𝜋 1 𝑥2 1 (𝜋)2 (−𝜋)2
𝑎0 = ∫ 𝑓(𝑥) 𝑑𝑥 = ∫ 𝑥 𝑑𝑥 = ( | )= [ − ]=0
2𝐿 −𝐿 2𝜋 −𝜋 2𝜋 2 −𝜋 2𝜋 2 2

1 𝐿 𝑛𝜋𝑥 1 𝜋 𝑛𝜋𝑥 1 𝜋
𝑎𝑛 = ∫ 𝑓(𝑥) cos 𝑑𝑥 = ∫ 𝑥 cos 𝑑𝑥 = ∫ 𝑥 cos 𝑛𝑥 𝑑𝑥
𝐿 −𝐿 𝐿 𝜋 −𝜋 𝜋 𝜋 −𝜋
Integrating by parts, we simplify it into
1 𝜋 𝑥 sin 𝑛𝑥 1 𝜋 sin 𝑛𝑥 𝑥 sin 𝑛𝑥 cos 𝑛𝑥 𝜋
∫ 𝑥 cos 𝑛𝑥 𝑑𝑥 = − ∫ 𝑑𝑥 = ( + )|
𝜋 −𝜋 𝜋𝑛 𝜋 −𝜋 𝑛 𝜋𝑛 𝜋𝑛2 −𝜋
𝜋 sin 𝑛𝜋 cos 𝑛𝜋 (−𝜋) sin 𝑛(−𝜋) cos 𝑛(−𝜋)
= [( + 2
)−( + )]
𝜋𝑛 𝜋𝑛 𝜋𝑛 𝜋𝑛2
sin 𝑛𝜋 cos 𝑛𝜋 sin 𝑛𝜋 cos 𝑛𝜋
𝑎𝑛 = [ + − − ]=0
𝑛 𝜋𝑛2 𝑛 𝜋𝑛2
For solving 𝑏𝑛
1 𝐿 𝑛𝜋𝑥 1 𝜋 𝑛𝜋𝑥 1 𝜋
𝑏𝑛 = ∫ 𝑓(𝑥) sin 𝑑𝑥 = ∫ 𝑥 sin 𝑑𝑥 = ∫ 𝑥 sin 𝑛𝑥 𝑑𝑥
𝐿 −𝐿 𝐿 𝜋 −𝜋 𝜋 𝜋 −𝜋

Using integration by parts


1 𝜋 𝑥 cos 𝑛𝑥 1 𝜋 cos 𝑛𝑥 𝑥 cos 𝑛𝑥 sin 𝑛𝑥 𝜋
∫ 𝑥 sin 𝑛𝑥 𝑑𝑥 = − − ∫ (− ) 𝑑𝑥 = (− + )|
𝜋 −𝜋 𝜋𝑛 𝜋 −𝜋 𝑛 𝜋𝑛 𝜋𝑛2 −𝜋
𝜋 cos 𝑛𝜋 sin 𝑛𝜋 (−𝜋) cos 𝑛(−𝜋) sin 𝑛(−𝜋)
= [(− + 2
) − (− + )]
𝜋𝑛 𝜋𝑛 𝜋𝑛 𝜋𝑛2
𝜋 cos 𝑛𝜋 sin 𝑛𝜋 𝜋 cos 𝑛𝜋 sin 𝑛𝜋 cos 𝑛𝜋 sin 𝑛𝜋
= [− + 2
− + 2
] = 2 (− + )
𝜋𝑛 𝜋𝑛 𝜋𝑛 𝜋𝑛 𝑛 𝜋𝑛2
cos 𝑛𝜋 0 2 cos 𝑛𝜋
Any integer 𝑛 will make sin 𝑛𝜋 = 0 hence 𝑏𝑛 = 2 (− + 2) = −
𝑛 𝜋𝑛 𝑛
Expressing the Fourier series of 𝑓(𝑥) = 𝑥 at −𝜋 ≤ 𝑥 ≤ 𝜋 and 𝑇 = 2𝜋.
∞ ∞
𝑛𝜋𝑥 2 cos 𝑛𝜋 𝑛𝜋𝑥 2
𝑓(𝑥) = 0 + ∑ ((0) cos + (− ) (sin )) = − ∑ ( cos (𝑛𝜋) sin (𝑛𝑥))
𝜋 𝑛 𝜋 𝑛
𝑛=1 𝑛=1

Fourier Transform
Fourier series is very useful method for representing periodic functions and has
various applications. However, most of the functions we deal with in mathematics are
nonperiodic. Analyzing them requires another method wherein they are represented
not as series but integral of their frequency components 𝐹(𝜔). In this case we extend
the concept of the Fourier series to nonperiodic functions to derive this integral.
Recalling the formula of the Fourier series, what we are familiarly looking at is its
trigonometric form.

𝑛𝜋𝑥 𝑛𝜋𝑥
𝑓(𝑥) = 𝑎0 + ∑ (𝑎𝑛 cos + 𝑏𝑛 sin )
𝐿 𝐿
𝑛=1
𝑗𝑛𝜋𝑥 −𝑗𝑛𝜋𝑥
𝑛𝜋𝑥 𝑒 𝐿 +𝑒 𝐿
However, making use of the complex exponential identity of cos = and
𝐿 2
𝑗𝑛𝜋𝑥 −𝑗𝑛𝜋𝑥
𝑛𝜋𝑥 𝑒 𝐿 −𝑒 𝐿
sin = , we can rearrange the above formula into its more compact
𝐿 𝑗2
exponential form

−𝑗𝑛𝜋𝑥
𝑓(𝑥) = ∑ 𝑐𝑛 𝑒 𝐿
𝑛=−∞

1 𝐿 𝑗𝑛𝜋𝑥
𝑐𝑛 = ∫ 𝑓(𝑥)𝑒 𝐿 𝑑𝑥
2𝐿 −𝐿
𝑛𝜋 𝜋 𝜋
When we let 𝜔 = and Δ𝜔 = 𝐿 , then 𝐿 = Δ𝜔. Substituting them in the formula for 𝑐𝑛
𝐿
𝐿
1 𝑗𝜔𝑥
Δ𝜔 𝐿
𝑐𝑛 = 𝜋 ∫ 𝑓(𝑥)𝑒 𝑑𝑥 = ∫ 𝑓(𝑥)𝑒 𝑗𝜔𝑥 𝑑𝑥
2 (Δ𝜔) −𝐿 2𝜋 −𝐿

Substituting the value of 𝑐𝑛 to the Fourier series of 𝑓(𝑥) and rearranging the terms
∞ ∞
Δ𝜔 𝐿 𝑗𝜔𝑥 −𝑗𝜔𝑥
1 𝐿
∑ [ ∫ 𝑓(𝑥)𝑒 𝑑𝑥] 𝑒 = ∑ [ ∫ 𝑓(𝑥)𝑒 𝑗𝜔𝑥 𝑑𝑥] 𝑒 −𝑗𝜔𝑥 Δ𝜔
2𝜋 −𝐿 2𝜋 −𝐿
𝑛=−∞ 𝑛=−∞

Treating nonperiodic functions as having a period that extends to infinity, we let 𝐿 →


∞, then Δ𝜔 → 𝑑𝜔 and the summation becomes an integral

1 𝐿 ∞
1 ∞
∑ [ ∫ 𝑓(𝑥)𝑒 𝑗𝜔𝑥 𝑑𝑥] 𝑒 −𝑗𝜔𝑥 Δ𝜔| = ∫ [ ∫ 𝑓(𝑥)𝑒 𝑗𝜔𝑥 𝑑𝑥] 𝑒 −𝑗𝜔𝑥 𝑑𝜔
2𝜋 −𝐿 −∞ 2𝜋 −∞
𝑛=−∞ 𝐿→∞

Rearranging again the terms, we finally come up with this formula


1 ∞ ∞
𝑓(𝑥) = ∫ [∫ 𝑓(𝑥)𝑒 −𝑗𝜔𝑥 𝑑𝑥] 𝑒 𝑗𝜔𝑥 𝑑𝜔
2𝜋 −∞ −∞
If we let

𝐹(𝜔) = ∫ 𝑓(𝑥)𝑒 −𝑗𝜔𝑥 𝑑𝑥
−∞
then we have
1 ∞
𝑓(𝑥) = ∫ 𝐹(𝜔)𝑒 𝑗𝜔𝑥 𝑑𝜔
2𝜋 −∞
The formula for 𝐹(𝜔) is what we call the Fourier Transform of a function 𝑓(𝑥)
and the formula for 𝑓(𝑥) is the Inverse Fourier Transform of the function 𝐹(𝜔).
ℱ{𝑓(𝑥)}
𝑓(𝑥) ⇄ 𝐹(𝜔)
ℱ −1 {𝐹(𝜔)}
Example
𝑒 −𝑥 𝑓𝑜𝑟 𝑥 > 0
a. Determine the Fourier Transform of the function 𝑓(𝑥) = {
0 𝑓𝑜𝑟 𝑥 ≤ 0
∞ ∞ ∞ ∞
−𝑗𝜔𝑥 −𝑥 −𝑗𝜔𝑥 −𝑥(1+𝑗𝜔)
𝑒 −𝑥(1+𝑗𝜔)
𝐹(𝜔) = ∫ 𝑓(𝑥)𝑒 𝑑𝑥 = ∫ 𝑒 𝑒 𝑑𝑥 = ∫ 𝑒 𝑑𝑥 = − |
−∞ 0 0 1 + 𝑗𝜔 0

𝑒 −(∞)(1+𝑗𝜔) 𝑒 −(0)(1+𝑗𝜔) 0 1 1
[(− ) − (− )] = [(− ) − (− )] =
1 + 𝑗𝜔 1 + 𝑗𝜔 1 + 𝑗𝜔 1 + 𝑗𝜔 1 + 𝑗𝜔
1 𝑓𝑜𝑟 − 1 ≤ 𝑥 ≤ 1
b. Determine the Fourier Transform of the function 𝑓(𝑥) = {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
∞ 1 1
−𝑗𝜔𝑥 −𝑗𝜔𝑥
𝑒 −𝑗𝜔𝑥
𝐹(𝜔) = ∫ 𝑓(𝑥)𝑒 𝑑𝑥 = ∫ (1)𝑒 𝑑𝑥 == − |
−∞ −1 𝑗𝜔 −1
𝑒 −𝑗𝜔(1) 𝑒 −𝑗𝜔(−1) 𝑒 −𝑗𝜔 𝑒 𝑗𝜔 𝑒 𝑗𝜔 − 𝑒 −𝑗𝜔 2 sin 𝜔
= [(− ) − (− )] = [− + ]=[ ]=
𝑗𝜔 𝑗𝜔 𝑗𝜔 𝑗𝜔 𝑗𝜔 𝜔
∞ 𝑓𝑜𝑟 𝜔 = 1, −1
c. Determine the Inverse Fourier Transform of the function 𝐹(𝜔) = {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
∞ 𝑓𝑜𝑟 𝑥 = 𝑎
The function 𝑓(𝑥) = { is an impulse function expressed in another way
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 ∞
as 𝛿(𝑥 − 𝑎) and holds the property ∫−∞ 𝛿(𝑥 − 𝑎)𝑓(𝑥) 𝑑𝑥 = 𝑓(𝑎). Using this property,
we solve for the Inverse Fourier Transform of 𝐹(𝜔) = 𝛿(𝜔 − 1) + 𝛿(𝜔 + 1) as
1 ∞ 1 ∞
𝑓(𝑥) = ∫ 𝐹(𝜔)𝑒 𝑗𝜔𝑥 𝑑𝜔 = [∫ (𝛿(𝜔 − 1) + 𝛿(𝜔 + 1))𝑒 𝑗𝜔𝑥 𝑑𝜔]
2𝜋 −∞ 2𝜋 −∞
∞ ∞
1
= [∫ 𝛿(𝜔 − 1)𝑒 𝑗𝜔𝑥 𝑑𝜔 + ∫ 𝛿(𝜔 + 1)𝑒 𝑗𝜔𝑥 𝑑𝜔]
2𝜋 −∞ −∞

1 𝑗(1)𝑥 1 𝑒 𝑗𝑥 + 𝑒 −𝑗𝑥 1
= [𝑒 + 𝑒 𝑗(−1)𝑥 ] = [ ] = cos 𝑥
2𝜋 𝜋 2 𝜋

Properties of Fourier Transform


Here are some important properties of the Fourier Transform that we could use
to simplify the process of solving.
ℱ{𝑓(𝑥 − 𝑎)} = 𝑒 −𝑗𝜔𝑎 𝐹(𝜔)
ℱ{𝑒 −𝑗𝜔𝑎 𝑓(𝑥)} = 𝐹(𝜔 − 𝑎)
1 𝜔
ℱ{𝑎𝑓(𝑥)} = 𝐹( )
|𝑎| 𝑎
ℱ{𝐹(𝑥)} = 2𝜋𝑓(−𝜔)
𝑑𝑓(𝑥)
ℱ{ } = 𝑗𝜔𝐹(𝜔)
𝑑𝑥
𝑑𝑛 𝑓(𝑥)
ℱ{ } = (𝑗𝜔)𝑛 𝐹(𝜔)
𝑑𝑥 𝑛
𝑑 𝑛 𝐹(𝜔)
ℱ{(−𝑗𝑥)𝑛 𝑓(𝑥)} =
𝑑𝜔 𝑛
𝑥
𝐹(𝜔)
ℱ {∫ 𝑓(𝜏) 𝑑𝜏} = + 𝜋𝐹(0)𝛿(𝜔)
−∞ 𝑗𝜔
ℱ{𝛿(𝑥 − 𝑎)𝑓(𝑥)} = 𝑒 −𝑗𝜔𝑎 𝑓(𝑎)
Example
∞ 𝑓𝑜𝑟 𝜔 = 𝜋
a. Determine the Inverse Fourier Transform of the function 𝐹(𝜔) = {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
∞ 𝑓𝑜𝑟 𝜔 = 𝜋
The function 𝐹(𝜔) = { is represented by the impulse function
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝛿(𝜔 − 𝜋). Using the property ℱ{𝛿(𝑥 − 𝑎)𝑓(𝑥)} = 𝑒 −𝑗𝜔𝑎 𝑓(𝑎) with 𝑓(𝑥) = 𝑓(𝑎) = 1, we
obtain the Fourier Transform
ℱ{𝛿(𝑥 − 𝜋)(1)} = 𝑒 −𝑗𝜔(𝜋) (1)
𝐹(𝜔) = 𝑒 −𝑗𝜋𝜔
This time, we use the property of duality ℱ{𝐹(𝑥)} = 2𝜋𝑓(−𝜔) and reversing the value
of 𝑥 so we have ℱ{𝐹(−𝑥)} = 2𝜋𝑓(𝜔)
𝐹(−𝑥) = 𝑒 𝑗𝜋𝑥
ℱ{𝐹(−𝑥)} = ℱ{𝑒 𝑗𝜋𝑥 } = 2𝜋 𝛿(𝜔 − 𝜋)
Reversing the process, we get the Inverse Fourier Transform of 𝛿(𝑥 − 𝜋) as
ℱ −1 {2𝜋 𝛿(𝜔 − 𝜋)} = 𝑒 𝑗𝜋𝑥
𝑒 𝑗𝜋𝑥
ℱ −1 {𝛿(𝜔 − 𝜋)} =
2𝜋
1 𝑓𝑜𝑟 𝜔 ≤ 1
b. Determine the Inverse Fourier Transform of the function 𝐹(𝜔) = {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1 𝑓𝑜𝑟 𝑥 ≥ 0
The function 𝑓(𝑥) = { is a unit step function and expressed in another
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1 𝑠𝑔𝑛 (𝑥−𝑎)
way as 𝑢(𝑥 − 𝑎) which is equivalent to 2 + 2
where 𝑠𝑔𝑛 (𝑥 − 𝑎) is called the
signum function. The Fourier Transform of 𝑢(𝑥 − 𝑎) is shown below.
1 𝑠𝑔𝑛 (𝑥 − 𝑎) 1 𝑠𝑔𝑛 (𝑥 − 𝑎) 𝑗𝑒 −𝑗𝑎𝜔
ℱ{𝑢(𝑥 − 𝑎)} = ℱ { + } = ℱ{ }+ℱ{ } = 𝜋𝛿(𝜔) −
2 2 2 2 𝜔
1 𝑓𝑜𝑟 𝜔 ≤ 1
The given function 𝐹(𝜔) = { can be represented as 𝐹(𝜔) = (1 − 𝜔). We
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
could make use of the property of Fourier Transform ℱ{𝑓(𝑥)} = 𝐹(𝜔) and ℱ{𝐹(𝑥)} =
2𝜋𝑓(−𝜔) to derive its Inverse Fourier Transform. By letting 𝑎 = −1, we obtain the
Fourier Transform of 𝐹(𝑥).
𝑗𝑒 −𝑗(−1)𝑥 𝑗𝑒 𝑗𝑥
ℱ{𝐹(𝑥)} = ℱ {𝜋𝛿(𝑥) − } = ℱ {𝜋𝛿(𝑥) − } = 2𝜋 𝑢((−𝜔) − (−1)) = 2𝜋 𝑢(1 − 𝜔)
𝑥 𝑥

Reversing the process to obtain the Inverse Fourier Transform of 𝑢(1 − 𝜔)

−1 {2𝜋
𝑗𝑒 𝑗𝑥
ℱ 𝑢(1 − 𝜔)} = 𝜋𝛿(𝑥) −
𝑥
1 𝑗𝑒 𝑗𝑥
ℱ −1 {𝑢(1 − 𝜔)} = (𝜋𝛿(𝑥) − )
2𝜋 𝑥
𝛿(𝑥) 𝑗𝑒 𝑗𝑥
ℱ −1 {𝑢(1 − 𝜔)} = −
2 2𝜋𝑥
Discrete Fourier Transform
The formula shown below is being used for solving Fourier Transform of
continuous functions 𝑓(𝑥).

𝐹(𝜔) = ∫ 𝑓(𝑥)𝑒 −𝑗𝜔𝑥 𝑑𝑥
−∞

However, in actual applications such as audio processing and telecommunications,


signals are represented as discrete set of values {𝑓(𝑥𝑛 )} from sampling 𝑓(𝑥) at regular
interval ∆𝑥 for 𝑁 number of samples. Hence the above formula can be transformed
into the summation form
𝑁−1

𝐹(𝜔𝑘 ) = ∑ 𝑓(𝑥𝑛 )𝑒 −𝑗𝜔𝑘𝑥𝑛


𝑛=0
2𝜋𝑘 2𝜋𝑘
By letting 𝜔𝑘 = and letting the period 𝑇 = ∆𝑥𝑁, we get 𝜔𝑘 = ∆𝑥𝑁
𝑇
𝑁−1
−𝑗2𝜋𝑘
𝑥
𝐹(𝜔𝑘 ) = ∑ 𝑓(𝑥𝑛 )𝑒 ∆𝑥𝑁 𝑛
𝑛=0

Now, we let 𝑥𝑛 = 𝑛∆𝑥 and substitute it above


𝑁−1 𝑁−1
−𝑗2𝜋𝑘 −𝑗2𝜋𝑘𝑛
𝐹(𝜔𝑘 ) = ∑ 𝑓(𝑥𝑛 )𝑒 ∆𝑥𝑁 (𝑛∆𝑥) = ∑ 𝑓(𝑥𝑛 )𝑒 𝑁
𝑛=0 𝑛=0

Finally, the formula for the individual values of the Discrete Fourier Transform of 𝑓(𝑥𝑛 )
is given as
𝑁−1
−𝑗2𝜋𝑘𝑛
𝐹[𝑘] = ∑ 𝑓[𝑛]𝑒 𝑁
𝑛=0

𝑓𝑜𝑟 𝑘, 𝑛 = 0, 1, 2, . . . , 𝑁 − 1
with {𝐹[𝑘]} as the set of values of the Discrete Fourier Transform of {𝑓[𝑛]}. Meanwhile,
the Inverse Discrete Fourier Transform is given as
𝑁−1
1 𝑗2𝜋𝑘𝑛
𝑓[𝑛] = ∑ 𝐹[𝑘]𝑒 𝑁
𝑁
𝑛=0

𝑓𝑜𝑟 𝑘, 𝑛 = 0, 1, 2, . . . , 𝑁 − 1
Example
a. Find the DFT (Discrete Fourier Transform) of the values 𝑓(𝑥𝑛 ) = {1, −3, 0, 5, 7}
We determine that the size of the set is 𝑁 = 5. To obtain the DFT, we use the formula
and plug in the values of 𝑓(𝑥𝑛 ).
5−1 4 4
−𝑗2𝜋(0)𝑛
𝑘 = 0, 𝐹[0] = ∑ 𝑓[𝑛]𝑒 5 = ∑ 𝑓[𝑛]𝑒 0 = ∑ 𝑓[𝑛] = 1 + (−3) + (0) + 5 + 7 = 10
𝑛=0 𝑛=0 𝑛=0
5−1 4
−𝑗2𝜋(1)𝑛 −𝑗2𝜋𝑛 −𝑗2𝜋(1) −𝑗2𝜋(3) −𝑗2𝜋(4)
𝑘 = 1, 𝐹[1] = ∑ 𝑓[𝑛]𝑒 5 = ∑ 𝑓[𝑛]𝑒 5 = (1)𝑒 0 + (−3)𝑒 5 + (0) + 5𝑒 5 + 7𝑒 5 = 12.58𝑒 𝑗1.7151
𝑛=0 𝑛=0

5−1 4
−𝑗2𝜋(2)𝑛 −𝑗4𝜋𝑛 −𝑗4𝜋(1) −𝑗4𝜋(3) −𝑗4𝜋(4)
𝑘 = 2, 𝐹[2] = ∑ 𝑓[𝑛]𝑒 5 = ∑ 𝑓[𝑛]𝑒 5 = (1)𝑒 0 + (−3)𝑒 5 + (0) + 5𝑒 5 + 7𝑒 5 = 1.32𝑒 𝑗2.1226
𝑛=0 𝑛=0

5−1 4
−𝑗2𝜋(3)𝑛 −𝑗6𝜋𝑛 −𝑗6𝜋(1) −𝑗6𝜋(3) −𝑗6𝜋(4)
𝑘 = 3, 𝐹[3] = ∑ 𝑓[𝑛]𝑒 5 = ∑ 𝑓[𝑛]𝑒 5 = (1)𝑒 0 + (−3)𝑒 5 + (0) + 5𝑒 5 + 7𝑒 5 = 1.32𝑒 −𝑗2.1226
𝑛=0 𝑛=0

5−1 4
−𝑗2𝜋(4)𝑛 −𝑗8𝜋𝑛 −𝑗8𝜋 −𝑗8𝜋(3) −𝑗8𝜋(4)
𝑘 = 4, 𝐹[4] = ∑ 𝑓[𝑛]𝑒 5 = ∑ 𝑓[𝑛]𝑒 5 = (1)𝑒 0 + (−3)𝑒 5 + (0) + 5𝑒 5 + 7𝑒 5 = 12.58𝑒 −𝑗1.7151
𝑛=0 𝑛=0

{𝐹[𝑘]} = {10, 12.58𝑒 𝑗1.7151 , 1.32𝑒 𝑗2.1226 , 1.32𝑒 −𝑗2.1226 , 12.58𝑒 −𝑗1.7151 }
From the result, we obtain the magnitude of the frequencies at {𝑘} = {0, 1, 2, 3, 4} from
the moduli of the exponential complex numbers {𝐹[𝑘]}.
{|𝐹[𝑘]|} = {10, 12.58, 1.32, 1.32, 12.58}

b. Find the DFT of the values 𝑓(𝑥𝑛 ) sampled from the function 𝑓(𝑥) = 1 −
𝜋 1
2 cos (𝜋𝑥 − 2 ) + 4 sin(2𝜋𝑥) with a sampling interval of ∆𝑥 = 4 from 0 ≤ 𝑥 < 2
1
We first determine the values of {𝑓(𝑥𝑛 )} by making use of the sampling interval ∆𝑥 = 4
from 0 ≤ 𝑥 < 2
𝑛 𝑥𝑛 = 𝑛∆𝑥 𝑓(𝑥𝑛 )
𝜋
= 1 − 2 cos (𝜋(0) − ) + 4 sin(2𝜋(0))
2
𝜋
0 0 = 1 − 2 cos (− ) + 4 sin(0)
2
= 1 − 2(0) + 4(0)
=1
1 1
1 1( ) = 5 − √2 = 3.5858
4 4
1 1
2 2( ) = −1
4 2
3
3 −3 − √2 = −4.4142
4
4 1 1

5
5 5 + √2 = 6.4142
4
3
6 3
2
7
7 −3 + √2 = −1.5858
4

The values of {𝑓(𝑥𝑛 )} = {1, 3.5858, −1, −4.4142, 1, 6.4142, 3, −1.5858}


We determine that the size of the set is 𝑁 = 8. To obtain the DFT, we use the formula
and plug in the values of 𝑓(𝑥𝑛 ).
8−1 7 7
−𝑗2𝜋(0)𝑛
𝑘 = 0, 𝐹[0] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 0 = ∑ 𝑓[𝑛]
𝑛=0 𝑛=0 𝑛=0

𝐹[0] = 1 + 3.5858 + (−1) + (−4.4142) + 1 + 6.4142 + 3 + (−1.5858)


𝐹[0] = 8
8−1 7
−𝑗2𝜋(1)𝑛 −𝑗𝜋𝑛
𝑘 = 1, 𝐹[1] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 4
𝑛=0 𝑛=0
−𝑗𝜋(0) −𝑗𝜋(1) −𝑗𝜋(2) −𝑗𝜋(3) −𝑗𝜋(4)
𝐹[1] = (1)𝑒 4 + (3.5858)𝑒 4 + (−1)𝑒 4 + (−4.4142)𝑒 4 + (1)𝑒 4
−𝑗𝜋(5) −𝑗𝜋(6) −𝑗𝜋(7)
+ (6.4142)𝑒 4 + (3)𝑒 4 + (−1.5858)𝑒 4
𝜋
𝐹[1] = 8𝑒 𝑗 2
8−1 7
−𝑗2𝜋(2)𝑛 −𝑗𝜋𝑛 𝜋
𝑘 = 2, 𝐹[2] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 2 = 16𝑒 −𝑗 2
𝑛=0 𝑛=0
8−1 7
−𝑗2𝜋(3)𝑛 −𝑗3𝜋𝑛
𝑘 = 3, 𝐹[3] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 4 ≈0
𝑛=0 𝑛=0
8−1 7
−𝑗2𝜋(4)𝑛 −𝑗𝜋𝑛
𝑘 = 4, 𝐹[4] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 1 ≈0
𝑛=0 𝑛=0
8−1 7
−𝑗2𝜋(5)𝑛 −𝑗5𝜋𝑛
𝑘 = 5, 𝐹[5] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 4 ≈0
𝑛=0 𝑛=0
8−1 7
−𝑗2𝜋(6)𝑛 −𝑗3𝜋𝑛 𝜋
𝑘 = 6, 𝐹[6] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 2 = 8𝑒𝑗2
𝑛=0 𝑛=0
8−1 7
−𝑗2𝜋(7)𝑛 −𝑗7𝜋𝑛 𝜋
𝑘 = 7, 𝐹[7] = ∑ 𝑓[𝑛]𝑒 8 = ∑ 𝑓[𝑛]𝑒 4 = 16𝑒 −𝑗 2
𝑛=0 𝑛=0
𝜋 𝜋 𝜋 𝜋
{𝐹[𝑘]} = {8, 8𝑒 𝑗 2 , 16𝑒 −𝑗 2 , 0, 0, 0, 8𝑒 𝑗 2 , 16𝑒 −𝑗 2 }
{|𝐹[𝑘]|} = {8, 8, 16, 0, 0, 0, 8, 16}
2𝜋𝑘 2𝜋(0)
Analyzing the resulting DFT, at 𝐹[0], the equivalent frequency 𝜔0 = ∆𝑥𝑁 = 1 =
( )(8)
4
|𝐹[0]| 8
0 rad. If we divide the magnitude of 𝐹[0] by 𝑁, we get 𝑁 = 8 = 1. This is the
magnitude of the component 1 which we recall is the first term of 𝑓(𝑥) with frequency
of 0 rad hence usually called the dc component.
2𝜋𝑘 2𝜋(1)
If we look at 𝐹[1], the equivalent frequency is 𝜔1 = = 1 = 𝜋 rad. Then if we
∆𝑥𝑁 ( )(8)
4
2 2|𝐹[1]| 2(8)
multiply the magnitude by 𝑁, we will get = = 2. This is the magnitude of the
𝑁 8
𝜋
component −2 cos (𝜋𝑥 − 2 ) with frequency of 𝜋 rad indicated as coefficient of 𝑥 and
𝜋 𝜋 𝜋
phase shift of 2 rad since −2 cos (𝜋𝑥 − 2 ) = 2 cos (𝜋𝑥 + 2 ). In electrical circuits, this is
𝜋
equivalent to the phasor 2∠ 2 or 2∠90°.
2𝜋𝑘 2𝜋(2)
At 𝐹[2], the equivalent frequency is 𝜔2 = ∆𝑥𝑁 = 1 = 2𝜋 rad. If we multiply the
( )(8)
4
2 2|𝐹[2]| 2(16)
magnitude by 𝑁, we will get = = 4. This is the magnitude of the component
𝑁 8
𝜋
4 sin(2𝜋𝑥) with a frequency of 2𝜋 rad and phase shift of − 2 rad since 4 sin(2𝜋𝑥) =
𝜋
4 cos (2𝜋𝑥 − 2 ). This can also be represented as the phasor 4∠ − 90°.

You may notice that there are frequency components 𝐹[6] and 𝐹[7]. Note that these
are not valid frequencies of the samples and are just the consequence of the error
called aliasing in which higher frequencies mistakenly fits with the sample. However,
𝑁
the practice is that DFT values at 𝑘 > 2 will be discarded leaving us with only half of
the frequency components.

Fast Fourier Transform


Using DFT, we can analyze the frequency components 𝐹(𝜔𝑘 ) of a function 𝑓(𝑥)
sampled 𝑁 times. However, as 𝑁 grows larger with more samples, the computation of
DFT becomes longer and slower. To illustrate that, consider 1 million samples which
is equivalent to 𝑁 = 106 . Let’s say the computer can complete 10000 operations each
2
(106 )
second. Then it will take us 𝑂(𝑁 2 ) or 10000 = 108 seconds to finish equivalent to 3.2
years! This long cannot wait for many of us hence a new approach to solving DFT was
formulated to cut down the duration of computation.
Fast Fourier Transform or FFT is a more efficient algorithm for finding the DFT
of the given set of values. Instead of 𝑂(𝑁 2 ) length of computation, the FFT only utilizes
𝑂(𝑁 log 𝑁). So, for the previous sample of 106 , it will take a 10000 operations/second
106 log 106
machine 10000 = 600 seconds or 10 minutes to complete the computation. This is
indeed a large leap of improvement from the original algorithm of DFT which may take
years.
Fast Fourier Transform (FFT) take advantage of the redundant values in the
−𝑗2𝜋𝑘𝑛
the term 𝑒 𝑁 of the DFT. It works by splitting the 𝑁 terms into even and odd terms
𝑁
and performing DFT on each half. If we let 𝑀 = 2 , and 𝑛 = 2𝑚 for even terms of
𝑓(𝑥𝑛 ) and 𝑛 = 2𝑚 + 1 for the odd terms, the formula for FFT is given as
𝑀−1 𝑀−1
−𝑗2𝜋𝑘𝑚 −𝑗2𝜋𝑘 −𝑗2𝜋𝑘𝑚
𝐹[𝑘] = ∑ 𝑓[2𝑚]𝑒 𝑀 + 𝑒 𝑁 ∑ 𝑓[2𝑚 + 1]𝑒 𝑀

𝑚=0 ⏟ 𝑚=0
𝑒𝑣𝑒𝑛 𝑜𝑑𝑑
Example
a. Find the FFT of the previous set of sampled values {𝑓(𝑥𝑛 )} =
{1, 3.5858, −1, −4.4142, 1, 6.4142, 3, −1.5858}.
𝑁 8
We determine that 𝑁 = 8, 𝑀 = = 2 = 4 and 𝑀 − 1 = 3. Using the formula
2
𝑀−1 𝑀−1
−𝑗2𝜋𝑘𝑚 −𝑗2𝜋𝑘 −𝑗2𝜋𝑘𝑚
𝐹[𝑘] = ∑ 𝑓[2𝑚]𝑒 𝑀 + 𝑒 𝑁 ∑ 𝑓[2𝑚 + 1]𝑒 𝑀
𝑚=0 𝑚=0
3 3
−𝑗2𝜋(0)𝑚 −𝑗2𝜋(0) −𝑗2𝜋(0)𝑚
𝐹[0] = ∑ 𝑓[2𝑚]𝑒 4 + 𝑒 8 ∑ 𝑓[2𝑚 + 1]𝑒 4 =8
𝑚=0 𝑚=0
3 3
−𝑗2𝜋(1)𝑚 −𝑗2𝜋(1) −𝑗2𝜋(1)𝑚 𝜋
𝐹[1] = ∑ 𝑓[2𝑚]𝑒 4 + 𝑒 8 ∑ 𝑓[2𝑚 + 1]𝑒 4 = 8𝑒 𝑗 2
𝑚=0 𝑚=0
3 3
−𝑗2𝜋(2)𝑚 −𝑗2𝜋(2) −𝑗2𝜋(2)𝑚 𝜋
𝐹[2] = ∑ 𝑓[2𝑚]𝑒 4 + 𝑒 8 ∑ 𝑓[2𝑚 + 1]𝑒 4 = 16𝑒 −𝑗 2
𝑚=0 𝑚=0
3 3
−𝑗2𝜋(3)𝑚 −𝑗2𝜋(3) −𝑗2𝜋(3)𝑚
𝐹[3] = ∑ 𝑓[2𝑚]𝑒 4 + 𝑒 8 ∑ 𝑓[2𝑚 + 1]𝑒 4 ≈0
𝑚=0 𝑚=0
𝜋 𝜋
{𝐹[𝑘]} = {8, 8𝑒 𝑗 2 , 16𝑒 −𝑗 2 , 0}
{|𝐹[𝑘]|} = {8, 8, 16, 0}
We obtain the same values as that of the DFT but this time, the number of values was
reduced to half effectively removing the higher frequencies that was caused by
aliasing. Analyzing the FFT values replacing 𝑁 with 2𝑀, we get the same components
of 𝑓(𝑥) at {𝜔𝑘 } = {0, 𝜋, 2𝜋, 3𝜋}.

You might also like