7. Applications of Signal Processing

From equalizers to JPEG — where frequency analysis meets the real world

Everything we've built through this series — sampling, the DFT, the FFT, windowing, filtering, the STFT — has been abstract machinery. Transforms and theorems and frequency bins. But none of it was developed for its own sake. These tools are everywhere, hiding in plain sight, doing essential work in nearly every piece of technology that handles the physical world.

Your phone equalizes audio, compresses images and video, modulates Wi-Fi signals, and listens for your voice — all simultaneously. A radar station detects aircraft using the same mathematics you use to analyze a recording. The codec that compressed the image on this page shares its core with the filter in your DSP textbook. Let's trace the connections.

Audio Equalizers

An equalizer is, at its heart, a bank of filters. You divide the audible frequency range into bands — bass (20–300 Hz), low-mid (300–1000 Hz), mid (1–4 kHz), high-mid (4–8 kHz), treble (8–20 kHz) — and apply an independent gain to each.

Each band is implemented as a bandpass filter (or a shelf filter at the extremes): it passes frequencies within the band and attenuates everything outside. The gain control adjusts how much that band is boosted or cut. When you pull down the treble on a harsh recording, you're reducing the gain of a filter centered around 10 kHz. When a sound engineer boosts the kick drum, they're boosting a filter centered around 60–80 Hz.

Diagram

Equalizer frequency response

0 dB +12 -12 100 Hz 1 kHz 10 kHz 20 kHz Bass Mid Treble Frequency (log scale) Gain (dB)
Frequency response curves for three equalizer bands. The bass band (red) boosts low frequencies with a shelf. The mid band (orange) adds a gentle presence peak. The treble band (teal) lifts high frequencies. Each is an independent filter, implemented digitally as a biquad IIR filter.

In digital audio, each band is typically implemented as a biquad IIR filter — a two-pole, two-zero recursive filter requiring only five coefficients and five multiply-add operations per sample. A ten-band graphic equalizer is just ten of these running in series. The entire operation costs about fifty multiplications per sample — trivially fast on modern hardware.

Image Frequency Analysis

An image is a two-dimensional signal. The horizontal and vertical pixel values vary across the image just as amplitude varies across time in an audio signal — and they carry the same decomposition into frequency components.

A smooth gradient is a low spatial frequency: intensity changes slowly across many pixels. A sharp edge is a high spatial frequency: intensity jumps abruptly from one pixel to the next. Texture — fine repeating patterns of grain or fabric — is mid-to-high frequency.

Diagram

2D DFT of an image

Spatial domain (image) Low-freq (smooth) Edge (high-freq) 2D DFT Frequency domain (magnitude) DC Low freq . Edge energy
The 2D DFT of an image maps spatial frequencies. The bright center (DC component) represents the average brightness. Energy close to the center corresponds to large-scale structure; energy at the edges corresponds to fine detail and sharp transitions. The horizontal streak reflects the vertical edge in the original image.

The 2D DFT decomposes an image into a sum of 2D sinusoids — spatial frequencies in both horizontal and vertical directions. Low-frequency components reconstruct the broad structure; high-frequency components reconstruct fine edges and textures. This decomposition is the mathematical heart of image compression.

JPEG Compression

JPEG is the most widely deployed image compression standard in history. It works by discarding high-frequency spatial information that the human visual system is poorly equipped to perceive — exploiting the same perceptual asymmetry that makes audio codecs work.

Diagram

The JPEG compression pipeline

8×8 pixel blocks Split image DCT per block Frequency coefficients Quantize coefficients Discard high-freq detail Entropy Coding (Huffman) Compress the residual
The JPEG pipeline. Each 8×8 pixel block is transformed by the DCT into 64 spatial-frequency coefficients. Quantization rounds the coefficients, zeroing out imperceptible high-frequency detail. The resulting sparse coefficient matrix is then entropy-coded — typically with Huffman coding.

The Discrete Cosine Transform (DCT) used in JPEG is the real-valued cousin of the DFT. It expresses a block as a sum of cosine functions at different spatial frequencies, producing only real coefficients — which turns out to pack more energy into fewer coefficients for natural images than the complex-valued DFT would. The compression series has a dedicated DCT article that digs into the mathematics; here the key insight is that the DCT is a frequency transform, and JPEG is fundamentally a frequency-domain compression algorithm.

Quantization is where the actual compression happens. Each DCT coefficient is divided by a quantization step size and rounded to an integer. The step sizes are larger for high-frequency coefficients — you can round them more aggressively because the eye is less sensitive to high-frequency spatial variation. Many coefficients become zero after quantization. The compression factor is controlled by choosing how aggressively to quantize.

Entropy coding then compresses the quantized coefficient matrix. A zig-zag scan ordering turns the 8×8 block into a 1D sequence that clusters non-zero coefficients at the front and zeros at the end, which then compresses well with run-length encoding followed by Huffman coding — the same Huffman coding covered in the compression series.

MP3 and AAC Audio Compression

Audio compression follows the same conceptual arc: transform to frequency domain, identify what the listener can't perceive, quantize aggressively there, entropy code the result.

The perceptual model is called a psychoacoustic model. It accounts for two key phenomena. First, absolute hearing threshold: below roughly 20 dB SPL (varies by frequency), sounds are inaudible — no point coding them. Second, masking: a loud sound at one frequency makes nearby frequencies inaudible for a brief period. A loud 1 kHz tone can render a quieter 1.1 kHz tone imperceptible — you can quantize the 1.1 kHz component very coarsely during that interval.

The frequency decomposition in MP3 uses a Modified DCT (MDCT), a variant designed for seamless reconstruction across block boundaries. It produces 576 frequency coefficients per channel per frame. The psychoacoustic model determines a noise threshold for each coefficient — the quantization error that would just become audible — and the encoder allocates bits to hold the quantization error below that threshold everywhere.

The result is that MP3 at 128 kbps sounds essentially identical to uncompressed audio at 1.4 Mbps — an 11:1 compression ratio — because the discarded information is genuinely imperceptible to human hearing under normal listening conditions.

Radar and Sonar

A radar system transmits a known signal — typically a chirp, a short pulse whose frequency rises linearly over time — and listens for the echo bouncing off a target. The round-trip time gives distance; a Doppler frequency shift in the echo gives velocity.

The key operation is cross-correlation: comparing the received signal to the transmitted signal to find at what time delay they match best. Cross-correlation is exactly the operation that tells you "how similar are these two signals, as a function of time offset?" Computing it directly for long signals is slow. But the correlation theorem guarantees that cross-correlation in the time domain is equivalent to pointwise multiplication in the frequency domain:

xcorr(x, y)[τ] ⟷ X*(f) · Y(f)

So the fast algorithm is: FFT the received signal, FFT the reference signal, multiply pointwise (conjugating one), then inverse FFT. This is called a matched filter, and it concentrates the echo energy into a sharp peak at the correct delay even when the echo is buried in noise. The FFT makes it fast enough to run in real time on thousands of range bins simultaneously.

Sonar works identically, substituting acoustic pulses in water for electromagnetic pulses in air. The physics differ; the signal processing is the same.

Telecommunications: OFDM

Modern wireless communication — Wi-Fi (802.11), 4G LTE, 5G NR — uses a scheme called Orthogonal Frequency Division Multiplexing (OFDM). It sounds complicated but the core idea is elegant: instead of sending one high-rate data stream on a single carrier frequency, send hundreds of low-rate streams on hundreds of narrowly spaced carrier frequencies simultaneously.

Each carrier is a different frequency bin. The data to be transmitted in one time slot is assigned to these bins — one complex symbol per bin, encoding amplitude and phase. The time-domain signal to transmit is then simply the inverse FFT of this frequency-domain data vector. The transmitter is literally running an IFFT on each outgoing symbol.

At the receiver, the incoming samples are FFT'd. Each bin's complex value gives back the symbol transmitted on that carrier, which is then decoded to bits. The FFT is the demodulator.

In OFDM, the FFT is not just a tool for analysis — it is the modulator and demodulator. The entire physical layer of modern wireless communication is built around FFT arithmetic.

Why does this work so well? Radio channels introduce multipath interference: the signal bounces off walls and buildings, and slightly delayed copies of itself arrive at the receiver and interfere. This causes frequency-selective fading — some frequencies are attenuated and others are not. In a single-carrier system, this creates nasty intersymbol interference that requires complex equalizers to undo. In OFDM, because each subcarrier is very narrowband, the channel looks flat across each individual carrier — equalizing it requires only a single complex multiplication per bin, which is trivial.

Connections to Other Series

Signal processing doesn't live in isolation. It connects directly to several other areas covered on this site:

Compression: The DCT at the heart of JPEG and the MDCT in MP3 are frequency transforms. Understanding the DFT gives you the tools to understand why the DCT works and what its coefficients mean. The Huffman coding at the end of the JPEG pipeline is entropy coding — covered in the compression series.

Error Correction: Any signal transmitted over a noisy channel — whether a radio link, a CD, or a network cable — needs error correction to remain reliable. The signal processing sets up the channel; the error correction codes ensure data survives it. Reed-Solomon codes protect CD audio and QR codes; LDPC codes protect 5G transmissions that are themselves OFDM-modulated using the FFT.

Encryption: Secure communication stacks on top of signal processing. TLS runs over TCP, which runs over IP, which runs over an OFDM physical layer. The signal processing ensures the bits arrive; the cryptographic layer ensures they remain private. AES and RSA operate on the bitstream that the physical layer delivers.

Each of these fields has its own deep theory, but they share the same underlying mathematical structure — linear algebra over complex numbers, the same tools that power the DFT.

Key Takeaways

  • An audio equalizer is a bank of bandpass filters, each implemented as a cheap biquad IIR filter that adjusts the gain of a frequency range.
  • Images are 2D signals; the 2D DFT decomposes them into spatial frequencies. Low frequencies carry large-scale structure; high frequencies carry edges and texture.
  • JPEG applies the DCT to 8×8 pixel blocks, quantizes the resulting frequency coefficients (more aggressively for high frequencies), and entropy-codes the result. Compression comes from quantization; the DCT makes quantization effective.
  • MP3/AAC use a psychoacoustic model to find what the listener can't hear, quantize those components heavily, and entropy-code the rest.
  • Radar and sonar use matched filtering — cross-correlation via FFT — to find a known transmitted pulse in a noisy echo. The FFT makes this fast enough for real-time operation across thousands of range bins.
  • OFDM (Wi-Fi, 4G, 5G) literally is the FFT: data is encoded onto frequency bins, the IFFT produces the transmitted waveform, and the receiver FFTs the received samples to decode. The FFT is the physical-layer modem.
  • Signal processing is the bridge between the physical world — vibrations, waves, electromagnetic fields — and the digital bit streams that carry information, compressed, corrected, and encrypted, through every layer of the systems we rely on.

The ideas in this series are old — Fourier's 1822 treatise, Nyquist's 1928 theorem, Cooley and Tukey's 1965 FFT algorithm — but they are more active today than ever. Every wireless transmission, every digital image, every compressed audio file, every radar scan is a fresh application of the same underlying mathematics. The frequencies are real. Now you can see them.