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 y^{\prime } x +y=\frac {2}{x}} \]

Solution by Maple

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

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 {\ln \left (x \right ) c_{1}}{x}+\frac {\ln \left (x \right )^{2}}{x}+\frac {c_{2}}{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} \]