report_SP (2)
report_SP (2)
Summer of Science
Signal Processing
1 Complex Analysis
1.1 Introduction to Complex Analysis
Complex analysis studies functions of complex variables, focusing on analyticity,
where functions satisfy the Cauchy-Riemann equations:
∂u ∂v ∂u ∂v
= , =−
∂x ∂y ∂y ∂x
Key results include the Cauchy Integral Theorem:
I
f (z) dz = 0
γ
where f (z) is a meromorphic function within and on a simple closed contour γ, and
Res(f, ak ) is the residue of f at ak .
2
Figure 1: Residue Theorem
1.2.1 Example
Consider the integral:
ez
Z
dz (2)
|z|=2 z2 + 1
The poles of the integrand are at z = ±i. Only z = i is within the contour |z| = 2.
The residue at z = i is: z
ei
e
Res , i = (3)
z2 + 1 2i
Thus,
ez ei
Z
2
dz = 2πi · = πei (4)
|z|=2 z +1 2i
This example illustrates how the residue theorem simplifies complex integral evalu-
ations.
• x(t) = cos(2πt)
3
Figure 2: Continuous and Discrete signals
• x[n] = u[n], where δ[n] is the Kronecker delta function and u[n] is the discrete
unit step function.
• Step Signal (u(t) or u[n]): Zero for negative time and one for positive time.
• Additivity:
S[x1 (t) + x2 (t)] = S[x1 (t)] + S[x2 (t)]
• Homogeneity:
S[a · x(t)] = a · S[x(t)]
4
• Combined Linearity:
S[a · x1 (t) + b · x2 (t)] = a · S[x1 (t)] + b · S[x2 (t)]
Figure 3: Linearity
2. Time-Invariance
A system S is time-invariant if a time shift in the input signal results in an identical
time shift in the output signal.
• For an input x(t) producing output y(t):
S[x(t)] = y(t)
3. Causality
A system S is causal if the output at any time t depends only on the input at the
current or past times, not future times.
• Mathematically:
y(t) = S[x(t)] depends only on x(t′ ), for t′ ≤ t
4. Stability
A system S is stable if bounded inputs produce bounded outputs. This is also known
as BIBO (Bounded Input, Bounded Output) stability.
• If x(t) is bounded, i.e.:
|x(t)| ≤ M for all t
• Then the output y(t) must also be bounded, i.e.:
|y(t)| ≤ N for all t
5
Figure 4: Time-Invariance
5. Memory
A system S has memory if the output at any time t depends on past and/or future
values of the input. It is memoryless if the output at any time t depends only on
the input at that same time.
• Memoryless system:
y(t) = f (x(t))
h(t) = S[δ(t)]
For any input x(t), the output y(t) can be obtained by convolving x(t) with the
impulse response h(t):
Z ∞
y(t) = (x ∗ h)(t) = x(τ )h(t − τ ) dτ
−∞
6
Figure 5: LTI System
In the discrete-time domain, the impulse response h[n] is defined similarly, where
the system’s output to a discrete delta function δ[n] is:
h[n] = S[δ[n]]
The output y[n] for a discrete input x[n] is given by the discrete convolution:
∞
X
y[n] = (x ∗ h)[n] = x[k]h[n − k]
k=−∞
The impulse response thus serves as a foundational tool in analyzing and design-
ing LTI systems.
4.2.1 Example
Consider a system with impulse response h(t) = e−t u(t) and input x(t) = u(t). The
output is: Z t
y(t) = e−τ dτ = 1 − e−t (5)
0
7
Figure 6: Impulse Response
where F denotes the Fourier transform, and X(f ) and H(f ) are the Fourier
transforms of x(t) and h(t), respectively.
8
4.4 Properties of Convolution
1. Commutativity
Convolution is commutative, meaning the order of the signals does not affect the
result:
(y ∗ h)(t) = (h ∗ y)(t)
(y ∗ h)[n] = (h ∗ y)[n]
2. Associativity
Convolution is associative, allowing grouping of convolutions in any order:
(y ∗ (h ∗ g))(t) = ((y ∗ h) ∗ g)(t)
(y ∗ (h ∗ g))[n] = ((y ∗ h) ∗ g)[n]
3. Distributivity
Convolution is distributive over addition, so the convolution of a signal with the
sum of two signals is the sum of the convolutions:
y ∗ (h + g) = (y ∗ h) + (y ∗ g)
y ∗ (h + g) = (y ∗ h) + (y ∗ g)
4. Identity Element
The delta function δ(t) in continuous time and δ[n] in discrete time acts as the
identity element for convolution:
y(t) ∗ δ(t) = y(t)
y[n] ∗ δ[n] = y[n]
5. Time Invariance
If y(t) and h(t) are time-invariant, their convolution y ∗ h is also time-invariant:
y(t − t0 ) ∗ h(t − t0 ) = (y ∗ h)(t − t0 )
y[n − n0 ] ∗ h[n − n0 ] = (y ∗ h)[n − n0 ]
9
Figure 8: More on convolution
where ω0 = 2πT
is the fundamental angular frequency, and ck are the Fourier coeffi-
cients given by:
1 T
Z
ck = x(t)e−jkω0 t dt (7)
T 0
5.1.1 Example
For a square wave x(t) with period T and amplitude 1, the Fourier coefficients are:
Z T /2
1 −jkω0 t 2 πk
ck = sgn(t)e dt = sin (8)
T −T /2 πk 2
10
Figure 9: Fourier Series
6 Fourier Transform
6.1 Introduction
The Fourier transform generalizes the Fourier series to non-periodic signals, provid-
ing a representation in the frequency domain. The Fourier transform of a continuous-
time signal x(t) is: Z ∞
X(f ) = x(t)e−j2πf t dt (10)
−∞
The inverse Fourier transform is:
Z ∞
x(t) = X(f )ej2πf t df (11)
−∞
6.1.1 Example
For x(t) = e−at u(t) with a > 0, the Fourier transform is:
Z ∞
1
X(f ) = e−at e−j2πf t dt = (12)
0 a + j2πf
11
6.2 Properties of the Fourier Transform
• Linearity: F{ax1 (t) + bx2 (t)} = aX1 (f ) + bX2 (f )
• Scaling: F{x(at)} = 1 f
|a|
X a
7.1.1 Example
1
H(f ) = (13)
1 + j2πf RC
7.2 Modulation
Modulation involves varying a carrier signal to transmit information. The Fourier
transform helps analyze the spectrum of modulated signals. For amplitude modu-
lation (AM), a signal x(t) modulates a carrier cos(2πfc t):
The Fourier transform of s(t) shows the signal components at fc and −fc .
7.2.1 Example
If x(t) is a low-frequency signal, the spectrum S(f ) of the modulated signal s(t) will
have components around fc and −fc , making it suitable for transmission over long
distances.
12
Week 4: Laplace Transforms and System Analysis
8 Laplace Transform
8.1 Introduction
The Laplace transform is a powerful tool for analyzing linear time-invariant systems.
It extends the Fourier transform to complex frequencies and is defined as:
Z ∞
X(s) = L{x(t)} = x(t)e−st dt (15)
0
8.1.1 Example
For x(t) = e−at u(t) with a > 0, the Laplace transform is:
Z ∞
1
X(s) = e−at e−st dt = , Re(s) > −a (16)
0 s+a
9.1.1 Example
Consider a system described by the differential equation:
d2 y(t) dy(t)
+ 3 + 2y(t) = x(t) (18)
dt2 dt
Taking the Laplace transform of both sides and solving for Y (s):
s2 Y (s) + 3sY (s) + 2Y (s) = X(s) (19)
13
X(s) X(s)
Y (s) = = (20)
s2 + 3s + 2 (s + 1)(s + 2)
Thus, the transfer function is:
1
H(s) = (21)
(s + 1)(s + 2)
9.2.1 Example
1
For the transfer function H(s) = (s+1)(s+2)
, the poles are at s = −1 and s = −2.
There are no zeros.
10.2.1 Example
1
For H(s) = (s+1)(s+2)
, the frequency response is:
1
H(jω) = (23)
(jω + 1)(jω + 2)
14
Week 5: Sampling and Discrete-Time Signals
11 Sampling Theorem
11.1 Introduction
The sampling theorem states that a continuous-time signal x(t) can be completely
represented by its samples if it is band-limited and the sampling rate is at least twice
the maximum frequency of the signal (Nyquist rate).
11.1.1 Example
Consider a signal x(t) with a maximum frequency of 500 Hz. According to the
sampling theorem, the sampling rate should be at least 1000 samples per second
(Hz).
11.2 Aliasing
Aliasing occurs when a signal is undersampled, causing different frequency compo-
nents to become indistinguishable. To avoid aliasing, a low-pass filter (anti-aliasing
filter) is used before sampling.
11.2.1 Example
If a 500 Hz signal is sampled at 800 Hz, aliasing will occur, and the sampled signal
will not accurately represent the original signal.
15
12.1.1 Example
12.2.1 Example
13 Z-Transform
13.1 Introduction
The Z-transform is a powerful tool for analyzing discrete-time signals and systems.
It is defined as:
X∞
X(z) = Z{x[n]} = x[n]z −n (26)
n=−∞
13.1.1 Example
16
14 System Analysis Using Z-Transform
14.1 Transfer Function
The transfer function H(z) of a discrete-time system is the Z-transform of its impulse
response h[n]:
H(z) = Z{h[n]} (29)
For a system described by a linear difference equation, the transfer function provides
a straightforward way to analyze the system’s behavior.
14.1.1 Example
Consider a system described by the difference equation:
y[n] − 0.5y[n − 1] = x[n] (30)
Taking the Z-transform of both sides and solving for Y (z):
Y (z) − 0.5z −1 Y (z) = X(z) (31)
X(z) X(z)z
Y (z) = = (32)
1 − 0.5z −1 z − 0.5
Thus, the transfer function is:
z
H(z) = (33)
z − 0.5
14.2.1 Example
z
For the transfer function H(z) = z−0.5
, there is a zero at z = 0 and a pole at z = 0.5.
17
15.2.1 Example
z
For H(z) = z−0.5
, the frequency response is:
ejω
H(ejω ) = (35)
ejω − 0.5
This can be analyzed to understand the system’s behavior at various frequencies.
18