4.14 problem Problem 3.21

Internal problem ID [5135]

Book: THEORY OF DIFFERENTIAL EQUATIONS IN ENGINEERING AND MECHANICS. K.T. CHAU, CRC Press. Boca Raton, FL. 2018
Section: Chapter 3. Ordinary Differential Equations. Section 3.6 Summary and Problems. Page 218
Problem number: Problem 3.21.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_exact]

Solve \begin {gather*} \boxed {x -2 y x +{\mathrm e}^{y}+\left (y-x^{2}+x \,{\mathrm e}^{y}\right ) y^{\prime }=0} \end {gather*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 28

dsolve((x-2*x*y(x)+exp(y(x)))+(y(x)-x^2+x*exp(y(x)))*diff(y(x),x)=0,y(x), singsol=all)
 

\[ -x^{2} y \relax (x )+x \,{\mathrm e}^{y \relax (x )}+\frac {x^{2}}{2}+\frac {y \relax (x )^{2}}{2}+c_{1} = 0 \]

Solution by Mathematica

Time used: 0.546 (sec). Leaf size: 35

DSolve[(x-2*x*y[x]+Exp[y[x]])+(y[x]-x^2+x*Exp[y[x]])*y'[x]==0,y[x],x,IncludeSingularSolutions -> True]
 

\[ \text {Solve}\left [x^2 (-y(x))+\frac {x^2}{2}+x e^{y(x)}+\frac {y(x)^2}{2}=c_1,y(x)\right ] \]