Ejemplos Syms T S F T, F Laplace (F, T, S)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Ejemplos

>> syms t s;f=t,F=laplace(f,t,s)

f=

F=

1/s^2

>> f=t^3,F=laplace(f,t,s)

f=

t^3

F=

6/s^4

>> f=cos(2*t),F=laplace(f,t,s)

f=
cos(2*t)

F=

s/(s^2 + 4)

>> f=exp(2*t),F=laplace(f,t,s)

f=

exp(2*t)

F=

1/(s - 2)

>> f=exp(-2*t),F=laplace(f,t,s)

f=

exp(-2*t)
F=

1/(s + 2)

>> f=sin(2*t),F=laplace(f,t,s)

f=

sin(2*t)

F=

2/(s^2 + 4)

Ejemplo: calcular la transformada d elaplce

>> clear all

>> syms t s

>> f=-1.25+3.5*t*exp(-2*t)+1.25*exp(-2*t);

>> F=laplace(f,t,s)

F=

5/(4*(s + 2)) + 7/(2*(s + 2)^2) - 5/(4*s)

>> simplify(F)
ans =

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

>> pretty(ans)

s-5

----------

s (s + 2)

Calculo de la transformada inversa de laplce

>> clear all

>> syms s t

>> F=2/(s+4)

F=

2/(s + 4)

>> ilaplace(F,s,t)

ans =

2*exp(-4*t)
>> Fs=3/(s+4)+2/s

Fs =

3/(s + 4) + 2/s

>> ilaplace(Fs,s,t)

ans =

3*exp(-4*t) + 2

>> Fx=(4/5)/s

Fx =

4/(5*s)

>> ilaplace(Fx,s,t)

ans =

4/5

Transformada de la place de la derivada

>> clear all

>> syms t s
>> F=(s-5)/(s*(s+2)^2);

>> ilaplace(F)

ans =

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

>> simplify(F)

ans =

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

>> pretty(ans)

s-5

----------

s (s + 2)

>> syms t

>> laplace(diff(sym('F(t)')))

ans =

s*laplace(F(t), t, s) - F(0)

Resolver ecuaciones diferenciales


>> syms y

>> dsolve('D2y+6*Dy+12*y=0')

ans =

C2*exp(-3*t)*cos(3^(1/2)*t) + C3*exp(-3*t)*sin(3^(1/2)*t)

Con condicioens de contorno

>> syms y

>> dsolve('D2y+8*Dy+32*y=1','y(0)=1,Dy(0)=4')

ans =

(31*cos(4*t)*exp(-4*t))/32 + (63*sin(4*t)*exp(-4*t))/32 + 1/32

>>

You might also like