Signal processing studies how to represent, transform, analyze, filter, compress, and reconstruct signals.
A signal is a quantity that varies over an index. The index may be time, space, frequency, pixel position, sensor number, or another ordered set. A speech waveform is a signal. An image is a two-dimensional signal. A sequence of temperature measurements is a signal. A voltage trace is a signal. A vector of samples is also a signal.
Linear algebra enters signal processing because finite signals are vectors, filters are linear transformations, convolution can be written as matrix multiplication, and frequency analysis is a change of basis. The Fourier transform is a linear operator that maps a signal into its frequency-domain representation, and convolution becomes multiplication after transformation under standard Fourier conventions.
115.1 Signals as Vectors
A finite discrete signal can be written as a vector
The entry is the value of the signal at sample index .
For example,
is a signal of length .
Once a signal is written as a vector, the usual operations of linear algebra apply.
Two signals of the same length may be added:
A signal may be scaled:
These two operations make finite signals elements of a vector space.
115.2 Continuous and Discrete Signals
A continuous-time signal is a function
where varies continuously.
A discrete-time signal is a sequence
where is an integer.
A finite discrete signal is a finite sequence
Digital signal processing works with finite discrete signals because computers store finite arrays of numbers.
| Signal type | Mathematical form |
|---|---|
| Continuous-time signal | |
| Discrete-time signal | |
| Finite signal | or |
| Image | Matrix or tensor |
| Multichannel signal | Vector-valued sequence |
The linear algebra viewpoint is most direct for finite signals.
115.3 Sampling
Sampling converts a continuous-time signal into a discrete-time signal.
Given a sampling interval , define
The sampling frequency is
Sampling replaces a function by a sequence of values.
This process is fundamental in digital signal processing. The sampling process also has a frequency-domain interpretation: sampled spectra are related to shifted copies of the original spectrum, which explains aliasing when the sampling rate is too low.
115.4 Energy and Norms
The energy of a finite signal is
This is the squared Euclidean norm.
The norm
measures the size or strength of the signal.
For two signals and , the inner product is
If
then the signals are orthogonal.
Orthogonality means that the signals contain independent components with respect to this inner product.
115.5 Linear Systems
A system maps an input signal to an output signal.
If is a system, then
means that input produces output .
A system is linear if
for all signals and all scalars .
Linearity means that scaling and superposition are preserved.
If a signal is decomposed into simpler parts, a linear system may be applied to each part separately, and the results may be added.
This principle is central in filtering, Fourier analysis, convolution, and system identification.
115.6 Filters
A filter is a system designed to modify a signal.
A filter may remove noise, smooth a signal, sharpen edges, suppress unwanted frequencies, or extract features.
For a finite signal, a linear filter can be represented by a matrix:
Here is the filter matrix.
For example, a simple three-point smoothing filter may average neighboring samples:
This operation replaces each sample by a local average.
In matrix form, such a filter has nonzero entries near the diagonal.
115.7 Impulse Response
The impulse signal is zero everywhere except at one position.
For a discrete signal, the unit impulse at index is
The impulse response of a linear time-invariant system is the output produced by the impulse input.
It is usually denoted by
For a linear time-invariant system, the impulse response completely determines the system.
Once is known, the output for any input can be computed by convolution.
115.8 Convolution
The convolution of two discrete signals and is
This formula defines the output of a linear time-invariant filter with impulse response .
Convolution combines shifted copies of the impulse response, weighted by the input samples.
If is large, then a large shifted copy of contributes to the output.
Thus convolution expresses a signal as a superposition of shifted impulse responses.
115.9 Convolution as Matrix Multiplication
For finite signals, convolution can be written as matrix multiplication.
Suppose
and
A causal convolution output may be written as
The matrix is a Toeplitz matrix because its diagonals are constant.
Thus filtering by convolution is a structured linear transformation.
115.10 Circular Convolution
For finite periodic signals of length , convolution is often treated cyclically.
The circular convolution of and is
Circular convolution can be represented by a circulant matrix.
A circulant matrix is a square matrix whose rows are cyclic shifts of one another. Circulant matrices are diagonalized by the discrete Fourier transform, which makes them important in numerical analysis and signal processing.
115.11 Frequency Domain
Signals can be represented in the time domain or the frequency domain.
The time-domain representation shows values over time or index.
The frequency-domain representation shows how much of each frequency is present.
The Fourier transform converts a signal from time domain to frequency domain:
In finite computation, the discrete Fourier transform maps a finite sequence to a finite sequence of frequency coefficients.
The frequency domain is useful because many filters become simpler there.
A convolution in the time domain becomes multiplication in the frequency domain:
This identity is one of the main algebraic reasons Fourier methods are widely used in signal processing.
115.12 The Discrete Fourier Transform
For a length signal , the discrete Fourier transform is
The inverse transform is
The DFT is a linear transformation. It can be written as
where is the Fourier matrix.
The normalized Fourier matrix is unitary, so it preserves inner products and energy.
115.13 Filtering in the Frequency Domain
Let be a filter and be a signal.
In the time domain,
In the frequency domain,
Here is the frequency response of the filter.
Thus a filter acts by scaling each frequency component.
| Filter type | Frequency-domain behavior |
|---|---|
| Low-pass | Keeps low frequencies |
| High-pass | Keeps high frequencies |
| Band-pass | Keeps a middle frequency band |
| Notch | Suppresses selected frequencies |
| Smoothing | Reduces high-frequency content |
| Differencing | Emphasizes high-frequency content |
This is a diagonalization principle: convolution is complicated in the time basis but simple in the Fourier basis.
115.14 Noise
Noise is unwanted variation in a signal.
A measured signal may be modeled as
where is the true signal and is noise.
Signal processing tries to recover useful information from .
If noise is mostly high frequency, a low-pass filter may reduce it.
If noise occupies a known frequency band, a notch or band-stop filter may suppress it.
If noise has statistical structure, methods based on covariance matrices, projections, and low-rank approximation may be used.
115.15 Denoising by Projection
Suppose the useful signal lies approximately in a subspace .
Let
be the orthogonal projection onto .
Given noisy data
a denoised estimate is
This removes components orthogonal to the chosen signal subspace.
The effectiveness depends on whether the subspace captures signal rather than noise.
This is the same geometric idea used in least squares.
115.16 Compression
Compression represents a signal using fewer numbers.
The basic idea is to choose a basis in which the signal has only a few large coefficients.
Let
be an expansion in an orthonormal basis.
If most coefficients are small, we approximate
using only selected indices .
The discarded coefficients produce error.
Compression therefore depends on basis choice, coefficient decay, and approximation error.
Fourier, cosine, and wavelet bases are common in signal and image compression.
115.17 Low-Rank Approximation
Images and multichannel signals are often stored as matrices.
A grayscale image may be represented as a matrix
The singular value decomposition gives
Keeping only the largest singular values gives the rank- approximation
This is useful for compression and denoising.
The singular values measure the importance of orthogonal modes. Small singular values often correspond to fine detail or noise.
115.18 Correlation
Correlation measures similarity between signals.
For finite real signals, the inner product
is a basic similarity measure.
If the signals are normalized, then the inner product measures cosine similarity.
Cross-correlation compares one signal with shifted versions of another:
Correlation is used in detection, alignment, pattern matching, radar, audio processing, and image registration.
It is closely related to convolution. Discrete correlation can be expressed using a reversed version of convolution.
115.19 Matched Filtering
A matched filter is designed to detect a known signal shape inside noisy data.
Suppose the target pattern is . Given measured data , compute
If this inner product is large, then contains a component similar to .
For shifted patterns, use correlation:
The index with large correlation indicates where the pattern occurs.
This is an application of projection: the measurement is tested against a known direction in signal space.
115.20 Linear Prediction
Linear prediction estimates a future sample from previous samples.
A simple model is
The coefficients are chosen from data.
This leads to a least squares problem.
Collect many equations of the form
Then solve
Linear prediction is used in speech coding, time-series analysis, spectral estimation, and adaptive filtering.
115.21 Adaptive Filtering
An adaptive filter changes its coefficients based on incoming data.
Let the filter output be
where is the current coefficient vector and is the current input vector.
The error is
A simple update rule is
This is related to gradient descent on a least squares objective.
Adaptive filtering is used in echo cancellation, noise cancellation, channel equalization, and online prediction.
115.22 Images as Signals
An image is a two-dimensional signal.
A grayscale image can be represented as a matrix
Each entry is a pixel intensity.
Filtering an image means applying local linear transformations to neighborhoods of pixels.
Common image filters include smoothing, sharpening, edge detection, deblurring, and denoising.
Two-dimensional convolution is the standard matrix-based operation behind many image filters.
115.23 Transform Coding
Transform coding changes the basis before storing or transmitting data.
The steps are:
| Step | Operation |
|---|---|
| Transform | Convert signal to coefficients |
| Quantize | Approximate coefficients |
| Encode | Store coefficients efficiently |
| Decode | Reconstruct approximate signal |
| Inverse transform | Return to original domain |
The transform is chosen so that most energy is concentrated in relatively few coefficients.
This is a linear algebra strategy: choose a basis where the data are sparse or compressible.
The discrete cosine transform, Fourier transform, and wavelet transform are common examples.
115.24 Wavelets
Wavelets provide localized basis functions.
Fourier basis functions extend across the whole domain. Wavelets are localized in both position and scale.
This makes wavelets useful for signals with sharp changes, edges, bursts, or multiscale structure.
Wavelet transforms decompose a signal into coarse and detailed components.
In filter-bank form, this is done by applying low-pass and high-pass filters, followed by downsampling. Polyphase matrices provide a matrix representation of filter banks used in subband coders and discrete wavelet transforms.
115.25 Signal Processing and Linear Algebra
The main connection is that signal processing operations are linear or approximately linear.
| Signal processing object | Linear algebra object |
|---|---|
| Finite signal | Vector |
| Image | Matrix |
| Multichannel signal | Matrix or tensor |
| Filter | Linear operator |
| Convolution | Toeplitz or circulant matrix |
| Fourier transform | Unitary change of basis |
| Frequency response | Diagonal operator |
| Denoising | Projection |
| Compression | Sparse or low-rank approximation |
| Correlation | Inner product |
| Adaptive filtering | Least squares and gradient descent |
This table summarizes why linear algebra is the basic language of signal processing.
115.26 Summary
Signal processing studies signals and systems. Linear algebra gives finite signals the structure of vectors and gives filters the structure of matrices.
Convolution is a structured matrix operation. The Fourier transform changes the basis so that convolution becomes multiplication. Frequency-domain filtering is diagonal action in a Fourier basis. Noise reduction can be viewed as projection. Compression can be viewed as basis selection, coefficient truncation, or low-rank approximation.
The central principle is representation. A signal may be difficult to interpret in one basis and simple in another. Linear algebra supplies the tools for changing representations and for understanding which information is preserved, suppressed, or approximated.