October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

What Is the Discrete Fourier Transform (DFT)?

The DFT converts N equally spaced samples into N complex frequency-bin coefficients. Learn its formula, inverse, coefficient meaning, and how it differs from an FFT.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The discrete Fourier transform (DFT) maps N equally spaced samples to N complex coefficients, each associated with a discrete frequency bin. It is a finite-dimensional change of representation: the DFT is the mathematical transform, while an FFT is an algorithm for calculating it efficiently.

The DFT formula

For samples x[n] indexed from 0 to N−1, a common forward-transform convention is:

As an Amazon Associate I earn from qualifying purchases.

X[k] = Σn=0N−1 x[n] exp(−2πi nk/N),   k = 0, 1, …, N−1.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Here, N is the number of input samples, n identifies an input sample, k identifies an output frequency bin, and i is the imaginary unit. The output X[k] is generally a complex number. This convention uses a negative sign in the forward exponential and applies no scale factor to the forward transform. NumPy documents this form in its DFT reference; Marburg’s frequency transforms notes give the same transform pair.

The inverse transform

The samples can be recovered from the coefficients using the inverse:

x[n] = (1/N) Σk=0N−1 X[k] exp(+2πi nk/N),   n = 0, 1, …, N−1.

The inverse changes the exponential’s sign and includes the factor 1/N. Software can offer different normalization choices, so check the convention when comparing equations or outputs across implementations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the coefficients mean

Each coefficient measures the contribution of a complex sinusoidal basis component at one of the DFT’s discrete frequency bins. Its magnitude is amplitude-like information, and its phase indicates the component’s phase. The bin number alone is not a physical frequency: interpreting it in hertz requires the sample rate. NumPy documents both frequency-bin ordering and magnitude and phase spectra.

With the unscaled forward convention above, X[0] is the sum of all input samples. It is the DC coefficient: it represents the signal’s average level multiplied by N.

What a finite DFT does—and does not—describe

The DFT operates on the given finite set of samples and treats those N values as one period of a periodic sequence. Its output is a discrete set of frequency coefficients, not a continuous Fourier transform evaluated at every possible frequency. A finite record therefore does not, by itself, perfectly characterize the underlying continuous signal. Marburg’s notes explain the periodic interpretation; NumPy describes the discrete frequency representation.

This representation is useful in numerical work such as spectral inspection and filtering. For real-valued samples, the coefficients have conjugate symmetry: positive- and negative-frequency bins are related rather than independent. The Nyquist endpoint is special when N is even, while odd-length transforms divide the positive- and negative-frequency bins differently. These details matter when interpreting plotted or one-sided spectra, but do not change the DFT definition.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

DFT versus FFT

The DFT is the transform defined by the finite sum. The fast Fourier transform (FFT) is a family of algorithms that computes that same transform with fewer operations for suitable input lengths; it is not a different transform.

Approach What it is Typical operation count
Direct DFT evaluation Evaluate the defining sum for each output bin; equivalently, multiply by the DFT matrix. O(N²)
Radix-2 FFT An efficient algorithm for computing the DFT when using a radix-2 decomposition. O(N log₂ N)

The GNU Scientific Library’s mathematical definitions reference supports this operation-count comparison. These are algorithmic complexity descriptions, not guarantees about elapsed runtime: actual performance depends on the length and implementation.

Why the matrix view helps

In linear algebra terms, the DFT multiplies the sample vector by an N by N matrix. Its entries are powers of an Nth root of unity, and the inverse works because the Fourier basis vectors are orthogonal. That perspective makes clear why the DFT is a change of coordinates, while the FFT concerns how to carry out the calculation. Cambridge’s Fourier and related methods course notes connect this roots-of-unity structure to the FFT.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.