Hi,
Would appreciate some help - Re: checking solutions of the first order DE in Maple?
Tried to search in Help, but could only find solutions to 2nd order DE.
For instance, when I enter:
> ode := diff(y(x), x) = y^2*exp(x);
d 2
--- y(x) = y exp(x)
dx
> solve(ode);
I get:
Error, (in solve) cannot solve expressions with diff(y(x), x) for x
>
Many thanks! Antonio
use dsolve
The procedure you want is dsolve, not solve. Also, you need to use y(x), not y, as the dependent variable:
You can include an initial condition so that dsolve will solve for the integration constant:
dsolve({ode,y(0)=y0}, y(x)); y0 y(x) = - ------------------ exp(x) y0 - 1 - y0Thank you!
Thank you!