ENGI 2422 Engineering Mathematics 2
Maple 6 Version for
part of Problem Set 10


> with(inttrans):
ENGR 2422 Engineering Mathematics 2 Winter 2007 Problem Set 10
Question 2(a)
> laplace(t^4*exp(-2*t),t,s);

24*1/((s+2)^5)

Question 2(b)
> laplace(t+(exp(1-t)-t)*Heaviside(t-1),t,s);

1/(s^2)+exp(1)*exp(-s-1)/(s+1)-exp(-s)/s-exp(-s)/(s...

> simplify(%);

-(-s-1+2*exp(-s)*s+exp(-s))/(s^2*(s+1))

Question 2(c)
> laplace(4*(sin(3*t))^2,t,s);

72*1/(s*(s^2+36))

Question 2(d)
> laplace(exp(-t)*Dirac(t-2),t,s);

exp(-2)*exp(-2*s)

Question 2(e)
> laplace(t*exp(-2*t)*cos(3*t),t,s);

-1/9*1/(1/9*(s+2)^2+1)+2/81*(s+2)^2/((1/9*(s+2)^2+1...

> simplify(%);

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

Question 3(a)
> invlaplace((s+4)/(s^2+16),s,t);

cos(4*t)+sin(4*t)

Question 3(b)
> invlaplace(((s+1)^2-16)/((s+1)^2+16)^2,s,t);

t*exp(-t)*cos(4*t)

Question 3(c)
> invlaplace((6*s^3+28*s^2+21*s+26)/(s^4+4*s^3+13*s^2),s,t);

2*t+1+5*exp(-2*t)*cos(3*t)+4*exp(-2*t)*sin(3*t)

Question 3(d)
> invlaplace((1+(s-1)*exp(-s))/s,s,t);

1+Dirac(t-1)-Heaviside(t-1)

Question 4(a)
> ode1 := {diff(y(t),t,t) - 3*diff(y(t),t) - 10*y(t) = 1}:
> ic := {y(0)=1, D(y)(0)=1}:
> dsolve(ode1 union ic, {y(t)});

y(t) = -1/10+16/35*exp(5*t)+9/14*exp(-2*t)

Question 4(b)
> ode1 := {diff(y(t),t,t,t) + 3*diff(y(t),t,t) + 3*diff(y(t),t) + y(t) = exp(-t)}:
> ic := {y(0)=0, D(y)(0)=0, (D@@2)(y)(0)=0}:
> dsolve(ode1 union ic, {y(t)});

y(t) = 1/6*t^3*exp(-t)

Question 4(c)
> ode1 := {diff(y(t),t,t) + 2*diff(y(t),t) + 5*y(t) = piecewise(t<=Pi,sin(2*t),0)}:
> ic := {y(0)=0, D(y)(0)=0}:
> dsolve(ode1 union ic, {y(t)});

y(t) = PIECEWISE([-4/17*cos(2*t)+1/17*sin(2*t)+4/17...
y(t) = PIECEWISE([-4/17*cos(2*t)+1/17*sin(2*t)+4/17...
y(t) = PIECEWISE([-4/17*cos(2*t)+1/17*sin(2*t)+4/17...

> simplify(%);

y(t) = PIECEWISE([-4/17*cos(2*t)+1/17*sin(2*t)+4/17...
y(t) = PIECEWISE([-4/17*cos(2*t)+1/17*sin(2*t)+4/17...
y(t) = PIECEWISE([-4/17*cos(2*t)+1/17*sin(2*t)+4/17...

Question 6(c)
> laplace(abs(sin(w*t)),t,s);

w*coth(1/2*Pi*s/w)/(s^2+w^2)


The actual Maple 6 worksheet is also available:   "
s9.mws"
    Back to Problem Set 10   [Back to Problem Set 10]
    Return to your previous page   [Return to your previous page]
    Created 2001 03 18 and most recently modified 2007 03 27 by Dr. G.H. George