5.2 problem 101

Internal problem ID [15008]

Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Section 5. Homogeneous equations. Exercises page 44
Problem number: 101.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y = x \left (c_{1} -\ln \left (x \right )\right ) \]

Solution by Mathematica

Time used: 0.024 (sec). Leaf size: 14

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

\[ y(x)\to x (-\log (x)+c_1) \]