5.1 problem 1

Internal problem ID [1966]

Book: Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section: Exercise 9, page 38
Problem number: 1.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {-y+y^{\prime } x=-\ln \left (x \right )} \]

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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