1.1 problem Ex 1

Internal problem ID [10104]

Book: An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section: Chapter 2, differential equations of the first order and the first degree. Article 8. Exact differential equations. Page 11
Problem number: Ex 1.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, `class D`], _exact, _rational, [_Abel, `2nd type``class A`]]

\[ \boxed {\frac {2 x y+1}{y}+\frac {\left (-x +y\right ) y^{\prime }}{y^{2}}=0} \]

Solution by Maple

Time used: 0.079 (sec). Leaf size: 18

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

\[ y \left (x \right ) = -\frac {x}{\operatorname {LambertW}\left (-{\mathrm e}^{x^{2}} c_{1} x \right )} \]

Solution by Mathematica

Time used: 5.338 (sec). Leaf size: 29

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

\begin{align*} y(x)\to -\frac {x}{W\left (x \left (-e^{x^2-c_1}\right )\right )} \\ y(x)\to 0 \\ \end{align*}