1.34 problem 35

Internal problem ID [7078]

Book: Own collection of miscellaneous problems
Section: section 1.0
Problem number: 35.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, `class G`], _exact, _rational, _Bernoulli]

\[ \boxed {y^{2}+2 x y y^{\prime }=-\frac {2}{x}} \]

Solution by Maple

Time used: 0.031 (sec). Leaf size: 36

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

\begin{align*} y \left (x \right ) &= \frac {\sqrt {x \left (-2 \ln \left (x \right )+c_{1} \right )}}{x} \\ y \left (x \right ) &= -\frac {\sqrt {x \left (-2 \ln \left (x \right )+c_{1} \right )}}{x} \\ \end{align*}

Solution by Mathematica

Time used: 0.207 (sec). Leaf size: 44

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

\begin{align*} y(x)\to -\frac {\sqrt {-2 \log (x)+c_1}}{\sqrt {x}} \\ y(x)\to \frac {\sqrt {-2 \log (x)+c_1}}{\sqrt {x}} \\ \end{align*}