Example 1: Solve [Maple Math] that satisfies initial conditions [Maple Math] and

[Maple Math] .

Solution: First we solve the homogeneous equation [Maple Math] .

> solve(r^2-1=0,r);

[Maple Math]

Hence

> y[1]:=x->exp(x);y[2]:=x->exp(-x);

[Maple Math]

[Maple Math]

> solve({y[1](x)*dc[1]+y[2](x)*dc[2] = 0, diff(y[1](x),x)*dc[1]+diff(y[2](x),x)*dc[2] = exp(2*x)},{dc[1],dc[2]});

[Maple Math]

Hence

> c[1]:=int(1/2*exp(x),x);c[2](x):=int(-1/2*exp(x)^3,x);

[Maple Math]

[Maple Math]

So the particular solution is

> 1/2*exp(x)*exp(x)+1/6*exp(x)^3*exp(-x);

[Maple Math]

> simplify(%);

[Maple Math]

Hence the general solution is

> y:=x->C[1]*exp(x)+C[2]*exp(-x)+2/3*exp(2*x);

[Maple Math]

" width=267 height=45 alt="[Maple Math]">

No we solve the initial problem

> solve({y(0)=1,D(y)(0)=1},{C[1],C[2]});

[Maple Math]

Hence the solution is

> 1/3*exp(-x)+2/3*exp(2*x);

[Maple Math]

p>