1. Home
  2. Steve Brunton

Mar 30, 2020

The fast algorithm behind MP3s, JPEGs and modern telecom

8 min → 1:41

Overview

Steve Brunton explains how the Fast Fourier Transform speeds up computing the Discrete Fourier Transform, tracing its history from Gauss to Cooley and Tukey and its applications in modern technology.

3 things to know

Brunton says the FFT just calculates the DFT much faster

Steve Brunton notes that the Fast Fourier Transform is not a different transform, but a highly efficient method that produces the exact same result as the Discrete Fourier Transform.

More

An algorithm that computes the DFT of a sequence in a highly efficient manner.

▶ Watch at 0:56

Brunton says the Fast Fourier Transform makes audio math feasible

Steve Brunton explains that the Fast Fourier Transform reduces computational complexity from O(n²) down to O(n log n), making calculations for large datasets like audio signals feasible.

More

The primary motivation for the FFT.

▶ Watch at 3:00

Fast Fourier Transforms power MP3 and JPEG compression, Brunton says

Steve Brunton describes the Fast Fourier Transform as one of the most important algorithms ever developed, forming the backbone of telecommunications, scientific computing, and MP3 and JPEG compression.

▶ Watch at 5:41

Also in this episode

The Fast Fourier Transform cleans up noisy data, says Brunton

Steve Brunton lists several key uses for the Fast Fourier Transform, including denoising noisy data, compression, general data analysis, calculating derivatives, and solving partial differential equations.

Brunton: Discrete Fourier Transforms work as matrix and vector multiplication

Steve Brunton explains that the Discrete Fourier Transform converts a finite sequence of data points into coefficients of complex sinusoids and can be represented as matrix-vector multiplication.

More

A mathematical transform for converting a finite sequence of data points into a sequence of coefficients of a finite combination of complex sinusoids.

Quotes

“using the Fast Fourier Transform or the FFT... So the FFT has changed the world. This is one of the most important algorithms ever developed.”

▶ Watch at 0:56

“But the Fast Fourier Transform is order n log n... and this is what's known as a so-called fast scaling. It's almost linear in n.”

▶ Watch at 3:00

“Interestingly, Gauss actually invented a form of the Fast Fourier Transform hundreds of years ago... because he was doing mental calculations that required a Fourier transform... and he invented the FFT, but he didn't think it was worth publishing.”

▶ Watch at 5:41

Full summary

Episode Overview

  • Explains that the Fast Fourier Transform (FFT) is an incredibly efficient algorithm for computing the Discrete Fourier Transform (DFT).
  • Compares the computational complexity of the naive DFT (O(n²)) with the FFT (O(n log n)), highlighting the massive speed improvements for large datasets.
  • Discusses the historical context of the FFT, crediting Cooley and Tukey but also noting an earlier discovery by Gauss.
  • Outlines the transformative impact of the FFT on modern technology, enabling everything from digital communication to audio and image compression.
  • Previews key applications of the FFT, such as solving differential equations, denoising signals, and data compression.

Key Concepts

  • Discrete Fourier Transform (DFT): A mathematical transform for converting a finite sequence of data points into a sequence of coefficients of a finite combination of complex sinusoids. It can be represented as a matrix-vector multiplication.
  • Fast Fourier Transform (FFT): An algorithm that computes the DFT of a sequence in a highly efficient manner. It is not a separate transform but a faster method to achieve the same result as the DFT.
  • Computational Complexity: The primary motivation for the FFT. The DFT has a complexity of O(n²), while the FFT reduces this to O(n log n), making calculations for large 'n' (e.g., in audio signals) feasible.
  • Technological Enabler: The FFT is described as one of the most important algorithms ever developed, forming the backbone of digital signal processing, telecommunications, audio/image/video compression (e.g., MP3, JPEG), and scientific computing.
  • Applications: The video lists several key uses for the FFT, including calculating derivatives, solving partial differential equations (PDEs), denoising noisy data, general data analysis, and compression.

Quotes

  • At 00:56 - "using the Fast Fourier Transform or the FFT... So the FFT has changed the world. This is one of the most important algorithms ever developed." - Emphasizing the significance of the algorithm.
  • At 03:00 - "But the Fast Fourier Transform is order n log n... and this is what's known as a so-called fast scaling. It's almost linear in n." - Highlighting the crucial difference in computational efficiency.
  • At 05:41 - "Interestingly, Gauss actually invented a form of the Fast Fourier Transform hundreds of years ago... because he was doing mental calculations that required a Fourier transform... and he invented the FFT, but he didn't think it was worth publishing." - Providing a surprising historical context.

Takeaways

  • Use the FFT, not the DFT matrix. When computing the Fourier Transform of discrete data, always use a built-in FFT function (like fft in MATLAB or Python). Directly implementing the DFT via matrix multiplication is prohibitively slow (O(n²)) and inefficient for any practical dataset.
  • Appreciate the power of algorithmic efficiency. The difference between O(n²) and O(n log n) is not just an academic detail; it's the fundamental reason why real-time streaming, high-resolution digital media, and modern telecommunications are possible.
  • Leverage the FFT as a versatile tool. The FFT's utility extends far beyond simple frequency analysis. It can be a powerful tool for numerical differentiation (to solve PDEs), filtering (to denoise signals), and identifying key components for data compression, making it a cornerstone of computational science and data analysis.

Watch the full episode 8 min

Read along with the audio summary

Hundreds of years ago, the mathematician Gauss invented a world changing algorithm just to help with his mental calculations, yet he did not think it was worth publishing. This video episode, which came out on March 30, 2020, explores that algorithm with its presenter. By the end, you will learn why the Fast Fourier Transform powers modern technology.

How to turn raw data into wave patterns. Standard math allows us to convert a finite sequence of data points into a combination of complex sinusoids. This mathematical process is called the Discrete Fourier Transform, or DFT.

The secret behind the Fast Fourier Transform, or FFT, is that it is not actually a new transform at all. Instead, it is an algorithm that computes the exact same result as the DFT, just in a highly efficient manner.

How a faster math trick makes processing huge audio signals possible. While the naive DFT scales at an order of n squared, the FFT reduces this to order n log n, which is almost linear and makes calculations for large datasets like audio signals feasible.

Why one algorithm became the backbone of modern media. This speed jump is why the presenter calls the FFT one of the most important algorithms ever developed. It forms the backbone of the compression used for MP3 audio and JPEG images.

Ways to use the FFT beyond basic frequency analysis. You can apply this tool to calculating derivatives, solving partial differential equations, denoising noisy data, general data analysis, and compression. When computing the Fourier Transform of discrete data, you should always use a built in FFT function in MATLAB or Python rather than slow matrix multiplication.

The shift from order n squared to order n log n is not just an academic detail, it is the fundamental reason why real time streaming, high resolution digital media, and modern telecommunications are possible. The FFT has changed the world.

More from Steve Brunton

Related Episodes