4.1 problem 5.1 (a)

Internal problem ID [13027]

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.1 (a).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, `class A`]]

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

Solution by Maple

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

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

\[ y = \left (\frac {i {\mathrm e}^{\left (3+i\right ) x}}{2 x}-\frac {\operatorname {expIntegral}_{1}\left (\left (-3-i\right ) x \right )}{2}+\frac {3 i \operatorname {expIntegral}_{1}\left (\left (-3-i\right ) x \right )}{2}-\frac {i {\mathrm e}^{\left (3-i\right ) x}}{2 x}-\frac {\operatorname {expIntegral}_{1}\left (\left (-3+i\right ) x \right )}{2}-\frac {3 i \operatorname {expIntegral}_{1}\left (\left (-3+i\right ) x \right )}{2}+c_{1} \right ) {\mathrm e}^{-3 x} \]

Solution by Mathematica

Time used: 0.104 (sec). Leaf size: 68

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

\[ y(x)\to \frac {1}{2} e^{-3 x} \left ((1+3 i) \operatorname {ExpIntegralEi}((3-i) x)+\frac {(1-3 i) x \operatorname {ExpIntegralEi}((3+i) x)-i e^{(3-i) x}+i e^{(3+i) x}+2 c_1 x}{x}\right ) \]