14.23 problem 3(g)

Internal problem ID [6393]

Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 2. Problems for Review and Discovery. Drill excercises. Page 105
Problem number: 3(g).
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _exact, _linear, _nonhomogeneous]]

\[ \boxed {x^{2} y^{\prime \prime }+3 x y^{\prime }+y=\frac {2}{x}} \]

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 21

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

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