1.4 problem Ex 4

Internal problem ID [10111]

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 4.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y+x +y^{\prime } x=0} \end {gather*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 13

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

\[ y \relax (x ) = -\frac {x}{2}+\frac {c_{1}}{x} \]

Solution by Mathematica

Time used: 0.027 (sec). Leaf size: 17

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

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