38.1.4 problem 4

Internal problem ID [6421]
Book : Engineering Mathematics. By K. A. Stroud. 5th edition. Industrial press Inc. NY. 2001
Section : Program 24. First order differential equations. Test excercise 24. page 1067
Problem number : 4
Date solved : Monday, January 27, 2025 at 02:01:11 PM
CAS classification : [_linear]

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

Solution by Maple

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

dsolve(x*diff(y(x),x)-y(x)=x^2,y(x), singsol=all)
 
\[ y = \left (x +c_1 \right ) x \]

Solution by Mathematica

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

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