12.1.2 problem 2(b)

Internal problem ID [1520]
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)
Date solved : Monday, January 27, 2025 at 04:58:44 AM
CAS classification : [_linear]

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

Solution by Maple

Time used: 0.001 (sec). Leaf size: 16

dsolve(x*diff(y(x),x) +y(x)= x^2,y(x), singsol=all)
 
\[ y = \frac {x^{3}+3 c_1}{3 x} \]

Solution by Mathematica

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

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