When you need just one frequency — is this tone present? — a full FFT is overkill. Goertzel’s algorithm detects a single bin with a tiny second-order recurrence driven by one precomputed coefficient 2·cos(ω): s[n] = x[n] + 2cos(ω)·s[n−1] − s[n−2], then read the power off the last two states. It is exactly how a touch-tone (DTMF) decoder hears which buttons you pressed — eight Goertzel detectors, one per tone. Minimum arithmetic, no table, no complex buffer: the efficient way to ask about a single note.
The demo runs Goertzel (bin 3) on a tone at bin 3 and a tone at bin 1 — the matching tone gives a far larger response: live demo
“To find one frequency, transform them all.” — Goertzel finds a single bin with one coefficient and a two-tap recurrence. cited
A single note picked out by one coefficient and two remembered states — the DFT, narrowed to one question. resource
On the canonical compiler, Goertzel tuned to bin 3 responds strongly to a bin-3 tone and weakly to a bin-1 tone: