2.26 problem 36 part(b)

Internal problem ID [4467]

Book: Fundamentals of Differential Equations. By Nagle, Saff and Snider. 9th edition. Boston. Pearson 2018.
Section: Chapter 2, First order differential equations. Section 2.3, Linear equations. Exercises. page 54
Problem number: 36 part(b).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y \relax (x ) = \frac {\frac {x^{6}}{6}+c_{1}}{x^{3}} \]

Solution by Mathematica

Time used: 0.041 (sec). Leaf size: 19

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

\begin{align*} y(x)\to \frac {x^3}{6}+\frac {c_1}{x^3} \\ \end{align*}