4.1 HW 1

  4.1.1 Problem 1.8, Chapter 1
  4.1.2 Problem 1.13, Chapter 1
  4.1.3 Problem 1.17, Chapter 1
  4.1.4 Problem 1.21, Chapter 1
  4.1.5 Problem 1.22, Chapter 1
  4.1.6 Problem 1.26, Chapter 1
  4.1.7 key solution
PDF (letter size)
PDF (legal size)

4.1.1 Problem 1.8, Chapter 1

   4.1.1.1 part a
   4.1.1.2 part b
   4.1.1.3 part c
   4.1.1.4 part d

Express the real part of each of the following signals in the form Aeatcos(ωt+ϕ), where A,a,ω,ϕ are real numbers with A>0 and π<ϕπ: (a) x1(t)=2, (b) x2(t)=2ejπ4cos(3t+2π), (c) x3(t)=etsin(3t+π), (d) x4(t)=je(2+100j)t

Solution

4.1.1.1 part a

x1(t)=2 Comparing the above to Aeatcos(ωt+ϕ) shows that A=2,a=0,ϕ=0,ω=0,ϕ=π

4.1.1.2 part b

x2(t)=2ejπ4cos(3t+2π) Since cos(3t+2π)=cos(3t), the above becomesx2(t)=2ejπ4cos(3t)=2(cosπ4+jsinπ4)cos(3t)=2(122+j122)cos(3t)=(1+j)cos(3t)

Hence the real part of x2(t) is Re(x2(t))=cos(3t) Comparing the above to Aeatcos(ωt+ϕ) shows that A=1,a=0,ω=3,ϕ=0

4.1.1.3 part c

x3(t)=etsin(3t+π) Since sin(3t+π)=cos(3t+ππ2)=cos(3t+π2), then the above becomesx3(t)=etcos(3t+π2) Comparing the above to Aeatcos(ωt+ϕ) shows that A=1,a=1,ω=3,ϕ=π2

4.1.1.4 part d

x4(t)=je(2+100j)t=je2tej100t

But j=ejπ2, hence the above becomesx4(t)=ejπ2e2tej100t=e2tej(100t+π2)=e2t(cos(100t+π2)+jsin(100t+π2))

Therefore Re(x4(t))=e2tcos(100t+π2) Comparing the above to Aeatcos(ωt+ϕ) shows that A=1,a=2,ω=100,ϕ=π2

4.1.2 Problem 1.13, Chapter 1

Consider the continuous-time signal x(t)=δ(t+2)δ(t2). Calculate the value of E for the signal y(t)=tx(τ)dτ

Solution

y(t) is first foundy(t)=tδ(t+2)δ(t2)dτ=tδ(t+2)dτtδ(t2)dτ

δ(t+2) is an impulse at t=2 and δ(t2) is an impulse at t=2. Hence is t<2 then the above is zero. If 2<t<2 then only the first integral contributes giving 1 and if t>2 then both integral contribute 1 each, and hence cancel each others giving y=0. Thereforey(t)={0t<212<t<20t>2 Now that y(t) is found, its E can be calculated using the definition E=|y(t)|2dt=221dt=[t]22=2+2

HenceE=4

4.1.3 Problem 1.17, Chapter 1

   4.1.3.1 Part a
   4.1.3.2 Part b

Consider a continuous-time system with input x(t) and output y(t) related by y(t)=x(sin(t)). (a) Is this system causal? (b) Is this system linear?

Solution

4.1.3.1 Part a

A system is causal if its output at time t depends only on current t and on past t and not on future t. Picking t=π, then y(π)=x(sin(π))=x(0). This shows that y(π)=x(0). Hence the output depends on input at future time (since 0>π). Therefore this system is not causal.

4.1.3.2 Part b

Let input be x(t)=a1x1(t)+a2x2(t). If the output when the input is x(t) is given by y(t)=a1y1(t)+a2y2(t) where y1(t)=x1(t) and y2(t)=x2(t) then the system is linear.  From the definitiony(t)=x(sin(t))=a1x1(sin(t))+a2x2(sin(t))

Now, y1(t)=x1(sint) and y2(t)=x2(sint). Hence the above becomesy(t)=x(sin(t))=a1y1(t)+a2y2(t)

Therefore the system is linear.

4.1.4 Problem 1.21, Chapter 1

   4.1.4.1 Part a
   4.1.4.2 Part b
   4.1.4.3 Part c
   4.1.4.4 Part d

A continuous-time signal x(t) is shown in Figure P1.21. Sketch and label carefully each of the following signals: (a) x(t1). (b) x(2t) (c) x(2t+1) (d) x(4t2)

pict
Figure 4.1:The function x(t)

Solution

Looking at the plot, it can be constructed from unit step u(t) and ramp function r(t) as followsx(t)=u(t+2)+r(t+2)r(t+1)+u(t+1)+u(t)u(t1)r(t1)+r(t2) Here is an implementation

pict
Figure 4.2:Construction the signal x(t) from unit step and ramp functions

pict
Figure 4.3:Code for the above
4.1.4.1 Part a

x(t1) is x(t) shifted to right by one unit time. Hence it becomesx(t1)=u(t+1)+r(t+1)r(t)+u(t)+u(t1)u(t2)r(t2)+r(t3)

pict
Figure 4.4:Part (a) plot

pict
Figure 4.5:Code for the above
4.1.4.2 Part b

x(2t)=x((t2)) Hence the signal x(t) is first flipped right to left (also called reflection about the t=0 axis) and the resulting function is then shifted to the right by 2 units. It becomes

x(2t)=u((2t)+2)+r((2t)+2)r((2t)+1)+u((2t)+1)+u(2t)u((2t)1)r((2t)1)+r((2t)2)=u(4t)+r(4t)r(3t)+u(3t)+u(2t)u(1t)r(1t)+r(t)

The flipped signal is

pict
Figure 4.6:Part (b) signal after reflection

Now the above is shifted to the right by 2 units giving

pict
Figure 4.7:Part (b) final plot

It also possible to first do the shifting, followed by the reflection. Same output will result.

4.1.4.3 Part c

x(2t+1)=x(2(t+12)). The signal is first shifted to the left by 12 due to the +12 term, and then the resulting signal is squashed (contraction) by factor of 2. Since the original signal is from 1 to 3, then after first shifting it to the left by 0.5 it becomes from 1.5 to 2.5. Hence the original ramp that went from 2 to 1 now goes from 1.5 to 1 and the line that originally went from 1 to 0 now goes from 1 to 12 (half the length) and so on. This is the result

pict
Figure 4.8:Part (c) plot

pict
Figure 4.9:Code for the above
4.1.4.4 Part d

x(4t2)=x((t24))=x(12(t8)). Hence, the signal is first shifted to the right by 8 due to the 8 term, and then the resulting signal is flipped across the t=0 axis, and then the resulting signal is stretched (expanded) by factor of 2 due to the multiplication by 12 term. This is the result showing each step

pict
Figure 4.10:Part (d) plot

4.1.5 Problem 1.22, Chapter 1

   4.1.5.1 Part a
   4.1.5.2 Part b
   4.1.5.3 Part c
   4.1.5.4 Part d

A discrete-time signal is shown in Figure P1.22. Sketch and label carefully each of the following signals (a) x[n4] (b) x[3n] (c) x[3n] (d) x[3n+1]

pict
Figure 4.11:The function x[n]

Solution

4.1.5.1 Part a

x[n4] is x[n] shifted to the right by 4 positions. Hence it becomes

pict
Figure 4.12:Part (a) plot

pict
Figure 4.13:Code used for the above
4.1.5.2 Part b

x[3n]=x[(n3)]. Hence x[n] is first reflected to obtain x[n] and then the result is shifted to right by 3. This is the result showing each step

pict
Figure 4.14:Part (b) plot
4.1.5.3 Part c

x[3n]. Sample at n=0 remains the same. Sample at n=1 gets the value of the sample that was at 3 which is 12. Sample at n=2 gets the value of the sample that was at n=6 which is zero. Hence for all n less than 1 new values are all zero. Same for the right side. The sample at n=1 gets the value of the sample that was at 3 which is 12 and sample at n=2 gets the value of the sample that was at 6 which is 0 and all n>1 are therefore zero. Notice that this operation causes samples to be lost from the original signal. This is the final result

pict
Figure 4.15:Part (c) plot
4.1.5.4 Part d

x[3n+1]. Sample at n=0 gets the value that was at n=1 which is 1. Sample at n=1 gets the value of the sample that was at 3+1=2 which is 12. Sample at n=2 gets the value of the sample that was at n=6+1=5 which is zero. Hence for all n<1 all values are zero. Same for the right side. Sample at n=1 gets the value of the sample that was at 3+1=4 which is 0 and therefore for all n>1 samples are zero. Notice that this operation causes samples to be lost from the original signal. The result is

pict
Figure 4.16:Part (d) plot

4.1.6 Problem 1.26, Chapter 1

   4.1.6.1 Part a
   4.1.6.2 Part b
   4.1.6.3 Part c
   4.1.6.4 Part d

Determine whether or not each of the following discrete-time signals is periodic. If the signal is periodic, determine its fundamental period (a) sin(67πn+1) (b) x[n]=cos(n8π) (c) x[n]=cos(π8n2) (d) x[n]=cos(π2n)cos(π4n)

Solution

The signal x[n] is periodic, if integer N can be found that x[n]=x[n+N] for all n. Fundamental period is the smallest such integer N.

4.1.6.1 Part a

In this part, x[n]=sin(67πn+1). Hence the signal is periodic if x[n]=x[n+N]sin(67πn+1)=sin(67π(n+N)+1)=sin((67πn+1)+67πN)

The above will be true if 67πN=2πm For some integer m and N. This is because sin has 2π period. This implies that37=mN Therefore N=7,m=3. Since it was possible to find n,N integers, then it is periodic. Since m,N are relatively prime then N=7 is the fundamental period.

4.1.6.2 Part b

In this part, x[n]=cos(n8π). Hence the signal is periodic if x[n]=x[n+N]cos(n8π)=cos(n+N8π)=cos((n8π)+N8)

The above will be true if N8=2πm116π=mN

For some integer N,m.  It is not possible to find integers m,N to satisfy the above since π is an irrational number. Hence not periodic.

4.1.6.3 Part c

x[n]=cos(π8n2). Hence the signal is periodic if x[n]=x[n+N]cos(π8n2)=cos(π8(n+N)2)=cos(π8(n2+N2+2nN))=cos(π8n2+π8(N2+2nN))

The above will be true if π8(N2+2nN)=2πm Need to find smallest integer N to satisfy this for all n. Choosing N=8 the above becomesπ8(64+16n)=m(2π)8π+2nπ=m(2π)

Hence for all n, N=8 satisfies the equation (since m is arbitrary integer). Therefore it is periodic  and fundamental period N=8.

4.1.6.4 Part d

Using cosAcosB=12(cos(A+B)+cos(AB)) thencos(π2n)cos(π4n)=12(cos(π2n+π4n)+cos(π2nπ4n))=12(cos(3π4n)+cos(π4n))

Considering each signal separately. x[n]=cos(3π4n). This is periodic if x[n]=x[n+N]cos(3π4n)=cos(3π4(n+N))=cos((3π4n)+3π4N)

The above will be true if 3π4N=2πm38=mN

It was possible to find integers N,m to satisfy this, where period N=8. Considering the second signal x[n]=cos(π4n). This is periodic if x[n]=x[n+N]cos(π4n)=cos(π4(n+N))=cos((π4n)+π4N)

The above will be true if π4N=2πm18=mN

It was possible to find integers N,m to satisfy this, where period N=8. Therefore both signals periodic with same period, the sum is therefore periodic and the fundamental period is N=8.

4.1.7 key solution

PDF