Skip to main content

Chapter 6 · 9 hours

Discrete-Time Systems

IOE past exam questions

Past questions and answers

51 questions set from this chapter, 14 of them more than once. Most asked first.

  • Asked 8 times
  • 2082 Kartik · 5 marks
  • 2081 Asoj · 6 marks
  • 2080 Asoj · 3 marks
  • 2078 Baisakh · 4 marks
  • 2080 Chaitra · 6 marks
  • 2076 Baisakh · 4 marks
  • 2075 Baisakh · 5 marks
  • 2083 Baisakh (new course) · 4 marks

Derive the convolution sum for a discrete-time LTI system.

Answer

The convolution sum expresses the output of a discrete-time LTI system in terms of the input x[n]x[n] and the impulse response h[n]h[n] (the output when the input is δ[n]\delta[n]).

Step 1: Any sequence as a sum of shifted impulses

Since δ[n−k]=1\delta[n-k] = 1 only at n=kn = k, each sample can be picked out:

x[n]=∑k=−∞∞x[k] δ[n−k]x[n] = \sum_{k=-\infty}^{\infty} x[k]\,\delta[n-k]

For example, x[n]={2,1↑,3}x[n] = \{2, \underset{\uparrow}{1}, 3\} gives x[n]=2δ[n+1]+δ[n]+3δ[n−1]x[n] = 2\delta[n+1] + \delta[n] + 3\delta[n-1].

Step 2: Apply the system properties

Let T{⋅}T\{\cdot\} be the system and h[n]=T{δ[n]}h[n] = T\{\delta[n]\}.

y[n]=T{x[n]}=T{∑kx[k] δ[n−k]}y[n] = T\{x[n]\} = T\left\{\sum_{k} x[k]\,\delta[n-k]\right\}
  • Linearity (additivity and homogeneity): the x[k]x[k] are just constants (weights), so
y[n]=∑k=−∞∞x[k] T{δ[n−k]}y[n] = \sum_{k=-\infty}^{\infty} x[k]\,T\{\delta[n-k]\}
  • Time invariance: the response to δ[n−k]\delta[n-k] is h[n−k]h[n-k].

Step 3: Result

y[n]=∑k=−∞∞x[k] h[n−k]=x[n]∗h[n]y[n] = \sum_{k=-\infty}^{\infty} x[k]\,h[n-k] = x[n] * h[n]

This is the convolution sum. Putting m=n−km = n-k gives the equivalent form

y[n]=∑k=−∞∞h[k] x[n−k]y[n] = \sum_{k=-\infty}^{\infty} h[k]\,x[n-k]

showing convolution is commutative.

Special cases:

  • Causal system (h[n]=0h[n] = 0, n<0n < 0) and causal input: y[n]=∑k=0nx[k] h[n−k]y[n] = \sum_{k=0}^{n} x[k]\,h[n-k].
  • Lengths: if xx has N1N_1 samples and hh has N2N_2, yy has N1+N2−1N_1 + N_2 - 1 samples.

Procedure: (1) fold h[k]h[k] to h[−k]h[-k]; (2) shift by nn to get h[n−k]h[n-k]; (3) multiply by x[k]x[k] sample by sample; (4) sum the products to get y[n]y[n]; (5) repeat for every nn.

Example: x[n]={1↑,2}x[n] = \{\underset{\uparrow}{1}, 2\}, h[n]={1↑,1,1}h[n] = \{\underset{\uparrow}{1}, 1, 1\}:

nnCalculationy[n]y[n]
01⋅11\cdot11
11⋅1+2⋅11\cdot1 + 2\cdot13
21⋅1+2⋅11\cdot1 + 2\cdot13
32⋅12\cdot12

So y[n]={1↑,3,3,2}y[n] = \{\underset{\uparrow}{1}, 3, 3, 2\}, with 2+3−1=42 + 3 - 1 = 4 samples.

  • Asked 4 times
  • 2081 Asoj · 8 marks
  • 2077 Chaitra · 4+2 marks
  • 2075 Baisakh · 5 marks
  • 2072 Asoj · 6 marks

Find the frequency response and impulse response for a system characterized by linear constant coefficient difference equation y[n] = 0.5y[n−1] + x[n].

Answer

Given: y[n]=0.5 y[n−1]+x[n]y[n] = 0.5\,y[n-1] + x[n], i.e. y[n]−0.5 y[n−1]=x[n]y[n] - 0.5\,y[n-1] = x[n] (system initially at rest).

Frequency response

Take the DTFT of both sides, using the shift property x[n−1]↔e−jωX(ejω)x[n-1] \leftrightarrow e^{-j\omega}X(e^{j\omega}):

Y(ejω)−0.5 e−jωY(ejω)=X(ejω)H(ejω)=Y(ejω)X(ejω)=11−0.5 e−jω\begin{aligned} Y(e^{j\omega}) - 0.5\,e^{-j\omega}Y(e^{j\omega}) &= X(e^{j\omega}) \\ H(e^{j\omega}) = \frac{Y(e^{j\omega})}{X(e^{j\omega})} &= \frac{1}{1 - 0.5\,e^{-j\omega}} \end{aligned}

Writing e−jω=cos⁡ω−jsin⁡ωe^{-j\omega} = \cos\omega - j\sin\omega, the denominator is (1−0.5cos⁡ω)+j 0.5sin⁡ω(1 - 0.5\cos\omega) + j\,0.5\sin\omega.

Magnitude response:

∣H(ejω)∣=1(1−0.5cos⁡ω)2+(0.5sin⁡ω)2=11.25−cos⁡ω|H(e^{j\omega})| = \frac{1}{\sqrt{(1-0.5\cos\omega)^2 + (0.5\sin\omega)^2}} = \frac{1}{\sqrt{1.25 - \cos\omega}}

Phase response:

∠H(ejω)=−tan⁡−1(0.5sin⁡ω1−0.5cos⁡ω)\angle H(e^{j\omega}) = -\tan^{-1}\left(\frac{0.5\sin\omega}{1 - 0.5\cos\omega}\right)
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert2.0001.3570.8940.7150.667
Phase0°−28.7°−26.6°−14.6°0°

The gain is largest at ω=0\omega = 0 and smallest at ω=π\omega = \pi, so the system is a low pass filter. H(ejω)H(e^{j\omega}) is periodic with period 2π2\pi.

Impulse response

Using the DTFT pair anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - a e^{-j\omega}} for ∣a∣<1|a| < 1, with a=0.5a = 0.5:

h[n]=(0.5)n u[n]h[n] = (0.5)^n\,u[n]

Check by recursion (x[n]=δ[n]x[n] = \delta[n], h[−1]=0h[-1] = 0):

nn01234
h[n]=0.5h[n−1]+δ[n]h[n] = 0.5h[n-1] + \delta[n]10.50.250.1250.0625

This matches (0.5)n(0.5)^n. The system is causal (h[n]=0h[n] = 0 for n<0n < 0), stable (∑∣h[n]∣=11−0.5=2<∞\sum|h[n]| = \frac{1}{1-0.5} = 2 < \infty), and IIR (infinite-length h[n]h[n]). Note ∑h[n]=2=H(ej0)\sum h[n] = 2 = H(e^{j0}), as expected.

  • Asked 4 times
  • 2080 Asoj · 3 marks
  • 2079 Asoj · 3 marks
  • 2080 Chaitra · 4 marks
  • 2078 Chaitra · 3 marks

Determine if the following system is linear y[n] = ax[n] + b

Answer

A system is linear if it obeys superposition: a1x1[n]+a2x2[n]→a1y1[n]+a2y2[n]a_1x_1[n] + a_2x_2[n] \rightarrow a_1y_1[n] + a_2y_2[n].

Given: y[n]=a x[n]+by[n] = a\,x[n] + b

Individual outputs: y1[n]=a x1[n]+by_1[n] = a\,x_1[n] + b and y2[n]=a x2[n]+by_2[n] = a\,x_2[n] + b.

Weighted sum of outputs:

a1y1[n]+a2y2[n]=a(a1x1[n]+a2x2[n])+(a1+a2) ba_1y_1[n] + a_2y_2[n] = a\left(a_1x_1[n] + a_2x_2[n]\right) + (a_1 + a_2)\,b

Output for the combined input x3[n]=a1x1[n]+a2x2[n]x_3[n] = a_1x_1[n] + a_2x_2[n]:

y3[n]=a(a1x1[n]+a2x2[n])+by_3[n] = a\left(a_1x_1[n] + a_2x_2[n]\right) + b

These are equal only if (a1+a2)b=b(a_1 + a_2)b = b for all a1,a2a_1, a_2, i.e. only if b=0b = 0.

Zero-input check: x[n]=0x[n] = 0 gives y[n]=by[n] = b. A linear system must give zero output for zero input.

Conclusion:

  • For b≠0b \ne 0 the system is non-linear. It is incrementally linear: the difference between two outputs, y1−y2=a(x1−x2)y_1 - y_2 = a(x_1 - x_2), is linear in the difference of inputs. It can be seen as a linear system a x[n]a\,x[n] plus a fixed zero-input response bb.
  • For b=0b = 0, y[n]=a x[n]y[n] = a\,x[n] is linear.
  • Asked 3 times
  • 2080 Asoj · 2 marks
  • 2079 Asoj · 5 marks
  • 2078 Chaitra · 5 marks

What is the condition for LTI system to be causal?

Answer

An LTI system is causal if and only if its impulse response is zero for negative time:

h[n]=0for n<0(CT: h(t)=0 for t<0)h[n] = 0 \quad \text{for } n < 0 \qquad \left(\text{CT: } h(t) = 0 \text{ for } t < 0\right)

Reason: the output of a DT LTI system is the convolution sum

y[n]=∑k=−∞∞h[k] x[n−k]=∑k=−∞−1h[k] x[n−k]⏟future inputs+∑k=0∞h[k] x[n−k]⏟present and pasty[n] = \sum_{k=-\infty}^{\infty} h[k]\,x[n-k] = \underbrace{\sum_{k=-\infty}^{-1} h[k]\,x[n-k]}_{\text{future inputs}} + \underbrace{\sum_{k=0}^{\infty} h[k]\,x[n-k]}_{\text{present and past}}

For k<0k < 0, x[n−k]x[n-k] is an input at a time later than nn (a future value). A causal system's output cannot depend on future inputs, so every weight h[k]h[k] for k<0k < 0 must be zero. Then

y[n]=∑k=0∞h[k] x[n−k]=∑k=−∞nx[k] h[n−k]y[n] = \sum_{k=0}^{\infty} h[k]\,x[n-k] = \sum_{k=-\infty}^{n} x[k]\,h[n-k]

Physically: h[n]h[n] is the response to δ[n]\delta[n] applied at n=0n = 0, and a causal system cannot respond before the input arrives.

Examples:

  • h[n]=(0.5)nu[n]h[n] = (0.5)^n u[n]: causal.
  • h[n]=u[n]−u[n−4]h[n] = u[n] - u[n-4]: causal.
  • h[n]=δ[n+1]+δ[n]h[n] = \delta[n+1] + \delta[n], i.e. y[n]=x[n+1]+x[n]y[n] = x[n+1] + x[n]: non-causal (uses the future input x[n+1]x[n+1]).
  • h[n]=(0.5)∣n∣h[n] = (0.5)^{|n|}: non-causal.

Related terms: a sequence that is zero for n<0n < 0 is called a causal sequence. If h[n]=0h[n] = 0 for n>0n > 0 instead, the system is anti-causal. Causality is needed for real-time operation; non-causal systems can still be used for stored data (e.g. image processing).

  • Asked 3 times
  • 2080 Asoj · 3 marks
  • 2079 Asoj · 3 marks
  • 2078 Chaitra · 3 marks

Check if the system is time invariant y[n] = nx[n] − x[n−1]

Answer

A system is time invariant if delaying the input by kk only delays the output by kk: x[n−k]→y[n−k]x[n-k] \rightarrow y[n-k].

Given: y[n]=n x[n]−x[n−1]y[n] = n\,x[n] - x[n-1]

Step 1 – Output for the delayed input x1[n]=x[n−k]x_1[n] = x[n-k] (replace xx only, not the nn multiplying it):

y1[n]=n x[n−k]−x[n−1−k]y_1[n] = n\,x[n-k] - x[n-1-k]

Step 2 – Delayed output (replace every nn by n−kn-k):

y[n−k]=(n−k) x[n−k]−x[n−k−1]y[n-k] = (n-k)\,x[n-k] - x[n-k-1]

Step 3 – Compare:

y1[n]−y[n−k]=n x[n−k]−(n−k) x[n−k]=k x[n−k]≠0y_1[n] - y[n-k] = n\,x[n-k] - (n-k)\,x[n-k] = k\,x[n-k] \ne 0

Since y1[n]≠y[n−k]y_1[n] \ne y[n-k] (for k≠0k \ne 0), the system is time variant.

Reason: the coefficient nn multiplying x[n]x[n] changes with time, so the system's gain is different at different instants. The second term −x[n−1]-x[n-1] alone is time invariant, but the first term makes the whole system time variant.

Numerical check: take x[n]=δ[n]x[n] = \delta[n]: y[n]=0⋅δ[n]−δ[n−1]=−δ[n−1]y[n] = 0\cdot\delta[n] - \delta[n-1] = -\delta[n-1]. For x[n]=δ[n−1]x[n] = \delta[n-1]: y1[n]=n δ[n−1]−δ[n−2]=δ[n−1]−δ[n−2]y_1[n] = n\,\delta[n-1] - \delta[n-2] = \delta[n-1] - \delta[n-2], which is not y[n−1]=−δ[n−2]y[n-1] = -\delta[n-2].

  • Asked 3 times
  • 2078 Chaitra · 6 marks
  • 2073 Magh · 2+6 marks
  • 2072 Magh · 2+5 marks

What is convolution? Obtain the expression for convolution sum.

Answer

Convolution

Convolution is the operation that gives the output of an LTI system from its input and its impulse response. For discrete time, the output is a weighted sum of the present and past (and possibly future) inputs, with the impulse response values as weights:

y[n]=x[n]∗h[n]y[n] = x[n] * h[n]

Here h[n]h[n] is the impulse response, the output when the input is the unit impulse δ[n]\delta[n].

Expression for the convolution sum

Step 1: Represent the input with impulses. Using the sifting property, any sequence is a sum of scaled, shifted impulses:

x[n]=∑k=−∞∞x[k] δ[n−k]x[n] = \sum_{k=-\infty}^{\infty} x[k]\,\delta[n-k]

e.g. {3↑,1}=3δ[n]+δ[n−1]\{\underset{\uparrow}{3}, 1\} = 3\delta[n] + \delta[n-1].

Step 2: Response to one impulse. By definition δ[n]→h[n]\delta[n] \rightarrow h[n].

Step 3: Time invariance. δ[n−k]→h[n−k]\delta[n-k] \rightarrow h[n-k].

Step 4: Homogeneity. x[k] δ[n−k]→x[k] h[n−k]x[k]\,\delta[n-k] \rightarrow x[k]\,h[n-k] (x[k]x[k] is a constant for each kk).

Step 5: Additivity. The output for the sum of all these inputs is the sum of their outputs:

y[n]=∑k=−∞∞x[k] h[n−k]y[n] = \sum_{k=-\infty}^{\infty} x[k]\,h[n-k]

This is the convolution sum. With m=n−km = n - k it can also be written y[n]=∑kh[k] x[n−k]y[n] = \sum_{k} h[k]\,x[n-k] (commutative property).

For a causal system with a causal input: y[n]=∑k=0nx[k] h[n−k]y[n] = \sum_{k=0}^{n} x[k]\,h[n-k].

Steps to evaluate: fold h[k]→h[−k]h[k] \rightarrow h[-k]; shift to h[n−k]h[n-k]; multiply with x[k]x[k]; add all products; repeat for each nn. If the lengths are N1N_1 and N2N_2, the output length is N1+N2−1N_1 + N_2 - 1, starting at (start of xx) + (start of hh).

Example: x[n]={1↑,1}x[n] = \{\underset{\uparrow}{1}, 1\}, h[n]={2↑,3}h[n] = \{\underset{\uparrow}{2}, 3\}:

  • y[0]=1⋅2=2y[0] = 1\cdot2 = 2
  • y[1]=1⋅3+1⋅2=5y[1] = 1\cdot3 + 1\cdot2 = 5
  • y[2]=1⋅3=3y[2] = 1\cdot3 = 3

So y[n]={2↑,5,3}y[n] = \{\underset{\uparrow}{2}, 5, 3\}.

  • Asked 2 times
  • 2082 Chaitra · 6 marks
  • 2080 Chaitra · 8 marks

Find impulse response for the DT system given by the following linear constant coefficient difference equation. y[n] − (3/4)y[n−1] + (1/8)y[n−2] = 2x[n]

Answer

Given: y[n]−34y[n−1]+18y[n−2]=2x[n]y[n] - \frac{3}{4}y[n-1] + \frac{1}{8}y[n-2] = 2x[n], system initially at rest.

Step 1: Frequency response

Take the DTFT (x[n−k]↔e−jωkX(ejω)x[n-k] \leftrightarrow e^{-j\omega k}X(e^{j\omega})):

(1−34e−jω+18e−j2ω)Y(ejω)=2X(ejω)\left(1 - \tfrac{3}{4}e^{-j\omega} + \tfrac{1}{8}e^{-j2\omega}\right)Y(e^{j\omega}) = 2X(e^{j\omega}) H(ejω)=21−34e−jω+18e−j2ωH(e^{j\omega}) = \frac{2}{1 - \frac{3}{4}e^{-j\omega} + \frac{1}{8}e^{-j2\omega}}

Step 2: Factorise the denominator

Let v=e−jωv = e^{-j\omega}. The roots of 1−34v+18v21 - \frac{3}{4}v + \frac{1}{8}v^2 come from p2−34p+18=0p^2 - \frac{3}{4}p + \frac{1}{8} = 0, giving p=12,14p = \frac{1}{2}, \frac{1}{4}. So

H(ejω)=2(1−12e−jω)(1−14e−jω)H(e^{j\omega}) = \frac{2}{\left(1 - \frac{1}{2}e^{-j\omega}\right)\left(1 - \frac{1}{4}e^{-j\omega}\right)}

Step 3: Partial fractions

H=A1−12v+B1−14vH = \frac{A}{1 - \frac{1}{2}v} + \frac{B}{1 - \frac{1}{4}v} A=21−14v∣v=2=21−12=4B=21−12v∣v=4=21−2=−2\begin{aligned} A &= \left.\frac{2}{1 - \frac{1}{4}v}\right|_{v=2} = \frac{2}{1 - \frac{1}{2}} = 4 \\ B &= \left.\frac{2}{1 - \frac{1}{2}v}\right|_{v=4} = \frac{2}{1 - 2} = -2 \end{aligned} H(ejω)=41−12e−jω−21−14e−jωH(e^{j\omega}) = \frac{4}{1 - \frac{1}{2}e^{-j\omega}} - \frac{2}{1 - \frac{1}{4}e^{-j\omega}}

Step 4: Inverse DTFT

Using anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - a e^{-j\omega}} (∣a∣<1|a| < 1):

h[n]=[4(12)n−2(14)n]u[n]h[n] = \left[4\left(\tfrac{1}{2}\right)^n - 2\left(\tfrac{1}{4}\right)^n\right]u[n]

Check by recursion

h[n]=2δ[n]+34h[n−1]−18h[n−2]h[n] = 2\delta[n] + \frac{3}{4}h[n-1] - \frac{1}{8}h[n-2], with h[−1]=h[−2]=0h[-1] = h[-2] = 0:

nnRecursionFormula 4(0.5)n−2(0.25)n4(0.5)^n - 2(0.25)^n
024−2=24 - 2 = 2
10.75×2=1.50.75 \times 2 = 1.52−0.5=1.52 - 0.5 = 1.5
20.75(1.5)−0.125(2)=0.8750.75(1.5) - 0.125(2) = 0.8751−0.125=0.8751 - 0.125 = 0.875
30.75(0.875)−0.125(1.5)=0.468750.75(0.875) - 0.125(1.5) = 0.468750.5−0.03125=0.468750.5 - 0.03125 = 0.46875

Both agree. Both poles (0.50.5, 0.250.25) are inside the unit circle, so the system is causal and stable; h[n]h[n] decays to zero. Also H(ej0)=21−0.75+0.125=5.333=∑h[n]=40.5−20.75H(e^{j0}) = \frac{2}{1 - 0.75 + 0.125} = 5.333 = \sum h[n] = \frac{4}{0.5} - \frac{2}{0.75}.

Answer: h[n]=[4(0.5)n−2(0.25)n]u[n]h[n] = \left[4(0.5)^n - 2(0.25)^n\right]u[n]

  • Asked 2 times
  • 2081 Chaitra · 6 marks
  • 2069 Bhadra · 8 marks

Find the frequency response H(e^(jω)), plot the magnitude and impulse response h[n] for a system characterized by linear constant coefficient difference equation y[n] = 0.5y[n−1] + x[n]

Answer

Given: y[n]=0.5 y[n−1]+x[n]y[n] = 0.5\,y[n-1] + x[n], initially at rest.

Frequency response

DTFT of both sides:

Y(ejω)(1−0.5e−jω)=X(ejω)H(ejω)=11−0.5e−jω=1(1−0.5cos⁡ω)+j0.5sin⁡ω\begin{aligned} Y(e^{j\omega})\left(1 - 0.5e^{-j\omega}\right) &= X(e^{j\omega}) \\ H(e^{j\omega}) &= \frac{1}{1 - 0.5e^{-j\omega}} = \frac{1}{(1 - 0.5\cos\omega) + j0.5\sin\omega} \end{aligned}

Magnitude:

∣H(ejω)∣=1(1−0.5cos⁡ω)2+0.25sin⁡2ω=11.25−cos⁡ω|H(e^{j\omega})| = \frac{1}{\sqrt{(1 - 0.5\cos\omega)^2 + 0.25\sin^2\omega}} = \frac{1}{\sqrt{1.25 - \cos\omega}}

Phase:

θ(ω)=−tan⁡−10.5sin⁡ω1−0.5cos⁡ω\theta(\omega) = -\tan^{-1}\frac{0.5\sin\omega}{1 - 0.5\cos\omega}

Magnitude plot

ω\omega0±π/4\pm\pi/4±π/2\pm\pi/2±3π/4\pm3\pi/4±π\pm\pi
∣H∣\lvert H\rvert2.0001.3570.8940.7150.667
θ\theta (for +ω+\omega)0°−28.7°−26.6°−14.6°0°
 |H|
 2.0 |          *
     |        .' '.
 1.36|      *       *
     |    .'         '.
 0.89|  *               *
 0.67|*                   *
     +--+---+---+---+---+--> w
     -pi   -pi/2  0  pi/2  pi

The magnitude is even in ω\omega, has its maximum 2 at ω=0\omega = 0 and its minimum 2/32/3 at ω=±π\omega = \pm\pi, and repeats every 2π2\pi. So the system is a low pass filter. The phase is odd in ω\omega (maximum lag 30° at ω=±π/3\omega = \pm\pi/3).

Impulse response

Using anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - ae^{-j\omega}} with a=0.5a = 0.5:

h[n]=(0.5)n u[n]h[n] = (0.5)^n\,u[n]
nn<0012345
h[n]h[n]010.50.250.1250.06250.03125
 h[n]
 1.0 |   o
     |   |
 0.5 |   |  o
0.25 |   |  |  o
     |   |  |  |  o  o  .
   0 +-o-+--+--+--+--+--+--> n
      -1  0  1  2  3  4  5

The system is causal, stable (∑h[n]=2\sum h[n] = 2) and IIR.

  • Asked 2 times
  • 2082 Kartik · 5 marks
  • 2083 Baisakh (new course) · 4 marks

Find out the frequency response of the following signal y[n] = 0.5x[n] − 0.5x[n−1]; h[n] = 1/2 for n = 0 and −1/2 for n = 1

Answer

Given: y[n]=0.5 x[n]−0.5 x[n−1]y[n] = 0.5\,x[n] - 0.5\,x[n-1], so h[n]=0.5 δ[n]−0.5 δ[n−1]={0.5↑,−0.5}h[n] = 0.5\,\delta[n] - 0.5\,\delta[n-1] = \{\underset{\uparrow}{0.5}, -0.5\} (a two-tap FIR system: a scaled first difference).

Frequency response

H(ejω)=∑nh[n]e−jωn=0.5−0.5e−jωH(e^{j\omega}) = \sum_n h[n]e^{-j\omega n} = 0.5 - 0.5e^{-j\omega}

Factor out e−jω/2e^{-j\omega/2}:

H(ejω)=0.5 e−jω/2(ejω/2−e−jω/2)=0.5 e−jω/2 (2jsin⁡ω2)=jsin⁡(ω2)e−jω/2=sin⁡(ω2)ej(π2−ω2)\begin{aligned} H(e^{j\omega}) &= 0.5\,e^{-j\omega/2}\left(e^{j\omega/2} - e^{-j\omega/2}\right) \\ &= 0.5\,e^{-j\omega/2}\,(2j\sin\tfrac{\omega}{2}) \\ &= j\sin\left(\tfrac{\omega}{2}\right)e^{-j\omega/2} = \sin\left(\tfrac{\omega}{2}\right)e^{j\left(\frac{\pi}{2} - \frac{\omega}{2}\right)} \end{aligned}

Magnitude: ∣H(ejω)∣=∣sin⁡ω2∣|H(e^{j\omega})| = \left|\sin\frac{\omega}{2}\right|

Phase: θ(ω)=π2−ω2\theta(\omega) = \frac{\pi}{2} - \frac{\omega}{2} for 0<ω<π0 < \omega < \pi (and −π2−ω2-\frac{\pi}{2} - \frac{\omega}{2} for −π<ω<0-\pi < \omega < 0): linear phase apart from the π/2\pi/2 jump.

ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert00.3830.7070.9241
θ\theta–67.5°45°22.5°0°
 |H|
  1 |*                   *
    | '.               .'
0.7 |   *             *
    |     '.       .'
  0 +--------'-*-'--------> w
   -pi         0         pi

Interpretation: DC (ω=0\omega = 0) is blocked completely and the highest frequency (ω=π\omega = \pi) passes with gain 1, so this is a simple high pass filter (a difference/differentiator-like system). Being FIR, it is always stable.

  • Asked 2 times
  • 2080 Asoj · 6 marks
  • 2074 Bhadra · 7 marks

Perform convolution sum of signal x[n] = {1, 2, 0, −1} and h[n] = {2, 0, 2}

Answer

No origin is marked, so take the first sample of each sequence at n=0n = 0: x[n]={1↑,2,0,−1}x[n] = \{\underset{\uparrow}{1}, 2, 0, -1\} for 0≤n≤30 \le n \le 3 and h[n]={2↑,0,2}h[n] = \{\underset{\uparrow}{2}, 0, 2\} for 0≤n≤20 \le n \le 2.

Convolution sum:

y[n]=∑kx[k] h[n−k]y[n] = \sum_{k} x[k]\,h[n-k]

Output range: starts at 0+0=00 + 0 = 0; length =4+3−1=6= 4 + 3 - 1 = 6, so 0≤n≤50 \le n \le 5.

Tabular method

Each row is one input sample times the shifted h[n]h[n]; add the columns:

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5
x[0] h[n]x[0]\,h[n]202
x[1] h[n−1]x[1]\,h[n-1]404
x[2] h[n−2]x[2]\,h[n-2]000
x[3] h[n−3]x[3]\,h[n-3]-20-2
y[n]y[n]24220-2

Check by direct calculation

  • y[0]=x[0]h[0]=1×2=2y[0] = x[0]h[0] = 1\times2 = 2
  • y[1]=x[0]h[1]+x[1]h[0]=0+4=4y[1] = x[0]h[1] + x[1]h[0] = 0 + 4 = 4
  • y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=2+0+0=2y[2] = x[0]h[2] + x[1]h[1] + x[2]h[0] = 2 + 0 + 0 = 2
  • y[3]=x[1]h[2]+x[2]h[1]+x[3]h[0]=4+0−2=2y[3] = x[1]h[2] + x[2]h[1] + x[3]h[0] = 4 + 0 - 2 = 2
  • y[4]=x[2]h[2]+x[3]h[1]=0+0=0y[4] = x[2]h[2] + x[3]h[1] = 0 + 0 = 0
  • y[5]=x[3]h[2]=−1×2=−2y[5] = x[3]h[2] = -1\times2 = -2

Sum check: ∑y=(∑x)(∑h)=2×4=8\sum y = (\sum x)(\sum h) = 2 \times 4 = 8, and 2+4+2+2+0−2=82 + 4 + 2 + 2 + 0 - 2 = 8.

Answer:

y[n]={2↑, 4, 2, 2, 0, −2}y[n] = \{\underset{\uparrow}{2},\ 4,\ 2,\ 2,\ 0,\ -2\}

i.e. y[n]=2δ[n]+4δ[n−1]+2δ[n−2]+2δ[n−3]−2δ[n−5]y[n] = 2\delta[n] + 4\delta[n-1] + 2\delta[n-2] + 2\delta[n-3] - 2\delta[n-5].

(If xx and hh had different origins, the values stay the same and only the starting index shifts: start of yy = start of xx + start of hh.)

  • Asked 2 times
  • 2080 Chaitra · 8 marks
  • 2069 Bhadra · 7 marks

Find the output of an LTI system given by: x[n] = δ[n] + 2δ[n−1] − δ[n−3] and h[n] = 2δ[n+1] + 2δ[n−1].

Answer

Given:

  • x[n]=δ[n]+2δ[n−1]−δ[n−3]={1↑,2,0,−1}x[n] = \delta[n] + 2\delta[n-1] - \delta[n-3] = \{\underset{\uparrow}{1}, 2, 0, -1\}, for 0≤n≤30 \le n \le 3.
  • h[n]=2δ[n+1]+2δ[n−1]={2,0↑,2}h[n] = 2\delta[n+1] + 2\delta[n-1] = \{2, \underset{\uparrow}{0}, 2\}, for −1≤n≤1-1 \le n \le 1.

Method 1: Using x[n]∗δ[n−k]=x[n−k]x[n] * \delta[n-k] = x[n-k]

Convolution with a shifted impulse just shifts the signal, and convolution is distributive:

y[n]=x[n]∗(2δ[n+1]+2δ[n−1])=2x[n+1]+2x[n−1]\begin{aligned} y[n] &= x[n] * \left(2\delta[n+1] + 2\delta[n-1]\right) = 2x[n+1] + 2x[n-1] \end{aligned} 2x[n+1]=2δ[n+1]+4δ[n]−2δ[n−2]2x[n−1]=2δ[n−1]+4δ[n−2]−2δ[n−4]\begin{aligned} 2x[n+1] &= 2\delta[n+1] + 4\delta[n] - 2\delta[n-2] \\ 2x[n-1] &= 2\delta[n-1] + 4\delta[n-2] - 2\delta[n-4] \end{aligned}

Adding:

y[n]=2δ[n+1]+4δ[n]+2δ[n−1]+2δ[n−2]−2δ[n−4]y[n] = 2\delta[n+1] + 4\delta[n] + 2\delta[n-1] + 2\delta[n-2] - 2\delta[n-4]

Method 2: Tabular check

Output starts at 0+(−1)=−10 + (-1) = -1; length 4+3−1=64 + 3 - 1 = 6, so −1≤n≤4-1 \le n \le 4.

Rown=−1n=-1n=0n=0n=1n=1n=2n=2n=3n=3n=4n=4
x[0] h[n]x[0]\,h[n]202
x[1] h[n−1]x[1]\,h[n-1]404
x[2] h[n−2]x[2]\,h[n-2]000
x[3] h[n−3]x[3]\,h[n-3]-20-2
y[n]y[n]24220-2

Both methods agree. Sum check: (∑x)(∑h)=2×4=8=2+4+2+2+0−2(\sum x)(\sum h) = 2 \times 4 = 8 = 2 + 4 + 2 + 2 + 0 - 2.

Answer:

y[n]={2, 4↑, 2, 2, 0, −2}y[n] = \{2,\ \underset{\uparrow}{4},\ 2,\ 2,\ 0,\ -2\}

with y[−1]=2y[-1] = 2, y[0]=4y[0] = 4, y[1]=2y[1] = 2, y[2]=2y[2] = 2, y[3]=0y[3] = 0, y[4]=−2y[4] = -2.

 y[n]
  4 |       o
    |       |
  2 |   o   |   o   o
    |   |   |   |   |
  0 +---+---+---+---+---o---+--> n
    |  -1   0   1   2   3   4
 -2 |                       o
  • Asked 2 times
  • 2078 Poush · 6 marks
  • 2079 Chaitra · 5 marks

State and explain (describe) different properties of a discrete-time LTI system with suitable examples.

Answer

A discrete-time LTI system is linear and time invariant. It is completely described by its impulse response h[n]h[n], and its output is the convolution sum y[n]=∑kx[k] h[n−k]=x[n]∗h[n]y[n] = \sum_k x[k]\,h[n-k] = x[n]*h[n]. Its main properties are listed below, with the test in terms of h[n]h[n].

1. Commutative property

x[n]∗h[n]=h[n]∗x[n]x[n]*h[n] = h[n]*x[n]: input and impulse response can be interchanged. Example: {1,1}∗{1,2}={1,2}∗{1,1}={1,3,2}\{1,1\}*\{1,2\} = \{1,2\}*\{1,1\} = \{1,3,2\}.

2. Associative property (cascade)

(x∗h1)∗h2=x∗(h1∗h2)\left(x*h_1\right)*h_2 = x*\left(h_1*h_2\right). Two systems in cascade equal one system with h[n]=h1[n]∗h2[n]h[n] = h_1[n]*h_2[n], and the order of the cascade does not matter.

x -->[h1]-->[h2]--> y  ==  x -->[h1*h2]--> y

3. Distributive property (parallel)

x∗(h1+h2)=x∗h1+x∗h2x*(h_1 + h_2) = x*h_1 + x*h_2. Two systems in parallel equal one system with h[n]=h1[n]+h2[n]h[n] = h_1[n] + h_2[n].

4. Memory

The system is memoryless only if h[n]=Kδ[n]h[n] = K\delta[n], i.e. y[n]=Kx[n]y[n] = Kx[n]. Otherwise it has memory. Example: h[n]=δ[n]+δ[n−1]h[n] = \delta[n] + \delta[n-1] (y[n]=x[n]+x[n−1]y[n] = x[n] + x[n-1]) has memory.

5. Causality

Causal if h[n]=0h[n] = 0 for n<0n < 0, so the output uses no future inputs. Example: h[n]=(0.5)nu[n]h[n] = (0.5)^n u[n] is causal; h[n]=δ[n+1]h[n] = \delta[n+1] (y[n]=x[n+1]y[n] = x[n+1]) is not.

6. Stability (BIBO)

Stable if the impulse response is absolutely summable:

∑n=−∞∞∣h[n]∣<∞\sum_{n=-\infty}^{\infty} |h[n]| < \infty

Example: h[n]=(0.5)nu[n]h[n] = (0.5)^n u[n] gives ∑=2\sum = 2, stable; h[n]=u[n]h[n] = u[n] (accumulator) gives an infinite sum, unstable. Every FIR system is stable.

7. Invertibility

Invertible if an inverse system hi[n]h_i[n] exists with h[n]∗hi[n]=δ[n]h[n]*h_i[n] = \delta[n]. Example: the accumulator h[n]=u[n]h[n] = u[n] has inverse hi[n]=δ[n]−δ[n−1]h_i[n] = \delta[n] - \delta[n-1] (first difference).

8. Identity and unit step response

x[n]∗δ[n]=x[n]x[n]*\delta[n] = x[n] and x[n]∗δ[n−k]=x[n−k]x[n]*\delta[n-k] = x[n-k]. The step response is the running sum of h[n]h[n]: s[n]=∑k=−∞nh[k]s[n] = \sum_{k=-\infty}^{n} h[k].

PropertyCondition on h[n]h[n]
Memorylessh[n]=Kδ[n]h[n] = K\delta[n]
Causalh[n]=0h[n] = 0, n<0n < 0
Stable∑∣h[n]∣<∞\sum \lvert h[n]\rvert < \infty
Invertibleh∗hi=δ[n]h * h_i = \delta[n]
Cascadeh1∗h2h_1 * h_2
Parallelh1+h2h_1 + h_2
  • Asked 2 times
  • 2076 Bhadra · 6 marks
  • 2075 Baisakh · 5 marks

Perform convolution between signals: x₁[n] = {1, 2, 1, −1} with origin at second position from left and x₂[n] = {1, 2, 3, 1} with origin at first position from left.

Answer

Given (origin marked):

  • x1[n]={1,2↑,1,−1}x_1[n] = \{1, \underset{\uparrow}{2}, 1, -1\}, so x1[−1]=1x_1[-1] = 1, x1[0]=2x_1[0] = 2, x1[1]=1x_1[1] = 1, x1[2]=−1x_1[2] = -1 (−1≤n≤2-1 \le n \le 2).
  • x2[n]={1↑,2,3,1}x_2[n] = \{\underset{\uparrow}{1}, 2, 3, 1\}, so 0≤n≤30 \le n \le 3.
y[n]=x1[n]∗x2[n]=∑kx1[k] x2[n−k]y[n] = x_1[n]*x_2[n] = \sum_k x_1[k]\,x_2[n-k]

Output range: start =−1+0=−1= -1 + 0 = -1; length =4+4−1=7= 4 + 4 - 1 = 7; so −1≤n≤5-1 \le n \le 5.

Tabular method

Each row is one sample of x1x_1 times x2x_2 shifted to that sample's position:

Rown=−1n=-1n=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5
x1[−1] x2[n+1]x_1[-1]\,x_2[n+1]1231
x1[0] x2[n]x_1[0]\,x_2[n]2462
x1[1] x2[n−1]x_1[1]\,x_2[n-1]1231
x1[2] x2[n−2]x_1[2]\,x_2[n-2]-1-2-3-1
y[n]y[n]14883-2-1

Direct check of some values

  • y[−1]=x1[−1]x2[0]=1y[-1] = x_1[-1]x_2[0] = 1
  • y[0]=x1[−1]x2[1]+x1[0]x2[0]=2+2=4y[0] = x_1[-1]x_2[1] + x_1[0]x_2[0] = 2 + 2 = 4
  • y[1]=1(3)+2(2)+1(1)=8y[1] = 1(3) + 2(2) + 1(1) = 8
  • y[2]=1(1)+2(3)+1(2)+(−1)(1)=8y[2] = 1(1) + 2(3) + 1(2) + (-1)(1) = 8
  • y[3]=2(1)+1(3)+(−1)(2)=3y[3] = 2(1) + 1(3) + (-1)(2) = 3
  • y[4]=1(1)+(−1)(3)=−2y[4] = 1(1) + (-1)(3) = -2
  • y[5]=(−1)(1)=−1y[5] = (-1)(1) = -1

Sum check: (∑x1)(∑x2)=3×7=21(\sum x_1)(\sum x_2) = 3 \times 7 = 21, and 1+4+8+8+3−2−1=211 + 4 + 8 + 8 + 3 - 2 - 1 = 21.

Answer:

y[n]={1, 4↑, 8, 8, 3, −2, −1}y[n] = \{1,\ \underset{\uparrow}{4},\ 8,\ 8,\ 3,\ -2,\ -1\}

for −1≤n≤5-1 \le n \le 5 (the arrow marks n=0n = 0, so y[0]=4y[0] = 4).

  • Asked 2 times
  • 2073 Magh · 7 marks
  • 2082 Bhadra (new course) · 5 marks

A discrete time LTI system is defined by the impulse response h[n] = n for −2 ≤ n ≤ 2; 0 otherwise, i.e. h[n] = {−2, −1, 0, 1, 2}. If the input to the given system is x[n] = {1, −0.25, 0, −1, 0.5, −0.5} (↑ at −0.25, i.e. x[0] = −0.25), find and plot the output of the system.

Answer

Given:

  • h[n]={−2,−1,0↑,1,2}h[n] = \{-2, -1, \underset{\uparrow}{0}, 1, 2\} for −2≤n≤2-2 \le n \le 2.
  • x[n]={1,−0.25↑,0,−1,0.5,−0.5}x[n] = \{1, \underset{\uparrow}{-0.25}, 0, -1, 0.5, -0.5\} for −1≤n≤4-1 \le n \le 4.
y[n]=∑kx[k] h[n−k]y[n] = \sum_k x[k]\,h[n-k]

Output range: start =−1+(−2)=−3= -1 + (-2) = -3; length =6+5−1=10= 6 + 5 - 1 = 10; so −3≤n≤6-3 \le n \le 6.

Tabular method

Each row is x[k]x[k] times hh shifted to start at n=k−2n = k - 2:

Rown=−3n=-3n=−2n=-2n=−1n=-1n=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5n=6n=6
x[−1] h[n+1]x[-1]\,h[n+1]-2-1012
x[0] h[n]x[0]\,h[n]0.50.250-0.25-0.5
x[1] h[n−1]x[1]\,h[n-1]00000
x[2] h[n−2]x[2]\,h[n-2]210-1-2
x[3] h[n−3]x[3]\,h[n-3]-1-0.500.51
x[4] h[n−4]x[4]\,h[n-4]10.50-0.5-1
y[n]y[n]-2-0.50.2531.750-0.5-1.50.5-1

Sample working:

  • y[−3]=x[−1]h[−2]=1(−2)=−2y[-3] = x[-1]h[-2] = 1(-2) = -2
  • y[0]=x[−1]h[1]+x[0]h[0]+x[1]h[−1]+x[2]h[−2]=1+0+0+2=3y[0] = x[-1]h[1] + x[0]h[0] + x[1]h[-1] + x[2]h[-2] = 1 + 0 + 0 + 2 = 3
  • y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]+x[3]h[−1]+x[4]h[−2]=−0.5+0+0−0.5+1=0y[2] = x[0]h[2] + x[1]h[1] + x[2]h[0] + x[3]h[-1] + x[4]h[-2] = -0.5 + 0 + 0 - 0.5 + 1 = 0

Sum check: (∑x)(∑h)=(−0.25)(0)=0(\sum x)(\sum h) = (-0.25)(0) = 0, and −2−0.5+0.25+3+1.75+0−0.5−1.5+0.5−1=0-2 - 0.5 + 0.25 + 3 + 1.75 + 0 - 0.5 - 1.5 + 0.5 - 1 = 0.

Answer:

y[n]={−2, −0.5, 0.25, 3↑, 1.75, 0, −0.5, −1.5, 0.5, −1}y[n] = \{-2,\ -0.5,\ 0.25,\ \underset{\uparrow}{3},\ 1.75,\ 0,\ -0.5,\ -1.5,\ 0.5,\ -1\}

for −3≤n≤6-3 \le n \le 6.

Plot

Stem plot drawn sideways (each # = 0.25; left of | is negative):

  n   y[n]
 -3  -2.00  ########|
 -2  -0.50        ##|
 -1   0.25          |#
  0   3.00          |############
  1   1.75          |#######
  2   0.00          |
  3  -0.50        ##|
  4  -1.50    ######|
  5   0.50          |##
  6  -1.00      ####|
nn−3−2−10123456
y[n]y[n]−2−0.50.2531.750−0.5−1.50.5−1
  • 2082 Chaitra · 6 marks

Find the output of the LTI system with impulse response h[n] = 2ⁿ{u[n] − u[n−3]} and x[n] = δ[n] + δ[n−1] + δ[n−3]. Also verify the answer.

Answer

Given:

  • h[n]=2n{u[n]−u[n−3]}h[n] = 2^n\{u[n] - u[n-3]\}: non-zero for n=0,1,2n = 0, 1, 2, so h[n]={1↑,2,4}h[n] = \{\underset{\uparrow}{1}, 2, 4\}.
  • x[n]=δ[n]+δ[n−1]+δ[n−3]={1↑,1,0,1}x[n] = \delta[n] + \delta[n-1] + \delta[n-3] = \{\underset{\uparrow}{1}, 1, 0, 1\}.

Method 1: Impulse shifting

Since δ[n−k]∗h[n]=h[n−k]\delta[n-k]*h[n] = h[n-k] and convolution is distributive:

y[n]=h[n]+h[n−1]+h[n−3]y[n] = h[n] + h[n-1] + h[n-3]
nn012345
h[n]h[n]124
h[n−1]h[n-1]124
h[n−3]h[n-3]124
y[n]y[n]136524
y[n]={1↑, 3, 6, 5, 2, 4}y[n] = \{\underset{\uparrow}{1},\ 3,\ 6,\ 5,\ 2,\ 4\}

i.e. y[n]=δ[n]+3δ[n−1]+6δ[n−2]+5δ[n−3]+2δ[n−4]+4δ[n−5]y[n] = \delta[n] + 3\delta[n-1] + 6\delta[n-2] + 5\delta[n-3] + 2\delta[n-4] + 4\delta[n-5].

Verification (convolution sum, y[n]=∑kx[k]h[n−k]y[n] = \sum_k x[k]h[n-k])

Output length =4+3−1=6= 4 + 3 - 1 = 6, from n=0n = 0 to 55:

  • y[0]=x[0]h[0]=1(1)=1y[0] = x[0]h[0] = 1(1) = 1
  • y[1]=x[0]h[1]+x[1]h[0]=2+1=3y[1] = x[0]h[1] + x[1]h[0] = 2 + 1 = 3
  • y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=4+2+0=6y[2] = x[0]h[2] + x[1]h[1] + x[2]h[0] = 4 + 2 + 0 = 6
  • y[3]=x[1]h[2]+x[2]h[1]+x[3]h[0]=4+0+1=5y[3] = x[1]h[2] + x[2]h[1] + x[3]h[0] = 4 + 0 + 1 = 5
  • y[4]=x[2]h[2]+x[3]h[1]=0+2=2y[4] = x[2]h[2] + x[3]h[1] = 0 + 2 = 2
  • y[5]=x[3]h[2]=4y[5] = x[3]h[2] = 4

Sum check: (∑x)(∑h)=3×7=21(\sum x)(\sum h) = 3 \times 7 = 21 and 1+3+6+5+2+4=211 + 3 + 6 + 5 + 2 + 4 = 21.

Both methods give the same result, so the answer is verified.

  • 2082 Chaitra · 6 marks

Find the convolution between signals x[n] = {1, 2, 2, 1} and h[n] = {1, 2, 2, −1}. Choose your own origin.

Answer

Chosen origin: first sample of each sequence at n=0n = 0: x[n]={1↑,2,2,1}x[n] = \{\underset{\uparrow}{1}, 2, 2, 1\} and h[n]={1↑,2,2,−1}h[n] = \{\underset{\uparrow}{1}, 2, 2, -1\}, both for 0≤n≤30 \le n \le 3.

y[n]=∑kx[k] h[n−k]y[n] = \sum_k x[k]\,h[n-k]

Output starts at 0+0=00 + 0 = 0, length 4+4−1=74 + 4 - 1 = 7, so 0≤n≤60 \le n \le 6.

Tabular method

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5n=6n=6
x[0] h[n]x[0]\,h[n]122-1
x[1] h[n−1]x[1]\,h[n-1]244-2
x[2] h[n−2]x[2]\,h[n-2]244-2
x[3] h[n−3]x[3]\,h[n-3]122-1
y[n]y[n]148840-1

Direct working

  • y[0]=1(1)=1y[0] = 1(1) = 1
  • y[1]=1(2)+2(1)=4y[1] = 1(2) + 2(1) = 4
  • y[2]=1(2)+2(2)+2(1)=8y[2] = 1(2) + 2(2) + 2(1) = 8
  • y[3]=1(−1)+2(2)+2(2)+1(1)=8y[3] = 1(-1) + 2(2) + 2(2) + 1(1) = 8
  • y[4]=2(−1)+2(2)+1(2)=4y[4] = 2(-1) + 2(2) + 1(2) = 4
  • y[5]=2(−1)+1(2)=0y[5] = 2(-1) + 1(2) = 0
  • y[6]=1(−1)=−1y[6] = 1(-1) = -1

Sum check: (∑x)(∑h)=6×4=24(\sum x)(\sum h) = 6 \times 4 = 24, and 1+4+8+8+4+0−1=241 + 4 + 8 + 8 + 4 + 0 - 1 = 24.

Answer:

y[n]={1↑, 4, 8, 8, 4, 0, −1}y[n] = \{\underset{\uparrow}{1},\ 4,\ 8,\ 8,\ 4,\ 0,\ -1\}

Stem plot drawn sideways (each # = 0.5; left of | is negative):

 n    y[n]
 0       1    |##
 1       4    |########
 2       8    |################
 3       8    |################
 4       4    |########
 5       0    |
 6      -1  ##|
  • 2081 Chaitra · 6 marks

Find convolution between the signals x[n] = {3, 5, 6, 9} and h[n] = {−1, 3, 5}. Choose your appropriate origin. Show the output signal.

Answer

Chosen origin: first sample of each sequence at n=0n = 0: x[n]={3↑,5,6,9}x[n] = \{\underset{\uparrow}{3}, 5, 6, 9\} (0≤n≤30 \le n \le 3) and h[n]={−1↑,3,5}h[n] = \{\underset{\uparrow}{-1}, 3, 5\} (0≤n≤20 \le n \le 2).

y[n]=∑kx[k] h[n−k]y[n] = \sum_k x[k]\,h[n-k]

Output starts at n=0n = 0, length =4+3−1=6= 4 + 3 - 1 = 6, so 0≤n≤50 \le n \le 5.

Tabular method

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5
x[0] h[n]x[0]\,h[n]-3915
x[1] h[n−1]x[1]\,h[n-1]-51525
x[2] h[n−2]x[2]\,h[n-2]-61830
x[3] h[n−3]x[3]\,h[n-3]-92745
y[n]y[n]-3424345745

Direct working

  • y[0]=3(−1)=−3y[0] = 3(-1) = -3
  • y[1]=3(3)+5(−1)=4y[1] = 3(3) + 5(-1) = 4
  • y[2]=3(5)+5(3)+6(−1)=24y[2] = 3(5) + 5(3) + 6(-1) = 24
  • y[3]=5(5)+6(3)+9(−1)=34y[3] = 5(5) + 6(3) + 9(-1) = 34
  • y[4]=6(5)+9(3)=57y[4] = 6(5) + 9(3) = 57
  • y[5]=9(5)=45y[5] = 9(5) = 45

Sum check: (∑x)(∑h)=23×7=161(\sum x)(\sum h) = 23 \times 7 = 161 and −3+4+24+34+57+45=161-3 + 4 + 24 + 34 + 57 + 45 = 161.

Answer (output signal):

y[n]={−3↑, 4, 24, 34, 57, 45}y[n] = \{\underset{\uparrow}{-3},\ 4,\ 24,\ 34,\ 57,\ 45\}

Stem plot drawn sideways (each # = 3; left of | is negative):

 n    y[n]
 0      -3  #|
 1       4   |#
 2      24   |########
 3      34   |###########
 4      57   |###################
 5      45   |###############
  • 2081 Asoj · 6 marks

Find the output of an LTI system, for input x[n] = {1/4, −1, 2} and h[n] = {2, 2/4, −2}.

Answer

No origin is marked, so take the first sample at n=0n = 0: x[n]={0.25↑,−1,2}x[n] = \{\underset{\uparrow}{0.25}, -1, 2\} and h[n]={2↑,0.5,−2}h[n] = \{\underset{\uparrow}{2}, 0.5, -2\} (note 2/4=0.52/4 = 0.5).

The output of an LTI system is y[n]=x[n]∗h[n]=∑kx[k] h[n−k]y[n] = x[n]*h[n] = \sum_k x[k]\,h[n-k].

Output starts at n=0n = 0, length 3+3−1=53 + 3 - 1 = 5, so 0≤n≤40 \le n \le 4.

Tabular method

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4
x[0] h[n]x[0]\,h[n]0.50.125-0.5
x[1] h[n−1]x[1]\,h[n-1]-2-0.52
x[2] h[n−2]x[2]\,h[n-2]41-4
y[n]y[n]0.5-1.87533-4

Direct working

  • y[0]=0.25(2)=0.5y[0] = 0.25(2) = 0.5
  • y[1]=0.25(0.5)+(−1)(2)=0.125−2=−1.875y[1] = 0.25(0.5) + (-1)(2) = 0.125 - 2 = -1.875
  • y[2]=0.25(−2)+(−1)(0.5)+2(2)=−0.5−0.5+4=3y[2] = 0.25(-2) + (-1)(0.5) + 2(2) = -0.5 - 0.5 + 4 = 3
  • y[3]=(−1)(−2)+2(0.5)=2+1=3y[3] = (-1)(-2) + 2(0.5) = 2 + 1 = 3
  • y[4]=2(−2)=−4y[4] = 2(-2) = -4

Sum check: (∑x)(∑h)=1.25×0.5=0.625(\sum x)(\sum h) = 1.25 \times 0.5 = 0.625, and 0.5−1.875+3+3−4=0.6250.5 - 1.875 + 3 + 3 - 4 = 0.625.

Answer:

y[n]={12↑, −158, 3, 3, −4}={0.5↑, −1.875, 3, 3, −4}y[n] = \left\{\underset{\uparrow}{\tfrac{1}{2}},\ -\tfrac{15}{8},\ 3,\ 3,\ -4\right\} = \{\underset{\uparrow}{0.5},\ -1.875,\ 3,\ 3,\ -4\}
  • 2079 Jestha · 8 marks

Find and plot the convolution sum of the signals x[n] = {−0.5, 1, −1, 0.5} and y[n] = {1, 2, −1, 0, 2, −1}.

Answer

No origin is marked, so take the first sample of each at n=0n = 0: x[n]={−0.5↑,1,−1,0.5}x[n] = \{\underset{\uparrow}{-0.5}, 1, -1, 0.5\} (0≤n≤30 \le n \le 3) and y[n]={1↑,2,−1,0,2,−1}y[n] = \{\underset{\uparrow}{1}, 2, -1, 0, 2, -1\} (0≤n≤50 \le n \le 5).

Let the result be z[n]=x[n]∗y[n]=∑kx[k] y[n−k]z[n] = x[n]*y[n] = \sum_k x[k]\,y[n-k].

Output starts at n=0n = 0; length 4+6−1=94 + 6 - 1 = 9, so 0≤n≤80 \le n \le 8.

Tabular method

Each row is one sample of xx times yy shifted to that position (last row is the column sum z[n]z[n]):

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5n=6n=6n=7n=7n=8n=8
x[0] y[n]x[0]\,y[n]-0.5-10.50-10.5
x[1] y[n−1]x[1]\,y[n-1]12-102-1
x[2] y[n−2]x[2]\,y[n-2]-1-210-21
x[3] y[n−3]x[3]\,y[n-3]0.51-0.501-0.5
z[n]z[n]-0.501.5-2.512-32-0.5

Direct working

  • z[0]=−0.5(1)=−0.5z[0] = -0.5(1) = -0.5
  • z[1]=−0.5(2)+1(1)=0z[1] = -0.5(2) + 1(1) = 0
  • z[2]=−0.5(−1)+1(2)+(−1)(1)=1.5z[2] = -0.5(-1) + 1(2) + (-1)(1) = 1.5
  • z[3]=−0.5(0)+1(−1)+(−1)(2)+0.5(1)=−2.5z[3] = -0.5(0) + 1(-1) + (-1)(2) + 0.5(1) = -2.5
  • z[4]=−0.5(2)+1(0)+(−1)(−1)+0.5(2)=1z[4] = -0.5(2) + 1(0) + (-1)(-1) + 0.5(2) = 1
  • z[5]=−0.5(−1)+1(2)+(−1)(0)+0.5(−1)=2z[5] = -0.5(-1) + 1(2) + (-1)(0) + 0.5(-1) = 2
  • z[6]=1(−1)+(−1)(2)+0.5(0)=−3z[6] = 1(-1) + (-1)(2) + 0.5(0) = -3
  • z[7]=(−1)(−1)+0.5(2)=2z[7] = (-1)(-1) + 0.5(2) = 2
  • z[8]=0.5(−1)=−0.5z[8] = 0.5(-1) = -0.5

Sum check: (∑x)(∑y)=0×3=0(\sum x)(\sum y) = 0 \times 3 = 0, and −0.5+0+1.5−2.5+1+2−3+2−0.5=0-0.5 + 0 + 1.5 - 2.5 + 1 + 2 - 3 + 2 - 0.5 = 0.

Answer:

z[n]={−0.5↑, 0, 1.5, −2.5, 1, 2, −3, 2, −0.5}z[n] = \{\underset{\uparrow}{-0.5},\ 0,\ 1.5,\ -2.5,\ 1,\ 2,\ -3,\ 2,\ -0.5\}

Plot

Stem plot drawn sideways (each # = 0.5; left of | is negative):

 n   z[n]
 0  -0.5       #|
 1   0.0        |
 2   1.5        |###
 3  -2.5   #####|
 4   1.0        |##
 5   2.0        |####
 6  -3.0  ######|
 7   2.0        |####
 8  -0.5       #|
  • 2079 Jestha · 7 marks

For a system characterized by linear constant coefficient difference equation y[n] = 0.4y[n−1] + x[n], find and plot the transfer function and impulse response of the system.

Answer

Given: y[n]=0.4 y[n−1]+x[n]y[n] = 0.4\,y[n-1] + x[n], i.e. y[n]−0.4 y[n−1]=x[n]y[n] - 0.4\,y[n-1] = x[n], initially at rest.

Transfer function (frequency response)

Take the DTFT of both sides (y[n−1]↔e−jωY(ejω)y[n-1] \leftrightarrow e^{-j\omega}Y(e^{j\omega})):

Y(ejω)(1−0.4e−jω)=X(ejω)H(ejω)=Y(ejω)X(ejω)=11−0.4e−jω\begin{aligned} Y(e^{j\omega})\left(1 - 0.4e^{-j\omega}\right) &= X(e^{j\omega}) \\ H(e^{j\omega}) &= \frac{Y(e^{j\omega})}{X(e^{j\omega})} = \frac{1}{1 - 0.4e^{-j\omega}} \end{aligned}

(In the z-domain, H(z)=11−0.4z−1=zz−0.4H(z) = \frac{1}{1 - 0.4z^{-1}} = \frac{z}{z - 0.4}, a pole at z=0.4z = 0.4 inside the unit circle.)

With e−jω=cos⁡ω−jsin⁡ωe^{-j\omega} = \cos\omega - j\sin\omega:

∣H(ejω)∣=1(1−0.4cos⁡ω)2+(0.4sin⁡ω)2=11.16−0.8cos⁡ω|H(e^{j\omega})| = \frac{1}{\sqrt{(1 - 0.4\cos\omega)^2 + (0.4\sin\omega)^2}} = \frac{1}{\sqrt{1.16 - 0.8\cos\omega}} θ(ω)=−tan⁡−10.4sin⁡ω1−0.4cos⁡ω\theta(\omega) = -\tan^{-1}\frac{0.4\sin\omega}{1 - 0.4\cos\omega}
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert1.6671.2970.9280.7610.714
θ\theta0°−21.5°−21.8°−12.4°0°
 |H|
1.67|          *
    |        .' '.
1.30|      *       *
0.93|    *           *
0.71|  *               *
    +--+-------+-------+--> w
     -pi       0       pi

The magnitude is even and periodic (2π2\pi), maximum 1/0.6=1.6671/0.6 = 1.667 at ω=0\omega = 0 and minimum 1/1.4=0.7141/1.4 = 0.714 at ω=π\omega = \pi: a low pass system.

Impulse response

Using anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - ae^{-j\omega}} with a=0.4a = 0.4:

h[n]=(0.4)n u[n]h[n] = (0.4)^n\,u[n]
nn<001234
h[n]h[n]010.40.160.0640.0256

(Recursion check: h[0]=1h[0] = 1, h[1]=0.4h[0]=0.4h[1] = 0.4h[0] = 0.4, h[2]=0.16h[2] = 0.16.)

 h[n]
 1.0 |  o
     |  |
 0.4 |  |  o
0.16 |  |  |  o
     |  |  |  |  o  .
   0 +--+--+--+--+--+--> n
        0  1  2  3  4

The system is causal, stable (∑h[n]=1/0.6=1.667\sum h[n] = 1/0.6 = 1.667) and IIR.

  • 2078 Baisakh · 6 marks

Find the convolution between the following sequences. h[n] = {2, 1, 5, 7}, x[n] = {1, 3, 5, 9, 6}. Choose origin as per your choice.

Answer

Chosen origin: first sample at n=0n = 0 for both: h[n]={2↑,1,5,7}h[n] = \{\underset{\uparrow}{2}, 1, 5, 7\} (0≤n≤30 \le n \le 3) and x[n]={1↑,3,5,9,6}x[n] = \{\underset{\uparrow}{1}, 3, 5, 9, 6\} (0≤n≤40 \le n \le 4).

y[n]=x[n]∗h[n]=∑kx[k] h[n−k]y[n] = x[n]*h[n] = \sum_k x[k]\,h[n-k]

Output starts at n=0n = 0; length 5+4−1=85 + 4 - 1 = 8, so 0≤n≤70 \le n \le 7.

Tabular method

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5n=6n=6n=7n=7
x[0] h[n]x[0]\,h[n]2157
x[1] h[n−1]x[1]\,h[n-1]631521
x[2] h[n−2]x[2]\,h[n-2]1052535
x[3] h[n−3]x[3]\,h[n-3]1894563
x[4] h[n−4]x[4]\,h[n-4]1263042
y[n]y[n]27184567869342

Direct working

  • y[0]=1(2)=2y[0] = 1(2) = 2
  • y[1]=1(1)+3(2)=7y[1] = 1(1) + 3(2) = 7
  • y[2]=1(5)+3(1)+5(2)=18y[2] = 1(5) + 3(1) + 5(2) = 18
  • y[3]=1(7)+3(5)+5(1)+9(2)=45y[3] = 1(7) + 3(5) + 5(1) + 9(2) = 45
  • y[4]=3(7)+5(5)+9(1)+6(2)=67y[4] = 3(7) + 5(5) + 9(1) + 6(2) = 67
  • y[5]=5(7)+9(5)+6(1)=86y[5] = 5(7) + 9(5) + 6(1) = 86
  • y[6]=9(7)+6(5)=93y[6] = 9(7) + 6(5) = 93
  • y[7]=6(7)=42y[7] = 6(7) = 42

Sum check: (∑x)(∑h)=24×15=360(\sum x)(\sum h) = 24 \times 15 = 360, and 2+7+18+45+67+86+93+42=3602 + 7 + 18 + 45 + 67 + 86 + 93 + 42 = 360.

Answer:

y[n]={2↑, 7, 18, 45, 67, 86, 93, 42}y[n] = \{\underset{\uparrow}{2},\ 7,\ 18,\ 45,\ 67,\ 86,\ 93,\ 42\}
  • 2078 Baisakh · 6 marks

Derive and plot the impulse response and frequency response of a system characterized by the difference equation y[n] + 0.55y[n−1] = x[n]

Answer

Given: y[n]+0.55 y[n−1]=x[n]y[n] + 0.55\,y[n-1] = x[n], initially at rest.

Impulse response

Put x[n]=δ[n]x[n] = \delta[n], so h[n]=δ[n]−0.55 h[n−1]h[n] = \delta[n] - 0.55\,h[n-1] with h[−1]=0h[-1] = 0:

  • h[0]=1h[0] = 1
  • h[1]=−0.55h[1] = -0.55
  • h[2]=(−0.55)2=0.3025h[2] = (-0.55)^2 = 0.3025, and so on.

So

h[n]=(−0.55)n u[n]h[n] = (-0.55)^n\,u[n]
nn012345
h[n]h[n]1−0.550.3025−0.16640.0915−0.0503
 h[n]
 1.0 |  o
     |  |     o           o
   0 +--+--+--+--+--+--+--+--> n
     |  0  |  2  |  4  |  6
-0.55|     o     o     o

The samples alternate in sign and decay (since ∣−0.55∣<1|-0.55| < 1): causal and stable, ∑∣h[n]∣=1/0.45=2.222\sum|h[n]| = 1/0.45 = 2.222.

Frequency response

DTFT of the difference equation:

Y(ejω)(1+0.55e−jω)=X(ejω)H(ejω)=11+0.55e−jω=1(1+0.55cos⁡ω)−j0.55sin⁡ω\begin{aligned} Y(e^{j\omega})\left(1 + 0.55e^{-j\omega}\right) &= X(e^{j\omega}) \\ H(e^{j\omega}) &= \frac{1}{1 + 0.55e^{-j\omega}} = \frac{1}{(1 + 0.55\cos\omega) - j0.55\sin\omega} \end{aligned}

(Also obtained from anu[n]↔11−ae−jωa^n u[n] \leftrightarrow \frac{1}{1 - ae^{-j\omega}} with a=−0.55a = -0.55.)

Magnitude:

∣H(ejω)∣=1(1+0.55cos⁡ω)2+(0.55sin⁡ω)2=11.3025+1.1cos⁡ω|H(e^{j\omega})| = \frac{1}{\sqrt{(1 + 0.55\cos\omega)^2 + (0.55\sin\omega)^2}} = \frac{1}{\sqrt{1.3025 + 1.1\cos\omega}}

Phase:

θ(ω)=tan⁡−10.55sin⁡ω1+0.55cos⁡ω\theta(\omega) = \tan^{-1}\frac{0.55\sin\omega}{1 + 0.55\cos\omega}
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert0.6450.6930.8761.3812.222
θ\theta0°15.6°28.8°32.5°0°
 |H|
2.22|*                   *
    | '.               .'
1.38|   *             *
0.88|     *         *
0.65|        '-*-'
    +--+-------+-------+--> w
     -pi       0       pi

The gain is smallest at ω=0\omega = 0 (1/1.55=0.6451/1.55 = 0.645) and largest at ω=π\omega = \pi (1/0.45=2.2221/0.45 = 2.222), so this system is a high pass filter: the negative coefficient in h[n]h[n] makes it emphasise rapid sample-to-sample changes. ∣H∣|H| is even and θ(ω)\theta(\omega) is odd, both periodic with 2π2\pi.

  • 2078 Baisakh · 6 marks

If the impulse response of a discrete LTI system is h[n] = u[n] and input to the system is x[n] = 2ⁿu[−n], determine the output y[n] of the system.

Answer

Given: h[n]=u[n]h[n] = u[n] (accumulator) and x[n]=2nu[−n]x[n] = 2^n u[-n], which is non-zero only for n≤0n \le 0: x[n]={…,18,14,12,1↑}x[n] = \{\dots, \tfrac{1}{8}, \tfrac{1}{4}, \tfrac{1}{2}, \underset{\uparrow}{1}\}.

y[n]=∑k=−∞∞x[k] h[n−k]=∑k=−∞∞2ku[−k] u[n−k]y[n] = \sum_{k=-\infty}^{\infty} x[k]\,h[n-k] = \sum_{k=-\infty}^{\infty} 2^k u[-k]\,u[n-k]

Limits: u[−k]=1u[-k] = 1 for k≤0k \le 0; u[n−k]=1u[n-k] = 1 for k≤nk \le n. So kk runs from −∞-\infty to min⁡(n,0)\min(n, 0).

Case 1: n≤0n \le 0 (here min⁡=n\min = n)

y[n]=∑k=−∞n2k(put m=n−k, m=0 to ∞)=2n∑m=0∞(12)m=2n⋅11−12=2n+1\begin{aligned} y[n] &= \sum_{k=-\infty}^{n} 2^k \quad \text{(put } m = n - k \text{, } m = 0 \text{ to } \infty\text{)} \\ &= 2^n\sum_{m=0}^{\infty}\left(\tfrac{1}{2}\right)^m = 2^n\cdot\frac{1}{1 - \frac{1}{2}} \\ &= 2^{n+1} \end{aligned}

Case 2: n>0n > 0 (here min⁡=0\min = 0)

y[n]=∑k=−∞02k=1+12+14+⋯=11−12=2y[n] = \sum_{k=-\infty}^{0} 2^k = 1 + \tfrac{1}{2} + \tfrac{1}{4} + \dots = \frac{1}{1 - \frac{1}{2}} = 2

Answer:

y[n]={2n+1,n≤02,n>0i.e.y[n]=2n+1u[−n−1]+2 u[n]y[n] = \begin{cases} 2^{n+1}, & n \le 0 \\ 2, & n > 0 \end{cases} \quad\text{i.e.}\quad y[n] = 2^{n+1}u[-n-1] + 2\,u[n]

(At n=0n = 0 both forms give 2, so the pieces join.)

nn−3−2−1012
y[n]y[n]0.250.51222
 y[n]
  2 |           o  o  o  o ...
  1 |        o  |  |  |  |
0.5 |     o  |  |  |  |  |
    |  o  |  |  |  |  |  |
  0 +--+--+--+--+--+--+--+--> n
      -3 -2 -1  0  1  2  3

This makes sense: h[n]=u[n]h[n] = u[n] is an accumulator, so y[n]=∑k=−∞nx[k]y[n] = \sum_{k=-\infty}^{n} x[k], the running sum of the input. The sum keeps growing until n=0n = 0, then stays at the total ∑x[k]=2\sum x[k] = 2 because the input is zero for n>0n > 0.

  • 2078 Poush · 2+3 marks

Define transfer function and impulse response in discrete-time. Briefly explain the procedure of drawing a bode plot.

Answer

Impulse response (discrete time)

The impulse response h[n]h[n] of a discrete-time LTI system is the output when the input is the unit impulse δ[n]\delta[n] and the system is initially at rest:

δ[n]→h[n]\delta[n] \rightarrow h[n]

Because any input can be written as x[n]=∑kx[k]δ[n−k]x[n]=\sum_k x[k]\delta[n-k], the output of an LTI system is fully fixed by h[n]h[n] through the convolution sum y[n]=x[n]∗h[n]y[n]=x[n]*h[n].

Transfer function (discrete time)

The transfer function is the ratio of the transform of the output to the transform of the input (zero initial conditions). It equals the transform of h[n]h[n]:

H(z)=Y(z)X(z)=∑n=−∞∞h[n]z−n,H(ejω)=Y(ejω)X(ejω)=∑nh[n]e−jωnH(z)=\frac{Y(z)}{X(z)}=\sum_{n=-\infty}^{\infty}h[n]z^{-n}, \qquad H(e^{j\omega})=\frac{Y(e^{j\omega})}{X(e^{j\omega})}=\sum_{n}h[n]e^{-j\omega n}

H(ejω)H(e^{j\omega}) (the frequency response) is H(z)H(z) evaluated on the unit circle z=ejωz=e^{j\omega}. Example: for y[n]=0.5y[n−1]+x[n]y[n]=0.5y[n-1]+x[n], H(ejω)=11−0.5e−jωH(e^{j\omega})=\frac{1}{1-0.5e^{-j\omega}} and h[n]=(0.5)nu[n]h[n]=(0.5)^n u[n].

Procedure for drawing a Bode plot

A Bode plot is a pair of graphs: magnitude in dB, 20log⁡10∣H(jω)∣20\log_{10}|H(j\omega)|, and phase ∠H(jω)\angle H(j\omega), both against log⁡10ω\log_{10}\omega.

  1. Write H(jω)H(j\omega) in standard (time-constant) form, e.g. H(jω)=K(1+jω/z1)jω(1+jω/p1)H(j\omega)=\frac{K(1+j\omega/z_1)}{j\omega(1+j\omega/p_1)}.
  2. Identify the factors: constant KK, poles/zeros at the origin, simple real poles/zeros, and quadratic factors. Note each corner frequency (ω=z1,p1,…\omega=z_1, p_1,\dots).
  3. Draw the asymptote of each factor:
    • constant: flat line at 20log⁡K20\log K dB, phase 0° (or 180° if K<0K<0);
    • pole at origin: line of −20-20 dB/decade through 0 dB at ω=1\omega=1, phase −90∘-90^\circ;
    • simple pole: 0 dB up to the corner, then −20-20 dB/decade; phase goes from 0° to −90∘-90^\circ (−45° at the corner);
    • simple zero: same but +20+20 dB/decade and +90∘+90^\circ;
    • quadratic pole: −40-40 dB/decade after ωn\omega_n, phase 0° to −180°.
  4. Add the magnitude asymptotes (dB adds because log of a product is a sum), starting from the lowest frequency; the slope changes by ±20 dB/dec at each corner.
  5. Add the phase curves of all factors at several frequencies.
  6. Correct the asymptotic plot if needed (about 3 dB at a simple corner; resonance peak for low damping).

For a discrete-time system the same idea is used with H(ejω)H(e^{j\omega}) plotted for 0≤ω≤π0\le\omega\le\pi (it is periodic in 2π2\pi), usually on a linear frequency axis.

 dB
  |------\            magnitude: flat, then
  |       \  -20 dB/dec   rolls off after corner
  |        \
  +---------+--------> log w
          w_c
  • 2078 Poush · 4 marks

Determine the range of a and b for which the given LTI system becomes stable whose impulse response is: h[n] = e^(an) u[n] + e^(bn) u[−n], where u[n] is discrete-time unit step function.

Answer

An LTI system is BIBO stable if and only if its impulse response is absolutely summable:

S=∑n=−∞∞∣h[n]∣<∞S=\sum_{n=-\infty}^{\infty}|h[n]|<\infty

Here h[n]=eanu[n]+ebnu[−n]h[n]=e^{an}u[n]+e^{bn}u[-n] (take a,ba,b real). Split the sum:

S=∑n=0∞ean+∑n=−∞0ebn=∑n=0∞(ea)n+∑m=0∞(e−b)m(m=−n)\begin{aligned} S &= \sum_{n=0}^{\infty} e^{an} + \sum_{n=-\infty}^{0} e^{bn} \\ &= \sum_{n=0}^{\infty} (e^{a})^{n} + \sum_{m=0}^{\infty} (e^{-b})^{m} \qquad (m=-n) \end{aligned}

(At n=0n=0 both terms are present; that adds only a finite value 2, so it does not affect convergence.)

Right-sided (causal) part

A geometric series ∑rn\sum r^n converges only if ∣r∣<1|r|<1:

ea<1  ⇒  a<0e^{a}<1 \;\Rightarrow\; a<0

Its sum is then 11−ea\frac{1}{1-e^{a}}.

Left-sided (anti-causal) part

e−b<1  ⇒  −b<0  ⇒  b>0e^{-b}<1 \;\Rightarrow\; -b<0 \;\Rightarrow\; b>0

Its sum is then 11−e−b\frac{1}{1-e^{-b}}.

Result

Both series must converge, so

S=11−ea+11−e−b<∞only when a<0 and b>0S=\frac{1}{1-e^{a}}+\frac{1}{1-e^{-b}}<\infty \quad \text{only when } a<0 \text{ and } b>0

Answer: the system is stable for a<0a<0 and b>0b>0 (if a,ba,b are complex: Re(a)<0\mathrm{Re}(a)<0 and Re(b)>0\mathrm{Re}(b)>0). Physically, the part for n≥0n\ge0 must decay as n→+∞n\to+\infty and the part for n≤0n\le0 must decay as n→−∞n\to-\infty. Note that the system is non-causal because h[n]≠0h[n]\ne0 for n<0n<0.

  • 2080 Chaitra · 6 marks

Define LTI system. Explain the properties of discrete time LTI system.

Answer

A linear time-invariant (LTI) system is a system that is both linear (obeys superposition: ax1+bx2→ay1+by2a x_1+b x_2 \rightarrow a y_1+b y_2) and time-invariant (a shift of the input only shifts the output: x[n−n0]→y[n−n0]x[n-n_0]\rightarrow y[n-n_0]). A discrete-time LTI system is completely described by its impulse response h[n]h[n], and its output is the convolution sum

y[n]=x[n]∗h[n]=∑k=−∞∞x[k] h[n−k]y[n]=x[n]*h[n]=\sum_{k=-\infty}^{\infty}x[k]\,h[n-k]

Properties of discrete-time LTI systems

  1. Commutative: x[n]∗h[n]=h[n]∗x[n]x[n]*h[n]=h[n]*x[n]. Input and impulse response can be interchanged.
  2. Associative: {x[n]∗h1[n]}∗h2[n]=x[n]∗{h1[n]∗h2[n]}\{x[n]*h_1[n]\}*h_2[n]=x[n]*\{h_1[n]*h_2[n]\}. Two systems in cascade are equal to one system with h=h1∗h2h=h_1*h_2, and the order of the cascade does not matter.
  3. Distributive: x[n]∗{h1[n]+h2[n]}=x∗h1+x∗h2x[n]*\{h_1[n]+h_2[n]\}=x*h_1+x*h_2. Two systems in parallel equal one system with h=h1+h2h=h_1+h_2.
  4. Memory: the system is memoryless only if h[n]=Kδ[n]h[n]=K\delta[n], i.e. y[n]=Kx[n]y[n]=Kx[n]. Otherwise it has memory.
  5. Causality: causal if and only if h[n]=0h[n]=0 for n<0n<0. Then y[n]=∑k=0∞h[k]x[n−k]y[n]=\sum_{k=0}^{\infty}h[k]x[n-k] uses only present and past inputs.
  6. Stability (BIBO): stable if and only if ∑n∣h[n]∣<∞\sum_{n}|h[n]|<\infty.
  7. Invertibility: invertible if an inverse system hi[n]h_i[n] exists with h[n]∗hi[n]=δ[n]h[n]*h_i[n]=\delta[n]. Example: accumulator h=u[n]h=u[n] and first difference hi=δ[n]−δ[n−1]h_i=\delta[n]-\delta[n-1].
  8. Unit step response: s[n]=∑k=−∞nh[k]s[n]=\sum_{k=-\infty}^{n}h[k] and h[n]=s[n]−s[n−1]h[n]=s[n]-s[n-1].
  9. Eigenfunction property: complex exponentials pass through unchanged in shape: zn→H(z)znz^n \rightarrow H(z)z^n, ejωn→H(ejω)ejωne^{j\omega n}\rightarrow H(e^{j\omega})e^{j\omega n}. This is why Fourier and z-transforms are used for LTI systems.
PropertyCondition on h[n]h[n]
Memorylessh[n]=Kδ[n]h[n]=K\delta[n]
Causalh[n]=0, n<0h[n]=0,\ n<0
Stable∑∣h[n]∣<∞\sum\lvert h[n]\rvert<\infty
Invertibleh∗hi=δ[n]h*h_i=\delta[n]

Example: h[n]=(0.5)nu[n]h[n]=(0.5)^n u[n] is causal (zero for n<0n<0), has memory, and is stable since ∑(0.5)n=2<∞\sum (0.5)^n = 2<\infty.

  • 2079 Chaitra · 5 marks

Convolve the signal x[n] = {3, 1, 5} and h[n] = {1, 4, −2, 3}

Answer

The convolution sum is y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k]. Since the origin is not marked, take the first sample of each sequence at n=0n=0: x[n]={3,1,5}x[n]=\{3,1,5\} for n=0,1,2n=0,1,2 and h[n]={1,4,−2,3}h[n]=\{1,4,-2,3\} for n=0,…,3n=0,\dots,3.

Length of yy = 3+4−1=63+4-1=6, running from n=0+0=0n=0+0=0 to n=2+3=5n=2+3=5.

Tabular (multiplication) method

Each row is x[k]x[k] times the whole of hh, shifted by kk:

n=0n=012345
3⋅h3\cdot h312−69
1⋅h1\cdot h14−23
5⋅h5\cdot h520−1015
y[n]y[n]313327−715

Check of each value

y[0]=3(1)=3y[1]=3(4)+1(1)=13y[2]=3(−2)+1(4)+5(1)=3y[3]=3(3)+1(−2)+5(4)=27y[4]=1(3)+5(−2)=−7y[5]=5(3)=15\begin{aligned} y[0]&=3(1)=3\\ y[1]&=3(4)+1(1)=13\\ y[2]&=3(-2)+1(4)+5(1)=3\\ y[3]&=3(3)+1(-2)+5(4)=27\\ y[4]&=1(3)+5(-2)=-7\\ y[5]&=5(3)=15 \end{aligned}

Check: ∑y=54=(∑x)(∑h)=9×6\sum y = 54 = (\sum x)(\sum h) = 9\times 6. Correct.

Answer: y[n]={3, 13, 3, 27, −7, 15}y[n]=\{3,\ 13,\ 3,\ 27,\ -7,\ 15\} for n=0n=0 to 55 (↑ at 3).

  • 2078 Chaitra · 8 marks

Find and plot the convolution between x[n] = |n| for −2 ≤ n ≤ 2, 0 otherwise and y[n] = 2n for 2 ≤ n ≤ 5, 0 otherwise.

Answer

Write both sequences with their sample positions. (The second signal is called y[n]y[n] in the question; to avoid confusion it is renamed h[n]h[n] and the result is c[n]=x[n]∗h[n]c[n]=x[n]*h[n].)

x[n]=∣n∣:x[−2]=2, x[−1]=1, x[0]=0, x[1]=1, x[2]=2x[n]=|n|:\quad x[-2]=2,\ x[-1]=1,\ x[0]=0,\ x[1]=1,\ x[2]=2 h[n]=2n:h[2]=4, h[3]=6, h[4]=8, h[5]=10h[n]=2n:\quad h[2]=4,\ h[3]=6,\ h[4]=8,\ h[5]=10

The result starts at n=−2+2=0n=-2+2=0, ends at n=2+5=7n=2+5=7, and has 5+4−1=85+4-1=8 samples.

Tabular method

Rows are x[k] h[n−k]x[k]\,h[n-k] for each kk:

kk, x[k]x[k]n=0n=01234567
−2-2, 28121620
−1-1, 146810
00, 00000
11, 146810
22, 28121620
c[n]c[n]816223224202620

Example check: c[3]=x[−2]h[5]+x[−1]h[4]+x[0]h[3]+x[1]h[2]=20+8+0+4=32c[3]=x[-2]h[5]+x[-1]h[4]+x[0]h[3]+x[1]h[2]=20+8+0+4=32. Sum check: ∑c=168=(∑x)(∑h)=6×28\sum c = 168 = (\sum x)(\sum h)=6\times 28.

Answer: c[n]={8,16,22,32,24,20,26,20}c[n]=\{8,16,22,32,24,20,26,20\} for n=0,1,…,7n=0,1,\dots,7, zero elsewhere.

Plot

    c[n]
     32             o
     26             |           o
     24             |   o       |
     22         o   |   |       |
     20         |   |   |   o   |   o
     16     o   |   |   |   |   |   |
      8 o   |   |   |   |   |   |   |
      0 +---+---+---+---+---+---+---+--> n
        0   1   2   3   4   5   6   7
  • 2077 Chaitra · 6 marks

Find the convolution between the following sequences. h[n] = {2, 0, −1, 2}, x[n] = {1, 2, −1, 3}. Choose origin as per your choice.

Answer

Choose the origin at the first sample of each sequence: x[n]={1,2,−1,3}x[n]=\{1,2,-1,3\} and h[n]={2,0,−1,2}h[n]=\{2,0,-1,2\} for n=0,1,2,3n=0,1,2,3.

The output has 4+4−1=74+4-1=7 samples, from n=0n=0 to n=6n=6, with y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k].

Tabular method

n=0n=0123456
x[0]h=1⋅hx[0]h = 1\cdot h20−12
x[1]h=2⋅hx[1]h = 2\cdot h40−24
x[2]h=−1⋅hx[2]h = -1\cdot h−201−2
x[3]h=3⋅hx[3]h = 3\cdot h60−36
y[n]y[n]24−365−56

Step-by-step values

y[0]=1(2)=2y[1]=1(0)+2(2)=4y[2]=1(−1)+2(0)+(−1)(2)=−3y[3]=1(2)+2(−1)+(−1)(0)+3(2)=6y[4]=2(2)+(−1)(−1)+3(0)=5y[5]=(−1)(2)+3(−1)=−5y[6]=3(2)=6\begin{aligned} y[0]&=1(2)=2\\ y[1]&=1(0)+2(2)=4\\ y[2]&=1(-1)+2(0)+(-1)(2)=-3\\ y[3]&=1(2)+2(-1)+(-1)(0)+3(2)=6\\ y[4]&=2(2)+(-1)(-1)+3(0)=5\\ y[5]&=(-1)(2)+3(-1)=-5\\ y[6]&=3(2)=6 \end{aligned}

Check: ∑y=15=(∑x)(∑h)=5×3\sum y=15=(\sum x)(\sum h)=5\times3.

Answer: y[n]={2, 4, −3, 6, 5, −5, 6}y[n]=\{2,\ 4,\ -3,\ 6,\ 5,\ -5,\ 6\}, with y[0]=2y[0]=2 (↑ at the first value).

If a different origin is chosen, the values stay the same; only the starting index changes (start index of yy = start of xx + start of hh).

  • 2076 Baisakh · 5 marks

Derive formula to calculate the impulse response of ideal low pass filter in discrete time.

Answer

An ideal discrete-time low pass filter passes all frequencies below a cut-off ωc\omega_c with unit gain and blocks the rest. Its frequency response over one period (−π≤ω≤π-\pi\le\omega\le\pi) is

H(ejω)={1,∣ω∣≤ωc0,ωc<∣ω∣≤πH(e^{j\omega})=\begin{cases}1, & |\omega|\le\omega_c\\ 0, & \omega_c<|\omega|\le\pi\end{cases}

and it repeats every 2π2\pi.

        H(e^jw)
          1 +-----+
            |     |
 ----+------+-----+------+---> w
    -pi   -wc  0  wc     pi

Derivation

The impulse response is the inverse DTFT:

h[n]=12π∫−ππH(ejω)ejωn dω=12π∫−ωcωcejωn dω=12π[ejωnjn]−ωcωc=12π⋅ejωcn−e−jωcnjn=12π⋅2jsin⁡(ωcn)jn=sin⁡(ωcn)πn,n≠0\begin{aligned} h[n] &= \frac{1}{2\pi}\int_{-\pi}^{\pi}H(e^{j\omega})e^{j\omega n}\,d\omega = \frac{1}{2\pi}\int_{-\omega_c}^{\omega_c}e^{j\omega n}\,d\omega \\ &= \frac{1}{2\pi}\left[\frac{e^{j\omega n}}{jn}\right]_{-\omega_c}^{\omega_c} = \frac{1}{2\pi}\cdot\frac{e^{j\omega_c n}-e^{-j\omega_c n}}{jn} \\ &= \frac{1}{2\pi}\cdot\frac{2j\sin(\omega_c n)}{jn} = \frac{\sin(\omega_c n)}{\pi n}, \qquad n\ne 0 \end{aligned}

At n=0n=0:

h[0]=12π∫−ωcωcdω=ωcπh[0]=\frac{1}{2\pi}\int_{-\omega_c}^{\omega_c}d\omega=\frac{\omega_c}{\pi}

which is also the limit of sin⁡ωcnπn\frac{\sin\omega_c n}{\pi n} as n→0n\to0. So

h[n]=sin⁡(ωcn)πn=ωcπ sinc ⁣(ωcnπ)h[n]=\frac{\sin(\omega_c n)}{\pi n}=\frac{\omega_c}{\pi}\,\mathrm{sinc}\!\left(\frac{\omega_c n}{\pi}\right)

Remarks

  • h[n]h[n] is a sampled sinc: maximum ωc/π\omega_c/\pi at n=0n=0, zero crossings where ωcn\omega_c n is a multiple of π\pi.
  • h[n]≠0h[n]\ne0 for n<0n<0, so the ideal LPF is non-causal.
  • ∑∣h[n]∣\sum|h[n]| diverges (decays only as 1/n1/n), so it is not BIBO stable. Hence it cannot be built exactly; practical filters truncate/window h[n]h[n] and delay it.
  • Example: for ωc=π/2\omega_c=\pi/2, h[n]=sin⁡(πn/2)πnh[n]=\frac{\sin(\pi n/2)}{\pi n}: h[0]=0.5h[0]=0.5, h[±1]=1/π≈0.318h[\pm1]=1/\pi\approx0.318, h[±2]=0h[\pm2]=0, h[±3]=−1/(3π)≈−0.106h[\pm3]=-1/(3\pi)\approx-0.106.
  • 2076 Baisakh · 6 marks

Find the convolution sum of x[n] = {1, 3, 4, 3, 1} and h[n] = {2, 2, −2}

Answer

Take the origin at the first sample of each sequence (none is marked): x[n]={1,3,4,3,1}x[n]=\{1,3,4,3,1\}, n=0..4n=0..4 and h[n]={2,2,−2}h[n]=\{2,2,-2\}, n=0..2n=0..2.

Output length =5+3−1=7=5+3-1=7, for n=0n=0 to 66; y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k].

Tabular method

n=0n=0123456
1⋅h1\cdot h22−2
3⋅h3\cdot h66−6
4⋅h4\cdot h88−8
3⋅h3\cdot h66−6
1⋅h1\cdot h22−2
y[n]y[n]281280−4−2

Check by formula

y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=−2+6+8=12y[4]=x[2]h[2]+x[3]h[1]+x[4]h[0]=−8+6+2=0\begin{aligned} y[2]&=x[0]h[2]+x[1]h[1]+x[2]h[0]=-2+6+8=12\\ y[4]&=x[2]h[2]+x[3]h[1]+x[4]h[0]=-8+6+2=0 \end{aligned}

Sum check: ∑y=24=(∑x)(∑h)=12×2\sum y=24=(\sum x)(\sum h)=12\times2.

Answer: y[n]={2, 8, 12, 8, 0, −4, −2}y[n]=\{2,\ 8,\ 12,\ 8,\ 0,\ -4,\ -2\} for n=0,…,6n=0,\dots,6 (↑ at 2).

  • 2076 Bhadra · 4 marks

Check whether the discrete-time system described by the following input-output relation is linear or non-linear. y[n] = 2 × x[n] + 5

Answer

A system is linear if it satisfies superposition (additivity and homogeneity):

a1x1[n]+a2x2[n] → a1y1[n]+a2y2[n]a_1x_1[n]+a_2x_2[n]\ \rightarrow\ a_1y_1[n]+a_2y_2[n]

Test

Let x1[n]→y1[n]=2x1[n]+5x_1[n]\rightarrow y_1[n]=2x_1[n]+5 and x2[n]→y2[n]=2x2[n]+5x_2[n]\rightarrow y_2[n]=2x_2[n]+5.

Response to the combined input x3=a1x1+a2x2x_3=a_1x_1+a_2x_2:

y3[n]=2(a1x1[n]+a2x2[n])+5=2a1x1[n]+2a2x2[n]+5y_3[n]=2\big(a_1x_1[n]+a_2x_2[n]\big)+5=2a_1x_1[n]+2a_2x_2[n]+5

Weighted sum of the individual outputs:

a1y1[n]+a2y2[n]=2a1x1[n]+2a2x2[n]+5(a1+a2)a_1y_1[n]+a_2y_2[n]=2a_1x_1[n]+2a_2x_2[n]+5(a_1+a_2)

These are equal only if a1+a2=1a_1+a_2=1, not for all constants. So y3[n]≠a1y1[n]+a2y2[n]y_3[n]\ne a_1y_1[n]+a_2y_2[n] in general.

Quick check (zero-input test): for a linear system, zero input gives zero output. Here x[n]=0x[n]=0 gives y[n]=5≠0y[n]=5\ne0.

Numerical example: x[n]=1→y=7x[n]=1\rightarrow y=7; doubling the input, x[n]=2→y=9≠14x[n]=2\rightarrow y=9\ne 14.

Answer: the system y[n]=2x[n]+5y[n]=2x[n]+5 is non-linear. It is called incrementally linear: it is a linear system (2x[n]2x[n]) plus a constant offset (5), so differences of outputs do respond linearly to differences of inputs. (It is memoryless, causal, time-invariant and stable.)

  • 2076 Bhadra · 3+4 marks

Define invertibility of LTI system with suitable example if impulse response h[n] = u[n] and inverse system h′[n] = δ[n] − δ[n−1]. Prove that their convolution must be δ[n].

Answer

Invertibility

A system is invertible if distinct inputs give distinct outputs, so the input can be recovered from the output. For an LTI system with impulse response h[n]h[n], an inverse system h′[n]h'[n] exists such that the cascade gives back the input:

h[n]∗h′[n]=δ[n]h[n]*h'[n]=\delta[n]
 x[n] +------+  y[n] +-------+  x[n]
 ---->| h[n] |------>| h'[n] |------>
      +------+       +-------+
   overall response h*h' = delta[n]

Example: h[n]=u[n]h[n]=u[n] is the accumulator, y[n]=∑k=−∞nx[k]y[n]=\sum_{k=-\infty}^{n}x[k]. Its inverse is the first difference, h′[n]=δ[n]−δ[n−1]h'[n]=\delta[n]-\delta[n-1], i.e. w[n]=y[n]−y[n−1]w[n]=y[n]-y[n-1], which recovers x[n]x[n]. By contrast y[n]=0y[n]=0 or y[n]=x2[n]y[n]=x^2[n] are not invertible.

Proof that u[n]∗h′[n]=δ[n]u[n]*h'[n]=\delta[n]

Using the shifting property of the impulse, f[n]∗δ[n−n0]=f[n−n0]f[n]*\delta[n-n_0]=f[n-n_0]:

h[n]∗h′[n]=u[n]∗(δ[n]−δ[n−1])=u[n]∗δ[n]−u[n]∗δ[n−1]=u[n]−u[n−1]\begin{aligned} h[n]*h'[n] &= u[n]*\big(\delta[n]-\delta[n-1]\big)\\ &= u[n]*\delta[n]-u[n]*\delta[n-1]\\ &= u[n]-u[n-1] \end{aligned}

Now evaluate u[n]−u[n−1]u[n]-u[n-1]:

nnu[n]u[n]u[n−1]u[n-1]difference
<0<0000
0101
≥1\ge1110

So it is 1 only at n=0n=0:

u[n]−u[n−1]=δ[n]u[n]-u[n-1]=\delta[n]

Same result from the convolution sum: ∑ku[k]h′[n−k]=∑ku[k](δ[n−k]−δ[n−1−k])=u[n]−u[n−1]=δ[n]\sum_k u[k]h'[n-k]=\sum_k u[k](\delta[n-k]-\delta[n-1-k])=u[n]-u[n-1]=\delta[n].

Hence the cascade of the accumulator and the first difference is the identity system; h′[n]=δ[n]−δ[n−1]h'[n]=\delta[n]-\delta[n-1] is the inverse of h[n]=u[n]h[n]=u[n]. Check in the frequency domain: H(ejω)H′(ejω)=11−e−jω⋅(1−e−jω)=1H(e^{j\omega})H'(e^{j\omega})=\frac{1}{1-e^{-j\omega}}\cdot(1-e^{-j\omega})=1.

  • 2076 Bhadra · 7 marks

Find the frequency response H(e^(jω)) and impulse response h[n] for a system characterized by linear constant coefficient difference equation y[n] = 0.3y[n−1] + x[n].

Answer

Given y[n]=0.3y[n−1]+x[n]y[n]=0.3y[n-1]+x[n], i.e. y[n]−0.3y[n−1]=x[n]y[n]-0.3y[n-1]=x[n] (system initially at rest).

Frequency response

Take the DTFT of both sides, using the time-shift property y[n−1]↔e−jωY(ejω)y[n-1]\leftrightarrow e^{-j\omega}Y(e^{j\omega}):

Y(ejω)−0.3e−jωY(ejω)=X(ejω)H(ejω)=Y(ejω)X(ejω)=11−0.3e−jω\begin{aligned} Y(e^{j\omega})-0.3e^{-j\omega}Y(e^{j\omega}) &= X(e^{j\omega})\\ H(e^{j\omega})=\frac{Y(e^{j\omega})}{X(e^{j\omega})} &= \frac{1}{1-0.3e^{-j\omega}} \end{aligned}

Magnitude and phase (using e−jω=cos⁡ω−jsin⁡ωe^{-j\omega}=\cos\omega-j\sin\omega):

∣H(ejω)∣=1(1−0.3cos⁡ω)2+(0.3sin⁡ω)2=11.09−0.6cos⁡ω|H(e^{j\omega})|=\frac{1}{\sqrt{(1-0.3\cos\omega)^2+(0.3\sin\omega)^2}}=\frac{1}{\sqrt{1.09-0.6\cos\omega}} ∠H(ejω)=−tan⁡−1 ⁣(0.3sin⁡ω1−0.3cos⁡ω)\angle H(e^{j\omega})=-\tan^{-1}\!\left(\frac{0.3\sin\omega}{1-0.3\cos\omega}\right)
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert1.42861.22560.95780.81260.7692
∠H\angle H (deg)0−15.07−16.70−9.930

The gain falls from 1/0.71/0.7 at ω=0\omega=0 to 1/1.31/1.3 at ω=π\omega=\pi, so it is a low pass system.

Impulse response

Use the standard DTFT pair anu[n]↔11−ae−jωa^n u[n]\leftrightarrow\frac{1}{1-ae^{-j\omega}} for ∣a∣<1|a|<1. With a=0.3a=0.3:

h[n]=(0.3)n u[n]h[n]=(0.3)^n\,u[n]

Check by recursion with x[n]=δ[n]x[n]=\delta[n], h[−1]=0h[-1]=0: h[0]=1h[0]=1, h[1]=0.3h[1]=0.3, h[2]=0.09h[2]=0.09, h[3]=0.027,…h[3]=0.027,\dots which matches (0.3)n(0.3)^n.

Answer: H(ejω)=11−0.3e−jωH(e^{j\omega})=\dfrac{1}{1-0.3e^{-j\omega}} and h[n]=(0.3)nu[n]h[n]=(0.3)^n u[n]. The system is causal and stable (∑h=1/0.7≈1.43\sum h=1/0.7\approx1.43).

  • 2075 Bhadra · 4 marks

Derive the transfer function for discrete time low pass filter.

Answer

A simple discrete-time low pass filter is the first-order recursive filter

y[n]−a y[n−1]=x[n],0<a<1y[n]-a\,y[n-1]=x[n], \qquad 0<a<1

(the output is the input plus a fraction aa of the previous output, so fast changes are smoothed).

Derivation of the transfer function

Take the z-transform (zero initial conditions), y[n−1]↔z−1Y(z)y[n-1]\leftrightarrow z^{-1}Y(z):

Y(z)−az−1Y(z)=X(z)H(z)=Y(z)X(z)=11−az−1=zz−a,∣z∣>∣a∣\begin{aligned} Y(z)-az^{-1}Y(z)&=X(z)\\ H(z)=\frac{Y(z)}{X(z)}&=\frac{1}{1-az^{-1}}=\frac{z}{z-a}, \qquad |z|>|a| \end{aligned}

Frequency response (put z=ejωz=e^{j\omega}):

H(ejω)=11−ae−jω,∣H(ejω)∣=11+a2−2acos⁡ωH(e^{j\omega})=\frac{1}{1-ae^{-j\omega}}, \qquad |H(e^{j\omega})|=\frac{1}{\sqrt{1+a^2-2a\cos\omega}}

Impulse response: h[n]=anu[n]h[n]=a^n u[n].

Why it is low pass

  • At ω=0\omega=0: ∣H∣=11−a|H|=\frac{1}{1-a} (maximum).
  • At ω=π\omega=\pi: ∣H∣=11+a|H|=\frac{1}{1+a} (minimum).

For 0<a<10<a<1 the gain decreases from low to high frequency. Example a=0.5a=0.5: gain 2 at ω=0\omega=0 and 0.667 at ω=π\omega=\pi. (For −1<a<0-1<a<0 the same equation is a high pass filter.) The pole is at z=az=a near z=1z=1 (i.e. near ω=0\omega=0), which boosts low frequencies.

 |H|
 1/(1-a) *
          *
            *  *
                  *  *  *  1/(1+a)
 ---------------------------> w
  0                     pi

Ideal low pass filter (for reference)

The ideal LPF has H(ejω)=1H(e^{j\omega})=1 for ∣ω∣≤ωc|\omega|\le\omega_c and 00 for ωc<∣ω∣≤π\omega_c<|\omega|\le\pi, which gives h[n]=sin⁡ωcnπnh[n]=\frac{\sin\omega_c n}{\pi n}. It is non-causal and not realizable, so first-order (or higher-order) recursive filters like the one above are used in practice.

  • 2074 Bhadra · 6 marks

For a system characterized by linear constant coefficient difference equation: y[n] = 0.3y[n−1] + x[n], find the transfer function, plot magnitude and find the impulse response of the system.

Answer

System: y[n]=0.3y[n−1]+x[n]y[n]=0.3y[n-1]+x[n], initially at rest.

Transfer function

Take the z-transform:

Y(z)=0.3z−1Y(z)+X(z)H(z)=Y(z)X(z)=11−0.3z−1=zz−0.3,∣z∣>0.3\begin{aligned} Y(z)&=0.3z^{-1}Y(z)+X(z)\\ H(z)=\frac{Y(z)}{X(z)}&=\frac{1}{1-0.3z^{-1}}=\frac{z}{z-0.3}, \qquad |z|>0.3 \end{aligned}

There is a pole at z=0.3z=0.3 (inside the unit circle) and a zero at z=0z=0. On the unit circle, z=ejωz=e^{j\omega}:

H(ejω)=11−0.3e−jωH(e^{j\omega})=\frac{1}{1-0.3e^{-j\omega}}

Magnitude

∣H(ejω)∣=1(1−0.3cos⁡ω)2+(0.3sin⁡ω)2=11.09−0.6cos⁡ω|H(e^{j\omega})|=\frac{1}{\sqrt{(1-0.3\cos\omega)^2+(0.3\sin\omega)^2}}=\frac{1}{\sqrt{1.09-0.6\cos\omega}}
ω\omega0π/4\pi/4π/2\pi/23π/43\pi/4π\pi
∣H∣\lvert H\rvert1.42861.22560.95780.81260.7692

The magnitude is even in ω\omega and periodic with period 2π2\pi:

 |H(e^jw)|
 1.43 |            *
      |         *     *
 1.0  |      *           *
      |   *                 *
 0.77 |*                       *
      +--+--------+--------+---> w
       -pi        0        pi

It is a low pass response: maximum 1/0.71/0.7 at ω=0\omega=0, minimum 1/1.31/1.3 at ω=±π\omega=\pm\pi.

Impulse response

Using anu[n]↔11−az−1a^n u[n]\leftrightarrow\frac{1}{1-az^{-1}} (∣z∣>∣a∣|z|>|a|) with a=0.3a=0.3:

h[n]=(0.3)nu[n]h[n]=(0.3)^n u[n]

Recursion check with x=δ[n]x=\delta[n]: h[0]=1, h[1]=0.3, h[2]=0.09, h[3]=0.027,…h[0]=1,\ h[1]=0.3,\ h[2]=0.09,\ h[3]=0.027,\dots

Answer: H(z)=11−0.3z−1H(z)=\dfrac{1}{1-0.3z^{-1}}, ∣H(ejω)∣=11.09−0.6cos⁡ω|H(e^{j\omega})|=\dfrac{1}{\sqrt{1.09-0.6\cos\omega}}, h[n]=(0.3)nu[n]h[n]=(0.3)^n u[n] (causal and stable).

  • 2073 Bhadra · 2+3+5 marks

What is LTI system? In a LTI system show that convolution operation is commutative, find y[n] when x[n] = {1, 2, 3, 4} (↑ at 1, i.e. x[0] = 1) and h[n] = {2, 1, 2} (↑ at 1, i.e. h[0] = 1).

Answer

LTI system

An LTI system is one that is both linear (superposition holds) and time-invariant (a delay in the input gives the same delay in the output). It is completely described by its impulse response h[n]h[n], and the output for any input is y[n]=x[n]∗h[n]=∑kx[k]h[n−k]y[n]=x[n]*h[n]=\sum_k x[k]h[n-k].

Commutative property

To show x[n]∗h[n]=h[n]∗x[n]x[n]*h[n]=h[n]*x[n]:

x[n]∗h[n]=∑k=−∞∞x[k] h[n−k]x[n]*h[n]=\sum_{k=-\infty}^{\infty}x[k]\,h[n-k]

Put m=n−km=n-k, so k=n−mk=n-m. As kk goes from −∞-\infty to ∞\infty, mm also covers −∞-\infty to ∞\infty:

x[n]∗h[n]=∑m=−∞∞x[n−m] h[m]=∑m=−∞∞h[m] x[n−m]=h[n]∗x[n]x[n]*h[n]=\sum_{m=-\infty}^{\infty}x[n-m]\,h[m]=\sum_{m=-\infty}^{\infty}h[m]\,x[n-m]=h[n]*x[n]

So a system with impulse response hh driven by xx gives the same output as a system with impulse response xx driven by hh.

Computing y[n]

x[n]={1,2,3,4}x[n]=\{1,2,3,4\} with x[0]=1x[0]=1 (so n=0..3n=0..3); h[n]={2,1,2}h[n]=\{2,1,2\} with h[0]=1h[0]=1 (so h[−1]=2, h[0]=1, h[1]=2h[-1]=2,\ h[0]=1,\ h[1]=2).

Start index =0+(−1)=−1=0+(-1)=-1, length =4+3−1=6=4+3-1=6, so y[n]y[n] runs from n=−1n=-1 to 44.

n=−1n=-101234
x[0]h=1⋅hx[0]h = 1\cdot h212
x[1]h=2⋅hx[1]h = 2\cdot h424
x[2]h=3⋅hx[2]h = 3\cdot h636
x[3]h=4⋅hx[3]h = 4\cdot h848
y[n]y[n]251015108

For example, y[1]=x[0]h[1]+x[1]h[0]+x[2]h[−1]=2+2+6=10y[1]=x[0]h[1]+x[1]h[0]+x[2]h[-1]=2+2+6=10. Sum check: ∑y=50=10×5\sum y=50=10\times5.

Answer: y[n]={2, 5, 10, 15, 10, 8}y[n]=\{2,\ 5,\ 10,\ 15,\ 10,\ 8\} for n=−1,…,4n=-1,\dots,4, i.e. y[0]=5y[0]=5.

Computing h∗xh*x (each hh value times xx) gives the same numbers, which verifies the commutative property.

  • 2072 Magh · 4+5 marks

What are the properties of LTI systems? Determine whether the given system is linear or not? y[n] = e^(x[n])

Answer

Properties of LTI systems

An LTI system is linear and time-invariant; its output is y[n]=x[n]∗h[n]y[n]=x[n]*h[n]. Its main properties:

  1. Commutative: x∗h=h∗xx*h=h*x.
  2. Associative: (x∗h1)∗h2=x∗(h1∗h2)(x*h_1)*h_2=x*(h_1*h_2); a cascade equals one system h1∗h2h_1*h_2, in any order.
  3. Distributive: x∗(h1+h2)=x∗h1+x∗h2x*(h_1+h_2)=x*h_1+x*h_2; parallel systems add their impulse responses.
  4. Memoryless only if h[n]=Kδ[n]h[n]=K\delta[n].
  5. Causal if and only if h[n]=0h[n]=0 for n<0n<0.
  6. BIBO stable if and only if ∑n∣h[n]∣<∞\sum_n|h[n]|<\infty.
  7. Invertible if some hi[n]h_i[n] satisfies h∗hi=δ[n]h*h_i=\delta[n].
  8. Step response s[n]=∑k≤nh[k]s[n]=\sum_{k\le n}h[k], and h[n]=s[n]−s[n−1]h[n]=s[n]-s[n-1].
  9. Eigenfunction: ejωn→H(ejω)ejωne^{j\omega n}\rightarrow H(e^{j\omega})e^{j\omega n}.

Is y[n]=ex[n]y[n]=e^{x[n]} linear?

A system is linear if a1x1+a2x2→a1y1+a2y2a_1x_1+a_2x_2\rightarrow a_1y_1+a_2y_2.

Let y1[n]=ex1[n]y_1[n]=e^{x_1[n]} and y2[n]=ex2[n]y_2[n]=e^{x_2[n]}. For x3=a1x1+a2x2x_3=a_1x_1+a_2x_2:

y3[n]=ea1x1[n]+a2x2[n]=(ex1[n])a1(ex2[n])a2y_3[n]=e^{a_1x_1[n]+a_2x_2[n]}=\left(e^{x_1[n]}\right)^{a_1}\left(e^{x_2[n]}\right)^{a_2}

while

a1y1[n]+a2y2[n]=a1ex1[n]+a2ex2[n]a_1y_1[n]+a_2y_2[n]=a_1e^{x_1[n]}+a_2e^{x_2[n]}

These are not equal in general (one is a product, the other a sum).

Also, zero input gives y[n]=e0=1≠0y[n]=e^0=1\ne0, which a linear system cannot do.

Numerical check: x=1→y=e≈2.718x=1\rightarrow y=e\approx2.718; x=2→y=e2≈7.389≠2(2.718)=5.437x=2\rightarrow y=e^2\approx7.389\ne2(2.718)=5.437.

Answer: y[n]=ex[n]y[n]=e^{x[n]} is non-linear. (It is, however, time-invariant, memoryless, causal, and BIBO stable, since ∣x∣≤B|x|\le B gives ∣y∣≤eB|y|\le e^{B}.)

  • 2072 Magh · 8 marks

Consider a system with impulse response h[n] = {1, 2, 2, 5}. Determine the output y[n] for input x[n] = {1, 3}

Answer

Take h[0]h[0] and x[0]x[0] as the first samples (no origin is marked): h[n]={1,2,2,5}h[n]=\{1,2,2,5\}, n=0..3n=0..3 and x[n]={1,3}x[n]=\{1,3\}, n=0,1n=0,1.

The output y[n]=x[n]∗h[n]=∑kx[k]h[n−k]y[n]=x[n]*h[n]=\sum_k x[k]h[n-k] has 2+4−1=52+4-1=5 samples, n=0..4n=0..4.

Because x[n]=δ[n]+3δ[n−1]x[n]=\delta[n]+3\delta[n-1], the output is

y[n]=h[n]+3h[n−1]y[n]=h[n]+3h[n-1]

Tabular method

n=0n=01234
h[n]h[n]1225
3h[n−1]3h[n-1]36615
y[n]y[n]1581115

Step values

y[0]=1y[1]=2+3(1)=5y[2]=2+3(2)=8y[3]=5+3(2)=11y[4]=3(5)=15\begin{aligned} y[0]&=1\\ y[1]&=2+3(1)=5\\ y[2]&=2+3(2)=8\\ y[3]&=5+3(2)=11\\ y[4]&=3(5)=15 \end{aligned}

Sum check: ∑y=40=(∑x)(∑h)=4×10\sum y=40=(\sum x)(\sum h)=4\times10.

Answer: y[n]={1, 5, 8, 11, 15}y[n]=\{1,\ 5,\ 8,\ 11,\ 15\} for n=0,…,4n=0,\dots,4 (↑ at 1).

    y[n]
     15                 o
     11             o   |
      8         o   |   |
      5     o   |   |   |
      1 o   |   |   |   |
      0 +---+---+---+---+--> n
        0   1   2   3   4
  • 2072 Asoj · 2+6 marks

What is LTI system? Explain the commutative, associative and distributive properties of discrete time LTI systems.

Answer

LTI system

A linear time-invariant (LTI) system obeys superposition (linearity) and its behaviour does not change with time (a shifted input gives an equally shifted output). It is fully described by its impulse response h[n]h[n], and

y[n]=x[n]∗h[n]=∑k=−∞∞x[k] h[n−k]y[n]=x[n]*h[n]=\sum_{k=-\infty}^{\infty}x[k]\,h[n-k]

1. Commutative property

x[n]∗h[n]=h[n]∗x[n]x[n]*h[n]=h[n]*x[n]

Proof: in ∑kx[k]h[n−k]\sum_k x[k]h[n-k] put m=n−km=n-k: it becomes ∑mh[m]x[n−m]=h[n]∗x[n]\sum_m h[m]x[n-m]=h[n]*x[n]. Meaning: the roles of input and impulse response can be swapped without changing the output.

2. Associative property

{x[n]∗h1[n]}∗h2[n]=x[n]∗{h1[n]∗h2[n]}\{x[n]*h_1[n]\}*h_2[n]=x[n]*\{h_1[n]*h_2[n]\}

Meaning: two LTI systems in cascade are equivalent to a single system with h[n]=h1[n]∗h2[n]h[n]=h_1[n]*h_2[n]. With the commutative property, the order of the cascade can also be changed.

 x -->[h1]-->[h2]--> y
   ==  x -->[h1*h2]--> y
   ==  x -->[h2]-->[h1]--> y

3. Distributive property

x[n]∗{h1[n]+h2[n]}=x[n]∗h1[n]+x[n]∗h2[n]x[n]*\{h_1[n]+h_2[n]\}=x[n]*h_1[n]+x[n]*h_2[n]

Proof: ∑kx[k](h1[n−k]+h2[n−k])=∑kx[k]h1[n−k]+∑kx[k]h2[n−k]\sum_k x[k](h_1[n-k]+h_2[n-k])=\sum_k x[k]h_1[n-k]+\sum_k x[k]h_2[n-k]. Meaning: two LTI systems in parallel (same input, outputs added) are equivalent to one system with h=h1+h2h=h_1+h_2.

       +-->[h1]--+
 x ----+         (+)--> y   ==  x -->[h1+h2]--> y
       +-->[h2]--+

Example

h1=δ[n]+δ[n−1]h_1=\delta[n]+\delta[n-1], h2=δ[n]−δ[n−1]h_2=\delta[n]-\delta[n-1]:

  • cascade: h1∗h2=δ[n]−δ[n−2]h_1*h_2=\delta[n]-\delta[n-2];
  • parallel: h1+h2=2δ[n]h_1+h_2=2\delta[n].

These properties let a block diagram of many LTI systems be reduced to a single equivalent h[n]h[n].

  • 2072 Asoj · 6 marks

The impulse response of a discrete time LTI system is h[n] = {1, 1, 2, −1} (↑ at the first 1, i.e. h[0] = 1). If input is x[n] = {1, 2} (↑ at 1, i.e. x[0] = 1), find the convolution sum and sketch the output y[n].

Answer

Given h[n]={1,1,2,−1}h[n]=\{1,1,2,-1\} with h[0]=1h[0]=1 (first), so n=0..3n=0..3, and x[n]={1,2}x[n]=\{1,2\} with x[0]=1x[0]=1, so n=0,1n=0,1.

Since x[n]=δ[n]+2δ[n−1]x[n]=\delta[n]+2\delta[n-1],

y[n]=x[n]∗h[n]=h[n]+2h[n−1]y[n]=x[n]*h[n]=h[n]+2h[n-1]

Output length =2+4−1=5=2+4-1=5, for n=0n=0 to 44.

Tabular method

n=0n=01234
h[n]h[n]112−1
2h[n−1]2h[n-1]224−2
y[n]y[n]1343−2
y[0]=1,y[1]=1+2(1)=3,y[2]=2+2(1)=4y[3]=−1+2(2)=3,y[4]=2(−1)=−2\begin{aligned} y[0]&=1,\quad y[1]=1+2(1)=3,\quad y[2]=2+2(1)=4\\ y[3]&=-1+2(2)=3,\quad y[4]=2(-1)=-2 \end{aligned}

Sum check: ∑y=9=(∑x)(∑h)=3×3\sum y=9=(\sum x)(\sum h)=3\times3.

Answer: y[n]={1, 3, 4, 3, −2}y[n]=\{1,\ 3,\ 4,\ 3,\ -2\} for n=0,…,4n=0,\dots,4, with y[0]=1y[0]=1.

Sketch of y[n]

    y[n]
      4         o
      3     o   |   o
      1 o   |   |   |
      0 +---+---+---+---+--> n
     -2                 o
        0   1   2   3   4
  • 2071 Magh · 7 marks

Perform the convolution and draw output y[n]: x[n] = {1, 2, 2, 3} (↑ at the first 2, i.e. x[0] = 2) and h[n] = {1, 4, 3} (↑ at 1, i.e. h[0] = 1).

Answer

Given x[n]={1,2,2,3}x[n]=\{1,2,2,3\} with x[0]x[0] = the first 2, so x[−1]=1, x[0]=2, x[1]=2, x[2]=3x[-1]=1,\ x[0]=2,\ x[1]=2,\ x[2]=3. h[n]={1,4,3}h[n]=\{1,4,3\} with h[0]=1h[0]=1, so h[0]=1, h[1]=4, h[2]=3h[0]=1,\ h[1]=4,\ h[2]=3.

Output starts at n=−1+0=−1n=-1+0=-1, ends at n=2+2=4n=2+2=4; length 4+3−1=64+3-1=6. y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k].

Tabular method

kk, x[k]x[k]n=−1n=-101234
−1-1, 1143
00, 2286
11, 2286
22, 33129
y[n]y[n]161317189

Step values

y[−1]=x[−1]h[0]=1y[0]=x[−1]h[1]+x[0]h[0]=4+2=6y[1]=x[−1]h[2]+x[0]h[1]+x[1]h[0]=3+8+2=13y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=6+8+3=17y[3]=x[1]h[2]+x[2]h[1]=6+12=18y[4]=x[2]h[2]=9\begin{aligned} y[-1]&=x[-1]h[0]=1\\ y[0]&=x[-1]h[1]+x[0]h[0]=4+2=6\\ y[1]&=x[-1]h[2]+x[0]h[1]+x[1]h[0]=3+8+2=13\\ y[2]&=x[0]h[2]+x[1]h[1]+x[2]h[0]=6+8+3=17\\ y[3]&=x[1]h[2]+x[2]h[1]=6+12=18\\ y[4]&=x[2]h[2]=9 \end{aligned}

Sum check: ∑y=64=(∑x)(∑h)=8×8\sum y=64=(\sum x)(\sum h)=8\times8.

Answer: y[n]={1, 6, 13, 17, 18, 9}y[n]=\{1,\ 6,\ 13,\ 17,\ 18,\ 9\} for n=−1,…,4n=-1,\dots,4, so y[0]=6y[0]=6.

Output plot

    y[n]
     18                 o
     17             o   |
     13         o   |   |
      9         |   |   |   o
      6     o   |   |   |   |
      1 o   |   |   |   |   |
      0 +---+---+---+---+---+--> n
        -1  0   1   2   3   4
  • 2071 Bhadra · 6 marks

Convolve the signals x[n] = {1, 2, 1} and h[n] = {1, 2, 3, 1} (↑ at the first 1, i.e. h[0] = 1).

Answer

Given h[n]={1,2,3,1}h[n]=\{1,2,3,1\} with h[0]h[0] = first 1, so n=0..3n=0..3. No origin is marked for x[n]x[n], so take x[0]x[0] = first sample: x[n]={1,2,1}x[n]=\{1,2,1\}, n=0..2n=0..2.

Output: y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k], from n=0n=0 to 55 (length 3+4−1=63+4-1=6). Since x[n]=δ[n]+2δ[n−1]+δ[n−2]x[n]=\delta[n]+2\delta[n-1]+\delta[n-2], y[n]=h[n]+2h[n−1]+h[n−2]y[n]=h[n]+2h[n-1]+h[n-2].

Tabular method

n=0n=012345
h[n]h[n]1231
2h[n−1]2h[n-1]2462
h[n−2]h[n-2]1231
y[n]y[n]148951
y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=3+4+1=8y[3]=x[0]h[3]+x[1]h[2]+x[2]h[1]=1+6+2=9\begin{aligned} y[2]&=x[0]h[2]+x[1]h[1]+x[2]h[0]=3+4+1=8\\ y[3]&=x[0]h[3]+x[1]h[2]+x[2]h[1]=1+6+2=9 \end{aligned}

Sum check: ∑y=28=(∑x)(∑h)=4×7\sum y=28=(\sum x)(\sum h)=4\times7.

Answer: y[n]={1, 4, 8, 9, 5, 1}y[n]=\{1,\ 4,\ 8,\ 9,\ 5,\ 1\} for n=0,…,5n=0,\dots,5 (↑ at the first 1). If x[n]x[n] were taken with origin at its middle sample (2), the same values would simply start at n=−1n=-1.

  • 2070 Magh · 7 marks

Given a system y[n] = 0.5y[n−1] + x[n] + x[n+1]. Find out its impulse response and frequency response.

Answer

System: y[n]=0.5y[n−1]+x[n]+x[n+1]y[n]=0.5y[n-1]+x[n]+x[n+1], i.e. y[n]−0.5y[n−1]=x[n]+x[n+1]y[n]-0.5y[n-1]=x[n]+x[n+1] (initially at rest).

Frequency response

Take the DTFT, using x[n−n0]↔e−jωn0X(ejω)x[n-n_0]\leftrightarrow e^{-j\omega n_0}X(e^{j\omega}) (so x[n+1]↔ejωXx[n+1]\leftrightarrow e^{j\omega}X):

Y(ejω)(1−0.5e−jω)=X(ejω)(1+ejω)H(ejω)=1+ejω1−0.5e−jω\begin{aligned} Y(e^{j\omega})\left(1-0.5e^{-j\omega}\right)&=X(e^{j\omega})\left(1+e^{j\omega}\right)\\ H(e^{j\omega})&=\frac{1+e^{j\omega}}{1-0.5e^{-j\omega}} \end{aligned}

Magnitude and phase: since 1+ejω=2cos⁡(ω/2)ejω/21+e^{j\omega}=2\cos(\omega/2)e^{j\omega/2},

∣H(ejω)∣=2∣cos⁡(ω/2)∣1.25−cos⁡ω,∠H=ω2−tan⁡−10.5sin⁡ω1−0.5cos⁡ω|H(e^{j\omega})|=\frac{2|\cos(\omega/2)|}{\sqrt{1.25-\cos\omega}},\qquad \angle H=\frac{\omega}{2}-\tan^{-1}\frac{0.5\sin\omega}{1-0.5\cos\omega}
ω\omega0π/2\pi/2π\pi
∣H∣\lvert H\rvert41.2650
∠H\angle H (deg)018.43—

It is a low pass response (gain 4 at dc, zero at ω=π\omega=\pi).

Impulse response

Write H=11−0.5e−jω+ejω11−0.5e−jωH=\frac{1}{1-0.5e^{-j\omega}}+e^{j\omega}\frac{1}{1-0.5e^{-j\omega}}. Using (0.5)nu[n]↔11−0.5e−jω(0.5)^n u[n]\leftrightarrow\frac{1}{1-0.5e^{-j\omega}} and the time-advance property (ejωe^{j\omega} means n→n+1n\to n+1):

h[n]=(0.5)nu[n]+(0.5)n+1u[n+1]h[n]=(0.5)^n u[n]+(0.5)^{n+1}u[n+1]

Simplified: at n=−1n=-1, h[−1]=1h[-1]=1; for n≥0n\ge0, h[n]=(0.5)n+(0.5)n+1=1.5(0.5)nh[n]=(0.5)^n+(0.5)^{n+1}=1.5(0.5)^n. So

h[n]=δ[n+1]+1.5(0.5)nu[n]h[n]=\delta[n+1]+1.5(0.5)^n u[n]

Values: h[−1]=1, h[0]=1.5, h[1]=0.75, h[2]=0.375, h[3]=0.1875,…h[-1]=1,\ h[0]=1.5,\ h[1]=0.75,\ h[2]=0.375,\ h[3]=0.1875,\dots (checked by running the recursion with x[n]=δ[n]x[n]=\delta[n]).

Answer: H(ejω)=1+ejω1−0.5e−jωH(e^{j\omega})=\dfrac{1+e^{j\omega}}{1-0.5e^{-j\omega}}, h[n]=(0.5)nu[n]+(0.5)n+1u[n+1]h[n]=(0.5)^n u[n]+(0.5)^{n+1}u[n+1]. Since h[−1]≠0h[-1]\ne0 the system is non-causal; it is stable because ∑∣h∣=1+3=4<∞\sum|h|=1+3=4<\infty.

  • 2070 Magh · 8 marks

What are the properties of LTI system? Show that the output of an LTI system is stable if the impulse response is absolutely summable.

Answer

Properties of LTI systems

For an LTI system with impulse response h[n]h[n] (output y=x∗hy=x*h):

  1. Commutative: x∗h=h∗xx*h=h*x.
  2. Associative: (x∗h1)∗h2=x∗(h1∗h2)(x*h_1)*h_2=x*(h_1*h_2) (cascade connection).
  3. Distributive: x∗(h1+h2)=x∗h1+x∗h2x*(h_1+h_2)=x*h_1+x*h_2 (parallel connection).
  4. Memoryless if and only if h[n]=Kδ[n]h[n]=K\delta[n].
  5. Causal if and only if h[n]=0h[n]=0 for n<0n<0.
  6. Stable (BIBO) if and only if ∑n∣h[n]∣<∞\sum_n|h[n]|<\infty.
  7. Invertible if an hi[n]h_i[n] exists with h∗hi=δ[n]h*h_i=\delta[n].
  8. Step response: s[n]=∑k=−∞nh[k]s[n]=\sum_{k=-\infty}^{n}h[k].

Proof: absolutely summable h[n]h[n] gives a stable system

A system is BIBO stable if every bounded input produces a bounded output.

Let the input be bounded: ∣x[n]∣≤Bx<∞|x[n]|\le B_x<\infty for all nn. The output is

y[n]=∑k=−∞∞h[k] x[n−k]y[n]=\sum_{k=-\infty}^{\infty}h[k]\,x[n-k]

Take the magnitude and use the triangle inequality (∣∑ak∣≤∑∣ak∣|\sum a_k|\le\sum|a_k|):

∣y[n]∣=∣∑kh[k] x[n−k]∣≤∑k∣h[k]∣ ∣x[n−k]∣≤Bx∑k=−∞∞∣h[k]∣\begin{aligned} |y[n]| &= \left|\sum_{k}h[k]\,x[n-k]\right| \le \sum_{k}|h[k]|\,|x[n-k]| \\ &\le B_x\sum_{k=-\infty}^{\infty}|h[k]| \end{aligned}

If h[n]h[n] is absolutely summable, ∑k∣h[k]∣=S<∞\sum_k|h[k]|=S<\infty, then

∣y[n]∣≤BxS<∞for all n|y[n]|\le B_xS<\infty \quad\text{for all } n

so the output is bounded and the system is stable.

Converse (necessity): if S=∞S=\infty, choose the bounded input x[n]=sgn(h[−n])x[n]=\mathrm{sgn}(h[-n]) (values ±1\pm1). Then y[0]=∑kh[k] sgn(h[k])=∑k∣h[k]∣=∞y[0]=\sum_k h[k]\,\mathrm{sgn}(h[k])=\sum_k|h[k]|=\infty, so a bounded input gives an unbounded output. Hence absolute summability is necessary and sufficient for BIBO stability of an LTI system.

Examples

  • h[n]=(0.5)nu[n]h[n]=(0.5)^n u[n]: S=11−0.5=2<∞S=\frac{1}{1-0.5}=2<\infty, stable.
  • h[n]=u[n]h[n]=u[n] (accumulator): S=∑n≥01=∞S=\sum_{n\ge0}1=\infty, unstable (input u[n]u[n] gives y[n]=(n+1)u[n]y[n]=(n+1)u[n], which grows without bound).
  • 2070 Bhadra · 6+2 marks

A discrete time LTI system has an impulse response as shown below: [Figure: stem plot of h[n] = 2, 1, 0.5, 0.25, 0.125 at n = 0, 1, 2, 3, 4 and 0 elsewhere (shown from n = −2 to 6)]. If the input to the given system is x[n] = {−0.25, 0.5, 1, −0.5, 0, 0.25} (↑ at 1, i.e. x[0] = 1), calculate and plot the output of the system.

Answer

From the figure, h[n]={2, 1, 0.5, 0.25, 0.125}h[n]=\{2,\ 1,\ 0.5,\ 0.25,\ 0.125\} for n=0..4n=0..4, i.e. h[n]=2(0.5)nh[n]=2(0.5)^n for 0≤n≤40\le n\le4. The input is x[n]={−0.25, 0.5, 1, −0.5, 0, 0.25}x[n]=\{-0.25,\ 0.5,\ 1,\ -0.5,\ 0,\ 0.25\} with x[0]=1x[0]=1, so x[−2]=−0.25, x[−1]=0.5, x[0]=1, x[1]=−0.5, x[2]=0, x[3]=0.25x[-2]=-0.25,\ x[-1]=0.5,\ x[0]=1,\ x[1]=-0.5,\ x[2]=0,\ x[3]=0.25.

The output y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k] starts at n=−2+0=−2n=-2+0=-2 and ends at n=3+4=7n=3+4=7 (length 6+5−1=106+5-1=10).

Tabular method

Each row is x[k]⋅h[n−k]x[k]\cdot h[n-k]:

kk, x[k]x[k]n=−2n=-2−101234567
−2, −0.25−0.5−0.25−0.125−0.0625−0.03125
−1, 0.510.50.250.1250.0625
0, 1210.50.250.125
1, −0.5−1−0.5−0.25−0.125−0.0625
2, 000000
3, 0.250.50.250.1250.06250.03125
y[n]y[n]−0.50.752.3750.18750.093750.56250.250.06250.06250.03125

Some values worked out

y[0]=x[−2]h[2]+x[−1]h[1]+x[0]h[0]=−0.125+0.5+2=2.375y[1]=x[−2]h[3]+x[−1]h[2]+x[0]h[1]+x[1]h[0]=−0.0625+0.25+1−1=0.1875y[3]=x[−1]h[4]+x[0]h[3]+x[1]h[2]+x[2]h[1]+x[3]h[0]=0.0625+0.25−0.25+0+0.5=0.5625\begin{aligned} y[0]&=x[-2]h[2]+x[-1]h[1]+x[0]h[0]=-0.125+0.5+2=2.375\\ y[1]&=x[-2]h[3]+x[-1]h[2]+x[0]h[1]+x[1]h[0]=-0.0625+0.25+1-1=0.1875\\ y[3]&=x[-1]h[4]+x[0]h[3]+x[1]h[2]+x[2]h[1]+x[3]h[0]=0.0625+0.25-0.25+0+0.5=0.5625 \end{aligned}

Sum check: ∑y=3.875=(∑x)(∑h)=1×3.875\sum y=3.875=(\sum x)(\sum h)=1\times3.875.

Answer:

nn−2−101234567
y[n]y[n]−0.50.752.3750.18750.093750.56250.250.06250.06250.03125

and y[n]=0y[n]=0 elsewhere.

Plot of y[n]

(Not to scale for the small values.)

    y[n]
  2.375           o
   0.75      o    |
 0.5625      |    |              o
   0.25      |    |              |    o
 0.1875      |    |    o         |    |
0.09375      |    |    |    o    |    |
 0.0625      |    |    |    |    |    |    o    o
0.03125      |    |    |    |    |    |    |    |    o
      0 +----+----+----+----+----+----+----+----+----+--> n
   -0.5 o
        -2   -1   0    1    2    3    4    5    6    7
  • 2070 Bhadra · 3+4 marks

Define systems with memory and memory-less systems with examples. Explain the causality property of discrete time LTI systems.

Answer

Systems with memory and memoryless systems

A system is memoryless (static) if its output at any time nn depends only on the input at the same time nn. A system with memory (dynamic) has an output that depends on past and/or future input values (or past outputs), so it must store information.

MemorylessWith memory
y[n]=3x[n]y[n]=3x[n] (amplifier)y[n]=x[n]−x[n−1]y[n]=x[n]-x[n-1] (first difference)
y[n]=x2[n]y[n]=x^2[n]y[n]=∑k=−∞nx[k]y[n]=\sum_{k=-\infty}^{n}x[k] (accumulator)
y[n]=(2x[n]−x2[n])2y[n]=(2x[n]-x^2[n])^2y[n]=x[n+1]y[n]=x[n+1] (advance)
Resistor: v(t)=Ri(t)v(t)=Ri(t)Capacitor: v(t)=1C∫−∞ti(τ)dτv(t)=\frac{1}{C}\int_{-\infty}^{t}i(\tau)d\tau

For an LTI system, y[n]=∑kh[k]x[n−k]y[n]=\sum_k h[k]x[n-k]. This depends only on x[n]x[n] if h[k]=0h[k]=0 for all k≠0k\ne0. So a DT LTI system is memoryless only if

h[n]=Kδ[n]⇒y[n]=Kx[n]h[n]=K\delta[n] \quad\Rightarrow\quad y[n]=Kx[n]

Any other h[n]h[n] (e.g. h[n]=δ[n]−δ[n−1]h[n]=\delta[n]-\delta[n-1]) gives a system with memory.

Causality of discrete-time LTI systems

A system is causal if its output at time nn depends only on the present and past inputs (x[n],x[n−1],…x[n], x[n-1],\dots), not on future inputs. Causal systems are "non-anticipative"; all real-time physical systems are causal.

For an LTI system,

y[n]=∑k=−∞∞h[k] x[n−k]y[n]=\sum_{k=-\infty}^{\infty}h[k]\,x[n-k]

The terms with k<0k<0 use x[n−k]x[n-k] with n−k>nn-k>n, i.e. future inputs. For the output not to depend on them, those terms must vanish for every input:

h[n]=0for n<0\boxed{h[n]=0 \quad \text{for } n<0}

This is the necessary and sufficient condition. The convolution sum of a causal LTI system then becomes

y[n]=∑k=0∞h[k] x[n−k]=∑k=−∞nx[k] h[n−k]y[n]=\sum_{k=0}^{\infty}h[k]\,x[n-k]=\sum_{k=-\infty}^{n}x[k]\,h[n-k]

Also, for a causal LTI system, initial rest holds: if x[n]=0x[n]=0 for n<n0n<n_0, then y[n]=0y[n]=0 for n<n0n<n_0.

Examples

  • h[n]=(0.5)nu[n]h[n]=(0.5)^n u[n]: zero for n<0n<0, so causal.
  • h[n]=δ[n+1]+δ[n]h[n]=\delta[n+1]+\delta[n], i.e. y[n]=x[n+1]+x[n]y[n]=x[n+1]+x[n]: h[−1]=1≠0h[-1]=1\ne0, so non-causal.
  • Accumulator h[n]=u[n]h[n]=u[n]: causal, with memory.
  • Ideal low pass filter h[n]=sin⁡ωcnπnh[n]=\frac{\sin\omega_c n}{\pi n}: non-zero for n<0n<0, so non-causal (cannot work in real time).

Note: a memoryless system is always causal, but a causal system need not be memoryless.

  • 2083 Bhadra (new course) · 5 marks

Find the convolution sum for a given signal x[n] = δ[n] + 2δ[n−1] − δ[n−3] and h[n] = 2δ[n] + 2δ[n−1]

Answer

Write the sequences as sample values:

x[n]=δ[n]+2δ[n−1]−δ[n−3] ⇒ x[n]={1, 2, 0, −1}, n=0..3x[n]=\delta[n]+2\delta[n-1]-\delta[n-3]\ \Rightarrow\ x[n]=\{1,\ 2,\ 0,\ -1\},\ n=0..3 h[n]=2δ[n]+2δ[n−1] ⇒ h[n]={2, 2}, n=0,1h[n]=2\delta[n]+2\delta[n-1]\ \Rightarrow\ h[n]=\{2,\ 2\},\ n=0,1

Method 1: using x[n]∗δ[n−n0]=x[n−n0]x[n]*\delta[n-n_0]=x[n-n_0]

y[n]=x[n]∗(2δ[n]+2δ[n−1])=2x[n]+2x[n−1]=2δ[n]+4δ[n−1]−2δ[n−3]+2δ[n−1]+4δ[n−2]−2δ[n−4]=2δ[n]+6δ[n−1]+4δ[n−2]−2δ[n−3]−2δ[n−4]\begin{aligned} y[n]&=x[n]*\big(2\delta[n]+2\delta[n-1]\big)=2x[n]+2x[n-1]\\ &=2\delta[n]+4\delta[n-1]-2\delta[n-3]+2\delta[n-1]+4\delta[n-2]-2\delta[n-4]\\ &=2\delta[n]+6\delta[n-1]+4\delta[n-2]-2\delta[n-3]-2\delta[n-4] \end{aligned}

Method 2: tabular check

n=0n=01234
2x[n]2x[n]240−2
2x[n−1]2x[n-1]240−2
y[n]y[n]264−2−2

Sum check: ∑y=8=(∑x)(∑h)=2×4\sum y=8=(\sum x)(\sum h)=2\times4.

Answer: y[n]={2, 6, 4, −2, −2}y[n]=\{2,\ 6,\ 4,\ -2,\ -2\} for n=0,…,4n=0,\dots,4, i.e. y[n]=2δ[n]+6δ[n−1]+4δ[n−2]−2δ[n−3]−2δ[n−4]y[n]=2\delta[n]+6\delta[n-1]+4\delta[n-2]-2\delta[n-3]-2\delta[n-4].

  • 2083 Bhadra (new course) · 4 marks

Explain the impulse response of ideal band pass and low pass filters for discrete time signal.

Answer

Ideal filters have unit gain in the passband and zero gain in the stopband. A DT frequency response is periodic with period 2π2\pi, so it is defined over −π≤ω≤π-\pi\le\omega\le\pi. The impulse response is found by the inverse DTFT, h[n]=12π∫−ππH(ejω)ejωndωh[n]=\frac{1}{2\pi}\int_{-\pi}^{\pi}H(e^{j\omega})e^{j\omega n}d\omega.

Ideal low pass filter

HLP(ejω)={1,∣ω∣≤ωc0,ωc<∣ω∣≤πH_{LP}(e^{j\omega})=\begin{cases}1,&|\omega|\le\omega_c\\0,&\omega_c<|\omega|\le\pi\end{cases} hLP[n]=12π∫−ωcωcejωndω=sin⁡(ωcn)πn,hLP[0]=ωcπh_{LP}[n]=\frac{1}{2\pi}\int_{-\omega_c}^{\omega_c}e^{j\omega n}d\omega=\frac{\sin(\omega_c n)}{\pi n},\qquad h_{LP}[0]=\frac{\omega_c}{\pi}

Ideal band pass filter

Passband ω1≤∣ω∣≤ω2\omega_1\le|\omega|\le\omega_2:

           H(e^jw)
   +--+              +--+
   |  |              |  |  1
 --+--+------+-------+--+---> w
 -w2 -w1     0      w1  w2

It equals an LPF with cut-off ω2\omega_2 minus an LPF with cut-off ω1\omega_1:

hBP[n]=sin⁡(ω2n)−sin⁡(ω1n)πn,hBP[0]=ω2−ω1πh_{BP}[n]=\frac{\sin(\omega_2 n)-\sin(\omega_1 n)}{\pi n},\qquad h_{BP}[0]=\frac{\omega_2-\omega_1}{\pi}

Using sin⁡A−sin⁡B=2cos⁡A+B2sin⁡A−B2\sin A-\sin B=2\cos\frac{A+B}{2}\sin\frac{A-B}{2}, with centre ω0=ω1+ω22\omega_0=\frac{\omega_1+\omega_2}{2} and half-width W=ω2−ω12W=\frac{\omega_2-\omega_1}{2}:

hBP[n]=2cos⁡(ω0n)⋅sin⁡(Wn)πnh_{BP}[n]=2\cos(\omega_0 n)\cdot\frac{\sin(Wn)}{\pi n}

So the band pass impulse response is a low pass sinc (cut-off WW) modulated by 2cos⁡ω0n2\cos\omega_0 n, which shifts the passband to ±ω0\pm\omega_0.

Remarks

  • Both responses are sinc-shaped, non-zero for n<0n<0: the ideal filters are non-causal.
  • They decay only as 1/n1/n, so they are not absolutely summable: not BIBO stable, hence not realizable exactly. Practical filters truncate (window) and delay h[n]h[n].
  • 2083 Baisakh (new course) · 4 marks

Find the convolution sum of x[n] = {1, 2, 3, 4} and h[n] = {1, 2, −3}. Choose your own origin.

Answer

Choose the origin at the first sample of each sequence: x[n]={1,2,3,4}x[n]=\{1,2,3,4\}, n=0..3n=0..3 and h[n]={1,2,−3}h[n]=\{1,2,-3\}, n=0..2n=0..2.

y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k] has 4+3−1=64+3-1=6 samples, n=0..5n=0..5.

n=0n=012345
1⋅h1\cdot h12−3
2⋅h2\cdot h24−6
3⋅h3\cdot h36−9
4⋅h4\cdot h48−12
y[n]y[n]1444−1−12
y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=−3+4+3=4y[4]=x[2]h[2]+x[3]h[1]=−9+8=−1\begin{aligned} y[2]&=x[0]h[2]+x[1]h[1]+x[2]h[0]=-3+4+3=4\\ y[4]&=x[2]h[2]+x[3]h[1]=-9+8=-1 \end{aligned}

Sum check: ∑y=0=(∑x)(∑h)=10×0\sum y=0=(\sum x)(\sum h)=10\times0.

Answer: y[n]={1, 4, 4, 4, −1, −12}y[n]=\{1,\ 4,\ 4,\ 4,\ -1,\ -12\} for n=0,…,5n=0,\dots,5 (↑ at the first 1). With another origin the values are the same, only shifted.

  • 2082 Bhadra (new course) · 4 marks

Find the convolution between the signal x[n] = δ[n−2] − δ[n−1] + 2δ[n] + δ[n+1] + δ[n+2] and h[n] = u[n] − u[n−1]

Answer

First simplify h[n]h[n]:

h[n]=u[n]−u[n−1]h[n]=u[n]-u[n-1]

u[n]−u[n−1]u[n]-u[n-1] is 1 only at n=0n=0 (both are 1 for n≥1n\ge1 and both are 0 for n<0n<0), so

h[n]=δ[n]h[n]=\delta[n]

Convolution with the unit impulse leaves a signal unchanged (x[n]∗δ[n]=x[n]x[n]*\delta[n]=x[n], the identity property). Hence

y[n]=x[n]∗h[n]=x[n]∗δ[n]=x[n]=δ[n+2]+δ[n+1]+2δ[n]−δ[n−1]+δ[n−2]\begin{aligned} y[n]&=x[n]*h[n]=x[n]*\delta[n]=x[n]\\ &=\delta[n+2]+\delta[n+1]+2\delta[n]-\delta[n-1]+\delta[n-2] \end{aligned}
nn−2−1012
y[n]y[n]112−11

Answer: y[n]={1, 1, 2, −1, 1}y[n]=\{1,\ 1,\ 2,\ -1,\ 1\} for n=−2,…,2n=-2,\dots,2 (↑ at 2), and zero elsewhere.

Questions from Old Question Collection (Signal Analysis EX 651) (IOE Signal Analysis (EX 651) exam papers from 2069 to 2082) and 2080 course paper (ENEX 255) (IOE Signals and Systems (ENEX 255, new course) papers: 2082 Bhadra, 2083 Baisakh, 2083 Bhadra). Answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗