1.2 problem 2(b)

Internal problem ID [870]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 1, Introduction. Section 1.2 Page 14
Problem number: 2(b).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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