1. Home
  2. Steve Brunton

Mar 27, 2020

Turning raw digital data into its hidden frequencies

17 min → 2:41

Overview

Steve Brunton explains how the Discrete Fourier Transform converts sampled data into the frequency domain on digital computers, clarifying its link to the Fourier series and the Fast Fourier Transform.

3 things to know

Brunton: The Discrete Fourier Transform finds frequencies in digital signals

Steve Brunton explains that the Discrete Fourier Transform is a mathematical operation that breaks a finite sequence of discrete data points into its individual frequency components.

More

A mathematical operation that decomposes a finite sequence of discrete data points into its constituent frequency components.

▶ Watch at 7:44

Brunton says DFT treats finite data as repeating forever

Steve Brunton explains that the Discrete Fourier Transform acts like a Discrete Fourier Series by assuming a finite data segment is one period of an infinitely repeating signal.

▶ Watch at 0:29

Brunton: Fast Fourier Transform makes large data sets feasible

Steve Brunton notes that while the Discrete Fourier Transform is the mathematical transformation itself, the Fast Fourier Transform is the efficient algorithm that computes it for large datasets.

More

The DFT is the mathematical transformation itself. The FFT is arguably one of the most important algorithms in modern science and engineering.

▶ Watch at 1:32

Also in this episode

Brunton says the DFT works on audio and image pixels

Unlike the continuous Fourier transform used on analytical functions, Steve Brunton explains that the Discrete Fourier Transform operates on sampled data like lab measurements, audio signals, or image pixels.

Summation formulas turn data into Fourier coefficients, says Brunton

Steve Brunton explains that the Discrete Fourier Transform and its inverse use summation formulas with complex exponentials to convert a data vector into a Fourier coefficient vector and back.

More

These transformations involve complex exponentials, which represent the fundamental frequencies of the discrete system.

According to Brunton, DFT Matrix multiplication produces Fourier coefficients

Steve Brunton shows that the Discrete Fourier Transform can be written as a matrix-vector multiplication, multiplying the data vector by a complex-valued DFT Matrix to get Fourier coefficients.

More

The DFT can be expressed as a matrix-vector multiplication.

Quotes

“I always joke with my students that this is kind of a terrible name. Really, this should be called a Discrete Fourier Series, because what we're actually doing is we're approximating that Fourier series approximation on a finite interval.”

▶ Watch at 0:29

“The Discrete Fourier Transform is a mathematical transformation... The Fast Fourier Transform is a computationally efficient way of computing the DFT that scales to very, very large data sets.”

▶ Watch at 1:32

“What this means is that if I have my data... I can run it through this Fourier transform, this DFT, this discrete Fourier transform, and I can get my Fourier frequencies.”

▶ Watch at 7:44

Full summary

Episode Overview

  • This episode introduces the Discrete Fourier Transform (DFT), the primary method for performing Fourier analysis on digital computers using discrete data.
  • It clarifies the common misconception in its naming, explaining that the DFT is fundamentally a discrete version of the Fourier series applied to sampled data, not the continuous Fourier transform.
  • The distinction between the DFT as a mathematical concept and the Fast Fourier Transform (FFT) as the efficient algorithm to compute it is established.
  • The lecture demonstrates how the DFT converts a vector of data points in the time or space domain into a corresponding vector of complex-valued coefficients in the frequency domain.

Key Concepts

  • Discrete Fourier Transform (DFT): A mathematical operation that decomposes a finite sequence of discrete data points into its constituent frequency components. It is the practical tool for analyzing frequencies in digital signals.
  • DFT vs. Fast Fourier Transform (FFT): The DFT is the mathematical transformation itself. The FFT is a highly efficient algorithm developed to compute the DFT, making it feasible for large datasets. The FFT is arguably one of the most important algorithms in modern science and engineering.
  • Application to Discrete Data: Unlike the continuous Fourier transform which operates on analytical functions, the DFT operates on vectors of sampled data, such as measurements from an experiment, audio signals, or pixel values in an image.
  • Relationship to Fourier Series: The DFT is conceptually a "Discrete Fourier Series." It assumes the finite data segment is one period of an infinitely repeating signal and finds the coefficients for the sines and cosines that reconstruct this periodic signal.
  • Mathematical Formulation: The DFT and its inverse are defined by summation formulas that transform a data vector f into a Fourier coefficient vector f-hat and vice-versa. These transformations involve complex exponentials, which represent the fundamental frequencies of the discrete system.
  • Matrix Representation: The DFT can be expressed as a matrix-vector multiplication. The data vector is multiplied by a specific, complex-valued "DFT Matrix" to produce the vector of Fourier coefficients.

Quotes

  • At 00:29 - "I always joke with my students that this is kind of a terrible name. Really, this should be called a Discrete Fourier Series, because what we're actually doing is we're approximating that Fourier series approximation on a finite interval." - Clarifying that the DFT is conceptually closer to a Fourier series for discrete, periodic data than to the continuous Fourier transform.
  • At 01:32 - "The Discrete Fourier Transform is a mathematical transformation... The Fast Fourier Transform is a computationally efficient way of computing the DFT that scales to very, very large data sets." - Emphasizing the critical distinction between the DFT as a mathematical definition and the FFT as the practical algorithm for its computation.
  • At 07:44 - "What this means is that if I have my data... I can run it through this Fourier transform, this DFT, this discrete Fourier transform, and I can get my Fourier frequencies." - Summarizing the practical application of the DFT: transforming a set of data points into its corresponding frequency spectrum.

Takeaways

  • To analyze the frequency content of any digital signal (e.g., audio, sensor readings), the Discrete Fourier Transform (DFT) is the fundamental tool to use.
  • While the DFT can be understood as a matrix multiplication, in practice, you should always use a Fast Fourier Transform (FFT) algorithm for its computation, as it is vastly more efficient for all but the smallest datasets.
  • The output of the DFT is a set of complex numbers. The magnitude of each number indicates the amplitude (or strength) of a specific frequency present in the signal, and its phase angle indicates the frequency's offset.

Watch the full episode 17 min

Read along with the audio summary

One of the most important tools for analyzing digital data on a computer actually has a terrible name, according to the speaker of this lecture. In this episode, which came out on March 27, 2020, the speaker introduces the primary method for performing Fourier analysis on digital computers using discrete data. By the end, you will learn how this mathematical operation translates raw measurements into a clear picture of their underlying frequencies, and the algorithm that makes it practical for huge datasets.

How you can break down any digital signal into its hidden frequencies. The primary method for doing Fourier analysis on a computer is called the Discrete Fourier Transform, or DFT. It is a mathematical operation that takes a finite sequence of separate data points and breaks it down into its individual frequency components. To analyze the frequency content of any digital signal, you can use the Discrete Fourier Transform as your fundamental tool.

That leads to a common point of confusion, because the math and the method for calculating it have two different names. The secret to making this math work on massive datasets lies in a separate algorithm. While the DFT is the mathematical transformation itself, the Fast Fourier Transform, or FFT, is a highly efficient algorithm built to compute it. Because the FFT scales to very large datasets, it is arguably one of the most important algorithms in modern science and engineering. In practice, you should always use a Fast Fourier Transform algorithm for your computations, as it is vastly more efficient for all but the smallest datasets.

Why real world measurements need a different approach than pure math. A continuous Fourier transform only works on analytical functions. The DFT operates on vectors of sampled data. These lists can come from measurements in an experiment, digital audio signals, or even the pixel values that make up an image.

Why the Discrete Fourier Transform actually has the wrong name. The speaker always jokes with students that the DFT is a terrible name, and says it should really be called a Discrete Fourier Series. That is because it does not act like a continuous transform, and instead approximates a Fourier series on a finite interval. It takes your limited segment of data, assumes it is just one period of a signal that repeats forever, and finds the specific weights for the sine and cosine waves needed to rebuild that repeating pattern.

How the math translates time and space into pure frequency. A single set of summation formulas can take data measured in time or space and flip it entirely into the frequency domain, and then flip it right back again. These formulas transform a list of data, called a data vector f, into a list of Fourier coefficients, called f hat, using complex exponentials to represent the fundamental frequencies of the system. The output is a set of complex numbers, where the size, or magnitude, of each number shows the strength of a specific frequency, and its phase angle shows the frequency's offset.

How a complex frequency analysis boils down to a single grid multiplication. You can express the DFT as a matrix vector multiplication. By multiplying your list of data by a specific, complex valued grid called the DFT Matrix, you directly produce the list of Fourier coefficients.

The Discrete Fourier Transform is the essential mathematical bridge that turns lists of digital measurements, from audio signals to image pixels, into the specific frequencies that make them up. What this means is that if I have my data, I can run it through this Fourier transform, this DFT, this discrete Fourier transform, and I can get my Fourier frequencies.

More from Steve Brunton

Related Episodes