15.5.1 problem 1

Internal problem ID [2937]
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
Date solved : Monday, January 27, 2025 at 06:59:41 AM
CAS classification : [_linear]

\begin{align*} x y^{\prime }+\ln \left (x \right )-y&=0 \end{align*}

Solution by Maple

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

dsolve(x*diff(y(x),x)+(ln(x)-y(x))=0,y(x), singsol=all)
 
\[ y = c_1 x +\ln \left (x \right )+1 \]

Solution by Mathematica

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

DSolve[x*D[y[x],x]+(Log[x]-y[x])==0,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \log (x)+c_1 x+1 \]