Return to Video

4.6 - DTFT formalism

  • 0:01 - 0:04
    In the preceding sub module, we saw conditions under which
  • 0:04 - 0:08
    a sequence actually has a finite-magnitude Fourier Transform,
  • 0:08 - 0:11
    namely, the sequence has to be absolutely summable.
  • 0:11 - 0:12
    We also saw that it can be extended
  • 0:12 - 0:15
    to square-summable sequences.
  • 0:15 - 0:16
    However in real life,
  • 0:16 - 0:19
    many sequences are neither absolutely nor square-summable.
  • 0:19 - 0:23
    For example, cosine of ω naught, times n
  • 0:23 - 0:25
    is an infinite-length sequence
  • 0:25 - 0:27
    that is neither absolutely nor square-summable.
  • 0:27 - 0:31
    Therefore it doesn't have, in the strict sense, a DTFT,
  • 0:31 - 0:33
    as we have seen before.
  • 0:33 - 0:36
    To be able to deal with sequences like this,
  • 0:36 - 0:38
    we need to introduce a new character in support.(?)
  • 0:38 - 0:42
    This is the δ function or δ distribution,
  • 0:42 - 0:46
    or also called the δ generalized function.
  • 0:46 - 0:48
    As you can see, this is a more subtle object
  • 0:48 - 0:49
    than what we are used too.
  • 0:49 - 0:53
    It's actually a function that this zero everywhere,
  • 0:53 - 0:55
    except at the origin where it's infinity.
  • 0:55 - 0:56
    Doesn't sound like a nice function,
  • 0:56 - 0:59
    but is actually is a very useful mathematical abstraction
  • 0:59 - 1:03
    and a very powerful object to have in the toolbox.
  • 1:03 - 1:05
    So we're going to introduce this δ function
  • 1:05 - 1:09
    and then, once we understand it intuitively,
  • 1:09 - 1:10
    we can use it to calculate, for example,
  • 1:10 - 1:14
    the DTFT of this cosine of ω naught times n
  • 1:14 - 1:19
    which will have the spectrum that contains Dirac δ's.
  • 1:19 - 1:20
    So the good news is that
  • 1:20 - 1:24
    now we have this subtle Dirac δ function that will allow us
  • 1:24 - 1:27
    to take Discrete Time Fourier Transforms
  • 1:27 - 1:30
    off a whole set of new functions and sequences
  • 1:30 - 1:32
    that we didn't know how to handle before,
  • 1:32 - 1:34
    and to look at their spectrum.
  • 1:36 - 1:41
    Module 4.6: Discrete Time Fourier Transform formalism.
  • 1:41 - 1:44
    The overview is simply that we are going to introduce
  • 1:44 - 1:47
    the Dirac δ functional, or generalized function.
  • 1:47 - 1:53
    And we can use this Dirac δ to study the spectras of sequences
  • 1:53 - 1:57
    for which we didn't know so far how to compute a DTFT.
  • 1:57 - 1:59
    We'll do this through a number of examples.
  • 2:01 - 2:04
    The tricky thing with the δ functional
  • 2:04 - 2:07
    is that we cannot describe the function itself,
  • 2:07 - 2:09
    we can only describe it indirectly,
  • 2:09 - 2:12
    through what's called the sifting property.
  • 2:12 - 2:17
    So for example here we have the integral between δ of t-s.
  • 2:17 - 2:19
    With the function f of t,
  • 2:19 - 2:22
    the result of the integral is that it takes out,
  • 2:22 - 2:27
    it weeds out (?) the value of f of t, at location s.
  • 2:27 - 2:32
    And this will be true for all functions -- or for all well-behaved functions --
  • 2:32 - 2:35
    of t belonging to the set of real numbers.
  • 2:37 - 2:41
    The intuition for this Dirac δ function
  • 2:41 - 2:45
    is really through thinking about a family of functions.
  • 2:45 - 2:49
    We index them by k here, or k of t.
  • 2:49 - 2:54
    And k is a positive integer, t is a real number,
  • 2:54 - 2:58
    and the support of these functions is inversely proportional to k
  • 2:58 - 3:00
    and have a constant area.
  • 3:00 - 3:02
    We're going to specifically look at an example.
  • 3:04 - 3:07
    The example is the rect function.
  • 3:07 - 3:08
    We have seen this before.
  • 3:08 - 3:10
    It's a function that is piecewise constant.
  • 3:10 - 3:14
    It's zero inside an interval minus a half to one half
  • 3:14 - 3:17
    where it is actually equal to 1.
  • 3:17 - 3:21
    From the rect function, we can derive a localizing family,
  • 3:21 - 3:25
    r k of t, by simply scaling the rect function
  • 3:25 - 3:28
    both in its height and its width.
  • 3:28 - 3:35
    So it will be nonzero over an interval going from -1/2k to 1/2k.
  • 3:35 - 3:39
    So the support is of width 1/ k.
  • 3:39 - 3:40
    Since it's of height k,
  • 3:40 - 3:44
    the area is exactly equal to 1, independently of k.
  • 3:47 - 3:52
    So let's look at the few instantiations of this rect function,
  • 3:52 - 3:55
    scaled in height and in width.
  • 3:55 - 3:57
    So k is equal to 1,
  • 3:57 - 3:58
    k is equal to 5,
  • 3:58 - 4:00
    k is equal to 15,
  • 4:00 - 4:02
    k is equal to 40.
  • 4:02 - 4:05
    You can see it becomes higher and higher, obviously,
  • 4:05 - 4:07
    but it's narrower and narrower,
  • 4:07 - 4:10
    and its integral is always exactly equal to 1.
  • 4:12 - 4:16
    Now, let's see these localizing functions at work.
  • 4:16 - 4:19
    So remember, there are rk of t.
  • 4:19 - 4:23
    We take an integral of rk of t times f of t.
  • 4:23 - 4:26
    And this is equal to k times the integral
  • 4:26 - 4:30
    over an interval of length 1/k,
  • 4:30 - 4:33
    and the mean value theorem says that on this interval,
  • 4:33 - 4:36
    there is a value of f, namely f of γ,
  • 4:36 - 4:39
    there exists at least one value f of γ
  • 4:39 - 4:41
    which is equal to this integral.
  • 4:41 - 4:43
    And so, as k goes to infinity,
  • 4:43 - 4:45
    the interval becomes narrower and narrower,
  • 4:45 - 4:49
    and therefore, the limit of the integral is equal to f of 0.
  • 4:49 - 4:54
    Okay, so we have seen how taking the limit of the localizing functions,
  • 4:54 - 4:58
    extracts the value of f of t at the origin f0.
  • 4:58 - 5:02
    Now, in this case we have assumed that a function is continuous.
  • 5:02 - 5:05
    Otherwise, it's obviously more technical.
  • 5:06 - 5:11
    So, in the end, the Dirac δ functional is simply a shorthand,
  • 5:11 - 5:14
    instead of always writing the limiting process
  • 5:14 - 5:19
    -- so, for example, our integral on the previous page here, which is limit as k goes to infinity --
  • 5:19 - 5:26
    we simply write the integral between δ of t minus s times f of t.
  • 5:26 - 5:30
    This integral is going to be equal to f of s,
  • 5:30 - 5:32
    as if we have taken the limit:
  • 5:32 - 5:35
    so it's a shorthand of this limiting process
  • 5:35 - 5:37
    that we have seen on the previous slide.
  • 5:39 - 5:40
    If we have one Dirac,
  • 5:40 - 5:42
    we can also look at a sequence of Dirac:
  • 5:42 - 5:44
    there is one, in particular,
  • 5:44 - 5:46
    that is used very often in signal processing.
  • 5:46 - 5:50
    It's δ of ω tilde.
  • 5:50 - 5:54
    This is equal to 2π times an infinite sum of Diracs,
  • 5:54 - 5:56
    located at multiples of 2π.
  • 5:59 - 6:01
    Let's look at the graphical representation.
  • 6:01 - 6:06
    So you have Diracs at zero, at plus minus 2π,
  • 6:06 - 6:08
    at plus minus 4π, etcetera.
  • 6:11 - 6:15
    Now this function, δ tilde of ω,
  • 6:15 - 6:18
    this sequence of Diracs, spaced 2πi apart,
  • 6:18 - 6:20
    is actually very useful.
  • 6:20 - 6:22
    So let's put it to good use.
  • 6:22 - 6:26
    So take the inverse DTFT of δ tilde.
  • 6:26 - 6:30
    So it's the integral over one period, minus π to π,
  • 6:30 - 6:33
    of δ tilde against (?) e to the j ω n.
  • 6:33 - 6:36
    This, of course, involves only a single Dirac at the origin,
  • 6:36 - 6:41
    because that's the only Dirac in the sequence that is inside the interval.
  • 6:41 - 6:45
    This is equal to the evaluation of e to the jωn:
  • 6:45 - 6:49
    at ω = 0, this is exactly equal to 1.
  • 6:49 - 6:53
    Therefore the inverse DTFT of δ tilde
  • 6:53 - 6:57
    is equal to the sequence x(n)O is equal to 1.
  • 6:57 - 6:58
    But that's a miracle because we didn't know
  • 6:58 - 7:00
    how to take the forward DTFT
  • 7:00 - 7:04
    of the constant signal x(n) is equal to 1,
  • 7:04 - 7:06
    so now we actually know what it is.
  • 7:08 - 7:10
    In conclusion,
  • 7:10 - 7:15
    the Discrete Time Fourier Transform of the constant sequence
  • 7:15 - 7:17
    is δ tilde of ω,
  • 7:17 - 7:21
    the sequence of Diracs spaced 2π apart.
  • 7:23 - 7:26
    Now this looks like we played a trick on you
  • 7:26 - 7:28
    because we started with a constant sequence,
  • 7:28 - 7:30
    we looked at the DTFT,
  • 7:30 - 7:33
    and we were confused what the result would be.
  • 7:33 - 7:35
    So let us do a sanity check.
  • 7:35 - 7:38
    Let's just calculate the partial sums of the DTFT.
  • 7:38 - 7:44
    So sk of ω is the sum between minus k and k, of e to the -jωn.
  • 7:46 - 7:50
    We plot the magnitude of sk of ω
  • 7:50 - 7:51
    for k is equal to 5,
  • 7:51 - 7:58
    k is equal to 10, 15, 30, 40,
  • 7:58 - 8:00
    and we start to see a Dirac emerging:
  • 8:00 - 8:02
    one spike at the origin.
  • 8:04 - 8:09
    The partial sum DTFT looks like a family of localizing functions.
  • 8:09 - 8:16
    So sk of ω will, as k grows, converge to δ tilde of ω.
  • 8:19 - 8:22
    Now we can do the exact same exercise
  • 8:22 - 8:26
    on δ tilde of ω minus ω naught
  • 8:26 - 8:28
    by the same argument as before.
  • 8:28 - 8:32
    We will sift out the Dirac that is inside the interval, minus π to π.
  • 8:32 - 8:35
    And this one will lead to a complex exponential,
  • 8:35 - 8:38
    e to the jω naught times n.
  • 8:38 - 8:41
    From this, we have DTFT pairs.
  • 8:41 - 8:45
    The DTFT of 1 is, as we have seen, δ tilde of ω,
  • 8:45 - 8:48
    the DTFT of e to the jω naught times n
  • 8:48 - 8:52
    is equal to δ tilde, ω minus ω naught.
  • 8:52 - 8:57
    More interestingly is the DTFT of cos ω naught times n:
  • 8:57 - 9:00
    Well, using Euler's formulas, we know that the cosine
  • 9:00 - 9:03
    is a combination of 2 complex exponential.
  • 9:03 - 9:05
    Each one will generate a δ tilde,
  • 9:05 - 9:07
    one shifted to ω naught,
  • 9:07 - 9:10
    the other one shifted to minus ω naught.
  • 9:10 - 9:14
    Finally, the DTFT of sine ω naught n
  • 9:14 - 9:16
    is equal to something very similar,
  • 9:16 - 9:20
    there is a scaling factor and multiplication by minus j
  • 9:20 - 9:22
    and then two δ tildes again
  • 9:22 - 9:24
    shifted to ω naught and minus ω naught.
  • 9:26 - 9:29
    It is time to summarize, and to see the parallels
  • 9:29 - 9:33
    between the DFT, which acts on CN,
  • 9:33 - 9:37
    and the DTFT that acts on C infinity.
  • 9:37 - 9:38
    Please note before starting
  • 9:38 - 9:43
    that the δ over sequences has square brackets,
  • 9:43 - 9:44
    as we have seen.
  • 9:44 - 9:48
    And the δ over the real line has round brackets.
  • 9:48 - 9:49
    So these are very different elements.
  • 9:49 - 9:52
    δ in discrete time is a very simple sequence
  • 9:52 - 9:54
    with a single nonzero element,
  • 9:54 - 9:59
    δ over the continuous line is a distribution
  • 9:59 - 10:00
    or a generalized function:
  • 10:00 - 10:03
    as we have seen, it's a Dirac δ function.
  • 10:03 - 10:05
    With this preliminaries,
  • 10:05 - 10:08
    let's look now at the left side, and properties on C N.
  • 10:08 - 10:12
    So we had verified that complex exponential, of length N,
  • 10:12 - 10:16
    with frequencies that are multiples of 2π/N,
  • 10:16 - 10:17
    are orthogonal to each other:
  • 10:17 - 10:19
    that's formula A,
  • 10:19 - 10:24
    this is written as also DFT of the complex exponential
  • 10:24 - 10:26
    of a frequency 2π/N times h,
  • 10:26 - 10:32
    gives a transform that is equal to N times a δ at the location h.
  • 10:32 - 10:37
    The inverse discrete Fourier transform of a δ at location h
  • 10:37 - 10:43
    is equal to a complex exponential at frequency 2π/n times h.
  • 10:43 - 10:47
    And this is written under d as explicitly
  • 10:47 - 10:51
    as a summation of the δ with respect to the complex exponential.
  • 10:51 - 10:51
    Same result
  • 10:52 - 10:56
    Now let's more to the right hand side.
  • 10:56 - 11:00
    There the inversion formula we have seen of Dirac tilde
  • 11:00 - 11:02
    which is a sequence of Diracs,
  • 11:02 - 11:04
    is integral over one period
  • 11:04 - 11:07
    and if the Dirac sequence is shifted to σ,
  • 11:07 - 11:12
    it will generate a complex exponential e to the jσn.
  • 11:12 - 11:17
    So that's under C', it's the IDTFT of δ tilde.
  • 11:17 - 11:23
    Then under B', the DTFT of e to the jσn
  • 11:23 - 11:26
    is δ tilde shifted by σ,
  • 11:26 - 11:28
    and this leads to A',
  • 11:28 - 11:31
    where we simply write that the inner product
  • 11:31 - 11:35
    -- so that's the expression the DTFT between two complex exponentials --
  • 11:35 - 11:38
    leads to δ tilde shifted to σ.
  • 11:39 - 11:44
    So now we see these formal parallels between these two transforms:
  • 11:44 - 11:47
    one on CN as a DFT, which is very simple,
  • 11:47 - 11:50
    it's elementary linear algebra,
  • 11:50 - 11:52
    and the other one, the DTFT
  • 11:52 - 11:56
    which acts on infinite sequences, which is more subtle,
  • 11:56 - 11:58
    and which leads, in the cases we have seen here,
  • 11:58 - 12:02
    to generalized functions (?), sequences of Diracs.
  • 12:02 - 12:06
    Yet they act very similarly: the same intuitions about frequencies,
  • 12:06 - 12:11
    about complex exponentials, about Diracs appear in both cases.
  • 12:11 - 12:13
    And that's really the message we want to convey here.
  • 12:16 - 12:17
    Let us now conclude.
  • 12:17 - 12:20
    The final result we have seen shows
  • 12:20 - 12:26
    a formal orthogonality of the "basis" of e to the jωn,
  • 12:26 - 12:29
    the sequence of infinite-length complex exponentials.
  • 12:29 - 12:32
    So if you're careful enough, everything works just nice.
  • 12:32 - 12:37
    But remember the δ notation presumes that you took a limiting operation.
  • 12:37 - 12:41
    And it's just a lazy shorthand to express something
  • 12:41 - 12:44
    that always implies a limit. A δ in the spectrum,
  • 12:44 - 12:50
    so if we have an x of e to the jω, and there is a δ function there,
  • 12:50 - 12:52
    indicates that the signal has infinite energy,
  • 12:52 - 12:57
    So we are not within our comfortable Hilbert space framework of l2 of Z.
  • 12:57 - 13:00
    But the δ notation proves to be very useful
  • 13:00 - 13:02
    in derivation of certain results,
  • 13:02 - 13:04
    for example, the modulation theorems
  • 13:04 - 13:07
    that we are going to see later in this module.
  • 13:07 - 13:08
    Yet, there is a word of care.
  • 13:08 - 13:10
    As a friend of mine says,
  • 13:10 - 13:14
    when you use δ's it's like walking on the edge of a precipice.
  • 13:14 - 13:17
    If you put the foot on the wrong side
  • 13:17 - 13:19
    you might actually die.
  • 13:19 - 13:21
    With this word of caution, let's move on.
Title:
4.6 - DTFT formalism
Description:

See "Chapter 4 Fourier Analysis" in "Signal Processing for Communications" by Paolo Prandoni and Martin Vetterli, available from http://www.sp4comm.org/ , and the slides for the entire module 4 of the Digital Signal Processing Coursera course, in https://spark-public.s3.amazonaws.com/dsp/slides/module4-0.pdf .

And if you are registered for this Coursera course, see https://class.coursera.org/dsp-001/wiki/view?page=week3

more » « less
Video Language:
English
Claude Almansi edited English subtitles for 4.6 - DTFT formalism
Claude Almansi added a translation

English subtitles

Incomplete

Revisions