ArticleslgStudy

science

Discrete Fourier transform

Discrete Fourier transform is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Discrete Fourier transform rather than just read about it. In short: In mathematics, the discrete Fourier transform (DFT) is a discrete version of the Fourier transform that converts a finite sequence of numbers into another sequence of the same length, representing the amplitude and phase of different frequency components. In this way, it changes data from a description in terms of sampled values to a description in terms of oscillations.

Discrete Fourier transform — main illustration
Discrete Fourier transform — illustration

Key takeaways

  • Discrete Fourier transform belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Discrete Fourier transform to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Discrete Fourier transform from memory before moving on to harder problems.

Reference excerpt

In mathematics, the discrete Fourier transform (DFT) is a discrete version of the Fourier transform that converts a finite sequence of numbers into another sequence of the same length, representing the amplitude and phase of different frequency components. In this way, it changes data from a description in terms of sampled values to a description in terms of oscillations. The inverse discrete Fourier transform reverses this process and recovers the original sequence. For data sampled at equally spaced points, the DFT can be understood more precisely as converting between sample values and the coefficients of a trigonometric polynomial that interpolates those values. It is therefore a basic tool for numerical work with smooth periodic functions, which can often be approximated well by trigonometric polynomials. In practice, the DFT is usually computed by efficient fast Fourier transform (FFT) algorithms.

The DFT is used in many practical applications of Fourier analysis. In digital signal processing, the input is often a sampled quantity or signal that varies over time, such as the pressure of a sound wave, a radio signal, or daily temperature readings, sampled over a finite time interval (often defined by a window function). In image processing, the samples can be the values of pixels along a row or column of a raster image. The DFT is also used to efficiently solve partial differential equations, and to perform other operations such as convolutions or multiplying large integers. Since the DFT deals with a finite amount of data, it can be implemented in computers by numerical algorithms or even dedicated hardware. These implementations usually employ efficient fast Fourier transform (FFT) algorithms; so much so that the terms "FFT" and "DFT" are often used interchangeably. Prior to its current usage, the "FFT" initialism may have also been used for the ambiguous term "finite Fourier transform".

Definition The discrete Fourier transform transforms a sequence of N complex numbers {𝐱n}:=x0,x1,…,xN−1 into another sequence of complex numbers, {𝐗k}:=X0,X1,…,XN−1, which is defined by:

The transform is sometimes denoted by the symbol ℱ, as in 𝐗=ℱ{𝐱} or ℱ(𝐱) or ℱ𝐱. As a linear transformation on a finite-dimensional vector space, the DFT expression can also be written in terms of a DFT matrix. When scaled appropriately, it becomes a unitary matrix, and the DFT can thus be viewed as a transformation from one orthonormal basis to another. The inverse transform is given by:

Eq.2 is also N-periodic (in index n). In Eq.2, each Xk is a complex number whose polar coordinates are the amplitude and phase of a complex sinusoidal component (ei2πkNn) of the function xn. (See Discrete Fourier series.) The sinusoid's frequency is k cycles per N samples. The normalization factor multiplying the DFT and inverse DFT (IDFT), here 1 and 1N, and the signs of the exponents are the most common conventions. The only actual requirements of these conventions are that the DFT and IDFT have opposite-sign exponents and that the product of their normalization factors be 1N. An uncommon normalization of 1N for both the DFT and IDFT makes the transform-pair unitary. Eq.1 can also be evaluated outside the domain k∈[0,N−1], and that extended sequence is N-periodic. Accordingly, other sequences of N indices are sometimes used, such as [−N2,N2−1] (if N is even) and [−N−12,N−12] (if N is odd), which amounts to swapping the left and right halves of the result of the transform.

DFT including sampling interval Using the standard definition of the DFT omits the sampling interval (or sampling distance) Δt in cases where the index corresponds to time via nΔt=t. To relate the DFT coefficients to the continuous Fourier transform of sampled data, the sampling interval can be included explicitly as

X~k=Δt∑n=0N−1xn⋅e−i2πkNn Most software libraries compute the unscaled DFT coefficients Xk, including their corresponding FFT implementations. The scaled coefficients can therefore be obtained as X~k=Δt⋅Xk. The corresponding inverse transform then becomes:

xn=Δf∑k=0N−1X~k⋅ei2πkNn Where Δf=1ΔtN. Using the inverse discrete Fourier transform as implemented in most software libraries, this can equivalently be written as:

xn=1ΔtIDFT⁡(X~) When applying the DFT to physical data, the sampling interval Δt (or equivalently Δf) is an essential part of the signal definition. Including the sampling interval ensures correct amplitude, energy, and frequency interpretation, particularly when combining or comparing data from different sources.

Interpretations

The DFT can be regarded as transforming a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a complex-valued function of frequency. The interval at which the DTFT is sampled is the reciprocal of the duration of the input sequence. An inverse DFT (IDFT) is a Fourier series, using the DTFT samples as coefficients of complex sinusoids at the corresponding DTFT frequencies. It has the same sample-values as the original input sequence. The DFT is therefore said to be a frequency domain representation of the original input sequence. If the original sequence spans all the non-zero values of a function, its DTFT is continuous (and periodic), and the DFT provides discrete samples of one cycle. If the original sequence is one cycle of a periodic function, the DFT provides all the non-zero values of one DTFT cycle.

Eq.1 can be interpreted or derived in various ways, for example:

Example This example demonstrates how to apply the DFT to a sequence of length N=4 and the input vector 𝐱=(x0x1x2x3)=(12−i−i−1+2i). Calculating the DFT of 𝐱 using Eq.1 X0=e−i2π0⋅0/4⋅1+e−i2π0⋅1/4⋅(2−i)+e−i2π0⋅2/4⋅(−i)+e−i2π0⋅3/4⋅(−1+2i)=2X1=e−i2π1⋅0/4⋅1+e−i2π1⋅1/4⋅(2−i)+e−i2π1⋅2/4⋅(−i)+e−i2π1⋅3/4⋅(−1+2i)=−2−2iX2=e−i2π2⋅0/4⋅1+e−i2π2⋅1/4⋅(2−i)+e−i2π2⋅2/4⋅(−i)+e−i2π2⋅3/4⋅(−1+2i)=−2iX3=e−i2π3⋅0/4⋅1+e−i2π3⋅1/4⋅(2−i)+e−i2π3⋅2/4⋅(−i)+e−i2π3⋅3/4⋅(−1+2i)=4+4i results in 𝐗=(X0X1X2X3)=(2−2−2i−2i4+4i).

Properties

Linearity The DFT is a linear transform, i.e. if ℱ({xn})k=Xk and ℱ({yn})k=Yk, then for any complex numbers a,b:

ℱ({axn+byn})k=aXk+bYk

Time and frequency reversal Reversing the time (i.e. replacing n by N−n) in xn corresponds to reversing the frequency (i.e. k by N−k). Mathematically, if {xn} represents the vector x then

if ℱ({xn})k=Xk then ℱ({xN−n})k=XN−k

Conjugation in time If ℱ({xn})k=Xk then ℱ({xn∗})k=XN−k∗.

… excerpt ends here. Continue reading the full article.

Illustrations

Discrete Fourier transform: Discrete Fourier Transform of the sum of a sine and a cosine with different frequencies. This plot illustrates how the DFT of a real signal is symmetric around the middle point, and so only half of the transform points are needed to reconstruct the original signal. It also illustrates how the phase of the sinusoids determines if their DFT components are real or imaginary.
Discrete Fourier Transform of the sum of a sine and a cosine with different frequencies. This plot illustrates how the DFT of a real signal is symmetric around the middle point, and so only half of the transform points are needed to reconstruct the original signal. It also illustrates how the phase of the sinusoids determines if their DFT components are real or imaginary.
Discrete Fourier transform: Fig 1: Relationship between the (continuous) Fourier transform and the discrete Fourier transform.Left: A continuous function (top) and its Fourier transform (bottom).Center-left: Periodic summation of the original function (top).  Fourier transform (bottom) is zero except at discrete points.  The inverse transform is a sum of sinusoids called Fourier series. Center-right: Original function is discretized (multiplied by a Dirac comb) (top).  Its Fourier transform (bottom) is a periodic summation (DTFT) of the original transform.Right: The DFT (bottom) computes discrete samples of the continuous DTFT.  The inverse DFT (top) is a periodic summation of the original samples.  The FFT algorithm computes one cycle of the DFT and its inverse is one cycle of the DFT inverse.
Fig 1: Relationship between the (continuous) Fourier transform and the discrete Fourier transform.Left: A continuous function (top) and its Fourier transform (bottom).Center-left: Periodic summation of the original function (top). Fourier transform (bottom) is zero except at discrete points. The inverse transform is a sum of sinusoids called Fourier series. Center-right: Original function is discretized (multiplied by a Dirac comb) (top). Its Fourier transform (bottom) is a periodic summation (DTFT) of the original transform.Right: The DFT (bottom) computes discrete samples of the continuous DTFT. The inverse DFT (top) is a periodic summation of the original samples. The FFT algorithm computes one cycle of the DFT and its inverse is one cycle of the DFT inverse.
Discrete Fourier transform: Fig 2: Depiction of a Fourier transform (upper left) and its periodic summation (DTFT) in the lower left corner.  The spectral sequences at (a) upper right and (b) lower right are respectively computed from (a) one cycle of the periodic summation of s(t) and (b) one cycle of the periodic summation of the s(nT) sequence. The respective formulas are (a) the Fourier series integral and (b) the DFT summation. Its similarities to the original transform, S(f), and its relative computational ease are often the motivation for computing a DFT sequence.
Fig 2: Depiction of a Fourier transform (upper left) and its periodic summation (DTFT) in the lower left corner. The spectral sequences at (a) upper right and (b) lower right are respectively computed from (a) one cycle of the periodic summation of s(t) and (b) one cycle of the periodic summation of the s(nT) sequence. The respective formulas are (a) the Fourier series integral and (b) the DFT summation. Its similarities to the original transform, S(f), and its relative computational ease are often the motivation for computing a DFT sequence.
Discrete Fourier transform: Discrete transforms embedded in time and space
Discrete transforms embedded in time and space

Worked examples

Example 1 — a first encounter with Discrete Fourier transform

Start with the simplest possible case. Write down what Discrete Fourier transform claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Discrete Fourier transform before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Discrete Fourier transform ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Discrete Fourier transform

In research
Discrete Fourier transform appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Discrete Fourier transform in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Discrete Fourier transform is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital signal processing, Discrete transforms, Fourier analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Discrete Fourier transform outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Discrete Fourier transform” →

How to study Discrete Fourier transform in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Discrete Fourier transform means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Discrete Fourier transform out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Discrete Fourier transform in simple terms?

In mathematics, the discrete Fourier transform (DFT) is a discrete version of the Fourier transform that converts a finite sequence of numbers into another sequence of the same length, representing the amplitude and phase of different frequency components. In this way, it changes data from a descri…

Why does Discrete Fourier transform matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Discrete Fourier transform?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Discrete Fourier transform.

Tags

  • Digital signal processing
  • Discrete transforms
  • Fourier analysis
  • Numerical analysis
  • Unitary operators

Keep exploring