Docsity

Fourier Transform Properties: Shifting in Time Domain and Aliasing, Exercises of Signal Processing and Analysis

Toggle sidebar
bg1
185
CHAPTER
10 Fourier Transform Properties
The time and frequency domains are alternative ways of representing signals. The Fourier
transform is the mathematical relationship between these two representations. If a signal is
modified in one domain, it will also be changed in the other domain, although usually not in the
same way. For example, it was shown in the last chapter that convolving time domain signals
results in their frequency spectra being multiplied. Other mathematical operations, such as
addition, scaling and shifting, also have a matching operation in the opposite domain. These
relationships are called properties of the Fourier Transform, how a mathematical change in one
domain results in a mathematical change in the other domain.
Linearity of the Fourier Transform
The Fourier Transform is linear, that is, it possesses the properties of
homogeneity and additivity. This is true for all four members of the Fourier
transform family (Fourier transform, Fourier Series, DFT, and DTFT).
Figure 10-1 provides an example of how homogeneity is a property of the
Fourier transform. Figure (a) shows an arbitrary time domain signal, with the
corresponding frequency spectrum shown in (b). We will call these two
signals: and , respectively. Homogeneity means that a change inx[ ] X[ ]
amplitude in one domain produces an identical change in amplitude in the other
domain. This should make intuitive sense: when the amplitude of a time
domain waveform is changed, the amplitude of the sine and cosine waves
making up that waveform must also change by an equal amount.
In mathematical form, if and are a Fourier Transform pair, then x[ ] X[ ] kx[ ]
and are also a Fourier Transform pair, for any constant k. If thekX[ ]
frequency domain is represented in rectangular notation, means that bothkX[ ]
the real part and the imaginary part are multiplied by k. If the frequency
domain is represented in polar notation, means that the magnitude iskX[ ]
multiplied by k, while the phase remains unchanged.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Fourier Transform Properties: Shifting in Time Domain and Aliasing and more Exercises Signal Processing and Analysis in PDF only on Docsity!

185

CHAPTER

Fourier Transform Properties

The time and frequency domains are alternative ways of representing signals. The Fourier transform is the mathematical relationship between these two representations. If a signal is modified in one domain, it will also be changed in the other domain, although usually not in the same way. For example, it was shown in the last chapter that convolving time domain signals results in their frequency spectra being multiplied. Other mathematical operations, such as addition, scaling and shifting, also have a matching operation in the opposite domain. These relationships are called properties of the Fourier Transform, how a mathematical change in one domain results in a mathematical change in the other domain.

Linearity of the Fourier Transform

The Fourier Transform is linear, that is, it possesses the properties of homogeneity and additivity. This is true for all four members of the Fourier transform family (Fourier transform, Fourier Series, DFT, and DTFT).

Figure 10-1 provides an example of how homogeneity is a property of the Fourier transform. Figure (a) shows an arbitrary time domain signal, with the corresponding frequency spectrum shown in (b). We will call these two signals: x [ ] and X [ ], respectively. Homogeneity means that a change in amplitude in one domain produces an identical change in amplitude in the other domain. This should make intuitive sense: when the amplitude of a time domain waveform is changed, the amplitude of the sine and cosine waves making up that waveform must also change by an equal amount.

In mathematical form, if x [ ] and X [ ] are a Fourier Transform pair, then k x [ ] and k X [ ] are also a Fourier Transform pair, for any constant k. If the frequency domain is represented in rectangular notation, k X [ ]means that both the real part and the imaginary part are multiplied by k. If the frequency domain is represented in polar notation, k X [ ]means that the magnitude is multiplied by k , while the phase remains unchanged.

186 The Scientist and Engineer's Guide to Digital Signal Processing

Sample number

0 64 128 192 256

0

1

2

3

255

c. k x[ ]

Sample number

0 64 128 192 256

0

1

2

3

255

a. x[ ]

Frequency

0 0.1 0.2 0.3 0.4 0.

0

10

20

30

40

50 b. X[ ]

Frequency

0 0.1 0.2 0.3 0.4 0.

0

10

20

30

40

50 d. k X[ ]

Amplitude

Amplitude Amplitude

Amplitude

Time Domain Frequency Domain

FIGURE 10- Homogeneity of the Fourier transform. If the amplitude is changed in one domain, it is changed by the same amount in the other domain. In other words, scaling in one domain corresponds to scaling in the other domain.

F.T.

F.T.

Additivity of the Fourier transform means that addition in one domain corresponds to addition in the other domain. An example of this is shown in Fig. 10-2. In this illustration, (a) and (b) are signals in the time domain called x 1 [ ] and x 2 [ ], respectively. Adding these signals produces a third time domain signal called x 3 [ ], shown in (c). Each of these three signals has a frequency spectrum consisting of a real and an imaginary part, shown in (d) through (i). Since the two time domain signals add to produce the third time domain signal, the two corresponding spectra add to produce the third spectrum. Frequency spectra are added in rectangular notation by adding the real parts to the real parts and the imaginary parts to the imaginary parts. If: x 1 [ n ] % x 2 [ n ] ' x 3 [ n ] , then: Re X 1 [ f ] % ReX 2 [ f ] ' ReX 3 [ f ] and Im X 1 [ f ] % ImX 2 [ f ] ' Im X 3 [ f ]. Think of this in terms of cosine and sine waves. All the cosine waves add (the real parts) and all the sine waves add (the imaginary parts) with no interaction between the two.

Frequency spectra in polar form cannot be directly added; they must be converted into rectangular notation, added, and then reconverted back to

188 The Scientist and Engineer's Guide to Digital Signal Processing

In spite of being linear, the Fourier transform is not shift invariant. In other words, a shift in the time domain does not correspond to a shift in the frequency domain. This is the topic of the next section.

Characteristics of the Phase

In mathematical form: if x [ n ] : Mag X [ f ] & Phase X [ f ], then a shift in the time domain results in: x [ n % s ] : Mag X [ f ] & Phase X [ f ] % 2 B sf , (where f is expressed as a fraction of the sampling rate, running between 0 and 0.5). In words, a shift of s samples in the time domain leaves the magnitude unchanged, but adds a linear term to the phase, 2 B sf. Let's look at an example of how this works.

Figure 10-3 shows how the phase is affected when the time domain waveform is shifted to the left or right. The magnitude has not been included in this illustration because it isn't interesting; it is not changed by the time domain shift. In Figs. (a) through (d), the waveform is gradually shifted from having the peak centered on sample 128, to having it centered on sample 0. This sequence of graphs takes into account that the DFT views the time domain as circular ; when portions of the waveform exit to the right, they reappear on the left.

The time domain waveform in Fig. 10-3 is symmetrical around a vertical axis, that is, the left and right sides are mirror images of each other. As mentioned in Chapter 7, signals with this type of symmetry are called linear phase , because the phase of their frequency spectrum is a straight line. Likewise, signals that don't have this left-right symmetry are called nonlinear phase , and have phases that are something other than a straight line. Figures (e) through (h) show the phase of the signals in (a) through (d). As described in Chapter 7, these phase signals are unwrapped , allowing them to appear without the discontinuities associated with keeping the value between B and -B.

When the time domain waveform is shifted to the right, the phase remains a straight line, but experiences a decrease in slope. When the time domain is shifted to the left, there is an increase in the slope. This is the main property you need to remember from this section; a shift in the time domain corresponds to changing the slope of the phase.

Figures (b) and (f) display a unique case where the phase is entirely zero. This occurs when the time domain signal is symmetrical around sample zero. At first glance, this symmetry may not be obvious in (b); it may appear that the signal is symmetrical around sample 256 (i.e., N /2) instead. Remember that the DFT views the time domain as circular, with sample zero inherently connected to sample N -1. Any signal that is symmetrical around sample zero will also be symmetrical around sample N /2, and vice versa. When using members of the Fourier Transform family that do not view the time domain as periodic (such as the DTFT), the symmetry must be around sample zero to produces a zero phase.

Chapter 10- Fourier Transform Properties 189

Sample number

0 64 128 192 256 320 384 448 512

0

1

2

511

a.

Sample number

0 64 128 192 256 320 384 448 512

0

1

2

511

b.

Sample number

0 64 128 192 256 320 384 448 512

0

1

2

511

c.

Frequency

0 0.1 0.2 0.3 0.4 0.

0

300

600

900 g.

Frequency

0 0.1 0.2 0.3 0.4 0.

0

300

600

900 h.

2

3

1

Sample number

0 64 128 192 256 320 384 448 512

0

1

2

511

d.

Frequency

0 0.1 0.2 0.3 0.4 0.

0

300

600

900 e.

Frequency

0 0.1 0.2 0.3 0.4 0.

0

300

600

900 f.

Phase (radians)

Phase (radians)

Phase (radians)

FIGURE 10- Phase changes resulting from a time domain shift.

Time Domain Frequency Domain

Amplitude

Amplitude

Amplitude

Amplitude Phase (radians)

Chapter 10- Fourier Transform Properties 191

Frequency

0 0.1 0.2 0.3 0.4 0.

0

50

100

150

    • 0

15 B

10 B

5 B

0

-5B

b.

number of samples shifted in time domain

FIGURE 10- Phases resulting from time domain shifting. For each sample that a time domain signal is shifted in the positive direction (i.e., to the right), the phase at frequency 0.5 will decrease by B radians. For each sample shifted in the negative direction (i.e., to the left), the phase at frequency 0.5 will increase by B radians. Figure (a) shows this for a linear phase (a straight line), while (b) is an example using a nonlinear phase.

Frequency

0 0.1 0.2 0.3 0.4 0.

0

10

20

30

1 2 3 number of samples shifted in time domain

3 B

2 B

B

0

  • B

-2B

-3B

a.

0

Phase (radians) Phase (radians)

All of the examples we have used so far are linear phase. Figure 10-5b shows that nonlinear phase signals react to shifting in the same way. In this example the nonlinear phase is a straight line with two rectangular pulses. When the time domain is shifted, these nonlinear features are simply superimposed on the changing slope.

What happens in the real and imaginary parts when the time domain waveform is shifted? Recall that frequency domain signals in rectangular notation are nearly impossible for humans to understand. The real and imaginary parts typically look like random oscillations with no apparent pattern. When the time domain signal is shifted, the wiggly patterns of the real and imaginary parts become even more oscillatory and difficult to interpret. Don't waste your time trying to understand these signals, or how they are changed by time domain shifting.

Figure 10-6 is an interesting demonstration of what information is contained in the phase , and what information is contained in the magnitude. The waveform in (a) has two very distinct features: a rising edge at sample number 55, and a falling edge at sample number 110. Edges are very important when information is encoded in the shape of a waveform. An edge indicates when something happens, dividing whatever is on the left from whatever is on the right. It is time domain encoded information in its purest form. To begin the demonstration, the DFT is taken of the signal in (a), and the frequency spectrum converted into polar notation. To find the signal in (b), the phase is replaced with random numbers between -B and B, and the inverse DFT used to reconstruct the time domain waveform. In other words, (b) is based only on the information contained in the magnitude. In a similar manner, (c) is found by replacing the magnitude with small random numbers before using the inverse DFT. This makes the reconstruction of (c) based solely on the information contained in the phase.

192 The Scientist and Engineer's Guide to Digital Signal Processing

Sample number

0 64 128 192 256

0

1

2

3

255

a. Original signal

Sample number

0 64 128 192 256

0

1

2

3

255

b. Reconstructed from the magnitude

Sample number

0 64 128 192 256

0

1

2

3

255

c. Reconstructed from the phase

Amplitude

Amplitude Amplitude

FIGURE 10- Information contained in the phase. Figure (a) shows a pulse-like waveform. The signal in (b) is created by taking the DFT of (a), replacing the phase with random numbers, and taking the Inverse DFT. The signal in (c) is found by taking the DFT of (a), replacing the magnitude with random numbers, and taking the Inverse DFT. The location of the edges is retained in (c), but not in (b). This shows that the phase contains information on the location of events in the time domain signal.

The result? The locations of the edges are clearly present in (c), but totally absent in (b). This is because an edge is formed when many sinusoids rise at the same location, possible only when their phases are coordinated. In short, much of the information about the shape of the time domain waveform is contained in the phase , rather than the magnitude. This can be contrasted with signals that have their information encoded in the frequency domain, such as audio signals. The magnitude is most important for these signals, with the phase playing only a minor role. In later chapters we will see that this type of understanding provides strategies for designing filters and other methods of processing signals. Understanding how information is represented in signals is always the first step in successful DSP.

Why does left-right symmetry correspond to a zero (or linear) phase? Figure 10-7 provides the answer. Such a signal can be decomposed into a left half and a right half, as shown in (a), (b) and (c). The sample at the center of symmetry (zero in this case) is divided equally between the left and right halves, allowing the two sides to be perfect mirror images of each other. The magnitudes of these two halves will be identical , as shown in (e) and (f), while the phases will be opposite in sign, as in (h) and (i). Two important concepts fall out of this. First, every signal that is symmetrical between the left and right will have a linear phase because the nonlinear phase of the left half exactly cancels the nonlinear phase of the right half.

194 The Scientist and Engineer's Guide to Digital Signal Processing

represented by placing a star to the upper-right of the variable. For example, if X [ f ] consists of Mag X [ f ] and Phase X [ f ] , then X t[ f ] is called the complex conjugate and is composed of Mag X [ f ] and & Phase X [ f ]. In rectangular notation, the complex conjugate is found by leaving the real part alone, and changing the sign of the imaginary part. In mathematical terms, if X [ f ] is composed of Re X [ f ] and Im X [ f ] , then X t[ f ] is made up of Re X [ f ]and & Im X [ f ].

Here are several examples of how the complex conjugate is used in DSP. If x [ n ] has a Fourier transform of X [ f ] , then x [& n ]has a Fourier transform of X t[ f ]. In words, flipping the time domain left-for-right corresponds to changing the sign of the phase. As another example, recall from Chapter 7 that correlation can be performed as a convolution. This is done by flipping one of the signals left-for-right. In mathematical form, a [ n ] t b [ n ]is convolution, while a [ n ] t b [& n ]is correlation. In the frequency domain these operations correspond to A [ f ] × B [ f ] and A [ f ] × B t[ f ], respectively. As the last example, consider an arbitrary signal, x [ n ] , and its frequency spectrum, X [ f ]. The frequency spectrum can be changed to zero phase by multiplying it by its complex conjugate, that is, X [ f ] × X t[ f ]. In words, whatever phase X [ f ] happens to have will be canceled by adding its opposite (remember, when frequency spectra are multiplied, their phases are added). In the time domain, this means that x [ n ] t x [& n ] (a signal convolved with a left-right flipped version of itself) will have left-right symmetry around sample zero, regardless of what x [ n ]is.

To many engineers and mathematicians, this kind of manipulation is DSP. If you want to be able to communicate with this group, get used to using their language.

Periodic Nature of the DFT

Unlike the other three Fourier Transforms, the DFT views both the time domain and the frequency domain as periodic. This can be confusing and inconvenient since most of the signals used in DSP are not periodic. Nevertheless, if you want to use the DFT, you must conform with the DFT's view of the world.

Figure 10-8 shows two different interpretations of the time domain signal. First, look at the upper signal, the time domain viewed as N points. This represents how digital signals are typically acquired in scientific experiments and engineering applications. For instance, these 128 samples might have been acquired by sampling some parameter at regular intervals of time. Sample 0 is distinct and separate from sample 127 because they were acquired at different times. From the way this signal was formed, there is no reason to think that the samples on the left of the signal are even related to the samples on the right.

Unfortunately, the DFT doesn't see things this way. As shown in the lower figure, the DFT views these 128 points to be a single period of an infinitely long periodic signal. This means that the left side of the acquired signal is

Chapter 10- Fourier Transform Properties 195

Sample number

-384 -256 -128 0 128 256 384

0

1

2

Sample number

0 32 64 96 128

0

1

2

127

FIGURE 10- Periodicity of the DFT's time domain signal. The time domain can be viewed as N samples in length, shown in the upper figure, or as an infinitely long periodic signal, shown in the lower figure.

The time domain viewed as N points

The time domain viewed as periodic

Amplitude

Amplitude

connected to the right side of a duplicate signal. Likewise, the right side of the acquired signal is connected to the left side of an identical period. This can also be thought of as the right side of the acquired signal wrapping around and connecting to its left side. In this view, sample 127 occurs next to sample 0, just as sample 43 occurs next to sample 44. This is referred to as being circular , and is identical to viewing the signal as being periodic.

The most serious consequence of time domain periodicity is time domain aliasing. To illustrate this, suppose we take a time domain signal and pass it through the DFT to find its frequency spectrum. We could immediately pass this frequency spectrum through an Inverse DFT to reconstruct the original time domain signal, but the entire procedure wouldn't be very interesting. Instead, we will modify the frequency spectrum in some manner before using the Inverse DFT. For instance, selected frequencies might be deleted, changed in amplitude or phase, shifted around, etc. These are the kinds of things routinely done in DSP. Unfortunately, these changes in the frequency domain can create a time domain signal that is too long to fit into

Chapter 10- Fourier Transform Properties 197

Frequency

-1.5 -1 -0.5 0 0.5 1 1.

0

1

2

3

W W W

Frequency

0 0.1 0.2 0.3 0.4 0.

0

1

2

3 Magnitude

FIGURE 10- Periodicity of the DFT's frequency domain. The frequency domain can be viewed as running from 0 to 0.5 of the sampling rate (upper two figures), or an infinity long periodic signal with every other 0 to 0.5 segment flipped left-for-right (lower two figures).

Frequency

0 0.1 0.2 0.3 0.4 0.

0

1

2

3

4 Phase

Frequency

-1.5 -1 -0.5 0 0.5 1 1.

0

1

2

3

4

The frequency domain viewed as periodic

The frequency domain viewed as 0 to 0.5 of the sampling rate

Amplitude

Phase (radians)

Amplitude

Phase

198 The Scientist and Engineer's Guide to Digital Signal Processing

(^0) Time N-

signal exiting to the right

reappears on the left

(^0) Frequency 0.

signal exiting to the right

reappears on the right

FIGURE 10- Examples of aliasing in the time and frequency domains, when only a single period is considered. In the time domain, shown in (a), portions of the signal that exits to the right, reappear on the left. In the frequency domain, (b), portions of the signal that exit to the right, reappear on the right as if they had been folded over.

a. Time domain aliasing b. Frequency domain aliasing

across the 0.5 barrier, the negative frequency is pushed across the -0. barrier. Since the frequency domain is periodic, these same events are occurring in the other periods, such as between 0.5 and 1.5. A clone of the positive frequency is crossing frequency 1.5 from left to right, while a clone of the negative frequency is crossing 0.5 from right to left. Now imagine what this looks like if you can only see the frequency band of 0 to 0.5. It appears that a frequency leaving to the right , reappears on the right , but moving in the opposite direction.

Figure 10-10 illustrates how aliasing appears in the time and frequency domains when only a single period is viewed. As shown in (a), if one end of a time domain signal is too long to fit inside a single period, the protruding end will be cut off and pasted onto the other side. In comparison, (b) shows that when a frequency domain signal overflows the period, the protruding end is folded over. Regardless of where the aliased segment ends up, it adds to whatever signal is already there, destroying information.

Let's take a closer look at these strange things called negative frequencies. Are they just some bizarre artifact of the mathematics, or do they have a real world meaning? Figure 10-11 shows what they are about. Figure (a) is a discrete signal composed of 32 samples. Imagine that you are given the task of finding the frequency spectrum that corresponds to these 32 points. To make your job easier, you are told that these points represent a discrete cosine wave. In other words, you must find the frequency and phase shift ( f and 2 ) such that x [ n ] ' cos(2B n f / N % 2 )matches the given samples. It isn't long before you come up with the solution shown in (b), that is, f ' 3 and 2 ' & B/4.

If you stopped your analysis at this point, you only get 1/3 credit for the problem. This is because there are two other solutions that you have missed. As shown in (c), the second solution is f ' & 3 and 2 ' B/4. Even if the idea of a negative frequency offends your sensibilities, it doesn't

200 The Scientist and Engineer's Guide to Digital Signal Processing

results in frequencies between 0 and -0.5. Lastly, the third solution makes up the infinite number of duplicated frequencies below -0.5 and above 0.5. If the signal we are analyzing is continuous, the first solution results in frequencies from zero to positive infinity, while the second solution results in frequencies from zero to negative infinity. The third group of solutions does not exist for continuous signals.

Many DSP techniques do not require the use of negative frequencies, or an understanding of the DFT's periodicity. For example, two common ones were described in the last chapter, spectral analysis , and the frequency response of systems. For these applications, it is completely sufficient to view the time domain as extending from sample 0 to N -1, and the frequency domain from zero to one-half of the sampling frequency. These techniques can use a simpler view of the world because they never result in portions of one period moving into another period. In these cases, looking at a single period is just as good as looking at the entire periodic signal.

However, certain procedures can only be analyzed by considering how signals overflow between periods. Two examples of this have already been presented, circular convolution and analog-to-digital conversion. In circular convolution, multiplication of the frequency spectra results in the time domain signals being convolved. If the resulting time domain signal is too long to fit inside a single period, it overflows into the adjacent periods, resulting in time domain aliasing. In contrast, analog-to-digital conversion is an example of frequency domain aliasing. A nonlinear action is taken in the time domain, that is, changing a continuous signal into a discrete signal by sampling. The problem is, the spectrum of the original analog signal may be too long to fit inside the discrete signal's spectrum. When we force the situation, the ends of the spectrum protrude into adjacent periods. Let's look at two more examples where the periodic nature of the DFT is important, compression & expansion of signals, and amplitude modulation.

Compression and Expansion, Multirate methods

As shown in Fig. 10-12, a compression of the signal in one domain results in an expansio n in the other, and vice versa. For continuous signals, if X ( f )is the Fourier Transform of x ( t ) , then 1/ k × X ( f / k ) is the Fourier Transform of x ( k t ), where k is the parameter controlling the expansion or contraction. If an event happens faster (it is compressed in time), it must be composed of higher frequencies. If an event happens slower (it is expanded in time), it must be composed of lower frequencies. This pattern holds if taken to either of the two extremes. That is, if the time domain signal is compressed so far that it becomes an impulse , the corresponding frequency spectrum is expanded so far that it becomes a constant value. Likewise, if the time domain is expanded until it becomes a constant value, the frequency domain becomes an impulse.

Discrete signals behave in a similar fashion, but there are a few more details. The first issue with discrete signals is aliasing. Imagine that the

Chapter 10- Fourier Transform Properties 201

Sample number

0 16 32 48 64 80 96 112 128

0

1

2

3 a. Signal compressed

127 Frequency

0 0.1 0.2 0.3 0.4 0.

0

4

8

12

16

20 b. Expanded frequency spectrum

Frequency

0 0.1 0.2 0.3 0.4 0.

0

6

12

18

24

30 d. Frequency spectrum

Time Domain Frequency Domain

Sample number

0 16 32 48 64 80 96 112 128

0

1

2

3 c. Signal

127

samples underlying waveform continious

Sample number

0 16 32 48 64 80 96 112 128

0

1

2

3 e. Signal expanded

127 Frequency

0 0.1 0.2 0.3 0.4 0.

0

10

20

30

40

50 f. Compressed frequency spectrum

FIGURE 10- Compression and expansion. Compressing a signal in one domain results in the signal being expanded in the other domain, and vice versa. Figures (c) and (d) show a discrete signal and its spectrum, respectively. In (a) and (b), the time domain signal has been compressed, resulting in the frequency spectrum being expanded. Figures (e) and (f) show the opposite process. As shown in these figures, discrete signals are expanded or contracted by expanding or contracting the underlying continuous waveform. This underlying waveform is then resampled to find the new discrete signal.

Amplitude Amplitude

Amplitude

Amplitude Amplitude

Amplitude

pulse in (a) is compressed several times more than is shown. The frequency spectrum is expanded by an equal factor, and several of the humps in (b) are pushed to frequencies beyond 0.5. The resulting aliasing breaks the simple expansion/contraction relationship. This type of aliasing can also happen in the

Chapter 10- Fourier Transform Properties 203

Sample number

0 10 20 30 40 50

0

1

2 a. Smooth waveform

Sample number

0 80 160 240 320 400

0

1

2 b. Fig. (a) interpolated

Sample number

0 10 20 30 40 50

0

1

2 c. Sharp edges

Sample number

0 80 160 240 320 400

0

1

2 d. Fig. (c) interpolated

Amplitude

Amplitude Amplitude

Amplitude

FIGURE 10- Interpolation by padding the frequency domain. Figures (a) and (c) each consist of 50 samples. These are inter- polated to 400 samples by padding the frequency domain with zeros, resulting in (b) and (d), respectively. (Figures (b) and (d) are discrete signals, but are drawn as continuous lines because of the large number of samples).

(both the real and imaginary parts) with 224 zeros to make the frequency spectrum 257 points long. (4) Use a 512 point Inverse DFT to transform the data back into the time domain. This will result in a 512 sample signal that is a high resolution version of the 64 sample signal. The first 400 samples of this signal are an interpolated version of the original 50 samples.

The key feature of this technique is that the interpolated signal is composed of exactly the same frequencies as the original signal. This may or may not provide a well-behaved fit in the time domain. For example, Figs. 10-13 (a) and (b) show a 50 sample signal being interpolated into a 400 sample signal by this method. The interpolation is a smooth fit between the original points, much as if a curve fitting routine had been used. In comparison, (c) and (d) show another example where the time domain is a mess! The oscillatory behavior shown in (d) arises at edges or other discontinuities in the signal. This also includes any discontinuity between sample zero and N -1, since the time domain is viewed as being circular. This overshoot at discontinuities is called the Gibbs effect , and is discussed in Chapter 11. Another frequency domain interpolation technique is presented in Chapter 3, adding zeros between the time domain samples and low-pass filtering.

204 The Scientist and Engineer's Guide to Digital Signal Processing

Multiplying Signals (Amplitude Modulation)

An important Fourier transform property is that convolution in one domain corresponds to multiplication in the other domain. One side of this was discussed in the last chapter: time domain signals can be convolved by multiplying their frequency spectra. Amplitude modulation is an example of the reverse situation, multiplication in the time domain corresponds to convolution in the frequency domain. In addition, amplitude modulation provides an excellent example of how the elusive negative frequencies enter into everyday science and engineering problems.

Audio signals are great for short distance communication; when you speak, someone across the room hears you. On the other hand, radio frequencies are very good at propagating long distances. For instance, if a 100 volt, 1 MHz sine wave is fed into an antenna, the resulting radio wave can be detected in the next room , the next country , and even on the next planet. Modulation is the process of merging two signals to form a third signal with desirable characteristics of both. This always involves nonlinear processes such as multiplication; you can't just add the two signals together. In radio communication, modulation results in radio signals that can propagate long distances and carry along audio or other information.

Radio communication is an extremely well developed discipline, and many modulation schemes have been developed. One of the simplest is called amplitude modulation. Figure 10-14 shows an example of how amplitude modulation appears in both the time and frequency domains. Continuous signals will be used in this example, since modulation is usually carried out in analog electronics. However, the whole procedure could be carried out in discrete form if needed (the shape of the future!).

Figure (a) shows an audio signal with a DC bias such that the signal always has a positive value. Figure (b) shows that its frequency spectrum is composed of frequencies from 300 Hz to 3 kHz, the range needed for voice communication, plus a spike for the DC component. All other frequencies have been removed by analog filtering. Figures (c) and (d) show the carrier wave , a pure sinusoid of much higher frequency than the audio signal. In the time domain, amplitude modulation consists of multiplying the audio signal by the carrier wave. As shown in (e), this results in an oscillatory waveform that has an instantaneous amplitude proportional to the original audio signal. In the jargon of the field, the envelope of the carrier wave is equal to the modulating signal. This signal can be routed to an antenna, converted into a radio wave, and then detected by a receiving antenna. This results in a signal identical to (e) being generated in the radio receiver's electronics. A detector or demodulator circuit is then used to convert the waveform in (e) back into the waveform in (a).

Since the time domain signals are multiplied, the corresponding frequency spectra are convolved. That is, (f) is found by convolving (b) & (d). Since the spectrum of the carrier is a shifted delta function, the spectrum of the