Sensors and Signals Theory Handbook Week 4 Section 2.1
Sensors and Signals Theory Handbook Week 4 Section 2.1
2 Systems ........................................................................................................................................... 2
2.1 Lecture seven: LTI systems, impulse response and convolution ............................................ 2
2.1.1 Modelling systems .......................................................................................................... 2
2.1.2 LTI Systems ...................................................................................................................... 3
2.1.3 Example LTI systems ....................................................................................................... 4
2.1.4 Time domain Analysis ..................................................................................................... 5
2.1.5 The sifting property of the impulse function .................................................................. 6
2.1.6 Convolution ..................................................................................................................... 7
2.1.7 Comparison of Convolution and Cross - Correlation .................................................... 10
2.1.8 Solving systems in the time domain ............................................................................. 10
2.1.9 Solving in the frequency domain .................................................................................. 11
2 Systems
So far we have looked at modelling of signals and to complete our overall model we need to develop
models of the components which act on the signals – the systems.
signals
Components in
the same
Components
domain as
Transducer in the
measurand
or sensor electrical
e.g. optics,
domain
mechanical
parts
‘systems’
Often, we would like to have a model of our system such that it can be used to derive the output for
a given input signal; in other situations we might have input and output signals and want to
understand the system caused the relation.
Although it might seem trivial to describe the output in terms of the input, for most systems it isn’t
quite as easy as you might first think. In the next three lectures we will look at modelling a class of
systems known as Linear Time Invariant, or LTI, and see how the frequency domain can be a
powerful tool in solving problems.
2.1.2 LTI Systems
The class of systems we are going to consider are called ‘Linear Time Invariant’. Perhaps the most
significant properties of LTI systems are:
• Linearity
If input 𝑥1 (t) produces output 𝑦1 (𝑡), and input 𝑥2 (t) produces output 𝑦2 (𝑡),
• This is called SUPERPOSITION and is a really useful property as it means you can
break down you input signal into elements, consider the system response to those
elements individually, and then sum the outputs.
• Time invariance
If input 𝑥1 (t) produces output 𝑦1 (𝑡), then the same input at a different time,
𝑥1 (t + ∆𝑡) produces the same output, at a corresponding time, 𝑦1 (𝑡 + ∆𝑡)
• This is really saying that the system parameters do not change with time, just the
input and output.
• Homogeneity
If input 𝑥1 (t) gives output 𝑦1 (𝑡), then input 𝑛𝑥1 (t) will give output 𝑛𝑦1 (𝑡)
In practice this means that the constant term in differential expressions has to be zero
• Causal
As system is causal when the current output is a function of current or past inputs only
• Stability
To illustrate, let’s think of some equations that might describe a system and if they pass the LTI test.
If y is the output, and x is the input, which equations could represent linear systems?
1. 𝑦(𝑡) = 5𝑥(𝑡)
2. 𝑦(𝑡) = 5𝑥(𝑡) + 6
3. 𝑦(𝑡) = 𝑥 2 (𝑡)
4. 𝑦(𝑡) = ∫ 𝑥(𝑡) 𝑑𝑡
𝑑(𝑥(𝑡))
5. 𝑦(𝑡) =
𝑑𝑡
𝑑 2 (𝑥(𝑡)) 𝑑(𝑥(𝑡))
6. 𝑦(𝑡) = 𝑑𝑡 2
+ 𝑑𝑡
+ ∫ 𝑥(𝑡) 𝑑𝑡
• If our system has no ‘dynamics’, i.e. it is just a gain or scaling factor, then the output only
depends only on the current input. This case is simple to model.
• But we want to consider systems with dynamic behaviour – which is associated with systems
which can store energy (so anything with a spring, mass, capacitor, inductor etc.). In these
systems the output might respond slowly to the input and the action of a particular input
extends beyond the instant at which it was applied. At any moment our output will be a
function of present and past inputs.
We know that an LTI systems obeys superposition, so one approach to modelling a system is to
‘add up’ the contribution of inputs at various times.
The first step in time domain analysis is to understand how we approach the problem. We need to
find some unitary signal in the time domain for which we can describe the response of the system.
Then we describe our actual input signal as the sum of these unitary signals, and the output is the
sum of all the individual responses. For example:
x(t) y(t)
LTI
t
t
X(t) is the input to our system, y(t) is the output. If we make x(t) an impulse then the output, y(t) will
be the impulse response of our system. This special case of output we will term g(t) – the system
impulse response.
g(t)
t t t
The output will be the combined contribution of all the impulse responses. There is something
important to tease out here – the first ‘mind-bending’ bit, and that is the input and output signal and
the impulse response are all functions of time, but we don’t want these all to share a common time
axis variable (t). The impulse response needs a different argument that allows us to look backward
in time to see the contribution of past input; this variable still exists on the time axis. From the point
of view of the system the current time is always zero.
x(t) y(t)
LTI
g(t)
t t t
It is (hopefully) only a short stretch to suggest that if the magnitude of the input impulses change,
then so do the output components – remember this is an LTI system!
The question that the quicker of you will now be asking may be along the lines – ‘the input signal has
a bounded magnitude at any moment but the impulse (or Dirac delta function) has an infinite
amplitude. You are implying that the input signal can be represented by a set of delayed and
variable-amplitude impulses?’
Or
You should note that ‘t‘ and ‘τ’ are both variables operating along the same axis. Mathematically this
is relatively easy to think about, but if you want to give it physical context then ‘t’ is our time now, as
we would observe it, and ‘τ’ is our sliding time – looking backwards or forwards from where we are
now.
• The impulse (δ) function has a value that is zero everywhere except at 0, hence the integral
is zero everywhere except when t=τ
∞
• The impulse function has the property that its integral is 1. i.e. ∫−∞ 𝛿(𝑡)𝑑𝑡 = 1
• Hence when t=τ the integral returns the value of the signal at ‘t’
You might be thinking this looks quite pointless: why express the signal as the integral of weighted
impulse functions when we could just directly substitute ‘t’ into ‘x(t)’? – after all we need to know
the function ‘x’ to solve the integral anyway. But remember, all we wanted to show was that a signal
can be represented as the sum of impulse functions, not for it to be any use per-se. (but note that is
it useful for other things!).
Thus, using the definition of the sifting property we have shown that a signal can be represented by
series of weighted (scaled) impulse functions.
The other interesting aspect is that the sifting property integral is very similar to the convolution
integral we will look at next.
2.1.6 Convolution
Now that we have shown that our signal is a series of impulses, and we know the response of our
system to an impulse, we should be able to work out the output for any input – but be warned the
concept we have to use – convolution – can be hard to understand at first.
The integral describing convolution of ‘x’ with ‘g’ is:
Pay close attention to the arguments of the functions. Notice that the output is a function of time
and integral is over the variable τ (this is the opposite of the cross-correlation integrals we looked at
in lecture 1.5). And notice because the argument of the impulse response is (t-τ) and t is fixed (the
integral is over τ) this has the effect of ‘reversing’ the impulse response.
In words this integral is saying ‘the value at the instant in time now is the combined sum of all the
contributions from the current input and all the past inputs’.
Example
Let us consider a system with an input signal that starts at t = 0 and is a constant ‘3’. The impulse
response of our system is given by 𝑔(𝑡) = 1 − 𝑡⁄4, for 0<t<4
x(t) g(t)
3 1
0 t 0 t=4 t
We can work through the convolution integral and work out the output. In the example below you
can see the input signal at the top and the system output at the bottom; the steps in between are
illustrating how the value of the output for a particular value of time, T, is calculated. The section of
the convolution integral shown at each step is highlighted in red.
x(t) T 1) This is the input signal; we
3 are going to look at just one
instant in time, T.
0 t
x(τ)
3
2) 𝑦(𝑇) = ∫ 𝑥(𝜏)𝑔(𝑇 − 𝜏)𝑑𝜏
0 τ
g(T-τ) 1
3) 𝑦(𝑇) = ∫ 𝑥(𝜏)𝑔(𝑇 − 𝜏)𝑑𝜏
4 0 (T-τ)
T
3
x(τ)g(T-τ)
4) 𝑦(𝑇) = ∫ 𝑥(𝜏)𝑔(𝑇 − 𝜏)𝑑𝜏
T 4 0 (T-τ)
(xconv.g)(t)
6
5) 𝑦(𝑇) = ∫ 𝑥(𝜏)𝑔(𝑇 − 𝜏)𝑑𝜏
0 t
An important property to realise when trying to understand convolution is that the impulse response
is reversed in time because of how the argument is expressed. Some examples you will see, for
example in online resources, use symmetrical functions which mask this.
If you are still struggling with the concept then this common analogy might help:
Sometimes convolution is described a ‘windowing function’ where the input signal is ‘viewed’ through
the moving ‘window’ of the impulse response. If you want to push the analogy, think of sitting on a
train, facing backwards with a window adjacent to you. The scenery you pass is the input signal, the
window somewhat like the system response. Out of your window you will see the scenery you are
passing right now plus, into the distance, scenery that you past a few seconds ago. The convolution is
the aggregate picture.
2.1.7 Comparison of Convolution and Cross - Correlation
Both correlation and correlation use two variables operating on the time axis, we are using ‘t’ for our
normal time, and ‘τ’ for our ‘sliding’, or ‘offset’ into past/future time.
Correlation is a function of offset, ‘τ’, but the integral is over time, ‘t’. It is the sum of the product of
the functions over time, ‘t’, for various offsets, ‘τ’. The integral is solved for one value of offset, ‘τ’,
Convolution is a function of ‘t’, but the integral is over ‘τ’. The way the argument to ‘g’ is expressed
‘reverses’ the response. It is the sum of the product of the functions for over past times ‘τ’, at a
particular time, ‘t’. The integral is solved for one value of time, ‘t’
We have outlined some the steps needed to analyse systems in the time domain, but we have not
shown the important step of how to derive the impulse response.
In practice we have to start with the differential equations that describe the system. We can solve
these for a step input. The step response can them be differentiated to give the impulse response.
Once we have the impulse response we can then use convolution to solve for any input.
Differential equation
of system
Step response
differentiate
Impulse response
Convolution integral
Any input Output
If solving our LTI systems in the time domain sounds complicated, then you would be right! The
whole purpose of this lecture (alongside introducing the process convolution) was to illustrate just
how difficult it can be to calculate the output of even a simple system.
The solution to this is to solve in the frequency domain - In the frequency domain impulse functions
become transfer functions and convolution become multiplication
Time Frequency
X(t) X(s)
Laplace TF
Impulse Transfer
response function
Inverse Laplace
TF
Convolution Multiplication
2.1.10 Test yourself