_ Signals and Systems may 2023.pdf
_ Signals and Systems may 2023.pdf
The even and odd parts of the signal x(t) can be sketched as follows:
Formulas
Even part:
x<sub>e</sub>(t) = 1/2[x(t) + x(-t)]
Odd part:
1. 1. Reflect x(t):
Reflect the signal x(t) across the y-axis to obtain x(-t).
3. 3. Scale by 1/2:
Multiply the result by 1/2.
The even part, x<sub>e</sub>(t), will be a rectangular pulse of amplitude 1/2, extending from -a to
a.
3. 3. Scale by 1/2:
Multiply the result by 1/2.
Absolutely! Let's break down how to find the Fourier series representation of the discrete-time signal
x(n) = 2cos(√3πn).
1. Periodicity Check:
o For the signal to be periodic, √3πn must be a rational multiple of 2π. In other words,
√3π/2π = √3/2 must be a rational number.
Consequences of Non-Periodicity
No DTFS: Since x(n) is not periodic, it does not have a Discrete-Time Fourier Series (DTFS)
representation. What if the signal was periodic?
If the signal were periodic (e.g., x(n) = 2cos(πn/3)), you would follow these steps:
1. Find the Period (N): Determine the smallest integer N for which x(n + N) = x(n).
2. Calculate the Fundamental Frequency (ω₀): ω₀ = 2π/N.
In summary, the signal x(n) = 2cos(√3πn) is not periodic and therefore does not have a DTFS
representation
D) Write a note on bilinear transformation used in filter design
Absolutely! Let's discuss the bilinear transformation, a crucial technique in digital filter design.
The bilinear transformation is a mathematical mapping used to convert an analog filter's transfer
function, H(s), into a digital filter's transfer function, H(z). It allows us to leverage well-established
analog filter design techniques (like Butterworth, Chebyshev, and Elliptic filters) to create digital
filters.
The Transformation
The core of the bilinear transformation lies in the substitution:
1. Mapping the Entire s-plane to the z-plane: The bilinear transformation maps the entire left-
half of the s-plane (stable analog filters) to the inside of the unit circle in the z-plane (stable
digital filters). This ensures stability is preserved during the transformation.
2. No Aliasing: Unlike some other methods (like impulse invariance), the bilinear
transformation avoids aliasing. This is because it maps the entire imaginary axis (analog
frequency) onto the unit circle (digital frequency) without overlap.
3. One-to-One Mapping: Each point in the s-plane maps to a unique point in the z-plane, and
vice versa.
2. ω = 2 * arctan(ΩT/2)
This warping needs to be accounted for during the design process, especially when dealing with
filters with specific cutoff frequencies.
3. Non-Linear Phase: The bilinear transformation generally does not preserve linear phase
characteristics. If linear phase is critical, other techniques might be more suitable.
Design Procedure
1. Specify Digital Filter Requirements: Define the desired filter characteristics (cutoff
frequencies, passband ripple, stopband attenuation) in the digital domain.
2. Pre-Warp Critical Frequencies: Calculate the corresponding analog frequencies using the
inverse of the warping equation:
3. Ω = (2/T) * tan(ω/2)
4. Design the Analog Filter: Design an analog filter (Butterworth, Chebyshev, Elliptic) that
meets the pre-warped requirements.
5. Apply Bilinear Transformation: Substitute the bilinear transformation expression for 's' into
the analog filter's transfer function H(s) to obtain the digital filter's transfer function H(z).
6. Implement the Digital Filter: Implement the H(z) transfer function using a suitable digital
filter structure (e.g., direct form, cascade form).
Applications
The bilinear transformation is widely used in various digital signal processing applications, including:
Image Processing: Designing filters for image enhancement and noise reduction.
In summary, the bilinear transformation is a powerful and widely used technique for converting
analog filters into digital filters. It offers advantages like stability preservation and no aliasing, but
requires careful consid
Q 2 a) State whether the following system is linear, causal, time-invariant and stable
y(n)=nx(n)+x(n+2)+y(n-2)
1. Linearity
A system is linear if it satisfies the superposition principle:
Homogeneity: If y1(n) is the output for x1(n), then ay1(n) is the output for ax1(n) (where 'a'
is a constant).
Additivity: If y1(n) is the output for x1(n) and y2(n) is the output for x2(n), then y1(n) + y2(n)
is the output for x1(n) + x2(n).
Let's test:
y3(n) = n[ax1(n) + bx2(n)] + [ax1(n+2) + bx2(n+2)] + y3(n-2) y3(n) = a[nx1(n) + x1(n+2)] + b[nx2(n) +
x2(n+2)] + y3(n-2)
For linearity, we need y3(n) = ay1(n) + by2(n). Let's check:
ay1(n) + by2(n) = a[nx1(n) + x1(n+2) + y1(n-2)] + b[nx2(n) + x2(n+2) + y2(n-2)] ay1(n) + by2(n) =
a[nx1(n) + x1(n+2)] + b[nx2(n) + x2(n+2)] + ay1(n-2) + by2(n-2)
For linearity, we need y3(n-2) = ay1(n-2) + by2(n-2). This is true because the system is recursive.
A system is causal if the output y(n) depends only on present and past inputs, not future inputs.
In the given equation:
Since the system depends on x(n+2), which is a future input, the system is non-causal.
3. Time-Invariance
A system is time-invariant if a time shift in the input results in the same time shift in the output.
Let's test:
A system is stable (BIBO - Bounded Input Bounded Output) if a bounded input produces a bounded
output.
Summary
Linear: Yes
Causal: No (non-causal)
Time-Invariant: No (time-variant)
Stable: No (unstable)
Recall that the Z-transform of y(n) is Y(z), the Z-transform of x(n) is X(z), and the Z-transform of y(n-k)
is z^(-k)Y(z).
The transfer function H(z) is defined as the ratio of the Z-transform of the output Y(z) to the Z-
transform of the input X(z):
Therefore:
H(z) = 1 / (1 - 0.5z^(-1))
Final Answer
The transfer function H(z) of the system y(n) - 0.5y(n-1) = x(n) is:
(ii) Determine whether the given signals are periodic or not, if periodic find the fundamental period.
A) ( ) B) x ( ) = 3 cos(4 ) + 2 sin(
Absolutely! Let's analyze the periodicity of these signals.
A) sin(1.2πt)
1. General Form: The general form of a sinusoidal signal is sin(ωt), where ω is the angular
frequency.
o T = 2π / (1.2π) = 2 / 1.2 = 20 / 12 = 5 / 3
Therefore, T = 5/3.
Conclusion:
1. Component Periods:
2. Ratio of Periods: To determine if the sum of two periodic signals is periodic, we need to
check if the ratio of their periods is a rational number.
o T1 / T2 = (π/2) / 2 = π/4
3. Rationality:
o π is an irrational number.
Conclusion:
Periodic: No, the signal is not periodic because the ratio of the periods of its components is
irrational.
Summary
A) sin(1.2πt): Periodic, with a fundamental period of 5/3.
B) 3cos(4t) + 2sin(πt): Not periodic.
Let's break down how to show that the given equation is satisfied for a linear-phase FIR filter.
Symmetry: Linear-phase FIR filters have impulse responses that are either symmetric (even
symmetry) or anti-symmetric (odd symmetry) around their midpoint.
Group Delay: Linear-phase filters have a constant group delay (τ), meaning all frequency
components of the signal are delayed by the same amount.
There are four types of linear-phase FIR filters, based on symmetry and length:
1. Type 1: Symmetric, odd length (M is odd)
Derivation
1. Frequency Response: The frequency response H(ω) of an FIR filter with impulse response
h(n) is given by:
3. Linear Phase: For a linear-phase FIR filter, the frequency response can be expressed as:
where:
5. Substituting: Substitute the expression for H(ω) into the first equation:
9. Separating Real and Imaginary Parts: Equate the real and imaginary parts of the equation:
14. Expanding sin(ωτ - ωn): Use the trigonometric identity sin(a - b) = sin(a)cos(b) - cos(a)sin(b):
16. Distributing:
17. Σ[n=0 to M-1] h(n)sin(ωτ)cos(ωn) - Σ[n=0 to M-1] h(n)cos(ωτ)sin(ωn) = 0
18. Factoring:
22. Simplifying:
24. Result:
25. 0 = 0
Conclusion
Therefore, the equation Σ[n=0 to M-1] h(n)[sin(ωτ - ωn)] = 0 is satisfied for a linear-phase FIR filter.
This is a direct result of the symmetry properties of the impulse response and the constant group
delay of linear-phase filters
Let's calculate the trigonometric Fourier series expansion of the waveform shown in the image.
3. Symmetry: The waveform is an even function, meaning x(t) = x(-t). This implies that the
Fourier series will only have cosine terms (bn = 0).
where:
1. Fundamental Frequency:
o T = 2π
o ω0 = 2π / 2π = 1
2. a0 (DC Component):
o a0 = (A / π) * [2sin(t/2)] [-π to π]
o a0 = (2A / π) * [1 - (-1)] = 4A / π
3. an (Cosine Coefficients):
o n = 1:
a1 = (A / π) * (-2/3 + 2) = (A / π) * (4/3) = 4A / 3π
o n ≠ 1:
sin((1/2 + n)π) = (-1)^n
Final Answer
H(z) = [z^2 - 3z] / [z^2 - (9/4)z + 1/2] = [z^2 - 3z] / [(z - 2)(z - 1/4)]
Poles: The poles of H(z) are the roots of the denominator:
z1 = 2 z2 = 1/4
ROC for Stability:
For a system to be stable, the ROC must include the unit circle (|z| = 1). Since we have poles at z = 2
and z = 1/4:
o |z1| = 2 > 1
The ROC for stability is: 1/4 < |z| < 2 (an annular region).
ROC for Causality:
For a system to be causal, the ROC must be outside the outermost pole. In this case, the outermost
pole is z = 2.
The ROC for causality is: |z| > 2.
Inverse Z-transform:
o For the pole at z = 2, since the ROC is |z| < 2 in this region, the inverse Z-transform
corresponds to a left-sided sequence: (-4/7) * (-2)^n * u(-n-1)
o For the pole at z = 1/4, since the ROC is |z| > 1/4, the inverse Z-transform
corresponds to a right-sided sequence: (11/7) * (1/4)^n * u(n)
Inverse Z-transform:
o For the pole at z = 2, since the ROC is |z| > 2, the inverse Z-transform corresponds to
a right-sided sequence: (-4/7) * 2^n * u(n)
o For the pole at z = 1/4, since the ROC is |z| > 2, the inverse Z-transform corresponds
to a right-sided sequence: (11/7) * (1/4)^n * u(n)
Summary
ROC for Stability: 1/4 < |z| < 2
Let's find the convolution of the sequences x1(n) and x2(n) using the Z-transform convolution
property.
Given Sequences
x1(n) = (1/3)^n * u(n)
Z-transform of x1(n):
Z-transform of x2(n):
X2(z) = Z[(1/5)^n * u(n)] = z / (z - 1/5) (|z| > 1/5)
Convolution Property
The convolution of two sequences in the time domain corresponds to the multiplication of their Z-
transforms in the z-domain:
Y(z) = X1(z) * X2(z) = [z / (z - 1/3)] * [z / (z - 1/5)] Y(z) = z^2 / [(z - 1/3)(z - 1/5)]
To find the inverse Z-transform, we need to perform partial fraction decomposition on Y(z)/z:
Therefore:
Y(z)/z = (5/2) / (z - 1/3) - (3/2) / (z - 1/5) Y(z) = (5/2)z / (z - 1/3) - (3/2)z / (z - 1/5)
Inverse Z-Transform
Let's perform the Inverse Discrete Fourier Transform (IDFT) using the matrix method for the given
signal X(k) = {1, 0, 1, 0}.
The IDFT matrix method involves multiplying the IDFT matrix [Wnk] with the given DFT coefficients
X(k).
Steps
1. Determine N: The length of X(k) is N = 4.
o W01 = e^(j0) = 1
o W02 = e^(j0) = 1
o W03 = e^(j0) = 1
o W10 = e^(j0) = 1
o W11 = e^(jπ/2) = j
o W12 = e^(jπ) = -1
o W13 = e^(j3π/2) = -j
o W20 = e^(j0) = 1
o W21 = e^(jπ) = -1
o W22 = e^(j2π) = 1
o W23 = e^(j3π) = -1
o W30 = e^(j0) = 1
o W31 = e^(j3π/2) = -j
o W32 = e^(j3π) = -1
o W33 = e^(j9π/2) = j
[Wn*k*] = (1/4) * [ 1 1 1 1 ]
[ 1 j -1 -j ]
[ 1 -1 1 -1 ]
[ 1 -j -1 j ]
6. [ 1 j -1 -j ] [ 0 ]
7. [ 1 -1 1 -1 ] [ 1 ]
8. [ 1 -j -1 j ] [ 0 ]
9. x(n) = (1/4) * [ 1 + 0 + 1 + 0 ]
10. [1 +0 -1 +0]
11. [1 +0 +1 +0]
12. [1 +0 -1 +0]
13. x(n) = (1/4) * [ 2 ]
14. [0]
15. [2]
16. [0]
19. [ 1/2 ]
20. [0 ]
Result
Given:
Input sequence x(n) = {1, 1, 1}
Steps:
o DFT of x(n): Since x(n) has 3 points, we need to pad it with a zero to make it a power
of 2 (4 points). So, x(n) = {1, 1, 1, 0}. Let's use the DIT FFT butterfly diagram for N=4.
Stage 1:
X1(0) = 1 + 1 = 2
X1(1) = 1 - 1 = 0
X1(2) = 1 + 0 = 1
X1(3) = 1 - 0 = 1
Stage 2:
X2(0) = 2 + 1 = 3
X2(1) = 0 - j*1 = -j
X2(2) = 2 - 1 = 1
X2(3) = 0 + j*1 = j
Bit Reversal:
X(0) = X2(0) = 3
X(1) = X2(2) = 1
X(2) = X2(1) = -j
X(3) = X2(3) = j
o DFT of h(n): Similarly, pad h(n) with zeros to make it 4 points: h(n) = {-1, -1, 0, 0}.
Stage 1:
H1(0) = -1 - 1 = -2
H1(1) = -1 + 1 = 0
H1(2) = 0 + 0 = 0
H1(3) = 0 - 0 = 0
Stage 2:
H2(0) = -2 + 0 = -2
H2(1) = 0 - j*0 = 0
H2(2) = -2 - 0 = -2
H2(3) = 0 + j*0 = 0
Bit Reversal:
H(0) = H2(0) = -2
H(1) = H2(2) = -2
H(2) = H2(1) = 0
H(3) = H2(3) = 0
Therefore, H(k) = {-2, -2, 0, 0}.
Final Answer:
The DFT of the output Y(k) is {-6, -2, 0, 0}.
Q 5 b) An 8-point sequence is given by x(n) = { 1,2,3,4,4,3,2,}. Derive 8-point DFT of x(n) by radix-2
DIT-FFT
Absolutely! Let's walk through the process of finding the 8-point DFT of the sequence x(n) = {1, 2, 3,
4, 4, 3, 2, 1} using the Radix-2 DIT-FFT algorithm.
Steps
o The input sequence x(n) is rearranged based on the bit-reversed order of the indices.
Group the bit-reversed sequence into pairs and perform butterfly operations
with twiddle factors W8^0 = 1.
o Stage 2:
Group the stage 1 output into groups of 4 and perform butterfly operations
with twiddle factors W8^0 and W8^2 = -1.
o Stage 3:
Perform the final stage of butterfly operations with twiddle factors W8^0,
W8^1, W8^2, and W8^3.
The third stage results in {-11, -1+j0, -6, -1-j0, -3, -4+j0, 0, -4-j0}
3. Result:
o The final DFT sequence is: {-11, -1, -6, -1, -3, -4, 0, -4}
Therefore, the 8-point DFT of x(n) = {1, 2, 3, 4, 4, 3, 2, 1} is {-11, -1, -6, -1, -3, -4, 0, -4}.
Let's determine H(e^(jω)) for M = 7 using a Hamming window for the given desired low-pass filter
response.
We need to design a digital low-pass filter using the windowing method. Here's a breakdown:
1. Desired Frequency Response (Hd(e^(jω))):
o A low-pass filter with a cutoff frequency of 3π/4.
2. Windowing Method:
Steps
1. Find the Ideal Impulse Response (hd(n))
o Substitute Hd(e^(jω)):
o For M = 7:
o w(n) = 0.54 - 0.46 * cos(πn / 3), 0 ≤ n ≤ 6
w(0) = 0.08
w(1) = 0.31
w(2) = 0.77
w(3) = 1
w(4) = 0.77
w(5) = 0.31
w(6) = 0.08
o We truncate the ideal impulse response hd(n) using the Hamming window:
o Calculate h(n):
...
o Note: You'll need to calculate the values of hd(n) using the formula derived in step 1.
4. Find the Frequency Response (H(e^(jω)))
Important Note:
The calculation of hd(n) involves a sin(x)/x function, which needs careful handling at x=0. Use
L'Hopital's rule or the sinc function definition.
Let me know if you'd like me to perform the numerical calculations for hd(n) and H(e^(jω))!
Let's design a digital Butterworth low-pass filter to meet the given specifications.
Steps
1. Determine Analog Filter Specifications
Ωp = (2/T) * tan(ωp/2)
Ωs = (2/T) * tan(ωs/2)
Ωs = 2 * tan(0.3π) ≈ 2.3078
o N ≥ log10(9.705) / 1.1008
o N ≥ 0.987 / 1.1008
o N ≥ 0.8966
o Since N must be an integer, we choose N = 1.
o Ωc = 0.6498 / (1.0417)^(1/2)
o Ωc = 0.6498 / 1.0206
o Ωc ≈ 0.6367
o H(s) = 1 / (1 + (s/0.6367)^2)
Final Answer