Session 4.5 Using Laplace Transforms on a Differential Equation

> restart;

> with(inttrans):

> de:=D(D(y))(t)-y(t);

Define the differntial equation

[Maple Math]

> Fs:=laplace(de=sin(a*t), t, s);

Transform the equality with Laplace Transform

[Maple Math]

> ys:=solve(Fs,laplace(y(t),t,s));

Solve the function with the laplace transform as the variable.

[Maple Math]

> y(0):=1;D(y)(0):=0;

[Maple Math]

[Maple Math]

> yt:=invlaplace(ys,s,t);

Invert the solution

[Maple Math]

Thus, all that is required is a little simplification...

> yt:=unapply(yt,t);

[Maple Math]

> simplify(yt(0));

[Maple Math]

> simplify(D(yt)(0));

[Maple Math]

> a:=0.5;

[Maple Math]

> plot(yt(t),t=0...2);

>