6.2 problem 148

Internal problem ID [2896]

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

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime } x -x \sin \relax (x )+y=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.048 (sec). Leaf size: 19

DSolve[x y'[x]==x Sin[x]-y[x],y[x],x,IncludeSingularSolutions -> True]
 

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