29.5.27 problem 144

Internal problem ID [4744]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 5
Problem number : 144
Date solved : Monday, January 27, 2025 at 09:36:12 AM
CAS classification : [_linear]

\begin{align*} x y^{\prime }+x^{2}-y&=0 \end{align*}

Solution by Maple

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

dsolve(x*diff(y(x),x)+x^2-y(x) = 0,y(x), singsol=all)
 
\[ y \left (x \right ) = \left (-x +c_{1} \right ) x \]

Solution by Mathematica

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

DSolve[x D[y[x],x]+x^2-y[x]==0,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to x (-x+c_1) \]