Example 4: Solve the differential equation from Example 3, that satisfies the initial conditions
.
> y:=unapply(%,x);
Recall,
unapply
makes the previous expression
%
, a function of
.
> solve({y(0)=1,D(y)(0)=3},{c[1],c[2]});
Note how we used the operator D(y) instead of diff(y(x),x) .