50.4.15 problem 15

Internal problem ID [7864]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Section 1.5. Exact Equations. Page 20
Problem number : 15
Date solved : Sunday, March 30, 2025 at 12:32:32 PM
CAS classification : [_separable]

\begin{align*} x \ln \left (y\right )+x y+\left (y \ln \left (x \right )+x y\right ) y^{\prime }&=0 \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 28
ode:=x*ln(y(x))+x*y(x)+(y(x)*ln(x)+x*y(x))*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ \int \frac {x}{\ln \left (x \right )+x}d x +\int _{}^{y}\frac {\textit {\_a}}{\ln \left (\textit {\_a} \right )+\textit {\_a}}d \textit {\_a} +c_1 = 0 \]
Mathematica. Time used: 47.92 (sec). Leaf size: 54
ode=(x*Log[y[x]]+x*y[x])+(y[x]*Log[x]+x*y[x])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \text {InverseFunction}\left [\int _1^{\text {$\#$1}}\frac {K[1]}{K[1]+\log (K[1])}dK[1]\&\right ]\left [\int _1^x-\frac {K[2]}{K[2]+\log (K[2])}dK[2]+c_1\right ] \\ y(x)\to W(1) \\ \end{align*}
Sympy. Time used: 0.574 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*y(x) + x*log(y(x)) + (x*y(x) + y(x)*log(x))*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \int \limits ^{y{\left (x \right )}} \frac {y}{y + \log {\left (y \right )}}\, dy = C_{1} - \int \frac {x}{x + \log {\left (x \right )}}\, dx \]