0% found this document useful (0 votes)
105 views18 pages

Experiment 5 - Laplace and Inverse Laplace Transform

The document describes an experiment on Laplace and inverse Laplace transforms. It provides objectives to understand the operations of Laplace and inverse Laplace transforms and how to solve them using MATLAB. It then gives examples of using MATLAB commands like laplace and ilaplace to compute the Laplace transform and inverse Laplace transform of various functions.

Uploaded by

TTK MARVIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views18 pages

Experiment 5 - Laplace and Inverse Laplace Transform

The document describes an experiment on Laplace and inverse Laplace transforms. It provides objectives to understand the operations of Laplace and inverse Laplace transforms and how to solve them using MATLAB. It then gives examples of using MATLAB commands like laplace and ilaplace to compute the Laplace transform and inverse Laplace transform of various functions.

Uploaded by

TTK MARVIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

LEE MARVIN I.

BIAS
Name:________________________________ 12-14-22
Date:__________________
ECEA106L/FOPI01
Program/Year:_________________________

Experiment 5
Laplace and Inverse laplace transform

Objectives
By the end of the experiment, the student should be able to
understand the laplace and inverse laplace transform operation.
know how to solve laplace transform using MATLAB.
know how to apply inverse laplace transform inMATLAB.

Tools Required
Personal Computer/Desktop Computer/Computer Workstation
MATLAB software

Laplace Transforms with MATLAB :

You can compute Laplace transform using the symbolic toolbox of MATLAB. If you want to
compute the Laplace transform of
a) x(t) = t , you can use the following MATLAB program.

>> syms f t
>> f=t;
>> laplace(f)

ans =1/s^2
where f and t are the symbolic variables, f the function, t the time variable.

b)

>> syms t s
>> f=-1.25+3.5*t*exp(-2*t)+1.25*exp(-2*t);
>> F=laplace(f,t,s)
>>simplify(F)
>>pretty(ans)

Alternatively, one can write the function f(t) directly as part of the laplace command:
>>F2=laplace(-1.25+3.5*t*exp(-2*t)+1.25*exp(-2*t))
C)

Matlab performs Laplace transform symbolically. Thus, you need to first define the variable t as a
"symbol".

>> syms t

Next, enter the function f(t):

>> f=5*exp(-2*t);

Finally, enter the following command:

>> L=laplace(f)

Matlab yields the following answer:

L =

5/(s+2)

You may want to carry out the transformation by hand (or using Laplace transform table) to verify this
result.

Inverse Laplace Transform with MATLAB:

The command one uses now is ilaplace. One also needs to define the symbols t and s.

Lets calculate the inverse of the previous function F(s),

1)

>> syms t s
>> F=(s-5)/(s*(s+2)^2);
>> ilaplace(F)
ans =
-5/4+(7/2*t+5/4)*exp(-2*t)

>> simplify(ans)

ans =
-5/4+7/2*t*exp(-2*t)+5/4*exp(-2*t)

>> pretty(ans)

- 5/4 + 7/2 t exp(-2 t) + 5/4 exp(-2 t)


Which corresponds to f(t)

Alternatively one can write

>> ilaplace ((s-5)/(s*(s+2)^2))

2)

>> F=10*(s+2)/(s*(s^2+4*s+5));
>> ilaplace(F)
ans =
-4*exp(-2*t)*cos(t)+2*exp(-2*t)*sin(t)+4

Which gives f(t),

3)

>> syms F S
>> F=24/(s*(s+8));
>> ilaplace(F)
ans =

3-3*exp(-8*t)

4) Find the inverse Laplace transform of

In Matlab Command window:

>> ilaplace(1/s-2/(s+4)+1/(s+5))

Matlab result:
ans =

1-2*exp(-4*t)+exp(-5*t)

or

which is the solution of the differential equation


Part I. Laplace Transform

Find the laplace transform of


a. f(t) = 3etsin5t

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

b. f(t) = 2e-2t(3cos6t – 5sin6t)

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

c. f(t) = e-3tsin((πt)/3) cos((πt)/3)

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

−𝑠𝑖𝑛4 3𝑡+𝑐𝑜𝑠4 3𝑡
d. 𝑓(𝑡) = ( 𝑒 −𝑡(𝑐𝑜𝑠6𝑡)𝑒 3𝑡⁄2 )

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

2
(𝑒 3𝑡 +𝑒 𝑡 )
e. 𝑓(𝑡) = 𝑠𝑖𝑛2𝑡𝑐𝑜𝑠4𝑡
2𝑒 7𝑡

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
0, 𝑡 < 3
f.𝑓(𝑡) = 4 {
𝑒 (𝑡−3),𝑡>3

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Part II. Inverse Laplace Transform

Find the inverse laplace transform of

a.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

b.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

c.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

d.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

e.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

f.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Part III. Application of laplace and inverse laplace transform in electrical circuit.

1, 𝑡 ≥ 0
The input voltage to this circuit is the voltage source Vs(t) = 6e-3t u(t), where 𝑢(𝑡) = {
0, 𝑡 < 0
The output is the capacitor voltage, v(t). Determine the output voltage after t = 0.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

The input voltage to this circuit is the voltage source. The output of the circuit is the current,
i2(t). The initial coil currents are
i1(0) = 2 A and i2(0) = 3 A
Determine the output for t>0.

Syntax:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Answer:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy