83.2.7 problem 7

Internal problem ID [18982]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter II. Equations of first order and first degree. Exercise II (A) at page 8
Problem number : 7
Date solved : Monday, March 31, 2025 at 06:28:21 PM
CAS classification : [_Bernoulli]

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

Maple. Time used: 0.002 (sec). Leaf size: 13
ode:=x*diff(y(x),x)+y(x) = y(x)^2*ln(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {1}{1+c_1 x +\ln \left (x \right )} \]
Mathematica. Time used: 0.137 (sec). Leaf size: 20
ode=x*D[y[x],x]+y[x]==y[x]^2*Log[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {1}{\log (x)+c_1 x+1} \\ y(x)\to 0 \\ \end{align*}
Sympy. Time used: 0.229 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - y(x)**2*log(x) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {1}{C_{1} x + \log {\left (x \right )} + 1} \]