6.4 problem 150

Internal problem ID [3406]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 6
Problem number: 150.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve(x*diff(y(x),x) = x^n*ln(x)-y(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {x^{n} \ln \left (x \right )}{n +1}-\frac {x^{n}}{n^{2}+2 n +1}+\frac {c_{1}}{x} \]

Solution by Mathematica

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

DSolve[x y'[x]==x^n Log[x]-y[x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {x^n ((n+1) \log (x)-1)}{(n+1)^2}+\frac {c_1}{x} \]