Solving a Homogeneous ODE:

> homo:=diff(u(t),t,t)+u(t)=0;

[Maple Math]

> dsolve(homo,u(t));

[Maple Math]

Solving an Inhomogeneous ODE:

> inhomo:=diff(u(t),t,t)+u(t)=1-exp(-t);

[Maple Math]

> dsolve(inhomo,u(t));

[Maple Math]
[Maple Math]

> simplify(%);

[Maple Math]

Using Undetermined Coefficients

> undet:=subs(u(t)=A+B*exp(-t),inhomo);

[Maple Math]

> undet:=eval(undet);

[Maple Math]

We can see that A=1 and B=-1/2, which agrees with the above result.



SFU / Math & Stats / ~hebron / math314 / lec_notes / lec02maple / index.html

Revised 12 September 1999 by John Hebron.