Laplace Transform Method:
Ordinary Differential Equation
M.M. Yovanovich
LPTODE4.MWS
> restart:
> assume(m>0,n>0):
> ode:= diff(theta(t),t) + m*theta(t)=0;
> sol:= dsolve(ode, theta(t));
> ic:=simplify(subs(t=0, rhs(sol)))=thetai;
> assign(ic);
> sol;
> with(inttrans):
> alias(f(s) = laplace(theta(t),t,s)):
> laplace(ode, t,s);
> lptode:= subs(theta(0) = thetai, %);
> solve(%, f(s));
> sol2:= invlaplace(%, s, t);
Here we obtain the solution directly by means of the Laplace transform method.
> sol3:= dsolve({ode, theta(0)=thetai}, theta(t), method=laplace);
>