Example 2: Solve
where
.
Solution: We find first the general solution using FO .
> a:=x->2*x;f:=x->x^3;
> FO;
> simplify(%);
We use
unapply
unapply
to make the previous solution a function of
.
> y:=unapply(%,x);
Now we plug in the initial conditions to solve for the constant
.
> solve(y(1)=1,C);
> simplify(%);
Thus
. (Note do not just write e, in Maple e is a constant, the number e is given by exp(1)). Next we substitute
in the formula for
. We use Maple command
subs
to do this.
> subs(C=exp(1),y(x));
> simplify(%);