Engineering Signals & Waves Guide
Engineering Signals & Waves Guide
Part B
Chris Russell
Centre for Vision, Speech and Signal Processing
BA Building, Room 12BA00
[email protected]
Content
• The importance of signals
• The decibel
B-2
• The smallest value of T that satisfies the above is called the period of the
signal T
V T V
t t
t t
B-4
2
sin t sin t 2 sin t
V T
B-5
B-6
• Since energy is the integral of the power, the units of signal energy
are volts squared times seconds (V2s)
B-7
• If the average power remains finite and non-zero, the signal x(t) is
called a power signal
/2
1
Pave lim
/ 2
x(t ) 2 dt
• If the total energy remains finite and non-zero, the signal x(t) is
called an energy signal
/ 2
E lim
/2
x(t ) 2 dt
B-8
Example 1
• For the “top hat” waveform shown, calculate the average power and
the total energy. Hence classify the signal as either a power signal
or an energy signal. x(t)
2
0 if t 3
x(t ) 2 if 3t 4 t=3 t=4 t
0 if 4t
B-9
Example 1 (continued)
• Average power:
3 4 /2
1 1 4
0dt 2 dt
2
0dt 0 4 0
/2 3 4
4 x(t)
Pave lim 0 2
t
• Total energy: / 2 t=3 t=4 /2
/2
3 4
0dt 2 dt 0dt 0 4 0 4
2
/2 3 4
E lim 4 4
• Because 4/τ tends to zero as τ tends to infinity, the average power is zero, so
it is not a power signal.
Example 2
• Calculate the average power and
total energy of the signal x(t) = cos 2πt V T=1s
B-11
Example 2 (continued)
• Average power:
nT nT
1 1
cos 2 t
2
2
x (t ) dt dt
nT 0
nT 0
nT 0
dt
2nT 0 1 cos 4 t dt
2nT 4 sin 4
t t
0
2nT 2
1 1 2
Pave lim V
N 2 2
• Total energy:
nT nT nT
1 1 1 nT
cos 2 t 0
2
dt 1 cos 4 t dt t sin 4 t
0
2 2 4 0 2
nT
E lim
N
2
• The total energy is infinite, and hence this is a power signal B-12
(b) Calculate the total energy and the average power of the signal
B-13
B-14
Signal classification
• A power signal has finite non-zero average power and infinite total
energy
• An energy signal has finite non-zero total energy and zero average
power
• A signal with infinite power and infinite energy is neither a power
signal nor an energy signal
• A signal cannot be both a power signal and an energy signal
B-15
Signal classification
• Usually a periodic signal is a power signal (like in Example 2). It
lasts "forever" and therefore has infinite energy.
V T=1s
t=3 t=4 t 0 1 t
B-16
• The energy transmitted per bit sent in a digital system affects the
bit error rate – for example in a satellite broadcast
B-18
Randomly
generated
signal:
Heartbeat:
Periodic but with
random components
B-19
0 if t 0
y (t ) t
e if 0t
Step function:
0 if t 0
y (t )
1 if 0t
B-20
Fourier series
Signal spectra
• We can build up complicated periodic signals as a sum of a series of
sine waves. This is composed of a fundamental frequency and
harmonics:
– Fundamental frequency: 1 / the period of the signal (or, the
frequency of a sine wave that has the same period as the
waveform under consideration)
– Harmonic: a frequency that is an integral multiple of the
fundamental frequency
• Note that the fundamental is also called the first harmonic of the
waveform under consideration
/s
x(t ) cost
B-24
/s
1
x(t ) cost cos3t
3
B-25
/s
1 1
x(t ) cost cos3t cos5t
3 5
B-26
/s
1 1 1
x(t ) cost cos3t cos5t cos7t
3 5 7
B-27
/s
1 1 1 1
x(t ) cost cos3t cos5t cos7t cos9t
3 5 7 9
B-28
/s
B-29
/ Hz
B-30
Triangle: fundamental
x(t ) cost
B-31
1
x(t ) cost cos3t
9
B-32
1 1
x(t ) cost cos3t cos5t
9 25
B-33
1 1 1
x(t ) cost cos3t cos5t cos7t
9 25 49
B-34
1 1 1 1
x(t ) cost cos3t cos5t cos7t cos9t
9 25 49 81
B-35
Sawtooth: fundamental
B-36
1
x(t ) sin t sin 2t
2
B-37
1 1
x(t ) sin t sin 2t sin 3t
2 3
B-38
1 1 1
x(t ) sin t sin 2t sin 3t sin 4t
2 3 4
B-39
1 1 1 1
x(t ) sin t sin 2t sin 3t sin 4t sin 5t
2 3 4 5
B-40
1 1 1 1 1
x(t ) sin t sin 2t sin 3t sin 4t sin 5t ... sin 9t
2 3 4 5 9
B-41
Effect of harmonics
- The graph obtained by summing the terms progressively
approaches the shape of the function as the number of terms
increases
- Discontinuous functions (e.g. square waves or sawtooth) have
slowly decaying Fourier coefficients, thus the series converges
slowly. This tends to produce ripples which increase in number
and, apart from the one nearest to any discontinuity, decrease in
amplitude
- Near discontinuities, the series tends to overshoot on one side
and undershoot on the other as more terms are added. This
produces some ringing effect and is known as Gibbs'
phenomenon
B-42
• Terminology:
– This expression is called the Fourier series expansion of f(t)
– a0, an and bn are called the Fourier coefficients
• The second and third terms have the value zero, since sine or cosine
integrated over a period (or n periods) are zero
(T = 2π/ω0 )
T
a a
f (t )dt 0 t T0 0 T
2 2
0
• Hence: T
2
a0
T f (t )dt
0 B-44
• And finally:
T
2
an
T f (t ) cos n0t dt
0
B-46
T
2
bn
T f (t ) sin n0t dt
0
B-47
Summary
A periodic waveform can be described as a sum of an infinite series of
sine and cosine waves:
a0
f (t ) an cos n0t bn sin n0t
2 n 1
T
where:
2 2
a0
T f (t )dt 0
T
0
T
2
an
T f (t ) cos n0t dt
0
T
2
bn
T f (t ) sin n0t dt
0
Note: the integral doesn’t have to be from 0 to T; it can be over any
B-48
whole period, for example –T/2 to +T/2.
T
2
a0
T f (t )dt
0
T
2 2nt
an
T f (t ) cos
T
dt
0
T
2 2nt
bn
T f (t ) sin
T
dt
0
B-49
B-50
B-51
• We need to plot both the amplitude and phase spectra in order to fully
characterise a signal in the frequency domain
4 1 1 1 1
x(t ) cost cos3t cos5t cos7t cos9t ...
3 5 7 9
B-53
4 1 1 1 1
x(t ) cost cos3t cos5t cos7t cos9t ...
3 5 7 9
Relative phase
of fundamental Relative phase of
frequency ϕ1=0 5th harmonic
ϕ5=0
B-54
(b) Draw the magnitude and phase plots of the frequency spectrum up to and
including the 5th harmonic
B-55
B-56
• We can combine the sine and cosine terms for each harmonic to obtain a
compact form of the trigonometric series:
a0
f (t ) cn cos(n0t n )
2 n 1
• Let's see how the amplitude and phase can be expressed as a function of the
an and bn coefficients
B-57
• Therefore an cn cos(n )
an2 bn2
bn cn sin(n ) -bn
ϕn
2 2 an
• It follows that: cn an bn
bn
and if an ≠ 0: n tan 1
B-58
a
n
Downloaded by Cyber City ([email protected])
lOMoARcPSD|7564228
• Find the Fourier series of the square wave with period T where:
T T
1 2
t
4
T T
f (t ) 1 t
4 4
T T
1 4
t
2
f T
+1
t B-60
-1
Downloaded by Cyber City ([email protected])
lOMoARcPSD|7564228
2 T 2 T 2 T
an sin n0t T 2
4
sin n0t T 4
4
sin n0t T 24
Tn0 Tn0 Tn0
Noting that ω0 = 2 π / T so ω0 T = 2 π
and 2 2 1
Tn0 2n n
n0T n2
sin sin sin n 0
2 2
n0T n2 n B-61
sin sin sin
4 4 2
Downloaded by Cyber City ([email protected])
lOMoARcPSD|7564228
1 n n n n
an sin 0 sin sin 0 sin
n 2 2 2 2
4 n
an sin
n 2
y = sin θ
y
4
n n 1, 5, 9,
θ
an 0 n even
4 π/2 π 3π/2 2π
n 3, 7, 11, 1π/2 2π/2 3π/2 4π/2
n
B-62
T T T
2 4
2 4
2 2
a0 (1) dt (1) dt (1) dt
T T T T T T
2 4 4
2 T 2 T 4 2 T
a0 t T t T t T 2
4
T 2 T 4 T 4
2 T T T T T T
a0 0
T 4 2 4 4 2 4
T T T
2 4
2 4
2 2
bn (1) sin n0t dt (1) sin n0t dt ( 1) sin n0t dt
T T T T T T
2 4 4
2 T 2 T 2 T
bn cos n0t T 42 cos n0t T 44 cos n0t T 24
Tn0 Tn0 Tn0
1 n n n n
bn cos cos n cos cos
cos n cos 0
n 2 2 2 2
B-64
4 1 1 1
f (t ) cos 0t cos 30t cos 50t cos 70t.... where ω0 = 2π/T
3 5 7
4
(1) n 1
f (t )
n 1 2n 1
cos(2n 1)0t
• Make sure you can see that these two expressions are equivalent!
B-65
y = sin θ
y
sin n 0 θ
π/2 π 3π/2 2π
y = cos θ
y
cos n (1) n θ
π/2 π 3π/2 2π
B-66
y = sin θ
y
n ( 1) ( n 1)/ 2
(n odd)
sin
2 0 (n even) θ
π/2 π 3π/2 2π
1π/2 2π/2 3π/2 4π/2
y = cos θ
y
n (1) n / 2 (n even)
cos
2 0 (n odd) θ
π/2 π 3π/2 2π
1π/2 2π/2 3π/2 4π/2
B-67
V T
t
B-69
t 0 t0 t
t03
t 0
t0 t
t03 B-70
-2π -π π 2π θ
• sin is odd
y y = sin θ
-2π -π π 2π θ
B-71
B-72
Example (1)
• Consider the signal shown. Without performing any detailed
calculations, what general comments can you make about the
frequency spectrum and Fourier series of the signal?
V (t)
B-73
B-74
• The dc component a0 is non-zero, because the waveform areas above and below y =
0 are different (“useful short cut 3”)
(a) y(t)
(b)
y(t)
-T/2 T/2
0 t t
0
-T/2 T/2
t -T 0 T t
-T/2 0 T/2
B-77
B-78
f(t)
a/2
t
0
-a/2
-T/2 T/2
B-80
• Before doing any calculation, let us check whether any of the shortcuts can
be used to identify any zero coefficients (and save ourselves some
unnecessary calculations!)
a0 0
an 0
B-81
ௗ௩
Integrating by parts with and , we obtain:
ௗ௧
T / 2
2a 1 2a 1
t cos n0t T / 2 2
T / 2
bn 2
T n0 T n0
T / 2
cos n0t dt
1 T
Noting that and cos n (1) n
0 2
2a T a
bn (1) n (1) n
T n 2 n
a
bn (1) n 1
n
B-83
a (1) n 1
f (t ) sin n0t where ω0 = 2π/T
n 1 n
B-84
(b) What is its period T? What is the angular frequency ω0 of its fundamental
frequency?
B-86
B-87
B-88
Application to communications:
signal and channel bandwidth
B-89
Signal bandwidth
• The bandwidth of a signal that contains lots of different frequencies
is the difference between its highest and lowest frequency
components
Channel bandwidth
• In communications we want to transmit signals from one place to
another along a channel. The channel can itself only support a
range of frequencies, the exact details depending on the transmission
medium. The bandwidth that can be used also depends on how good
the transmitter and receiver are, but with current technologies you
can typically get:
– Twisted pair cable: 0 to 109 Hz (depends on cable length)
– Coaxial cable: 0 to 1010 Hz
– Fibre optic cable: 1014 to 1016 Hz (bandwidth = 1016−1014 = 9.9 x
1015 Hz)
Information Information
Transmitter Channel Receiver
source destination
B-91
• Optical fibres have one of the highest bandwidths available (and can
support these high bandwidths over very long distances), and are
consequently used for high data volumes, for example transmitting
data through the “core” of the Internet
B-92
Question
What happens if I have a square wave of frequency f0=10kHz and I try
to transmit it along a cable with a channel bandwidth of 55 kHz (dc to
55kHz) ?
V T0= 0.1ms
+π/4
Signal:
t
-π/4
Spectrum:
B-93
Bandwidth of channel
Half-range series
t
T/2
• We can define the function arbitrarily outside this interval. In particular, we can
choose to define it such that it is periodic with period T. For example:
V
-T -T/2 T/2 T t
• Now that the extended function is periodic, we can calculate its Fourier series. The
series obtained will represent the original function only over the interval [0, T/2]
since we do not know the original function outside this interval. For this reason, it is
called a half-range Fourier series B-95
t
T/2
t
-T -T/2 T/2 T
• We know from the useful shortcuts that the function will contain only
cosine terms (and possibly a d.c. component). This is called a half-range
cosine series.
T /2 T /2
4 4
a0
T f (t )dt an
T f (t ) cos n0t dt bn 0
B-96
0 0
t
T/2
t
-T -T/2 T/2 T
• We know from the useful shortcuts that the function will contain only sine
terms (and no d.c. component). This is called a half-range sine series.
T /2
4
a0 a n 0 bn
T f (t ) sin n0t dt B-97
0
Half-range series
• Note how in the case of the cosine half-range series and the sine half-range
series, integration is performed over the interval [0, T/2] and how the
coefficient 2/T has been replaced by 4/T
(a) Draw the function over the interval [0,2] over which it is defined
B-99
B-100
B-101