6.5 problem 151

Internal problem ID [3407]

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

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(x)\to \frac {\sin (x)-x \cos (x)+c_1}{x^2} \]