A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Short-Time Fourier Transform

Graduate Depth 108 in the knowledge graph ☐ I know this ☆ Set as goal
1topic build on this
683prerequisites beneath it
See this on the map →
Fourier Transform: Definition and PropertiesWindow Functions and Spectral Leakage→→Wavelet Transform and Multiresolution Analysis
time-frequency stft spectral-analysis windows

Core Idea

The Short-Time Fourier Transform (STFT) computes Fourier transform of overlapping windowed segments to provide time-frequency representation: STFT(t,ω) = ∫ x(τ)·w(τ–t)·e–jωτ dτ. It trades time and frequency resolution: narrower windows improve time localization but worsen frequency resolution. Spectrograms visualize STFT magnitude showing frequency evolution over time.

Explainer

The standard Fourier transform is like asking, "what frequencies are present in this signal?" — and getting a complete answer, but with no information about *when* those frequencies occur. For a piece of music, the ordinary Fourier transform tells you every note ever played, but nothing about their order or timing. The Short-Time Fourier Transform (STFT) solves this by asking a more local question: what frequencies are present *right now*, in this short window of time?

The idea is simple: multiply the signal by a window function — a smooth, localized pulse like a Gaussian or Hann window — that is zero everywhere except near some moment t. Then take the Fourier transform of what remains. This gives the frequency content of the signal near time t. By sliding the window across the entire signal and repeating, you get a two-dimensional map of frequency vs. time. This map is the STFT, and its magnitude squared is the spectrogram — the colored time-frequency plots you see in audio analysis and speech processing.

The catch is the time-frequency uncertainty principle (analogous to the Heisenberg uncertainty principle in quantum mechanics): you cannot have arbitrarily sharp resolution in both time and frequency simultaneously. A narrow window gives excellent time localization — you know precisely *when* a frequency appears — but the short duration means the Fourier transform sees very few oscillations, leading to smeared frequency content. A wide window gives sharp frequency peaks (many oscillations to count) but blurs together events that happen at different times. Formally, the product of time resolution Δt and frequency resolution Δω is bounded below: Δt · Δω ≥ 1/2.

This resolution tradeoff is the fundamental limitation of the STFT and motivates its successor, the wavelet transform. Unlike the STFT — where every frequency is analyzed with the same fixed window width — wavelets use a window that automatically shrinks at high frequencies and widens at low ones. This provides constant *relative* resolution (high frequencies resolved in time, low frequencies resolved in pitch), which is why wavelets are preferred for signals like speech and ECG where low-frequency content evolves slowly and high-frequency transients are brief. Understanding the STFT's fixed-resolution limitation is the conceptual bridge to that more flexible framework.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Center of Mass → Conservation of Linear Momentum → Elastic Collisions → Inelastic Collisions → Coefficient of Restitution → Collision Analysis and Real-World Applications → Two-Body Collisions in the Center-of-Mass Frame → Reduced Mass and Two-Body Problems → Kinematics in Two Dimensions → Projectile Motion → Circular Motion: Kinematics → Simple Harmonic Motion → Introduction to Differential Equations → Laplace Transform: Fundamentals and Properties → Z-Transform: Fundamentals for Discrete-Time Signals → Discrete-Time Fourier Transform (DTFT) → Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT) Algorithms → Window Functions and Spectral Leakage → Short-Time Fourier Transform

Longest path: 109 steps · 683 total prerequisite topics

Prerequisites (2)

Leads To (1)