{
    "@context": "https://schema.org",
    "@type": "NewsArticle",
    "@id": "https://badiyaa.com/discrete-fourier-transform-explained-fft/#article",
    "mainEntityOfPage": "https://badiyaa.com/discrete-fourier-transform-explained-fft/",
    "headline": "Discrete Fourier transform explained: the math that turns sound, photos and 5G signals into frequencies",
    "description": "The discrete Fourier transform turns sampled signals into frequencies; here is how it works, using Eli Bendersky's new notes and a 12-sample example.",
    "datePublished": "2026-11-23T01:15:00+00:00",
    "dateModified": "2026-11-22T15:38:39+00:00",
    "author": {
        "@type": "Organization",
        "name": "Badiyaa Editorial Desk",
        "url": "https://badiyaa.com/author/editorial-desk/"
    },
    "publisher": {
        "@type": "NewsMediaOrganization",
        "@id": "https://badiyaa.com/#organization",
        "name": "Badiyaa",
        "url": "https://badiyaa.com/",
        "logo": {
            "@type": "ImageObject",
            "url": "https://badiyaa.com/wp-content/uploads/2026/10/badiyaa-logo-color-600x60-1.png",
            "width": 600,
            "height": 60
        },
        "email": "badiyaavideo@gmail.com",
        "publishingPrinciples": "https://badiyaa.com/editorial-policy/",
        "correctionsPolicy": "https://badiyaa.com/corrections/",
        "actionableFeedbackPolicy": "https://badiyaa.com/contact/",
        "ownershipFundingInfo": "https://badiyaa.com/about/#ownership",
        "sameAs": [
            "https://www.facebook.com/profile.php?id=61595518283625",
            "https://www.instagram.com/badiyaa.com.ai/",
            "https://www.threads.net/@badiyaa.com.ai"
        ],
        "parentOrganization": {
            "@type": "Organization",
            "name": "Rezilient Digital",
            "url": "https://www.rezilientdigital.com/",
            "address": {
                "@type": "PostalAddress",
                "streetAddress": "Fl No 3, Nav Shyam Sadan, Plot No 38, Pestom Sagar, Chembur",
                "addressLocality": "Mumbai",
                "addressRegion": "Maharashtra",
                "postalCode": "400089",
                "addressCountry": "IN"
            },
            "sameAs": [
                "https://www.linkedin.com/company/rezilientdigital"
            ]
        }
    },
    "isAccessibleForFree": true,
    "inLanguage": "en-US",
    "wordCount": 650,
    "image": [
        "https://badiyaa.com/wp-content/uploads/2026/11/tektronix-oscilloscope-475a.jpg"
    ],
    "articleSection": "Tech",
    "keywords": "Discrete Fourier transform, Fast Fourier transform, Eli Bendersky, Signal processing",
    "articleBody": "Every time a phone streams music, a camera saves a photo or a 5G tower splits its signal, a piece of math called the discrete Fourier transform is doing the heavy lifting somewhere along the way. Software engineer Eli Bendersky published a clear set of notes on the discrete Fourier transform on November 21, complete with short Python code, and it is a good excuse to explain what the DFT is and why it matters. What the DFT does Start with a list of numbers taken from a signal at regular intervals: air pressure from a microphone, brightness along a row of pixels, or a day-by-day temperature log. The DFT turns that list into another list of the same length. Each new number says how strongly one particular frequency is present in the original data, and what its phase is. In plain terms, it rewrites a signal from \"what was measured when\" into \"which waves add up to this,\" as Wikipedia's discrete Fourier transform article puts it in more formal language. The process runs both ways. An inverse DFT takes the frequency list and rebuilds the original samples exactly, apart from tiny rounding errors on a computer. Bendersky's key insight, simplified Real recordings are finite. Bendersky's trick for thinking about them is to pretend the finite batch of samples is one full cycle of an endlessly repeating signal. Once you assume that, the older tool for repeating signals, the discrete-time Fourier series, applies directly, and its coefficients are the DFT. He also shows the transform as a single matrix multiplication. The rows of that \"Fourier matrix\" are built from powers of the complex roots of unity, numbers that land evenly around a circle. Those rows are orthogonal, meaning they do not overlap, so any list of N numbers can be written as a mix of them. That is the linear-algebra reason the DFT can always be undone. A worked example in numbers Bendersky's demo uses 12 samples of a triangle wave, rising from 0 to 3 and down to minus 3 before climbing back, all divided by 3. Feed those 12 numbers in, and the DFT returns 12 complex values. Because the input is real, the output is mirrored around the middle bin, bin 6, so only half the values carry new information. Here is where the costs show up. Computing the DFT straight from its definition takes about N squared steps. For 12 samples that is 144 multiplications, which is nothing. For a million samples it is a trillion, which is a lot. Why the FFT changed everything The fix is the fast Fourier transform, a family of algorithms that gets the same answer in about N times log N steps. James Cooley and John Tukey published the modern version in 1965, though Carl Friedrich Gauss had sketched a similar method around 1805 while studying asteroid orbits, according to Wikipedia's fast Fourier transform article. Mathematician Gilbert Strang called the FFT \"the most important numerical algorithm of our lifetime\" in 1994. Today it sits inside MP3 and JPEG encoders, in the OFDM scheme that powers 4G LTE and 5G, and in the processing behind MRI scans. Badiyaa's look at why a microwave oven can slow your Wi-Fi touches the same world of frequencies, and so does our piece on bumblebees buzzing flowers near C-sharp. One catch: spectral leakage The repeating-cycle assumption has a cost. Cut a signal partway through a cycle and the copies no longer line up, so the DFT invents extra frequencies to cover the jump. Bendersky shows this with the first 10 samples of the same triangle wave. Engineers soften it with window functions that taper the edges toward zero. His next post, he says, will explain how the FFT works. SourcesNotes on the discrete Fourier transform (DFT), Eli Bendersky, 2026Discrete Fourier transform, Wikipedia, 2026Fast Fourier transform, Wikipedia, 2026 Image: Pittigrilli, CC BY-SA 4.0 via Wikimedia Commons This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.",
    "markdown": "https://badiyaa.com/discrete-fourier-transform-explained-fft.md"
}