h1

4th Assignment: Laplace Transform

Fourth 3 Week Blog: Laplace Transform


In the fourth 3 week block we were introduced to Laplace transform. For majority of the class professor Davis lectured to us about the Laplace transform. Laquita and I compromised that we would be working closer together. Laquita took notes during lecturers while I took notes on the board and summarized our days work. We both contributed in completing our matlab and other diagrams and etc…

In order to run laplace transformers on Matlab we have to use ” syms s t; ” in Matlab. Below are the problems:

>> syms s t;laplace(1,t,s)
ans =
1/s
>> syms s t;laplace(exp(t),t,s)
ans =
1/(s – 1)
>> syms s t;laplace(exp(t^2),t,s)
ans =
laplace(exp(t^2), t, s)
>>

As you can see we do not get a solution when we do laplace transform equations in that form.

So now we will go into Matlab and type this formulated equation to find a more precise result.

L (x(t) = \frac {(2+s)A}{s^2 +2s-1}  +\frac{B}{s^2+2s-1}+\frac{1}{s(s^2+2s-1)}

If we can find any function that has this form then that is the laplace transform.

The inverse laplace ” ilaplace(….,s,t) ” gives the solution. Inverse calculates the function to whom laplace transform belongs to.

The Matlab code for inverse laplace is as follows:

>> syms A B s t; ilaplace(A*(2+s)/(s^2 +2*s-1) +B/(s^2+2*s-1)+1/(s*(s^2+2*s-1)))
ans =
((cosh(2^(1/2)*t) + (2^(1/2)*sinh(2^(1/2)*t)*((2*A + B + 2)/(A + 1) – 1))/2)*(A + 1))/exp(t) – 1
>> syms A B s t; x=ilaplace(A*(2+s)/(s^2 +2*s-1) +B/(s^2+2*s-1)+1/(s*(s^2+2*s-1)),s,t)
x =
((cosh(2^(1/2)*t) + (2^(1/2)*sinh(2^(1/2)*t)*((2*A + B + 2)/(A + 1) – 1))/2)*(A + 1))/exp(t) – 1
>>

Now we will take or function and give A B values to make our picture more informative.

This technique can only be applied to linear formulas because the laplace transform is linear.

_____________________________________________________________________________________________________________________________________________________________

(1) Some specific first and second-order liner differential equations:

1.  \frac{dx}{dt} + x = e^{-t}

2.  \frac{dy}{dx} + y = cos(x)

3.  \frac{d^(2)y}{dx^2} + 4\frac{dy}{dx} + 4y= 0

4.  \frac{d^(2)x}{dt^2} +5x = 0

 

 

 

The First equation that I am assigned is:  

\frac{dx}{dt} + x = e^{-t}

 

 

 

The Second equation that I am assigned is:  

\frac{dy}{dx} + y = cos(x)




The Third equation that I am assigned is:  

\frac{d^(2)y}{dx^2} + 4\frac{dy}{dx} + 4y= 0


The Fourth equation that I am assigned is:  

\frac{d^(2)x}{dt^2} +5x = 0

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.