3.1 HW 1

  3.1.1 Problem B 2-1
  3.1.2 Problem B 2-6
  3.1.3 Problem B 2-7
  3.1.4 Problem B 2-15
  3.1.5 Problem B 2-16
  3.1.6 Problem B 2-17
  3.1.7 Problem B 2-23
PDF (letter size)
PDF (legal size)

3.1.1 Problem B 2-1

   3.1.1.1 Part a
   3.1.1.2 Part b

From Modern Control Engineering, 4th edition by Ogata

Question

  1. Find Laplace transform for

    f(t)=0t<0f(t)=e0.4tcos12tt0

  2. Find Laplace transform for

    f(t)=0t<0f(t)=sin(4t+π3)t0

Solution

3.1.1.1 Part a

This is of the form eatf(t), hence use the property of Laplace transform (1)L(eatf(t))=F(s+a) Where F(s) is Laplace transform of f(t). But L(cosωt)=ss2+ω2, therefore F(s)=L(cos12t)=ss2+144 Hence (1) becomesL(eatf(t))=L(e0.4tcos12t)=F(s+a)=(s+0.4)(s+0.4)2+144

3.1.1.2 Part b

I can not solve L(sin(4t+π3)) by using the property that L(f(ta))=easF(s) Because here delay π3>0 where the above property is valid for a<0. Instead, writingsin(ωt+θ)=sin(ωt)cosθ+cos(ωt)sinθsin(4t+π3)=sin(4t)cosπ3+cos(4t)sinπ3(2)L(sin(4t+π3))=cosπ3L(sin4t)+sinπ3L(cos4t)

But cosπ3=12 and sinπ3=3 and L(sinωt)=ωs2+ω2L(sin4t)=4s2+16 and L(cosωt)=ss2+ω2L(cos4t)=ss2+16. Hence substituting into eq (2) givesL(sin(4t+π3))=124s2+16+3ss2+16=12(4+3ss2+16)

3.1.2 Problem B 2-6

Question

(a) find Laplace transform for

pict
Figure 3.1:function

solution (a)This is a delayed ramp with slope=1. Hence ramp equation is f(t)=t. The amount of delay is a

Hence we want to find Laplace transform for g(t)=f(ta) which is, from Laplace properties, is easF(s)

But F(s)=L(t)=1s2 therefore the answer is

eas1s2

3.1.3 Problem B 2-7

From Modern Control Engineering, 4th edition by Ogata

Question

(a) find Laplace transform for

pict
Figure 3.2:function

Solution

The above function can be constructed as follows

Let f(t)=t (the ramp function)

g(t)=f(t)u(t)f(t)u(tT)+Tu(tT)

Where u(t) is the unit step function

This is ilustrated in this diagram

pict
Figure 3.3:function

Now L(f(t)u(t))=1s2 AndL(f(t)u(tT))=Ttestdt=tsest|TTestsdt=1s(0TesT)1s(1s) est|T=TsesT+1s2(0esT)=TsesTesTs2

AndL(Tu(tT))=TsesT Hence L(g(t))=1s2(TsesTesTs2)+TseTs=1s2TsesT+esTs2+ TseTs=1s2+esTs2 =1esTs2

3.1.4 Problem B 2-15

From Modern Control Engineering, 4th edition by Ogata

Question Obtain partial-fraction using MATLAB for

F(s)=10(s+2)(s+4)(s+1)(s+3)(s+5)2 and then find inverse laplace transform

Solution I used Mathematica to find Partial-fraction

pict
Figure 3.4:Code

Hence the inverse laplace tranform is

f(t)=1516et+54e3t+154te5t3516e5t

Here is a plot of the solution

pict
Figure 3.5:Plot

The Matlab code to find Partial-fraction for this problem is below.

pict
Figure 3.6:Matlab code

3.1.5 Problem B 2-16

From Modern Control Engineering, 4th edition by Ogata

Question Obtain partial-fraction using MATLAB for

F(s)=s4+5s3+6s2+9s+30s4+6s3+21s2+46s+30 And then find inverse laplace transform Solution

Using Mathematica to find Partial-fraction

pict
Figure 3.7:Code

Now find the Inverse Laplace transform for each term in the above result as follows.Lδ(t)=1L2318et=231811+sL326e3t=32611+s

The inverse laplace transform of the last term 1450253s117(10+2s+s2) is found by writing 10+2s+s2=(s+1)2+32. Therefore this terms becomes1450253s117(10+2s+s2)=1450117253117s(s+1)2+32=1450117253117(s+1)+253117(s+1)2+32=1197117253117(s+1)(s+1)2+32=1197117(s+1)2+32253117(s+1)(s+1)2+32=1197(117)(3)3(s+1)2+32253117(s+1)(s+1)2+32

Hence L1(1197117×33(s+1)2+32253117(s+1)(s+1)2+32)=1197(117)(3)L1(3(s+1)2+32)=253117L1((s+1)(s+1)2+32)=1197(117)(3)etsin3t253117etcos3t=et117(399sin3t+253cos3t)

Adding all of the above, gives the Inverse Laplace transform asf(t)=δ(t)+2318et326e3tet117(399sin3t+253cos3t) Here is a plot of the solution

pict
Figure 3.8:Plot

The Matlab code to find Partial-fraction for this problem is below.

pict
Figure 3.9:Matlab code

3.1.6 Problem B 2-17

From Modern Control Engineering, 4th edition by Ogata

Question

A function B(s)/A(s) consists of the following zeros, poles, and gain K. Zeros at s=1,s=2, poles at s=0,s=4,s=6, gain k=5.

Obtain an expression for B(s)/A(s) using Matlab.

Solution

In Matlab

pict
Figure 3.10:Code

In Mathematica, the solution is as follows

pict
Figure 3.11:Code

3.1.7 Problem B 2-23

From Modern Control Engineering, 4th edition by Ogata

Question

Solve the following ODE

x+2x+10x=et

x(0)=0

x(0)=0

The forcing function et is given at t=0 when the system is at rest.

Solution

Taking laplace transform of the differential equation givess(sX(s)x(0))x(0)+2(sX(s)x(0))+10X(s)=L(et)s2X(s)sx(0)x(0)+2sX(s)2x(0)+10X(s)=1s+1

Applying the initial conditions results ins2X(s)+2sX(s)+10X(s)=1s+1X(s)(s2+2s+10)=1s+1X(s)=1(s+1)1(s2+2s+10)

Taking the inverse laplace transform of X(s) and using partial fraction gives(1)1(s+1)1(s2+2s+10)=As+1+Bs2+2s+10 Multiplying (1) by s+1 gives1s2+2s+10=A+B(s+1)s2+2s+10 Evaluating at s=1 gives112+10=A 19=A

Multiplying eq (1) by s2+2s+10 gives1s+1=A(s2+2s+10)s+1+B Evaluating at s=3i1 gives13i=B Therefore1s+11s2+2s+10=191s+1+13i1(s+1)2+32=191s+1i93(s+1)2+32

Using tables the inverse Laplace transform isf(t)=19eti9etsin3t=19et(1isin3t)