26.5.13 problem 17

Internal problem ID [4287]
Book : Differential equations with applications and historial notes, George F. Simmons. Second edition. 1971
Section : Chapter 2, End of chapter, page 61
Problem number : 17
Date solved : Sunday, March 30, 2025 at 02:51:01 AM
CAS classification : [_exact]

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

Maple. Time used: 0.011 (sec). Leaf size: 16
ode:=y(x)^2*exp(x*y(x))+cos(x)+(exp(x*y(x))+x*y(x)*exp(x*y(x)))*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\operatorname {LambertW}\left (-x \left (c_1 +\sin \left (x \right )\right )\right )}{x} \]
Mathematica. Time used: 60.275 (sec). Leaf size: 19
ode=(y[x]^2*Exp[x*y[x]]+Cos[x])+(Exp[x*y[x]]+x*y[x]*Exp[x*y[x]])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {W(x (-\sin (x)+c_1))}{x} \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x*y(x)*exp(x*y(x)) + exp(x*y(x)))*Derivative(y(x), x) + y(x)**2*exp(x*y(x)) + cos(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out