It is useful to describe any signal in terms of certain primitives. This may be thought of as a language or vocabulary to describe signals. There are several alternative methods of describing signals. One of the most common is the Fourier method. This method uses sinusoids to describe signals. However, given a non-periodic signal (like the EMG), we can suppose that it will repeat itself after infinite time.
The Fourier method of describing signals comprises two parts, one is obtaining the descriptors given an arbitrary signal, and the second is synthesizing the actual signal given the descriptors. The former is termed Fourier analysis and the latter Fourier synthesis.
In order to show how the Fourier method works, we can see how the combination of several sinusoids can produce almost any signal we want. Thus, the signal we want will be described by the set of sinusoids. Each sinusoid in this set will have a specific amplitude and relative phase. The "phase" refers to the "starting point" of the each sinusoid with respect to a reference point in time.
Interactive Example: Fourier synthesis of time signals
The amplitudes and phases of the sinusoids comprising any signal can be drawn pictorially in a graph with the amplitudes on the vertical axis and the frequency number on the horizontal axis. The result would look very much like the positions of the scrollbars in the preceding simulation. The following two figures show both the scrollbars in the ECG synthesis and the corresponding amplitude plotted against frequency. This plot is called the amplitude spectrum. As seen in the simulation the phase is also important in specifying the signal, and therefore, the spectrum should show both the amplitude and phase of the component sinusoids plotted against frequency. The power spectrum is a compact (but reduced) way of showing the Fourier components, where the square of the amplitude (which is related to the power) is plotted against frequency.
The following figure shows the positions of the amplitude scrollbars set for ECG synthesis.
The following figure shows the positions of the amplitude scrollbars in the above figures connected by straight lines. The horizontal axis shows the frequency (corresponding to the sinusoid controlled by that scrollbar) and the vertical axis shows the amplitude of that sinusoid (the position the scrollbar has been set at). This is the amplitude spectrum of the composite signal, i.e., the ECG.
2-D sinusoids can be represented on a flat screen using both the screen's dimensions for the independent variables and the dependent variable must be represented using different colours on the screen. The simplest scheme is to use different intensities of grey - black indicates the smallest amplitude and white the largest amplitude. A simple sinusoid in two dimensions is like a corrugated sheet with the length and breadth of the sheet representing the independent variables and the undulations representing the amplitude of the signal. If the undulations of the corrugated sheet are in the X-direction it is said to be a frequency on the X-axis, if they are in the Y-direction it's a frequency on the Y-axis. Undulations diagonal to the X-Y plane can be obtained from a sinusoid that is on the diagonal line between the X & Y axes. Similarly, any other orientation of the undulations will be obtained from sinusoids from other points between the X & Y axes. In the accompanying simulation of 2-D signals (hyperlink at the end of this paragraph) you have 64 adjustable sinusoids whose amplitudes and phases can be adjusted. One image of the brain synthesized from sinusoids is also included. However, in order to synthesise this image purely from sinusoids, about 400 sinusoids are required. Since, it is not possible to have 400 scrollbars for amplitude and another 400 for phase on the computer screen, only 64 have been provided. Therefore, the user can manipulate the image only to a very small extent.
Interactive Example: Fourier synthesis of images (Note: This needs Java 2 - update your JRE if it doesn't run)
As in the case of 1-dimensional signals, the amplitudes and phases of the component sinusoids in a Fourier decomposition of a 2-dimensional signal can be plotted against the frequency.
Such Fourier spectra that have two independent variables and one dependent variable can be represented as an image (with frequency on the X-Y plane and amplitude as colour intensity). The following figure shows two different ways of representing 2-D Fourier amplitudes plotted against frequency (the horizontal plane represents frequencies in two directions). The figure on the right is a 3-dimensional surface plot diagram, and the figure on the left is a flat contour map diagram.

The interactive example shown earlier demonstrates the first of the above equations.
Note that the coefficients of the Fourier series, a[k], have been replaced with a continuous function, X(w).
In summary:
Consider the two signals shown below. One is a periodic square wave and the second is a non-periodic square/rectangular pulse.
The Fourier series calculation can be applied to the periodic function, and the Fourier transform calculation can be applied to the non-periodic one.
Euler’s relation has been used in the results in the final form given above.
[ Note: Euler’s relation is: ejx=cos(x)+jsin(x)
The magnitudes of Fourier series coefficients and the Fourier transform function are plotted in the figures below.
See the textbook for details of the above calculations. The above examples show the similarity and the difference between the Fourier series and the Fourier transform.
Finally, use the interactive example to compare the above Fourier decomposition with the square wave synthesis in the program. Note that the synthesis of the square wave using a limited number of sinusoids does not reproduce the square wave very well. As you increase the number of sinusoids (number of Fourier series terms), the square wave becomes better. But because of the discontinuity (sudden change) in the square wave, the reconstruction never becomes perfect, but always retains some oscillations at the edges- this behaviour was described in detail by Gibbs and is referred to as Gibbs’ phenomenon.
© Suresh Devasahayam