Welcome to Apple Sanity, Sunshine Ecstasy
Driving to a Destination Nowhere

Introduction

Usage & examples

Sampling Rates

Critical rates & Nyquist Frequency

Fourier Transformations

How and when a signal can be transformed

Even & Odd Functions

For simplifying the transformation

Complex Notation

Instructions with example

PSD: the Power Spectral Density

Defining the periodic waveform

Nyquist Frequency

Final evaluations

Links to Other Articles

 

 

Sunshine Ecstasy is Valid XHTML 1.1

Apple Sanity - WCAG 1.0 Level-AA Conformance

Apple Sanity is Valid CSS

Apple Sanity School > Fourier Series

Signal Transformations, Trigonometric Formulas, Complex Notation

Welcome to the school for Apple Sanity, Sunshine Ecstasy. This page describes the process for Fourier Series: why they are necessary and essential for taking any periodic signal and converting them into a trigonetric formula. Explains the Nyquist Frequency, sampling rates, power spectral densities, and complex notation, as well as shortcuts for handling even and odd functions.

NOTICE FOR MECHANICAL ENGINEERS: the following is all you need to understand the math behind labs that require usage of DAQ cards.

All articles and IMAGES are original and the express, exclusive property of www.applesanity.com.

 

Introduction

Given any periodic signal under certain conditions, we can represent the signal as a series of trigonometric formulas. Often, these signals are recorded on a sampling device. Here are a few examples of signals that have wave-like characteristics, but cannot be expressed as a continuous function. Consequently, a Fourier transform is needed.

periodic signal odd signal sample

Example 1 - odd signal

periodic signal odd signal sample

Example 2 - odd signal

periodic signal even signal sample

Example 3 - even signal

 

Sampling Rates

In order to determine a useful sampling rate, note that:

fourier series sampling rate

where fh is the highest frequency recorded and fcrit is the maximum sampling rate or frequency that will record all of the components of our signals. To take into account the two unknown coefficients associated with analog signals of the form,

fourier series analog signal

we determined that the frequency should be measured at two times fh to account for the entire wave forms. This particular frequency is the Nyquist Frequency :

Nyquist Frequency

where fDAQ is the sampling rate or frequency at which data is acquired by the the sampling device. Without using this Nyquist frequency the phenomenon of aliasing occurs and our digital readings would be inaccurate.

Fourier Transformations

Signals recorded by a sampling device are approximated in the form of a trigonometric Fourier series. Any periodic signal can be expressed as a series of sines and cosines if 1) the signal has a finite number of discontinuities period, 2) if the signal has a finite average value, and 3) if the signal has a finite number of relative maxima and minima. Then this finite signal can be expressed as

Trigonometric Transformation

where n = the number of iterations, t = the time, and T = period or wavelength. Furthermore,

Periodic Signal Components

and,

Iterations

Obviously, y(t) cannot always express the entire signal; otherwise, Fourier transforms would be unnecessary. In the three introduction examples, it is clear that y(t) becomes a piecemeal function. For Example 3, one would have to express y(t) = -mx from -T / 2 to 0, and y(t) = mx from 0 to T / 2, as opposed to expressing y(t) over the range of -T / 2 to T / 2.

The goal is to perform the summation until n reaches a fairly large number. The higher the number, the closer the Fourier transform is to an approximation to the given signal.

Even & Odd Functions

In addition, calculating the Fourier series for a periodic wave signal can be simplified by examining whether if the signal itself is an even or odd function. If the signal is an even function (Example 3), then it is symmetric about the y-axis. Consequently,

Odd Function 1

and

Odd Function 2

Moreover, if the signal is an odd function (Examples 1 and 2), then

Odd Function 3

Consequently,

Odd Function 4

and

Odd Function 5

Complex Notation

Let us now approximate the following signal, where the wavelength T = 2, and y(t) is defined as y(t) = -1 from -nT / 2 to 0 and y(t) = 1 from 0 to nT / 2. The first thing we should notice is that this signal is an odd function, so

Odd Function 5

Furthermore, this trigonometric Fourier Series can be simplified further using complex number notation. Given, already, that:

Trigonometric Transformation

and,

Complex Notation 1

then we have:

Complex Notation 2

where

Complex Notation 3

Rearranging the terms give:

Complex Notation 4

If we define:

Complex Notation 5

then

Complex Notation 6

where

Complex Notation 7

PSD: the Power Spectral Density

With these last two equations, the power spectral density, or PSD, of the waveform can be found. The PSD of a periodic waveform, or signal, displays the series of frequencies and their corresponding amplitudes derived from the original signal. With this display, we can find the highest frequency in each signal, which will prove crucial in determining sampling rates. The time average of the square of the y(t) is:

PSD, Time Average Square 1

where

PSD, Time Average Square 2

if y(t) is given in the form of complex number notation. Consequently,

PSD, Time Average Square 3

Nyquist Frequency

These equations are how the sampling device and computer find the Fourier series and PSD of the signals it receives. One crucial consideration for the sampling device is the sampling rate. As with any analog-to-digital process, low sampling rates translate into aliasing, or even worse, amplitude ambiguity or falseness. Hence or otherwise, if there are two few sampling points, then the periodic waveform of the signal that the sampling device receives cannot be correctly interpreted. Obviously, the highest frequency found in the signal, or fh, must be smaller than the sampling rate, or fcrit:

Nyquist Frequency Sampling Rate 1

The Nyquist frequency rule is that we must choose a sampling frequency fcrit such that it is equal to or at least twice the highest frequency fh in the signal.

Nyquist Frequency Sampling Rate 2

where fN is the Nyquist Frequency, and fDAQ is the sampling rate of the DAQ card. We can find the highest frequency, and consequently, the minimum Nyquist Frequecy by analyzing the PSD of the periodic waveform of each signal.