We have explained what Discrete Fourier Transform (DFT) is. Also, we have covered that the concept of frequency is related to rotational speed of a complex sinusoid. Subsequently, a frequency axis was defined first in continuous domain and then in discrete domain. The tools to view the spectrum of a signal in frequency domain are and magnitude-phase plots. We defined the magnitude and phase of a complex number before. Similar definitions hold for complex signals as

(1)

and the phase is defined as four-quadrant inverse tangent as in this Eq with and in place of and , respectively.

Magnitude-phase plots are usually used more than plots because a magnitude plot shows the strength of a complex sinusoid at each frequency in the whole spectrum. In focusing on the magnitude plot, sometimes it is easy to miss a great deal of information provided by the phase plot. Although phase is relatively unimportant for some particular areas such as most audio applications due to relative insensitivity of human ear to phase, it plays a significant role in wireless communications as we will see in later chapters.

As an example of what happens when phase information is neglected, this is how my daughter writes some English letters:

- L
- V
- Z a reversed

All her symbols above are almost correct. Nevertheless, their phase is distorted leading to incorrect results. In addition, further confusion can develop if the relationship of phase with time domain is not clearly understood.

Phase in frequency domain has a special relationship with initial sample of a signal in time domain. Intuitively, a waveform is about how a signal changes in time -plane while its first samples on and axes indicate the starting point of that waveform. On the other hand, frequency is about rotational speed of complex sinusoids constructing that signal (the higher the frequency, the farther it is on frequency axis but not rotating) and phase indicates their orientation on frequency -plane. Naturally, this orientation of each such complex sinusoid depends on where its initial sample is.

As an example, consider this Figure. In time domain, when the starting sample of a cosine is changed by of a period, it becomes a sine wave. Correspondingly in frequency domain, the cosine changes its phase by of (to be exact, and on positive and negative frequency axis, respectively). Mathematically, remember that .

Consider the inphase component of a complex sinusoid shifted by samples:

Since is a constant above, can be seen as the phase shift incurred by a delay of samples. This result is known as the shifting property of the DFT which holds true for circular shifts in time. It states that a (circular) time shift of an input signal results in a corresponding phase shift at each frequency of its DFT .

Effect of time shift on DFT – Magnitude and Phase In the light of discussion above, the DFT of has its magnitude unchanged. However its phase is rotated by . We denote the rotated DFT by .

(2)

Effect of time shift on DFT – I and Q It is straightforward to prove through DFT definition that the DFT of is given by

(3)

As a verification, comparing with this Eq, is nothing but rotations of complex numbers by angles for each , .

The converse of the above argument is also true. A phase shift at a discrete frequency bin of the DFT informs us about (circular) time shift of that sinusoid. The conclusions from above are summarized in the note below.

If a signal is circularly right shifted in time by samples (i.e., samples are moved places to the right, with elements that fall off at one end of the sequence appearing at the other end), then the magnitude of its DFT remains unchanged. However, the phase of its DFT gets rotated by for each , . Similarly, for a circular left shift in time by samples incurs a phase rotation of for all .

(4)

Therefore, a time delay (going back in time from NOW, or waveform shift to the right) rotates the original spectral phase in negative direction (clockwise). On the other hand, a time advance (future travel from NOW, or waveform shift to the left) rotates the original spectral phase in positive direction (anticlockwise). In terms of intuitive method of time shifting, it makes perfect sense: Traveling in the past should decrease the DFT phase, and vice versa.

In examples discussed above, the amount of phase shift has a linear relation with the frequency index as evident from the term . This is the concept of linear phase where the phase of each complex sinusoid is directly proportional to the frequency of that sinusoid. Intuitively, if sinusoids with different frequencies get delayed by the same number of samples, then they naturally end up with different phases at the end of that common sample duration.

The magnitude and direction of rotation for these frequencies is symbolically shown for in Figure below. Remember that this is a frequency -plane, unlike time -plane.

The Figure below shows a unit impulse signal and its DFT along with its circularly time shifted version and its DFT . This DFT is computed shortly in later article.

Note that phase shift for each frequency bin is different for each according to Eq (4). To be exact, for to and turns out to be

The phase rotations of and are illustrated in the figure. Also observe that for a right shift, the phase rotations are clockwise for positive and anticlockwise for negative .

The understanding of phase above cannot be overemphasized. It is relatively straightforward to see magnitude plots and diagnose the behavior of signals and systems. However, true insights can only be developed through grasping the implications of phase rotations.

If you found this article useful, you might want to subscribe to my email list below to receive new articles.