4.16 problem 5.2 (f)

Internal problem ID [13362]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 5. LINEAR FIRST ORDER EQUATIONS. Additional exercises. page 103
Problem number: 5.2 (f).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 16

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

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