Laplace Transform Method:

Ordinary Differential Equation

M.M. Yovanovich

LPTODE5.MWS

> restart:

> assume(m>0,n>0):

> ode:= diff(theta(t),t) + m*theta(t)=n;

[Maple Math]

> sol:= dsolve(ode, theta(t));

[Maple Math]

> ic:=simplify(subs(t=0, rhs(sol)))=thetai;

[Maple Math]

> const:= solve(ic, _C1); _C1:= %;

[Maple Math]

[Maple Math]

> sol1;

[Maple Math]

> with(inttrans):

> alias(f(s) = laplace(theta(t),t,s)):

> laplace(ode, t,s);

[Maple Math]

> lptode:= subs(theta(0) = thetai, %);

[Maple Math]

> solve(%, f(s));

[Maple Math]

> sol2:= invlaplace(%, s, t);

[Maple Math]

Here we obtain the solution directly by means of the Laplace transform method.

> sol3:= dsolve({ode, theta(0)=thetai}, theta(t), method=laplace);

[Maple Math]

>