4.6 HW 6

  4.6.1 Problem 6.2
  4.6.2 Problem 6.5
  4.6.3 Problem 6.7
  4.6.4 Problem 6.17
  4.6.5 Problem 6.22
  4.6.6 Problem 6.27 (a,b,c,d)
  4.6.7 key solution
PDF (letter size)
PDF (legal size)

4.6.1 Problem 6.2

Consider a discrete-time LTI system with frequency response H(Ω)=|H(Ω)|ejargH(Ω) and real impulse response h[n]. Suppose that we apply the input x[n]=sin(Ω0n+ϕ0) to this system. The resulting output can be shown to be of the form y[n]=|H(Ω0)|x[nn0] provided that argH(Ω0) and Ω0 are related in a particular way. Determine this relationship.

solution

From standard LTI theory, the output is given by(1)y[n]=|H(Ω0)|sin(Ω0n+ϕ0+arg(H(Ω0))) Comparing the above to (2)|H(Ω0)|x[nn0]=|H(Ω0)|sin(Ω0(nn0)+ϕ0) Shows that sin(Ω0(nn0)+ϕ0)=sin(Ω0n+ϕ0+arg(H(Ω0)))sin(Ω0nΩ0n0+ϕ0)=sin(Ω0n+ϕ0+arg(H(Ω0)))

Hence we needΩ0n0=arg(H(Ω0)) Since the input is periodic of period 2πk for k integer, then the above can also be written asΩ0n0+2πk=arg(H(Ω0)) This is the relation needed.

4.6.2 Problem 6.5

   4.6.2.1 Part a
   4.6.2.2 Part b

Consider a continuous-time ideal bandpass filter whose frequency response is H(ω)=1ωc|ω|3ωc0elsewhere (a) If h(t) is the impulse response of this filter, determine a function g(t) such that h(t)=(sinωctπt)g(t). (b) As ωc is increased, does the impulse response of the filter get more concentrated or less concentrated about the origin?

solution

4.6.2.1 Part a

Let f(t)=sinωctπt which is a sinc function. The following is a sketch of H(ω) and of the CTFT of f(t), i.e. F(ω) which we know will be rectangle since Fourier transform of rectangle is sinc.

pict
Figure 4.66:Sketch of CTFT of filter and sinc function

The relation between sinωctπt and its CTFT is given in this sketch

pict
Figure 4.67:Sketch of sinc function and its CTFT

Now, we know that, since h(t)=f(t)g(t), then by modulation theory, this results in 2πH(ω)=F(ω)G(ω). In this, we are given H(ω) and F(ω) but we do not know G(ω). But looking at H(ω) and F(ω), we see that if G(ω) happened to be two Dirac impulses, one at 2ωc and one at +2ωc, then convolving F(ω) with it, will give 2πH(ω). So we need G(ω) to be the followingG(ω)=2π(δ(ω+2ωc)+δ(ω2ωc)) And now F(ω)G(ω) will result in H(ω). The factor 2π was added to cancel the 2π from the definition of modulation theory. But cos(2ωct) has the CTFT of π(δ(ω+2ωc)+δ(ω2ωc)). This shows that G(ω) is the Fourier transform of 2cos(2ωct). Thereforeg(t)=2cos(2ωct)

4.6.2.2 Part b

Since f(t)=sinωctπt then we see as ωc increases, the sinc function becomes more concentrated at origin, since the first loop cut off is given by πωc. So this gets closer to origin. And since h(t)=f(t)(2cos(2ωct)) then h(t) becomes more concentrated around the origin as well.

4.6.3 Problem 6.7

   4.6.3.1 Part a
   4.6.3.2 Part b

A continuous-time lowpass filter has been designed with a passband frequency of 1000 Hz, a stopband frequency of 1200 Hz, passband ripple of 0.1, and stopband ripple of 0.05. Let the impulse response of this lowpass filter be denoted by h(t). We wish to convert the filter into a bandpass filter with impulse responseg(t)=2h(t)cos(4000πt) Assuming that |H(ω)| is negligible for for |ω|>4000π, answer the following questions. (a) If the passband ripple for the bandpass filter is constrained to be 0.1, what are

the two passband frequencies associated with the bandpass filter? (b) If the stopband ripple for the bandpass filter is constrained to be 0.05, what are the two stopband frequencies associated with the bandpass filter?

solution

4.6.3.1 Part a

Let f(t)=2cos(4000πt). By modulation theory multiplication in time becomes convolution in frequency (with 2π factor)(1)g(t)=h(t)f(t)12πH(ω)F(ω) Where H(ω) is the CTFT of h(t) and F(ω) is the CTFT of 2cos(4000πt) which is given by (since it is periodic)F(ω)=2n=2πakδ(ωnω0) Where ak are the Fourier series coefficients of cos(4000πt). In the above ω0=4000π. But we know that a1=12 and a1=12 from Euler relation. Hence the above becomesF(ω)=2(2π12δ(ω+4000π)+2π12δ(ω4000π))=2π(δ(ω+4000π)+δ(ω4000π))

Now that we know F(ω) we go back to (1) and find the CTFT of g(t) which is G(ω)=12πH(ω)(2π(δ(ω+4000π)+δ(ω4000π)))=H(ω)((δ(ω+4000π)+δ(ω4000π)))

The above shows that bandpass filter is the lowpass filter spectrum but shifted to the right and to the left by 4000π. This is because convolution with impulse causes shifting. The following diagram shows the result

pict
Figure 4.68:Sketch of bandpass filter

Therefore the two bandpass stop frequencies are ω1=6000π=3000 hzω2=2000π=1000 hz

The same on the negative side.

4.6.3.2 Part b

Per instructor, we do not need to account for ripple effect in this problem. Therefore this is the same as part (a).

4.6.4 Problem 6.17

   4.6.4.1 Part a
   4.6.4.2 Part b

For each of the following second-order difference equations for causal and stable LTI systems, determine whether or not the step response of the system is oscillatory: (a) y[n]+y[n1]+14y[n2]=x[n] (b) y[n]y[n1]+14y[n2]=x[n]

solution

4.6.4.1 Part a

Taking the DFT of the difference equation y[n]+y[n1]+14y[n2]=x[n] givesY(Ω)+ejΩY(Ω)+14e2jΩY(Ω)=X(Ω) A step response means that the input is a step function. Hence x[n]=u[n]. Therefore X(Ω)=n=x[n]ejΩn=n=0ejΩn=11ejΩ. The above becomesY(Ω)(1+ejΩ+14e2jΩ)=11ejΩY(Ω)=11ejΩ11+ejΩ+14e2jΩ

Let ejΩ=x for now to make it easier to factor the RHS. The above becomesY(Ω)=11x11+x+14x2=11x44+4x+x2=4(1x)(x+2)2

Using partial fractions on the RHS gives4(1x)(x+2)2=A1x+Bx+2+C(x+2)2=A(x+2)2+B(x+2)(1x)+C(1x)(1x)(x+2)2

Hence4=A(x+2)2+B(x+2)(1x)+C(1x)=A(x2+4+4x)+B(xx2+22x)+CCx=Ax2+4A+4xABxBx2+2B+CCx=(4A+2B+C)+x(4ABC)+x2(AB)

Comparing coefficients gives4A+2B+C=44ABC=0AB=0

Solving gives A=49,B=49,C=43. HenceY(Ω)=4(1x)(x+2)2=A1x+Bx+2+C(x+2)2=4911x+491x+2+431(x+2)2

But x=ejΩ. The above becomesY(Ω)=4911ejΩ+4912+ejΩ+431(2+ejΩ)2=4911ejΩ+4912(1+12ejΩ)+431(2(1+12ejΩ))2=4911ejΩ+41811+12ejΩ+4314(1+12ejΩ)2=4911ejΩ+41811+12ejΩ+131(1+12ejΩ)2

From tables, using au[n]11aejΩ and (n+1)anu[n]1(1aejΩ)2. Applying these to the above givesy(n)=49u[n]41812u[n]+13(n+1)(12)nu[n]=(49436+13(n+1)(12)n)u[n]=(13+13(n+1)(12)n)u[n]=13(1+(n+1)(12)n)u[n]

The following is a plot of y[n]

pict
Figure 4.69:Plot of reponse y[n] to step input

The above shows the response is oscillatory.

4.6.4.2 Part b

This is similar to part (a) except for sign difference. Taking the DFT of the difference equation y[n]y[n1]+14y[n2]=x[n] gives

Y(Ω)ejΩY(Ω)+14e2jΩY(Ω)=X(Ω) A step response means that the input is a step function. Hence x[n]=u[n]. Therefore X(Ω)=n=x[n]ejΩn=n=0ejΩn=11ejΩ. The above becomesY(Ω)(1ejΩ+14e2jΩ)=11ejΩY(Ω)=11ejΩ11ejΩ+14e2jΩ

Let ejΩ=x for now to make it easier to factor the RHS. The above becomesY(Ω)=11x11x+14x2=11x444x+x2=4(1x)(x2)2

Using partial fractions on the RHS gives4(1x)(x2)2=A1x+Bx2+C(x2)2=A(x2)2+B(x2)(1x)+C(1x)(1x)(x2)2

Hence4=A(x2)2+B(x2)(1x)+C(1x)=A(x2+44x)+B(xx22+2x)+CCx=Ax2+4A4xA+3BxBx22B+CCx=(4A2B+C)+x(4A+3BC)+x2(AB)

Comparing coefficients gives4A2B+C=44A+3BC=0AB=0

Solving gives A=4,B=4,C=4. HenceY(Ω)=4(1x)(x2)2=A1x+Bx2+C(x2)2=411x+41x241(x2)2

But x=ejΩ. The above becomesY(Ω)=411ejΩ+41ejΩ241(ejΩ2)2=411ejΩ+412(112ejΩ)41(2(112ejΩ))2=411ejΩ21112ejΩ414(112ejΩ)2=411ejΩ21112ejΩ1(112ejΩ)2

From tables, using au[n]11aejΩ and (n+1)anu[n]1(1aejΩ)2. Applying these to the above givesy(n)=4u[n]212u[n]13(n+1)(12)nu[n]=(4113(n+1)(12)n)u[n]=(313(n+1)(12)n)u[n]

The following is a plot of y[n]

pict
Figure 4.70:Plot of reponse y[n] to step input

The above shows the response is not oscillatory. The reason is that sign difference in y[n1] term in the difference equation. y[n]y[n1]+14y[n2]=x[n].

4.6.5 Problem 6.22

   4.6.5.1 Part a
   4.6.5.2 Part b
   4.6.5.3 Part c

pict
Figure 4.71:Problem description

solution

4.6.5.1 Part a

The relation between the input and output is given by

pict
Figure 4.72:Output of LTI when input is sinuosidal

Since |H(ω)|=13πω then |H(2π)|=23 and from the phase diagram arg(H(2π))=π2. Thereforey(t)=|H(2π)|cos(2πt+θ+arg(H((2π))))=23cos(2πt+θ+π2)

But cos(x+π2)=sin(x), hence the above can be simplified toy(t)=23sin(2πt+θ)

4.6.5.2 Part b

Since |H(ω)|=0 for ω=4π, then y(t)=0

4.6.5.3 Part c

X(ω)=2πakδ(ωkω0) Looking at x(t) shows that its period is T0=1. Hence ω0=2π. The above becomesX(ω)=2πk=akδ(ωk2π) Hence Y(ω)=X(ω)H(ω) But |H(ω)|=0 outside |ω|=3π. Then only k=0,k=1,k=+1 will go through the filter. HenceY(ω)=(2πk=11akδ(ωk2π))H(ω)(1)=(2π(a0δ(ω)+a1δ(ω+2π)+a1δ(ω2π)))H(ω)

To find a0,a1,a1. Fromak=1T0T0x(t)ejkω0tdt=01x(t)ejk2πtdt

Looking at x(t) shows that its period is T0=1. Hence ω0=2π. From above a0=01x(t)dt=012sin(2πt)dt=[cos(2πt)2π]012=12π(cosπ1)=1π

And a1=01x(t)ej2πtdt=012sin(2πt)ej2πtdt=j4

Anda1=01x(t)ej2πtdt=012sin(2πt)ej2πtdt=j4

Hence (1) becomesY(ω)=(2π(1πδ(ω)+j4δ(ω+2π)j4δ(ω2π)))H(ω)=(2π(1πδ(ω)+j4δ(ω+2π)j4δ(ω2π)))|H(ω)|ejargH(ω)

At ω=0,Y(ω)=0 since |H(ω)|=0 at ω=0. And at ω=2π,Y(ω)=(2π(j4))|H(2π)|ejargH(2π)=(2π(j4))23ejπ2=jπ13ejπ2=jπ13j=13π

And at ω=2π, Y(ω)=(2π(j4))|H(2π)|ejargH(2π)=(2π(j4))23ejπ2=jπ13ejπ2=jπ13(j)=13π

Hence the spectrum of Y(ω) is

pict
Figure 4.73:Y(ω)

But the above is the Fourier transform ofy(t)=13cos(2πt) Which is therefore the output of the filter.

4.6.6 Problem 6.27 (a,b,c,d)

   4.6.6.1 Part a
   4.6.6.2 Part b
   4.6.6.3 Part c
   4.6.6.4 Part d

pict
Figure 4.74:Problem description

solution

4.6.6.1 Part a

y(t)+2y(t)=x(t) Taking the Fourier transform givesjωY(ω)+2Y(ω)=X(ω)Y(ω)(2+jω)=X(ω)

HenceH(ω)=Y(ω)X(ω)=12+jω

Using Matlab, the following is the Bode plot

clear all;
s   = tf('s');
sys = 1 / (2+s);
bode(sys);
grid

pict
Figure 4.75:Bode plot
4.6.6.2 Part b

In class, it was mentioned that group delay is given by derivative of the Phase of the Fourier transform. Since H(ω)=12+jω, then arg(H(ω))=arctan(ω2) Hence, using the rule ddxarctan(ax)=a1+a2x2, then using a=12 the derivative of the above becomesddωarg(H(ω))=121+(12)2ω2=24+ω2

4.6.6.3 Part c

Since x(t)=etu(t)  then now (1)Y(ω)=X(ω)H(ω) But X(ω)=0x(t)ejωtdt=0etejωtdt=0et(1+jω)dt=[et(1+jω)(1+jω)]0=1(1+jω)[et(1+jω)]0=1(1+jω)(01)=11+jω

Assuming Re(ω)>1. Hence (1) becomesY(ω)=(11+jω)(12+jω)

4.6.6.4 Part d

To find y(t)(11+jω)(12+jω)=A1+jω+B2+jω Hence A=(12+jω)ω=j=1 and B=(11+jω)ω=2j=1. ThereforeY(ω)=11+jω12+jω From tables

y(t)=(ete2t)u(t)

4.6.7 key solution

PDF