Chapter 1 - Foundations
Chapter 1 - Foundations
1 Introduction
For some, the material presented in these notes may seem excessively mathe-
matical: Why do we need to go back to thinking of linear spaces, inner products,
etc.? What have matrices got to do with signal processing? Who cares about
orthogonality anyway?
For others, however, this presentation may provide insights which link pre-
viously disconnected ideas. My purpose is to show you both the simple and
the deep. It may be a relief to some of you to see that discrete convolution
is such a mind-bogglingly simple concept, that linear operations on sequences
of samples are directly analogous to matrix operations on nite length vectors,
and that there is nothing mysterious at all about Parseval’s theorem. On the
other hand, I would like you to try to grapple with the signicance of aliasing,
the interpretation of frequency in both the discrete and continuous domains and
the extent to which discrete Fourier transforms are true frequency transforms.
Some of these questions will be answered more fully as the subject progresses,
especially when we come to consider random processes, auto-correlation and
power spectral densities.
Lecture notes will be handed out regularly in lectures, but the lectures them-
selves will sometimes follow the material in a dierent order to that in the notes.
This is because the methodical style appropriate to a written presentation is not
usually helpful in lectures. For this reason, you are recommended to take your
own notes during lectures to remind yourself of the ow of ideas. There is very
little point in trying to write everything down. Instead, try to focus on the ow
of the lecture, sketching connections, “mind-maps,” etc., which emerge as you
go. This way, you will have a chance of taking away useful concepts, which will
last even after you forget the details.
1
c
?Taubman, 2003 ELEC4621: Foundations Page 2
2 Linear Spaces
2.1 Denitions
A linear space is a set, S, whose elements we identify as vectors, v, having the
following properties:
1. Symmetry: kv, wl = kw, vl. Note, however, that if the linear space is
dened over the eld of complex numbers, C, instead of R, then we have
kv, wl = kw, vl , where denotes the complex conjugate of .
2. Linearity: kv, wl = kv, wl and kv+u, wl = kv, wl+ku, wl. By symmetry,
we must also have kv, wl = kv, wl and kv, w +ul = kv, wl+kv, ul, unless
the vector space is dened over C, in which case kv, wl = kv, wl.
s
3. Cauchy-Schwarz inequality: kv, wl kv, vl · kw, wl with equality if and
only if v = w for some 5 R.
Basis: We say that the collection of vectors, {# i }, forms a basis for S if the
vectors are linearly independent and every vector, v 5 S,Smay be written
as a linear combination of the basis vectors, # i , i.e. v = i ai # i for some
ai 5 R. The number of elements in the basis, {# i }, is the dimension of
the vector space. If the basis consists of innitely many elements then we
have an innite dimensional vector space.
If we dene the vector space over C instead of R, we must dene the inner
product by
3 4
v1
n
[ EE v2 F
F
kv, wl = vi wi = w v = w1 w2 · · · wn E . F
i=1
C .. D
vn
Note that w denotes the conjugate transpose of vector w. A trivial basis for
the linear space of n-tuples is
t
0 ··· 0 1 0 ··· 0
#i = ~}
i
c
?Taubman, 2003 ELEC4621: Foundations Page 4
If we dene the vector space over C instead of R, we dene the inner product
instead by [
kv, wl = vi wi
i
Again, an obvious orthonormal basis for the space is the set of singleton se-
quences,
··· 0 0 1 0 0 ···
i = ~} (1)
i
If we dene the vector space over C instead of R, we must use the following
more general inner product expression instead:
]
kf , gl = f (x)g (x) · dx
s
Thus, the norm of a signal, nf n = kf , f l, may be interpreted as the square
root of its energy.
3 Linear Systems
A linear system is a function, H, which maps vectors v 5 S to vectors, H(v) =
v3 5 S 3 , having the linearity property:
Often S = S 3 , but there are many useful examples where this is not so. Consider,
for example, the unit sampling operator which maps continuous signals v into
sequences v3 , such that
ui = v (i)
The dual of sampling is interpolation, which maps sequences to continuous sig-
nals. In both cases, S and S 3 are dierent linear spaces. The Discrete Time
Fourier Transform (DTFT) is another example, mapping discrete discrete se-
quences to functions on the interval $ 5 (, ). We shall consider each of
these in detail shortly.
It is worth noting that each element of the ouput vector may be written as an
inner product:
vi3 = hi · v = kv, hi l
where hi is the i’th column of H, and the super-script, , denotes transposition
and complex conjugation together. When complex numbers are involved, the
transpose operation is almost always accompanied by complex conjugation in
virtually every useful mathematical relationship.
c
?Taubman, 2003 ELEC4621: Foundations Page 6
0 n 0 k n
H H
0 n 0 k n
where hi , the i’th column of H, is the response of the system to an input vector
which is zero everywhere except in the i’th element, where it holds a 1.
Thus, the columns of the matrix operator may be interpreted as its system
responses, while the rows may be understood as combinatorial weights. The
operator itself may be interpreted and implemented either by summing the
weighted system responses, or by forming weighted sums of the input samples.
H(xk ) = H(x)k = yk
That is, the response of the system to a delayed input signal is a correspondingly
delayed version of the response to the original signal. This is illustrated in Figure
1.
Recall that any sequence x may be written as a linear combination of the
orthonormal basis sequences i dened in equation (1), i.e.
[ [ [
x= ai i = kx, i l i = x[i] i
i i i
c
?Taubman, 2003 ELEC4621: Foundations Page 7
0.3 H
0 n 0 n
0.7
+ +
0.7b [n-1] 0.7h[n-1]
0 n 0 n
+ +
0.4b [n-2] 0.4h[n-2]
0.4 H
0 n 0 n
=
=
0.7
x[n] y[n]
0.4 H
0.3
0 n 0 n
Finally, note that i i [n] = [n i], where = 0 is the unit impulse
sequence. That is, i is a delayed version of the unit impulse sequence. Since
H is time-invariant, we must have H( i ) = H()i and so
[ [
y= x[i] · H()i = x[i]hi
i i
or [ [
y[n] = x[i]h[n i] = h[k]x[n k] = (h B x)[n] (2)
k=ni
i k
Thus, the LTI system is entirely characterized by its response to a unit impulse,
H () = h h[n]. The summation in equation (2) is known as convolution.
Figure 2 illustrates the convolution principle.
As for nite-dimensional linear systems, this convolution relationship may
c
?Taubman, 2003 ELEC4621: Foundations Page 8
0 t 0 o t
H H
0 t 0 o t
where h̃ h̃ [n] = h[n] is a time-reversed version of the impulse response, h
h[n]. Thus, the kth output sample may be obtained by delaying (sliding to the
right) h̃ by k time steps and taking the inner product (pairwise multiplication
and addition) of this delayed sequence with the input sequence x.
where (t) is the Dirac-delta function. This is not a real function, but a dis-
tribution — it “measures” a function at some point. The Dirac-delta function
is dened, in fact, by equation (3). We think of (t) as the unit impulse
signal, even though it is not a physically realizable signal. By analogy with the
discrete case, we have
]
g = H(f ) = f ( ) · h · d
c
?Taubman, 2003 ELEC4621: Foundations Page 9
where h = H() is the response of the LTI system to the unit impulse. This
analogy may be made rigorous, but we do not attempt to do so here. Writing
the above equation in full we have
] ]
g(t) = f ( ) · h (t) · d = f ( ) · h(t ) · d
]
= h() · f (t ) · d = (h B f )(t)
4 Fourier Transforms
4.1 Fourier Series
x(t) X(f)
t f
T0 F0
Consider periodic functions, x(t), with period T0 . Suppose also that the
“Dirichlet” conditions are satised, i.e.
U T0
1. x(t) is absolutely integrable over one period, i.e. 0
|x(t)| · dt < 4;
2. x(t) has a nite number of extrema (local maxima or minima) within each
period; and
3. x(t) has at most a nite number of discontinuities within each period.
c
?Taubman, 2003 ELEC4621: Foundations Page 10
This is known as Parseval’s relationship for Fourier series. We may identify the
left hand side of the above equation with the energy in a single period. Here,
we think of x(t) as a voltage waveform across a 1 resistor, so that x2 (t) is the
instantaneous power dissipated in the resistor and its integral is the dissipated
energy. Alternatively, we may write
] T0 4
[
1
|x|2 (t) · dt = |X[n]|2
T0 0 n=4
c
?Taubman, 2003 ELEC4621: Foundations Page 11
where the left hand side represents the power of the periodic signal.
Although we have considered periodic functions, the Fourier Series expansion
is equally applicable to the class of nite support signals, dened on the interval
t 5 [0, T0 ], where we have only to view the nite support signal as a single period
of a hypothetical innite support signal; the integrals and inner products dened
above remain unchanged in this case. Alternatively, the Fourier Seriesexpansion
is applicable to functions dened on any interval of length T0 , e.g. t 5 T20 , T20 .
x[n] xˆ (t )
t </ / t
1
We have seen that the Fourier Series represents an invertible mapping be-
tween the inner product space formed by all nite support functions x(t) dened
on t 5 (, ) which satisfy the Dirichlet conditions, and innite length two-
sided sequences X[n]. By direct substitution, then, it is easy to verify that every
sequence x[n] may be represented by a nite support function, x̂($), dened on
c
?Taubman, 2003 ELEC4621: Foundations Page 12
f (t ) fˆ (t )
t t
c
?Taubman, 2003 ELEC4621: Foundations Page 13
U
Suppose the signal f (t) has nite energy. That is, f 2 (t) dt < 4. Then
the following Fourier transform (FT) relationship holds:
] 4
ˆ
f ($) = f (t)ej$t · dt
4
] 4
1
f (t) = fˆ ($) ej$t · d$ (5)
2 4
Convolution: Let g(t) = (h B f )(t) be the convolution of signal f (t) and the
impulse response f (t) of an LTI lter; then
g($)
ˆ = ĥ($)fˆ($).
Parseval’s relation:
] 4 ] 4
1 ˆ 2
|f (t)|2 · dt = f ($) · d$
4 2 4
x(t) X(f)
1
1
0.8
0.8
0.6 0.6
0.4
0.4
0.2
0.2
-3 -2 -1 0 1 2 3 f
0
-1 0 1 2 t -0.2
d
Dierentiation: Let g(t) = dt f (t); then
g($)
ˆ = j$ · fˆ($)
ˆ
Its Fourier transform, ($), is given by
ˆ $ sin $/2
($) = sinc( ) =
2 $/2
These are illustrated in Figure 4.The way to remember this is that the
nulls of the Fourier transform of a unit length pulse lie at multiples of
$ = 2. This is because these frequencies correspond to sinusoids which
execute a whole number of cycles within the unit duration of the pulse,
and hence integrate out.
Rectangular pulse (Fourier domain): Let x̂ ($) be the unit pulse on the
interval, $ 5 (, ),
1 if |$| <
x̂($) =
0 if |t|
c
?Taubman, 2003 ELEC4621: Foundations Page 15
x(t) X(f)
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
-2 -1 0 1 2
t -3 -2 -1 0 1 2 3
f
Figure 5: Triangle, x(t) = (t), and its Fourier transform, X(f ) = x̂ ($)|$=2f .
x(t) X(f)
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
-2 -1 0 1 2 t -3 -2 -1 0 1 2 3 f
Figure 6: Raised cosine, x(t) = Rc (t), and its Fourier transform, X(f ) =
x̂ ($)|$=2f .
• Observe that in this case the inverse DTFT integral and the inverse FT
integral, given in equations (4) and (5) respectively, are identical. Specif-
ically, we see that
] ]
1 1
x̂($)ejn$ · d$ = x[n] = f (t)|t=n = fˆ($)ejn$ · d$
2 2
c
?Taubman, 2003 ELEC4621: Foundations Page 17
FT
f (t ) fˆ (t )
interpolate
sample
identify
DTFT
x[n] xˆ (t )
Thus, f (t) may be obtained directly from x[n], by so-called sinc inter-
polation. Specically, we interpolate the samples by translating a sinc
function to each sample location, weighting the translated sinc function
by the relevant sample value, and summing the weighted, translated sinc
functions.
The interpolation formula above provides a basis for the space of signals
bandlimited to $ 5 (, ). Specically, any signal, f f (t), in this
space, may be represented as a linear combination of the signals, # n
sinc (t n), with
[4
f= x[n]# n
n=4
• The Nyquist cycle in Figure 7 does more than just connect discrete and
continuous signals through sampling and interpolation formulae. It also
imparts meaning to the frequency representation embodied by the DTFT.
What is the meaning of a frequency of 1.0325 rad/s for discrete sequences
of samples? The answer is that the DTFT is identical to the Fourier
transform of the underlying continuous signal and derives all of its meaning
from the continuous signal. When we measure frequency content in the
DTFT domain, we are really looking at the frequencies of the underlying
continuous signal. Similarly, when we lter a discrete sequence, we are
really ltering the underlying continuous signal.
c
?Taubman, 2003 ELEC4621: Foundations Page 19
fˆ (t )
t
xˆ (t )
t
< 3/ </ +/ + 3/
• As a nal note, we point out that signals are not generally exactly ban-
dlimited to any frequency range. For non-bandlimited signals, the equality
of fˆ($) and x̂($) no longer holds. We nd more generally that
4
[
x̂($) = fˆ ($ 2k)
k=4
and this is the most natural form of the convolution equation when thinking of
h as the response to a unit impulse at n = 0. We have also seen that convolution
may be expressed in terms of inner products as
G H
y [n] = x, h̃n
This expression reveals the fact that convolution may be viewed as a sliding
window, weighted averaging operation. The weights are contained in h̃, the
mirror image of h, which slides to the right one position at a time, generating
each consecutive output y [n], as it goes.
c
?Taubman, 2003 ELEC4621: Foundations Page 20
g (t ) = ³ f (o )q (t < o )do
f (t ) g (t )
Continuous Filtering
fˆ (t ) gˆ (t )
gˆ (t ) = fˆ (t ) qˆ (t )
This means that the output sequence is a linear combination of shifted copies
of the input sequence.
This perspective provides perhaps the clearest explanation of why the Fourier
transform is a useful tool for analysing, designing and even implementing LTI
operators. In particular, the Fourier transform is essentially the only invertible
linear transform under which shifts become simple scale factors. Specically,
Using this property, together with equation (8) and linearity, we obtain
[
yˆ ($) = h [k] x̂ ($) ej$k
k
[
= x̂ ($) h [k] ej$k
k
discrete domain. Provided we sample the continuous signal below the Nyquist
limit and synthesize the continuous signal using sinc interpolation, or a suitable
approximation, the end-to-end system will be linear and time invariant and
we have full control over its properties through design of the discrete lters. A
digital lter with DTFT ĥ ($) has exactly the same eect as any continuous lter
whose Fourier transform qˆ ($) agrees with ĥ ($) over the interval $ 5 (, ). If
qˆ ($) happens to be Nyquist bandlimited also1 , then ĥ ($) and qˆ ($) are identical,
so that h [n] and q (t) are related through sampling and interpolation, just as
the signals themselves are.
1 Unfortunately, this is never the case when we start with a prototype analog design (e.g.,