Computing Laplace and Inverse Laplace Transforms 

(from integrals and the laplace, invlaplace commands) 

> Int(exp(-s*t)*sin(2*t),t=0..infinity);
 

Int(exp(-s*t)*sin(2*t), t = 0 .. infinity) 

> value(%);
 

limit(-(s*exp(-s*t)*sin(2*t)+2*exp(-s*t)*cos(2*t)-2)/(s^2+4), t = infinity) 

> assume(s>0);
 

Int(exp(-s*t)*sin(2*t),t=0..infinity); 

Int(exp(-s*t)*sin(2*t), t = 0 .. infinity) 

value(%); 

2*(s^2+4)^(1/2)/(s*(1+4/s^2)^(1/2)*(s^2/(1+4/s^2)+8/(1+4/s^2)+16/(s^2*(1+4/s^2)))) 

simplify(%); 

2/(s^2+4) 

with(inttrans): 

laplace(sin(2*t),t,s); 

2/(s^2+4) 

laplace(exp(3*t)*cos(4*t),t,s); 

(s-3)/(s^2-6*s+25) 

Take off the assume. 

s:='s'; 

s 

 

laplace(sin(2*t),t,s); 

2/(s^2+4) 

laplace(exp(3*t)*cos(4*t),t,s); 

(s-3)/(s^2-6*s+25) 

invlaplace((s^2+3*s+8)/(2*s^4-7*s^3+4*s^2+7*s-6),s,t); 

6*exp(2*t)+29/5*cosh(t)+31/5*sinh(t)-59/5*exp(3/2*t) 

convert((s^2+3*s+8)/(2*s^4-7*s^3+4*s^2+7*s-6),parfrac,s); 

-118/5/(2*s-3)-1/5/(s+1)+6/(s-1)+6/(s-2) 

invlaplace(-118/(10*s-15)-1/(5*s+5)+6/(s-1)+6/(s-2),s,t); 

6*exp(2*t)+29/5*cosh(t)+31/5*sinh(t)-59/5*exp(3/2*t)