78.8.25 problem 25

Internal problem ID [18152]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 2. First order equations. Miscellaneous Problems for Chapter 2. Problems at page 99
Problem number : 25
Date solved : Monday, March 31, 2025 at 05:15:10 PM
CAS classification : [`y=_G(x,y')`]

\begin{align*} {\mathrm e}^{x} \left (1+x \right )&=\left (x \,{\mathrm e}^{x}-y \,{\mathrm e}^{y}\right ) y^{\prime } \end{align*}

Maple. Time used: 0.009 (sec). Leaf size: 20
ode:=(1+x)*exp(x) = (x*exp(x)-y(x)*exp(y(x)))*diff(y(x),x); 
dsolve(ode,y(x), singsol=all);
 
\[ x \,{\mathrm e}^{x -y}+\frac {y^{2}}{2}+c_1 = 0 \]
Mathematica. Time used: 0.342 (sec). Leaf size: 26
ode=Exp[x]*(1+x)==(x*Exp[x]-y[x]*Exp[y[x]])*D[y[x],x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [-\frac {1}{2} y(x)^2-x e^{x-y(x)}=c_1,y(x)\right ] \]
Sympy. Time used: 1.395 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x + 1)*exp(x) - (x*exp(x) - y(x)*exp(y(x)))*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ C_{1} + x e^{x} e^{- y{\left (x \right )}} + \frac {y^{2}{\left (x \right )}}{2} = 0 \]