Example 2: Solve [Maple Math] .

Solution: First we multiply both sides with [Maple Math] to obtain [Maple Math] . Divide both sides of the equation with [Maple Math] to obtain [Maple Math] . Finally rewrite this as [Maple Math] . Since we have separated variables we integrate both sides.

> int(1/y,y)=int(x*exp(x)+2,x);

[Maple Math]

We can solve this explicitly in [Maple Math] .

> solve(ln(y) = x*exp(x)-exp(x)+2*x,y);

[Maple Math]

To check that this is indeed a solution we first make it as a function of [Maple Math] using Maple command unapply together with % , which in Maple denotes Maple expression that was last executed.

> y:=unapply(%,x);

[Maple Math]

We will plug this back in the original equation, and using Maple command simplify we should get [Maple Math] as the answer.

> simplify(D(y)(x)-y(x)-y(x)*(x*exp(x)+1));

[Maple Math]

lt="[Maple Math]">