UNIT 4: Digital Signal Processing (Based on Nov 2023 Exam)
1.0 Fundamentals of Discrete-Time Signals & Systems
1.1 Representation of Sequences
-
A discrete-time signal is represented as a sequence
x[n], wherenis an integer (time index). -
Length of a signal: For a sequence defined over
n₁ ≤ n ≤ n₂, its length isL = n₂ - n₁ + 1.Example:
x[n] = [2, -1, 5]for0 ≤ n ≤ 2has lengthL = 3.
1.2 Basic Signal Operations
-
Addition:
y[n] = x₁[n] + x₂[n](element-wise, requires same length/defined range). -
Multiplication:
y[n] = x₁[n] * x₂[n](element-wise).Example from Exam:
Given
g[n] = [-2, 1, 5](0≤n≤2),c[n] = [3.2, 41, 36, -9.5, 0](0≤n≤4).- Addition: Align indices.
y[0]=-2+3.2=1.2,y[1]=1+41=42,y[2]=5+36=41,y[3]=0+(-9.5)=-9.5,y[4]=0+0=0.
- Multiplication:
y[0]=(-2)(3.2)=-6.4,y[1]=(1)(41)=41,y[2]=(5)(36)=180,y[3]=0,y[4]=0.
- Addition: Align indices.
1.3 Classification of Discrete-Time Signals
-
Symmetry (w.r.t. n=0):
-
Even:
x[n] = x[-n]for alln. -
Odd:
x[n] = -x[-n]for alln.
-
-
Periodicity:
x[n]is periodic with periodNifx[n] = x[n+N]for alln, whereNis the smallest positive integer satisfying this. -
Energy & Power:
-
Energy Signal: Finite energy
E = Σ_{n=-∞}^{∞} |x[n]|² < ∞. Zero average power. -
Power Signal: Finite average power
P = lim_{N→∞} (1/(2N+1)) Σ_{n=-N}^{N} |x[n]|² < ∞. Infinite energy. -
Periodic signals are power signals; finite-duration non-zero signals are energy signals.
-
1.4 System Properties (LTI Focus)
-
Causality: An LTI system is causal if its output depends only on present and past inputs. For transfer function
H(z), causality requires ROC to be exterior of the outermost pole (for causalh[n]). -
Stability (BIBO): An LTI system is BIBO stable if every bounded input produces a bounded output. Necessary & Sufficient:
Σ_{n=-∞}^{∞} |h[n]| < ∞. For rationalH(z), stability requires ROC includes the unit circle (|z|=1). -
LTI System Representation: Output
y[n] = x[n] * h[n](convolution).
Exam Tip: To determine causality & stability from
H(z), first find poles. For a causal system, ROC is|z| > max|poles|. Check if this ROC includes|z|=1for stability.
2.0 Z-Transform and Its Applications
2.1 Definition & Region of Convergence (ROC)
-
Bilateral Z-Transform:
X(z) = Σ_{n=-∞}^{∞} x[n] z^{-n}. ROC is the set ofzwhere the sum converges (annular region in z-plane). -
Unilateral Z-Transform:
X(z) = Σ_{n=0}^{∞} x[n] z^{-n}. ROC is exterior of the outermost pole (including∞). -
ROC Properties: Cannot contain poles; for finite-length sequences, ROC is entire z-plane except possibly
z=0and/orz=∞.
2.2 Properties of Z-Transform (for causal signals)
| Property | Time Domain | Z-Domain | ROC |
|---|---|---|---|
| Linearity | a x₁[n] + b x₂[n] |
a X₁(z) + b X₂(z) |
Intersection of ROCs |
| Time Shifting | x[n-k] |
z^{-k} X(z) |
Same as X(z) |
| Time Reversal | x[-n] |
X(z^{-1}) |
Inverted ROC (1/r) |
| Convolution | x₁[n] * x₂[n] |
X₁(z) X₂(z) |
Intersection of ROCs |
| Differentiation | n x[n] |
-z dX(z)/dz |
Same as X(z) |
2.3 Inverse Z-Transform Methods
-
Power Series Expansion: Expand
X(z)asΣ x[k] z^{-k}. Coefficients givex[k]. Valid within ROC. -
Partial Fraction Expansion (PFE): For rational
X(z), expand into simpler terms. Use causal/anti-causal inverse based on ROC. -
Contour Integration (Residue Method):
x[n] = (1/(2πj)) ∮ X(z) z^{n-1} dz.
2.4 System Analysis using Z-Transform
-
Transfer function from difference equation: Take Z-transform (with zero initial conditions for causal system).
-
Stability Criterion: For a causal LTI system, all poles must lie inside the unit circle (|p| < 1). Equivalently, ROC must include the unit circle.
-
Causal vs. Anti-causal: From ROC and pole-zero plot.
-
Causal: ROC is exterior of outermost pole (
|z| > r₀).h[n]=0forn<0. -
Anti-causal: ROC is interior of innermost pole (
|z| < r₀).h[n]=0forn>0.
-
2.5 Z-Transform of Finite-Length Sequence (Exam Problem)
Given: x[n] = α^n for M ≤ n ≤ N-1, 0 otherwise.
Solution:
X(z) = Σ_{n=M}^{N-1} α^n z^{-n} = Σ_{n=M}^{N-1} (α/z)^n
This is a finite geometric series.
X(z) = (α/z)^M * [1 - (α/z)^{N-M}] / [1 - (α/z)] for α/z ≠ 1.
\boxed{X(z) = \frac{\alpha^M z^{-M} - \alpha^N z^{-N}}{1 - \alpha z^{-1}}}
ROC: Entire z-plane except z=0 and/or z=∞ (since finite duration). If α ≠ 0, ROC is 0 < |z| < ∞.
3.0 Frequency Domain Analysis: Fourier Transforms
3.1 Discrete-Time Fourier Transform (DTFT)
-
Definition:
X(e^{jω}) = Σ_{n=-∞}^{∞} x[n] e^{-jωn}. Periodic with period2π. -
Relationship to Z-Transform:
X(e^{jω}) = X(z) |_{z=e^{jω}}. DTFT is Z-transform evaluated on the unit circle.
3.2 Discrete Fourier Transform (DFT)
-
Definition (N-point): For a sequence
x[n]defined for0 ≤ n ≤ N-1:X[k] = Σ_{n=0}^{N-1} x[n] e^{-j(2π/N)kn},k = 0, 1, ..., N-1. -
Inverse DFT (IDFT):
x[n] = (1/N) Σ_{k=0}^{N-1} X[k] e^{j(2π/N)kn}. -
Relationship to DTFT: DFT is a sampled version of DTFT:
X[k] = X(e^{jω}) |_{ω = 2πk/N}. -
Computation (Exam Problem): For
x[n] = δ[n](1 at n=0, 0 for 1≤n≤N-1):X[k] = Σ_{n=0}^{N-1} δ[n] e^{-j(2π/N)kn} = e^{0} = 1for allk.\boxed{X[k] = 1, \quad k = 0, 1, ..., N-1}
3.3 Fast Fourier Transform (FFT) - Conceptual
-
Need: Direct DFT computation requires
O(N²)operations. FFT reduces toO(N log₂ N). -
Key Idea: Divide-and-conquer (e.g., Cooley-Tukey).
-
Types:
-
Decimation-in-Time (DIT): Input sequence is split into even/odd indexed samples.
-
Decimation-in-Frequency (DIF): Output sequence is split into even/odd indexed frequencies.
-
4.0 Orthogonal Transforms
4.1 General Concept of Orthogonal Transform
For a length-N real sequence x[n], an orthogonal transform produces coefficients X[k]:
X[k] = Σ_{n=0}^{N-1} x[n] · φ_k[n], k=0,...,N-1
where {φ_k[n]} is a set of orthogonal basis vectors.
-
Orthogonality:
Σ_{n=0}^{N-1} φ_k[n] φ_m[n] = 0fork ≠ m. -
Inverse Transform:
x[n] = (1/N) Σ_{k=0}^{N-1} X[k] · φ_k[n]. -
Parseval's Theorem (Energy Preservation):
Σ_{n=0}^{N-1} |x[n]|² = (1/N) Σ_{k=0}^{N-1} |X[k]|².
4.2 Specific Transforms (Brief)
-
DFT: Basis vectors are complex exponentials
φ_k[n] = e^{j(2π/N)kn}. Orthogonal but not orthonormal (energy scaling factorN). -
Discrete Cosine Transform (DCT): Uses only cosines, real-valued, excellent for energy compaction (JPEG, MP3).
-
Walsh-Hadamard Transform (WHT): Basis vectors are
±1square waves. Computationally simple.
5.0 Digital Filter Structures & Realization
5.1 FIR Filter Structures
-
Direct Form (Transversal):
y[n] = Σ_{k=0}^{M} b_k x[n-k]. Simple,Mmultipliers,Mdelays. -
Cascade Form:
H(z) = Π_{i=1}^{K} H_i(z). EachH_i(z)often a second-order section. Improves numerical stability.
5.2 IIR Filter Structures
-
Direct Form I: Separate FIR and IIR sections.
2Mmultipliers (for order M),2Mdelays. -
Direct Form II (Canonical): Shares delay elements. Minimum number of delays (
M).Mmultipliers for feedback,Mfor feedforward.Block Diagram (Standard):
x[n] -->[b0]--+
|(+)--> y[n]| |[b1]--[z⁻¹]--+| |(+)------+| |[b2]--[z⁻¹]--+: :: :(-)------+| |[-a1]--[z⁻¹]--+| |(+)------+| |[-a2]--[z⁻¹]--+ -
Cascade Form:
H(z) = Π_{i=1}^{K} (b_{0i} + b_{1i}z^{-1} + b_{2i}z^{-2}) / (1 + a_{1i}z^{-1} + a_{2i}z^{-2}). Each section is a biquad. -
Parallel Form:
H(z) = Σ_{i=1}^{K} (c_i + d_i z^{-1}) / (1 + a_{1i}z^{-1} + a_{2i}z^{-2}). -
Lattice Structure: Good for quantization analysis, used in speech coding.
5.3 Realization Example (Direct Form II)
Given: H(z) = (0.44z² + 0.362z + 0.02) / (z² + 0.4z + 0.18z - 0.2).
Note: Denominator appears misprinted in exam (0.4z² likely 0.4z). Assuming standard form: H(z) = (0.44z² + 0.362z + 0.02) / (z² + 0.4z + 0.18z - 0.2) is inconsistent. Let's assume correct form is:
H(z) = (0.44z² + 0.362z + 0.02) / (z² + 0.4z - 0.2)? Or (0.44z² + 0.362z + 0.02) / (z² + 0.4z + 0.18)? The exam has +0.18z -0.2. Let's use as written but normalize by dividing numerator and denominator by z²:
H(z) = (0.44 + 0.362z^{-1} + 0.02z^{-2}) / (1 + 0.4z^{-1} + 0.18z^{-1} - 0.2z^{-2}) -> still inconsistent. Best approach for exam: Write in standard Direct Form II form y[n] = b₀x[n] + b₁x[n-1] + b₂x[n-2] - a₁y[n-1] - a₂y[n-2].
From H(z) = (0.44z² + 0.362z + 0.02) / (z² + 0.4z + 0.18z - 0.2), the denominator likely is z² + 0.4z + 0.18? The -0.2 might be a constant term. Let's assume:
H(z) = (0.44z² + 0.362z + 0.02) / (z² + 0.4z + 0.18) is plausible. Then:
b₀=0.44, b₁=0.362, b₂=0.02; a₀=1, a₁=0.4, a₂=0.18.
Direct Form II Realization:
-
Two delay elements (
z⁻¹). -
Feedback path:
-a₁ = -0.4,-a₂ = -0.18. -
Feedforward path:
b₀=0.44,b₁=0.362,b₂=0.02. -
Summation nodes as per standard block diagram.
5.4 Reducing Multipliers
-
FIR Linear Phase: For symmetric/anti-symmetric coefficients (
h[n]=h[M-n]orh[n]=-h[M-n]), number of multipliers ≈(M+2)/2(about half). -
IIR Cascade/Parallel: Can share multipliers between sections if coefficients are reused.
-
Exploiting Zero Coefficients: Skip multipliers for zero-valued coefficients.
6.0 Advanced Topics & Applications
6.1 Optimal Filtering
-
Concept: Design a filter that minimizes a cost function (e.g., mean-square error between desired and actual output).
-
Wiener Filter: Optimal in mean-square sense for filtering noisy signals. Two types:
-
Wiener Filter for Signal Estimation: Estimates a desired signal
d[n]from an observed signalx[n]. -
Wiener Filter for Noise Cancellation: Uses a reference noise signal to cancel noise from primary signal.
Example: Noise cancellation in ECG:
x₁[n] = s[n] + n₁[n](primary),x₂[n] = n₂[n](reference, correlated withn₁). Wiener filter estimatesn₁[n]fromx₂[n]and subtracts. -
6.2 Random Processes
-
Strict Sense Stationary (SSS): All statistical properties (pdf, moments) invariant to time shift.
p(x[t₁],...,x[tₖ]) = p(x[t₁+τ],...,x[tₖ+τ])for allτ. -
Wide Sense Stationary (WSS): Weaker condition:
-
Constant mean:
E[x[n]] = μ_x(independent ofn). -
Autocorrelation depends only on lag:
R_x[m] = E[x[n] x^*[n-m]].
-
-
Significance in DSP: Many signal processing theorems (e.g., Wiener-Khintchine) assume WSS. Optimal filters (Wiener) are derived for WSS signals.
6.3 Filter Design Methods (Short Notes Scope)
-
Window Method:
-
Start with ideal impulse response
h_d[n](e.g., ideal low-pass). -
h_d[n]is infinite and non-causal. -
Apply a window
w[n](e.g., Hamming, Hanning) to obtain a finite, causal sequence:h[n] = h_d[n] w[n]. -
Trade-off: Main lobe width (transition band) vs. side lobe level (ripple).
-
-
Parks-McClellan (Remez) Algorithm:
-
Designs optimal equiripple FIR filters in the minimax sense (minimize maximum error).
-
Alternation theorem: Error alternates between
+δand-δat(L+2)/2frequencies (for orderL). -
Iterative algorithm to find filter coefficients that satisfy this condition.
-
Superior to window method: sharper transition for same order, controlled ripple.
-
6.4 General Applications of DSP
-
Speech/Audio: Compression (MP3), noise reduction, recognition.
-
Image/Video: Compression (JPEG, MPEG), enhancement, analysis.
-
Radar/Sonar: Target detection, tracking, beamforming.
-
Communications: Modulation/demodulation, equalization, channel coding.
-
Biomedical: ECG/EEG analysis, MRI, hearing aids.
-
Consumer Electronics: Mobile phones, digital cameras, music players.
Key Exam-Centric Formulas & Results
| Concept | Formula / Result |
|---|---|
| Z-Transform (Finite) | X(z) = (α^M z^{-M} - α^N z^{-N}) / (1 - α z^{-1}) |
| Stability (Causal LTI) | All poles inside unit circle (` |
| N-point DFT of δ[n] | X[k] = 1 for all k |
| Parseval's Theorem | `Σ |
| Wiener Filter Goal | Minimize `E[ |
Final Reminder: For Direct Form II realization, always:
- Write transfer function in negative powers of
z(standard form).
- Identify
b_k(feedforward) anda_k(feedback, witha₀=1).
- Draw block diagram with shared delays (minimum
Mdelays for orderM).