3.9 problem 10.4.9 (i)

Internal problem ID [4564]

Book: Basic Training in Mathematics. By R. Shankar. Plenum Press. NY. 1995
Section: Chapter 10, Differential equations. Section 10.4, ODEs with variable Coefficients. Second order and Homogeneous. page 318
Problem number: 10.4.9 (i).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime }-\frac {2 y}{x}-x^{2}=0} \end {gather*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 11

dsolve(diff(y(x),x)-2*y(x)/x-x^2=0,y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.04 (sec). Leaf size: 13

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

\begin{align*} y(x)\to x^2 (x+c_1) \\ \end{align*}